	.file	"111078226.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	cfg_port, @object
	.size	cfg_port, 4
cfg_port:
	.long	8000
	.local	cfg_tcp
	.comm	cfg_tcp,1,1
	.local	cfg_verify
	.comm	cfg_verify,1,1
	.local	cfg_read_all
	.comm	cfg_read_all,1,1
	.local	cfg_gro_segment
	.comm	cfg_gro_segment,1,1
	.align 4
	.type	cfg_family, @object
	.size	cfg_family, 4
cfg_family:
	.long	10
	.align 4
	.type	cfg_alen, @object
	.size	cfg_alen, 4
cfg_alen:
	.long	28
	.local	cfg_expected_pkt_nr
	.comm	cfg_expected_pkt_nr,4,4
	.local	cfg_expected_pkt_len
	.comm	cfg_expected_pkt_len,4,4
	.local	cfg_expected_gso_size
	.comm	cfg_expected_gso_size,4,4
	.local	cfg_connect_timeout_ms
	.comm	cfg_connect_timeout_ms,4,4
	.local	cfg_rcv_timeout_ms
	.comm	cfg_rcv_timeout_ms,4,4
	.local	cfg_bind_addr
	.comm	cfg_bind_addr,128,32
	.local	interrupted
	.comm	interrupted,1,1
	.local	packets
	.comm	packets,8,8
	.local	bytes
	.comm	bytes,8,8
	.text
	.type	sigint_handler, @function
sigint_handler:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 2
	jne	.L3
	mov	BYTE PTR interrupted[rip], 1
.L3:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sigint_handler, .-sigint_handler
	.section	.rodata
.LC0:
	.string	"ipv4 parse error: %s"
.LC1:
	.string	"ipv6 parse error: %s"
.LC2:
	.string	"illegal domain"
	.text
	.type	setup_sockaddr, @function
setup_sockaddr:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -32[rbp], rax
	cmp	DWORD PTR -68[rbp], 2
	je	.L5
	cmp	DWORD PTR -68[rbp], 10
	je	.L6
	jmp	.L11
.L5:
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR [rax], 2
	mov	eax, DWORD PTR cfg_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	WORD PTR 2[rdx], ax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	cmp	eax, 1
	je	.L12
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rcx, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
	jmp	.L12
.L6:
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], 10
	mov	eax, DWORD PTR cfg_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	WORD PTR 2[rdx], ax
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	inet_pton@PLT
	cmp	eax, 1
	je	.L13
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -52[rbp], 0
	lea	rax, .LC1[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	esi, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
	jmp	.L13
.L11:
	mov	DWORD PTR -48[rbp], 1
	mov	DWORD PTR -44[rbp], 0
	lea	rax, .LC2[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	jmp	.L9
.L12:
	nop
	jmp	.L14
.L13:
	nop
.L9:
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	setup_sockaddr, .-setup_sockaddr
	.type	gettimeofday_ms, @function
gettimeofday_ms:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	imul	rsi, rax, 1000
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rax, rsi
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	gettimeofday_ms, .-gettimeofday_ms
	.section	.rodata
.LC3:
	.string	"poll"
.LC4:
	.string	"poll: 0x%x expected 0x%x\n"
	.text
	.type	do_poll, @function
do_poll:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	WORD PTR -28[rbp], 1
	mov	WORD PTR -26[rbp], 0
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -32[rbp], eax
.L25:
	lea	rax, -32[rbp]
	mov	edx, 10
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -68[rbp], eax
	movzx	eax, BYTE PTR interrupted[rip]
	test	al, al
	jne	.L27
	cmp	DWORD PTR -68[rbp], -1
	jne	.L21
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], eax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L21:
	cmp	DWORD PTR -68[rbp], 0
	jne	.L22
	cmp	DWORD PTR -88[rbp], 0
	je	.L28
	sub	DWORD PTR -88[rbp], 10
	cmp	DWORD PTR -88[rbp], 0
	jg	.L22
	mov	BYTE PTR interrupted[rip], 1
	jmp	.L20
.L22:
	movzx	eax, WORD PTR -26[rbp]
	cmp	ax, 1
	je	.L24
	movzx	eax, WORD PTR -26[rbp]
	movsx	ebx, ax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -52[rbp], eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	r8d, 1
	mov	ecx, ebx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	jmp	.L24
.L28:
	nop
.L24:
	cmp	DWORD PTR -68[rbp], 0
	je	.L25
	jmp	.L20
.L27:
	nop
.L20:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	do_poll, .-do_poll
	.section	.rodata
.LC5:
	.string	"socket"
.LC6:
	.string	"setsockopt rcvbuf"
.LC7:
	.string	"setsockopt reuseport"
.LC8:
	.string	"bind"
.LC9:
	.string	"listen"
.LC10:
	.string	"accept"
.LC11:
	.string	"close accept fd"
	.text
	.type	do_socket, @function
do_socket:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	eax, edi
	mov	BYTE PTR -148[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR cfg_tcp[rip]
	test	al, al
	je	.L30
	mov	ecx, 1
	jmp	.L31
.L30:
	mov	ecx, 2
.L31:
	mov	eax, DWORD PTR cfg_family[rip]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], -1
	jne	.L32
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -120[rbp], 1
	mov	DWORD PTR -116[rbp], eax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	rdx, QWORD PTR -64[rbp]
	mov	ecx, DWORD PTR -116[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L32:
	mov	DWORD PTR -132[rbp], 2097152
	lea	rdx, -132[rbp]
	mov	eax, DWORD PTR -128[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 8
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L33
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -112[rbp], 1
	mov	DWORD PTR -108[rbp], eax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	ecx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L33:
	mov	DWORD PTR -132[rbp], 1
	lea	rdx, -132[rbp]
	mov	eax, DWORD PTR -128[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 15
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -104[rbp], 1
	mov	DWORD PTR -100[rbp], eax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L34:
	mov	eax, DWORD PTR cfg_alen[rip]
	mov	edx, eax
	lea	rcx, cfg_bind_addr[rip]
	mov	eax, DWORD PTR -128[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L35
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -96[rbp], 1
	mov	DWORD PTR -92[rbp], eax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L35:
	cmp	BYTE PTR -148[rbp], 0
	je	.L36
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, 1
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L37
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -88[rbp], 1
	mov	DWORD PTR -84[rbp], eax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L37:
	mov	edx, DWORD PTR cfg_connect_timeout_ms[rip]
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, edx
	mov	edi, eax
	call	do_poll
	movzx	eax, BYTE PTR interrupted[rip]
	test	al, al
	je	.L38
	mov	edi, 0
	call	exit@PLT
.L38:
	mov	ecx, 0
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], -1
	jne	.L39
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -80[rbp], 1
	mov	DWORD PTR -76[rbp], eax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L39:
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L36
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -68[rbp], eax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L36:
	mov	eax, DWORD PTR -128[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	do_socket, .-do_socket
	.section	.rodata
.LC12:
	.string	"flush"
	.text
	.type	do_flush_tcp, @function
do_flush_tcp:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
.L47:
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, 96
	mov	edx, 2097152
	mov	esi, 0
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L43
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L49
.L43:
	cmp	DWORD PTR -20[rbp], -1
	jne	.L45
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], eax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L45:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L46
	mov	edi, 0
	call	exit@PLT
.L46:
	mov	rax, QWORD PTR packets[rip]
	add	rax, 1
	mov	QWORD PTR packets[rip], rax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR bytes[rip]
	add	rax, rdx
	mov	QWORD PTR bytes[rip], rax
	jmp	.L47
.L49:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	do_flush_tcp, .-do_flush_tcp
	.type	sanitized_char, @function
sanitized_char:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 96
	jle	.L51
	cmp	BYTE PTR -4[rbp], 122
	jg	.L51
	movzx	eax, BYTE PTR -4[rbp]
	jmp	.L53
.L51:
	mov	eax, 46
.L53:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	sanitized_char, .-sanitized_char
	.section	.rodata
	.align 8
.LC13:
	.string	"data initial byte out of range"
	.align 8
.LC14:
	.string	"data[%d]: len %d, %c(%hhu) != %c(%hhu)\n"
	.text
	.type	do_verify_udp, @function
do_verify_udp:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -69[rbp], al
	cmp	BYTE PTR -69[rbp], 96
	jle	.L55
	cmp	BYTE PTR -69[rbp], 122
	jle	.L56
.L55:
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 0
	lea	rax, .LC13[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L56:
	mov	DWORD PTR -68[rbp], 1
	jmp	.L57
.L61:
	cmp	BYTE PTR -69[rbp], 122
	jne	.L58
	mov	BYTE PTR -69[rbp], 97
	jmp	.L59
.L58:
	movzx	eax, BYTE PTR -69[rbp]
	add	eax, 1
	mov	BYTE PTR -69[rbp], al
.L59:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -69[rbp], al
	je	.L60
	movsx	r13d, BYTE PTR -69[rbp]
	movsx	eax, BYTE PTR -69[rbp]
	mov	edi, eax
	call	sanitized_char
	movsx	r12d, al
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	ebx, al
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	sanitized_char
	movsx	r8d, al
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -52[rbp], 0
	lea	rax, .LC14[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	edi, DWORD PTR -92[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	sub	rsp, 8
	push	r13
	push	r12
	push	rbx
	mov	r9d, r8d
	mov	r8d, edi
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	add	rsp, 32
	nop
.L60:
	add	DWORD PTR -68[rbp], 1
.L57:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L61
	nop
	nop
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	do_verify_udp, .-do_verify_udp
	.type	recv_msg, @function
recv_msg:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	DWORD PTR -152[rbp], edx
	mov	QWORD PTR -168[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	rax, QWORD PTR -160[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	QWORD PTR -104[rbp], rax
	lea	rax, -112[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], 1
	lea	rax, -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], 24
	mov	rax, QWORD PTR -168[rbp]
	mov	DWORD PTR [rax], -1
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -148[rbp]
	mov	edx, 96
	mov	rsi, rcx
	mov	edi, eax
	call	recvmsg@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], -1
	je	.L63
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, 15
	jbe	.L64
	mov	rax, QWORD PTR -64[rbp]
	jmp	.L65
.L64:
	mov	eax, 0
.L65:
	mov	QWORD PTR -128[rbp], rax
	jmp	.L66
.L68:
	mov	rax, QWORD PTR -128[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 17
	jne	.L67
	mov	rax, QWORD PTR -128[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	eax, 104
	jne	.L67
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	edx, ax
	mov	rax, QWORD PTR -168[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L63
.L67:
	mov	rdx, QWORD PTR -128[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	__cmsg_nxthdr@PLT
	mov	QWORD PTR -128[rbp], rax
.L66:
	cmp	QWORD PTR -128[rbp], 0
	jne	.L68
.L63:
	mov	eax, DWORD PTR -132[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L70
	call	__stack_chk_fail@PLT
.L70:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	recv_msg, .-recv_msg
	.section	.rodata
.LC15:
	.string	"recv"
	.align 8
.LC16:
	.string	"recv: bad packet len, got %d, expected %d\n"
.LC17:
	.string	"recv: 0 byte datagram\n"
	.align 8
.LC18:
	.string	"recv: bad gso size, got %d, expected %d (-1 == no gso cmsg))\n"
	.text
	.type	do_flush_udp, @function
do_flush_udp:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -80[rbp], 256
	movzx	eax, BYTE PTR cfg_read_all[rip]
	test	al, al
	je	.L72
	mov	eax, 65535
	jmp	.L73
.L72:
	mov	eax, 0
.L73:
	mov	DWORD PTR -76[rbp], eax
	jmp	.L74
.L84:
	mov	eax, DWORD PTR cfg_expected_gso_size[rip]
	test	eax, eax
	jne	.L75
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -100[rbp]
	mov	ecx, 96
	lea	rsi, rbuf.0[rip]
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -84[rbp], eax
	jmp	.L76
.L75:
	lea	rcx, -88[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -100[rbp]
	lea	rsi, rbuf.0[rip]
	mov	edi, eax
	call	recv_msg
	mov	DWORD PTR -84[rbp], eax
.L76:
	cmp	DWORD PTR -84[rbp], -1
	jne	.L77
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L86
.L77:
	cmp	DWORD PTR -84[rbp], -1
	jne	.L79
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -68[rbp], eax
	lea	rax, .LC15[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L79:
	mov	eax, DWORD PTR cfg_expected_pkt_len[rip]
	test	eax, eax
	je	.L80
	mov	eax, DWORD PTR cfg_expected_pkt_len[rip]
	cmp	DWORD PTR -84[rbp], eax
	je	.L80
	mov	edi, DWORD PTR cfg_expected_pkt_len[rip]
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 0
	lea	rax, .LC16[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	ecx, DWORD PTR -84[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	r8d, edi
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L80:
	cmp	DWORD PTR -76[rbp], 0
	je	.L81
	movzx	eax, BYTE PTR cfg_verify[rip]
	test	al, al
	je	.L81
	cmp	DWORD PTR -84[rbp], 0
	jne	.L82
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -52[rbp], eax
	lea	rax, .LC17[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L82:
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, rbuf.0[rip]
	call	do_verify_udp
.L81:
	mov	eax, DWORD PTR cfg_expected_gso_size[rip]
	test	eax, eax
	je	.L83
	mov	edx, DWORD PTR cfg_expected_gso_size[rip]
	mov	eax, DWORD PTR -88[rbp]
	cmp	edx, eax
	je	.L83
	mov	edi, DWORD PTR cfg_expected_gso_size[rip]
	mov	ecx, DWORD PTR -88[rbp]
	mov	DWORD PTR -48[rbp], 1
	mov	DWORD PTR -44[rbp], 0
	lea	rax, .LC18[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r8d, edi
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L83:
	mov	rax, QWORD PTR packets[rip]
	add	rax, 1
	mov	QWORD PTR packets[rip], rax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR bytes[rip]
	add	rax, rdx
	mov	QWORD PTR bytes[rip], rax
	mov	eax, DWORD PTR cfg_expected_pkt_nr[rip]
	test	eax, eax
	je	.L74
	mov	eax, DWORD PTR cfg_expected_pkt_nr[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR packets[rip]
	cmp	rdx, rax
	jbe	.L87
.L74:
	mov	eax, DWORD PTR -80[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -80[rbp], edx
	test	eax, eax
	jne	.L84
	jmp	.L78
.L86:
	nop
	jmp	.L78
.L87:
	nop
.L78:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L85
	call	__stack_chk_fail@PLT
.L85:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	do_flush_udp, .-do_flush_udp
	.section	.rodata
	.align 8
.LC19:
	.string	"Usage: %s [-C connect_timeout] [-Grtv] [-b addr] [-p port] [-l pktlen] [-n packetnr] [-R rcv_timeout] [-S gsosize]"
	.text
	.type	usage, @function
usage:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	lea	rax, .LC19[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	usage, .-usage
	.section	.rodata
.LC20:
	.string	"::"
.LC21:
	.string	"0.0.0.0"
.LC22:
	.string	"4b:C:Gl:n:p:rR:S:tv"
	.align 8
.LC23:
	.string	"TODO: implement verify mode for tcp"
	.text
	.type	parse_opts, @function
parse_opts:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	lea	rdx, cfg_bind_addr[rip]
	lea	rsi, .LC20[rip]
	mov	edi, 10
	call	setup_sockaddr
	jmp	.L90
.L104:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 52
	cmp	eax, 66
	ja	.L90
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L92[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L92[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L92:
	.long	.L103-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L102-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L101-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L100-.L92
	.long	.L99-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L98-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L90-.L92
	.long	.L97-.L92
	.long	.L90-.L92
	.long	.L96-.L92
	.long	.L90-.L92
	.long	.L95-.L92
	.long	.L90-.L92
	.long	.L94-.L92
	.long	.L90-.L92
	.long	.L93-.L92
	.long	.L90-.L92
	.long	.L91-.L92
	.text
.L103:
	mov	DWORD PTR cfg_family[rip], 2
	mov	DWORD PTR cfg_alen[rip], 16
	lea	rdx, cfg_bind_addr[rip]
	lea	rsi, .LC21[rip]
	mov	edi, 2
	call	setup_sockaddr
	jmp	.L90
.L98:
	mov	rcx, QWORD PTR optarg[rip]
	mov	eax, DWORD PTR cfg_family[rip]
	lea	rdx, cfg_bind_addr[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	setup_sockaddr
	jmp	.L90
.L102:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR cfg_connect_timeout_ms[rip], eax
	jmp	.L90
.L101:
	mov	BYTE PTR cfg_gro_segment[rip], 1
	jmp	.L90
.L97:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR cfg_expected_pkt_len[rip], eax
	jmp	.L90
.L96:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR cfg_expected_pkt_nr[rip], eax
	jmp	.L90
.L95:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR cfg_port[rip], eax
	jmp	.L90
.L94:
	mov	BYTE PTR cfg_read_all[rip], 1
	jmp	.L90
.L100:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR cfg_rcv_timeout_ms[rip], eax
	jmp	.L90
.L99:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR cfg_expected_gso_size[rip], eax
	jmp	.L90
.L93:
	mov	BYTE PTR cfg_tcp[rip], 1
	jmp	.L90
.L91:
	mov	BYTE PTR cfg_verify[rip], 1
	mov	BYTE PTR cfg_read_all[rip], 1
	nop
.L90:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC22[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L104
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -36[rbp], eax
	je	.L105
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L105:
	movzx	eax, BYTE PTR cfg_tcp[rip]
	test	al, al
	je	.L107
	movzx	eax, BYTE PTR cfg_verify[rip]
	test	al, al
	je	.L107
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	lea	rax, .LC23[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L107:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	parse_opts, .-parse_opts
	.section	.rodata
.LC24:
	.string	"setsockopt UDP_GRO"
.LC25:
	.string	"tcp"
.LC26:
	.string	"udp"
	.align 8
.LC27:
	.string	"%s rx: %6lu MB/s %8lu calls/s\n"
	.align 8
.LC28:
	.string	"wrong packet number! got %ld, expected %d\n"
.LC29:
	.string	"close"
	.text
	.type	do_recv, @function
do_recv:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR cfg_tcp[rip]
	test	al, al
	je	.L109
	mov	eax, DWORD PTR cfg_rcv_timeout_ms[rip]
	jmp	.L110
.L109:
	mov	eax, DWORD PTR cfg_connect_timeout_ms[rip]
.L110:
	mov	DWORD PTR -80[rbp], eax
	movzx	eax, BYTE PTR cfg_tcp[rip]
	movzx	eax, al
	mov	edi, eax
	call	do_socket
	mov	DWORD PTR -76[rbp], eax
	movzx	eax, BYTE PTR cfg_gro_segment[rip]
	test	al, al
	je	.L111
	movzx	eax, BYTE PTR cfg_tcp[rip]
	xor	eax, 1
	test	al, al
	je	.L111
	mov	DWORD PTR -84[rbp], 1
	lea	rdx, -84[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 104
	mov	esi, 17
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L111
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -68[rbp], eax
	lea	rax, .LC24[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L111:
	call	gettimeofday_ms
	add	rax, 1000
	mov	QWORD PTR -48[rbp], rax
.L119:
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, edx
	mov	edi, eax
	call	do_poll
	movzx	eax, BYTE PTR cfg_tcp[rip]
	test	al, al
	je	.L113
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	do_flush_tcp
	jmp	.L114
.L113:
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	do_flush_udp
.L114:
	call	gettimeofday_ms
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jbe	.L115
	mov	rax, QWORD PTR packets[rip]
	test	rax, rax
	je	.L116
	mov	rcx, QWORD PTR packets[rip]
	mov	rax, QWORD PTR bytes[rip]
	shr	rax, 20
	mov	rdx, rax
	movzx	eax, BYTE PTR cfg_tcp[rip]
	test	al, al
	je	.L117
	lea	rax, .LC25[rip]
	jmp	.L118
.L117:
	lea	rax, .LC26[rip]
.L118:
	mov	rdi, QWORD PTR stderr[rip]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC27[rip]
	mov	eax, 0
	call	fprintf@PLT
.L116:
	mov	QWORD PTR packets[rip], 0
	mov	rax, QWORD PTR packets[rip]
	mov	QWORD PTR bytes[rip], rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1000
	mov	QWORD PTR -48[rbp], rax
.L115:
	mov	eax, DWORD PTR cfg_rcv_timeout_ms[rip]
	mov	DWORD PTR -80[rbp], eax
	movzx	eax, BYTE PTR interrupted[rip]
	xor	eax, 1
	test	al, al
	jne	.L119
	mov	eax, DWORD PTR cfg_expected_pkt_nr[rip]
	test	eax, eax
	je	.L120
	mov	eax, DWORD PTR cfg_expected_pkt_nr[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR packets[rip]
	cmp	rdx, rax
	je	.L120
	mov	edi, DWORD PTR cfg_expected_pkt_nr[rip]
	mov	rcx, QWORD PTR packets[rip]
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 0
	lea	rax, .LC28[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	r8d, edi
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L120:
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L123
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -52[rbp], eax
	lea	rax, .LC29[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L123:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L122
	call	__stack_chk_fail@PLT
.L122:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	do_recv, .-do_recv
	.globl	main
	.type	main, @function
main:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parse_opts
	lea	rsi, sigint_handler[rip]
	mov	edi, 2
	call	signal@PLT
	call	do_recv
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	main, .-main
	.local	rbuf.0
	.comm	rbuf.0,65535,32
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"111078226.c"
	.text
	.data
	.align	2
	.type	cfg_port, %object
	.size	cfg_port, 4
cfg_port:
	.word	8000
	.local	cfg_tcp
	.comm	cfg_tcp,1,1
	.local	cfg_verify
	.comm	cfg_verify,1,1
	.local	cfg_read_all
	.comm	cfg_read_all,1,1
	.local	cfg_gro_segment
	.comm	cfg_gro_segment,1,1
	.align	2
	.type	cfg_family, %object
	.size	cfg_family, 4
cfg_family:
	.word	10
	.align	2
	.type	cfg_alen, %object
	.size	cfg_alen, 4
cfg_alen:
	.word	28
	.local	cfg_expected_pkt_nr
	.comm	cfg_expected_pkt_nr,4,4
	.local	cfg_expected_pkt_len
	.comm	cfg_expected_pkt_len,4,4
	.local	cfg_expected_gso_size
	.comm	cfg_expected_gso_size,4,4
	.local	cfg_connect_timeout_ms
	.comm	cfg_connect_timeout_ms,4,4
	.local	cfg_rcv_timeout_ms
	.comm	cfg_rcv_timeout_ms,4,4
	.local	cfg_bind_addr
	.comm	cfg_bind_addr,128,4
	.local	interrupted
	.comm	interrupted,1,1
	.local	packets
	.comm	packets,4,4
	.local	bytes
	.comm	bytes,4,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigint_handler, %function
sigint_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L3
	ldr	r3, .L4
	mov	r2, #1
	strb	r2, [r3]
.L3:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	interrupted
	.size	sigint_handler, .-sigint_handler
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ipv4 parse error: %s\000"
	.align	2
.LC1:
	.ascii	"ipv6 parse error: %s\000"
	.align	2
.LC2:
	.ascii	"illegal domain\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_sockaddr, %function
setup_sockaddr:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	beq	.L7
	ldr	r3, [fp, #-56]
	cmp	r3, #10
	beq	.L8
	b	.L13
.L7:
	ldr	r3, [fp, #-44]
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, .L17
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-60]
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #1
	beq	.L14
	mov	r3, #1
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, .L17+4
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	error
	nop
	b	.L14
.L8:
	ldr	r3, [fp, #-48]
	mov	r2, #10
	strh	r2, [r3]	@ movhi
	ldr	r3, .L17
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-48]
	add	r3, r3, #8
	mov	r2, r3
	ldr	r1, [fp, #-60]
	mov	r0, #10
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #1
	beq	.L15
	mov	r3, #1
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L17+8
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	error
	nop
	b	.L15
.L13:
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L17+12
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	error
	b	.L11
.L14:
	nop
	b	.L16
.L15:
	nop
.L11:
.L16:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	cfg_port
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	setup_sockaddr, .-setup_sockaddr
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gettimeofday_ms, %function
gettimeofday_ms:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L22+4
	smull	r0, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r1, r3
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC3
	.word	274877907
	.size	gettimeofday_ms, .-gettimeofday_ms
	.section	.rodata
	.align	2
.LC4:
	.ascii	"poll\000"
	.align	2
.LC5:
	.ascii	"poll: 0x%x expected 0x%x\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_poll, %function
do_poll:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
.L31:
	sub	r3, fp, #16
	mov	r2, #10
	mov	r1, #1
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-44]
	ldr	r3, .L35+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L27
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-40]
	str	r3, [fp, #-36]
	ldr	r3, .L35+8
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	error
	nop
.L27:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-52]
	sub	r3, r3, #10
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bgt	.L28
	ldr	r3, .L35+4
	mov	r2, #1
	strb	r2, [r3]
	b	.L26
.L28:
	ldrsh	r3, [fp, #-10]
	cmp	r3, #1
	beq	.L30
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldrsh	r2, [fp, #-10]
	mov	r1, r2
	mov	r2, #1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L35+12
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	error
	b	.L30
.L34:
	nop
.L30:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L31
	b	.L26
.L33:
	nop
.L26:
	nop
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC6
	.word	interrupted
	.word	.LC4
	.word	.LC5
	.size	do_poll, .-do_poll
	.section	.rodata
	.align	2
.LC7:
	.ascii	"socket\000"
	.align	2
.LC8:
	.ascii	"setsockopt rcvbuf\000"
	.align	2
.LC9:
	.ascii	"setsockopt reuseport\000"
	.align	2
.LC10:
	.ascii	"bind\000"
	.align	2
.LC11:
	.ascii	"listen\000"
	.align	2
.LC12:
	.ascii	"accept\000"
	.align	2
.LC13:
	.ascii	"close accept fd\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_socket, %function
do_socket:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	mov	r3, r0
	strb	r3, [fp, #-109]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L50+4
	ldr	r0, [r3]
	ldr	r3, .L50+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L38
	mov	r3, #1
	b	.L39
.L38:
	mov	r3, #2
.L39:
	mov	r2, #0
	mov	r1, r3
	bl	socket
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmn	r3, #1
	bne	.L40
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, .L50+12
	str	r3, [fp, #-84]
	ldr	r2, [fp, #-84]
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-92]
	bl	error
	nop
.L40:
	mov	r3, #2097152
	str	r3, [fp, #-104]
	sub	r3, fp, #104
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, [fp, #-100]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-80]
	str	r3, [fp, #-76]
	ldr	r3, .L50+16
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-72]
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-80]
	bl	error
	nop
.L41:
	mov	r3, #1
	str	r3, [fp, #-104]
	sub	r3, fp, #104
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, [fp, #-100]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r3, .L50+20
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-68]
	bl	error
	nop
.L42:
	ldr	r1, .L50+24
	ldr	r3, .L50+28
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-100]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-56]
	str	r3, [fp, #-52]
	ldr	r3, .L50+32
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-56]
	bl	error
	nop
.L43:
	ldrb	r3, [fp, #-109]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-96]
	mov	r1, #1
	ldr	r0, [fp, #-96]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, .L50+36
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	error
	nop
.L45:
	ldr	r3, .L50+40
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	do_poll
	ldr	r3, .L50+44
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L46
	mov	r0, #0
	bl	exit
.L46:
	mov	r3, #0
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	accept
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmn	r3, #1
	bne	.L47
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r3, .L50+48
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	error
	nop
.L47:
	ldr	r0, [fp, #-96]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, .L50+52
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	error
	nop
.L44:
	ldr	r3, [fp, #-100]
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC14
	.word	cfg_family
	.word	cfg_tcp
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	cfg_bind_addr
	.word	cfg_alen
	.word	.LC10
	.word	.LC11
	.word	cfg_connect_timeout_ms
	.word	interrupted
	.word	.LC12
	.word	.LC13
	.size	do_socket, .-do_socket
	.section	.rodata
	.align	2
.LC15:
	.ascii	"flush\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_flush_tcp, %function
do_flush_tcp:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
.L57:
	mov	r3, #96
	mov	r2, #2097152
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	recv
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L53
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L59
.L53:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L55
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, .L60
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	error
	nop
.L55:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L56
	mov	r0, #0
	bl	exit
.L56:
	ldr	r3, .L60+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L60+4
	str	r3, [r2]
	ldr	r3, .L60+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, .L60+8
	str	r3, [r2]
	b	.L57
.L59:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	.LC15
	.word	packets
	.word	bytes
	.size	do_flush_tcp, .-do_flush_tcp
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sanitized_char, %function
sanitized_char:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L63
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L63
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	b	.L64
.L63:
	mov	r3, #46
.L64:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sanitized_char, .-sanitized_char
	.section	.rodata
	.align	2
.LC16:
	.ascii	"data initial byte out of range\000"
	.align	2
.LC17:
	.ascii	"data[%d]: len %d, %c(%hhu) != %c(%hhu)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_verify_udp, %function
do_verify_udp:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #64
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]
	strb	r3, [fp, #-41]
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L67
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L68
.L67:
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L74
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	error
	nop
.L68:
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L69
.L73:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #122
	bne	.L70
	mov	r3, #97
	strb	r3, [fp, #-41]
	b	.L71
.L70:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-41]
.L71:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-41]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L72
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	sanitized_char
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r5, r3
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	mov	r0, r3
	bl	sanitized_char
	mov	r3, r0
	mov	r1, r3
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	mov	r2, #1
	str	r2, [fp, #-24]
	mov	r2, #0
	str	r2, [fp, #-20]
	ldr	r2, .L74+4
	str	r2, [fp, #-16]
	str	r3, [sp, #16]
	str	r1, [sp, #12]
	str	r5, [sp, #8]
	str	r4, [sp, #4]
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	error
	nop
.L72:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L69:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L73
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC16
	.word	.LC17
	.size	do_verify_udp, .-do_verify_udp
	.section	.rodata
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	recv_msg, %function
recv_msg:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	str	r3, [fp, #-92]
	ldr	r3, .L85
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	sub	r3, fp, #20
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	sub	r3, fp, #52
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #24]
	sub	r3, fp, #60
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-56]
	sub	r3, fp, #60
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-40]
	sub	r3, fp, #24
	str	r3, [fp, #-36]
	mov	r3, #16
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-92]
	mvn	r2, #0
	str	r2, [r3]
	sub	r3, fp, #52
	mov	r2, #96
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	recvmsg
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmn	r3, #1
	beq	.L77
	ldr	r3, [fp, #-32]
	cmp	r3, #11
	bls	.L78
	ldr	r3, [fp, #-36]
	b	.L79
.L78:
	mov	r3, #0
.L79:
	str	r3, [fp, #-72]
	b	.L80
.L82:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #4]
	cmp	r3, #17
	bne	.L81
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	cmp	r3, #104
	bne	.L81
	ldr	r3, [fp, #-72]
	add	r3, r3, #12
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3]
	b	.L77
.L81:
	sub	r3, fp, #52
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	__cmsg_nxthdr
	str	r0, [fp, #-72]
.L80:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L82
.L77:
	ldr	r3, [fp, #-68]
	ldr	r2, .L85
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L84
	bl	__stack_chk_fail
.L84:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L86:
	.align	2
.L85:
	.word	.LC18
	.size	recv_msg, .-recv_msg
	.section	.rodata
	.align	2
.LC19:
	.ascii	"recv\000"
	.align	2
.LC20:
	.ascii	"recv: bad packet len, got %d, expected %d\012\000"
	.align	2
.LC21:
	.ascii	"recv: 0 byte datagram\012\000"
	.align	2
.LC22:
	.ascii	"recv: bad gso size, got %d, expected %d (-1 == no g"
	.ascii	"so cmsg))\012\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_flush_udp, %function
do_flush_udp:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-80]
	ldr	r3, .L104
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #256
	str	r3, [fp, #-64]
	ldr	r3, .L104+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L88
	ldr	r3, .L104+8
	b	.L89
.L88:
	mov	r3, #0
.L89:
	str	r3, [fp, #-60]
	b	.L90
.L100:
	ldr	r3, .L104+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L91
	ldr	r2, [fp, #-60]
	mov	r3, #96
	ldr	r1, .L104+16
	ldr	r0, [fp, #-80]
	bl	recv
	str	r0, [fp, #-68]
	b	.L92
.L91:
	sub	r3, fp, #72
	ldr	r2, [fp, #-60]
	ldr	r1, .L104+16
	ldr	r0, [fp, #-80]
	bl	recv_msg
	str	r0, [fp, #-68]
.L92:
	ldr	r3, [fp, #-68]
	cmn	r3, #1
	bne	.L93
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L102
.L93:
	ldr	r3, [fp, #-68]
	cmn	r3, #1
	bne	.L95
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-56]
	str	r3, [fp, #-52]
	ldr	r3, .L104+20
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-56]
	bl	error
	nop
.L95:
	ldr	r3, .L104+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L96
	ldr	r3, .L104+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	beq	.L96
	ldr	r3, .L104+24
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-44]
	mov	r2, #0
	str	r2, [fp, #-40]
	ldr	r2, .L104+28
	str	r2, [fp, #-36]
	str	r3, [sp]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	error
	nop
.L96:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L97
	ldr	r3, .L104+32
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L97
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L98
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r3, .L104+36
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	error
	nop
.L98:
	ldr	r1, [fp, #-68]
	ldr	r0, .L104+16
	bl	do_verify_udp
.L97:
	ldr	r3, .L104+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L99
	ldr	r3, .L104+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	beq	.L99
	ldr	r2, [fp, #-72]
	ldr	r3, .L104+12
	ldr	r3, [r3]
	mov	r1, #1
	str	r1, [fp, #-20]
	mov	r1, #0
	str	r1, [fp, #-16]
	ldr	r1, .L104+40
	str	r1, [fp, #-12]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	error
	nop
.L99:
	ldr	r3, .L104+44
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L104+44
	str	r3, [r2]
	ldr	r3, .L104+48
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldr	r2, .L104+48
	str	r3, [r2]
	ldr	r3, .L104+52
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L90
	ldr	r3, .L104+44
	ldr	r3, [r3]
	ldr	r2, .L104+52
	ldr	r2, [r2]
	cmp	r3, r2
	bcs	.L103
.L90:
	ldr	r3, [fp, #-64]
	sub	r2, r3, #1
	str	r2, [fp, #-64]
	cmp	r3, #0
	bne	.L100
	b	.L94
.L102:
	nop
	b	.L94
.L103:
	nop
.L94:
	nop
	ldr	r3, .L104
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L101
	bl	__stack_chk_fail
.L101:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L105:
	.align	2
.L104:
	.word	.LC23
	.word	cfg_read_all
	.word	65535
	.word	cfg_expected_gso_size
	.word	rbuf.8212
	.word	.LC19
	.word	cfg_expected_pkt_len
	.word	.LC20
	.word	cfg_verify
	.word	.LC21
	.word	.LC22
	.word	packets
	.word	bytes
	.word	cfg_expected_pkt_nr
	.size	do_flush_udp, .-do_flush_udp
	.section	.rodata
	.align	2
.LC24:
	.ascii	"Usage: %s [-C connect_timeout] [-Grtv] [-b addr] [-"
	.ascii	"p port] [-l pktlen] [-n packetnr] [-R rcv_timeout] "
	.ascii	"[-S gsosize]\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L107
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	error
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L108:
	.align	2
.L107:
	.word	.LC24
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC25:
	.ascii	"::\000"
	.align	2
.LC26:
	.ascii	"0.0.0.0\000"
	.align	2
.LC27:
	.ascii	"4b:C:Gl:n:p:rR:S:tv\000"
	.align	2
.LC28:
	.ascii	"TODO: implement verify mode for tcp\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_opts, %function
parse_opts:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r2, .L128
	ldr	r1, .L128+4
	mov	r0, #10
	bl	setup_sockaddr
	b	.L110
.L124:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #52
	cmp	r3, #66
	ldrls	pc, [pc, r3, asl #2]
	b	.L110
.L112:
	.word	.L123
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L122
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L121
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L120
	.word	.L119
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L118
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L110
	.word	.L117
	.word	.L110
	.word	.L116
	.word	.L110
	.word	.L115
	.word	.L110
	.word	.L114
	.word	.L110
	.word	.L113
	.word	.L110
	.word	.L111
.L123:
	ldr	r3, .L128+8
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, .L128+12
	mov	r2, #16
	str	r2, [r3]
	ldr	r2, .L128
	ldr	r1, .L128+16
	mov	r0, #2
	bl	setup_sockaddr
	b	.L110
.L118:
	ldr	r3, .L128+8
	ldr	r3, [r3]
	ldr	r2, .L128+20
	ldr	r1, [r2]
	ldr	r2, .L128
	mov	r0, r3
	bl	setup_sockaddr
	b	.L110
.L122:
	ldr	r3, .L128+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L128+24
	str	r2, [r3]
	b	.L110
.L121:
	ldr	r3, .L128+28
	mov	r2, #1
	strb	r2, [r3]
	b	.L110
.L117:
	ldr	r3, .L128+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L128+32
	str	r2, [r3]
	b	.L110
.L116:
	ldr	r3, .L128+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L128+36
	str	r2, [r3]
	b	.L110
.L115:
	ldr	r3, .L128+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L128+40
	str	r2, [r3]
	b	.L110
.L114:
	ldr	r3, .L128+44
	mov	r2, #1
	strb	r2, [r3]
	b	.L110
.L120:
	ldr	r3, .L128+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L128+48
	str	r2, [r3]
	b	.L110
.L119:
	ldr	r3, .L128+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	ldr	r2, .L128+52
	str	r3, [r2]
	b	.L110
.L113:
	ldr	r3, .L128+56
	mov	r2, #1
	strb	r2, [r3]
	b	.L110
.L111:
	ldr	r3, .L128+60
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L128+44
	mov	r2, #1
	strb	r2, [r3]
	nop
.L110:
	ldr	r2, .L128+64
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	getopt
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L124
	ldr	r3, .L128+68
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	beq	.L125
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
.L125:
	ldr	r3, .L128+56
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L127
	ldr	r3, .L128+60
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L127
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L128+72
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	error
	nop
.L127:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L129:
	.align	2
.L128:
	.word	cfg_bind_addr
	.word	.LC25
	.word	cfg_family
	.word	cfg_alen
	.word	.LC26
	.word	optarg
	.word	cfg_connect_timeout_ms
	.word	cfg_gro_segment
	.word	cfg_expected_pkt_len
	.word	cfg_expected_pkt_nr
	.word	cfg_port
	.word	cfg_read_all
	.word	cfg_rcv_timeout_ms
	.word	cfg_expected_gso_size
	.word	cfg_tcp
	.word	cfg_verify
	.word	.LC27
	.word	optind
	.word	.LC28
	.size	parse_opts, .-parse_opts
	.section	.rodata
	.align	2
.LC29:
	.ascii	"setsockopt UDP_GRO\000"
	.align	2
.LC30:
	.ascii	"tcp\000"
	.align	2
.LC31:
	.ascii	"udp\000"
	.align	2
.LC32:
	.ascii	"%s rx: %6lu MB/s %8lu calls/s\012\000"
	.align	2
.LC33:
	.ascii	"wrong packet number! got %ld, expected %d\012\000"
	.align	2
.LC34:
	.ascii	"close\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_recv, %function
do_recv:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L146
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L146+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L131
	ldr	r3, .L146+8
	ldr	r3, [r3]
	b	.L132
.L131:
	ldr	r3, .L146+12
	ldr	r3, [r3]
.L132:
	str	r3, [fp, #-60]
	ldr	r3, .L146+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	do_socket
	str	r0, [fp, #-52]
	ldr	r3, .L146+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L133
	ldr	r3, .L146+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L133
	mov	r3, #1
	str	r3, [fp, #-64]
	sub	r3, fp, #64
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #104
	mov	r1, #17
	ldr	r0, [fp, #-52]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L133
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, .L146+20
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	error
	nop
.L133:
	bl	gettimeofday_ms
	mov	r3, r0
	add	r3, r3, #1000
	str	r3, [fp, #-56]
.L141:
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-52]
	bl	do_poll
	ldr	r3, .L146+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L135
	ldr	r0, [fp, #-52]
	bl	do_flush_tcp
	b	.L136
.L135:
	ldr	r0, [fp, #-52]
	bl	do_flush_udp
.L136:
	bl	gettimeofday_ms
	str	r0, [fp, #-48]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bls	.L137
	ldr	r3, .L146+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L138
	ldr	r3, .L146+28
	ldr	r0, [r3]
	ldr	r3, .L146+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L139
	ldr	r2, .L146+32
	b	.L140
.L139:
	ldr	r2, .L146+36
.L140:
	ldr	r3, .L146+40
	ldr	r3, [r3]
	lsr	r1, r3, #20
	ldr	r3, .L146+24
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L146+44
	bl	fprintf
.L138:
	ldr	r3, .L146+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L146+24
	ldr	r3, [r3]
	ldr	r2, .L146+40
	str	r3, [r2]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1000
	str	r3, [fp, #-56]
.L137:
	ldr	r3, .L146+8
	ldr	r3, [r3]
	str	r3, [fp, #-60]
	ldr	r3, .L146+48
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L141
	ldr	r3, .L146+52
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L142
	ldr	r3, .L146+24
	ldr	r3, [r3]
	ldr	r2, .L146+52
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L142
	ldr	r3, .L146+24
	ldr	r2, [r3]
	ldr	r3, .L146+52
	ldr	r3, [r3]
	mov	r1, #1
	str	r1, [fp, #-32]
	mov	r1, #0
	str	r1, [fp, #-28]
	ldr	r1, .L146+56
	str	r1, [fp, #-24]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	error
	nop
.L142:
	ldr	r0, [fp, #-52]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L145
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, .L146+60
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	error
	nop
.L145:
	nop
	ldr	r3, .L146
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L144
	bl	__stack_chk_fail
.L144:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L147:
	.align	2
.L146:
	.word	.LC35
	.word	cfg_tcp
	.word	cfg_rcv_timeout_ms
	.word	cfg_connect_timeout_ms
	.word	cfg_gro_segment
	.word	.LC29
	.word	packets
	.word	stderr
	.word	.LC30
	.word	.LC31
	.word	bytes
	.word	.LC32
	.word	interrupted
	.word	cfg_expected_pkt_nr
	.word	.LC33
	.word	.LC34
	.size	do_recv, .-do_recv
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	parse_opts
	ldr	r1, .L150
	mov	r0, #2
	bl	signal
	bl	do_recv
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L151:
	.align	2
.L150:
	.word	sigint_handler
	.size	main, .-main
	.local	rbuf.8212
	.comm	rbuf.8212,65535,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
