	.file	"544969.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"dropped packet? key %u not %u+1\n"
.LC1:
	.string	"length not %u"
.LC2:
	.string	"data[%u]=%2.2x!=%2.2x\n"
	.align 8
.LC3:
	.string	"udp_handle  length=%u  key=%u  "
.LC4:
	.string	"%d FAIL\n"
	.text
	.type	udp_handle, @function
udp_handle:
.LFB6:
	.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 255
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, edx
	imul	rax, rax, 188260545
	shr	rax, 32
	mov	rcx, rax
	mov	eax, edx
	sub	eax, ecx
	shr	eax
	add	eax, ecx
	shr	eax, 9
	imul	ecx, eax, 981
	mov	eax, edx
	sub	eax, ecx
	add	eax, 492
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR last_key.1[rip]
	add	eax, 1
	movzx	eax, al
	cmp	DWORD PTR -12[rbp], eax
	je	.L2
	mov	edx, DWORD PTR last_key.1[rip]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR last_key.1[rip], eax
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	je	.L3
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -16[rbp], 1
.L3:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -24[rbp]
	movzx	eax, al
	xor	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	movzx	eax, al
	cmp	DWORD PTR -4[rbp], eax
	je	.L5
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	movzx	edx, al
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -16[rbp], 1
.L5:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, 1
	and	eax, 255
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -24[rbp], 1
.L4:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jb	.L6
	cmp	DWORD PTR -16[rbp], 0
	je	.L7
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	cmp	DWORD PTR -16[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	eax, DWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	udp_handle, .-udp_handle
	.type	send_packet, @function
send_packet:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1552
	mov	DWORD PTR -1540[rbp], edi
	mov	DWORD PTR -1544[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -1544[rbp]
	movzx	eax, al
	mov	DWORD PTR -1528[rbp], eax
	mov	eax, DWORD PTR -1528[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, edx
	imul	rax, rax, 188260545
	shr	rax, 32
	mov	rcx, rax
	mov	eax, edx
	sub	eax, ecx
	shr	eax
	add	eax, ecx
	shr	eax, 9
	imul	ecx, eax, 981
	mov	eax, edx
	sub	eax, ecx
	add	eax, 492
	mov	DWORD PTR -1524[rbp], eax
	mov	eax, DWORD PTR -1528[rbp]
	mov	DWORD PTR -1532[rbp], eax
	mov	DWORD PTR -1536[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -1532[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -1536[rbp]
	mov	BYTE PTR -1520[rbp+rax], dl
	mov	edx, DWORD PTR -1532[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, 1
	and	eax, 255
	mov	DWORD PTR -1532[rbp], eax
	add	DWORD PTR -1536[rbp], 1
.L11:
	mov	eax, DWORD PTR -1536[rbp]
	cmp	eax, DWORD PTR -1524[rbp]
	jb	.L12
	mov	edx, DWORD PTR -1524[rbp]
	lea	rsi, -1520[rbp]
	mov	eax, DWORD PTR -1540[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	send_packet, .-send_packet
	.section	.rodata
.LC5:
	.string	"select returns %d,"
.LC6:
	.string	" error"
.LC7:
	.string	"select"
.LC8:
	.string	"EINTR"
.LC9:
	.string	" sending"
.LC10:
	.string	" receiving"
.LC11:
	.string	"recvfrom"
.LC12:
	.string	"Ooops.  pack_len=%d\n"
	.align 8
.LC13:
	.string	"%u packets sent, %u received, %u failed, %u timeouts\n"
	.text
	.globl	primary_loop
	.type	primary_loop, @function
primary_loop:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 368
	mov	DWORD PTR -356[rbp], edi
	mov	DWORD PTR -360[rbp], esi
	mov	DWORD PTR -364[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -332[rbp], 0
	mov	DWORD PTR -348[rbp], 0
	mov	DWORD PTR -344[rbp], 0
	mov	DWORD PTR -340[rbp], 0
	mov	DWORD PTR -336[rbp], 0
	mov	DWORD PTR -352[rbp], 16
	mov	DWORD PTR -348[rbp], 0
	jmp	.L15
.L16:
	mov	edx, DWORD PTR -348[rbp]
	mov	eax, DWORD PTR -356[rbp]
	mov	esi, edx
	mov	edi, eax
	call	send_packet
	add	DWORD PTR -348[rbp], 1
.L15:
	mov	eax, DWORD PTR -348[rbp]
	cmp	eax, DWORD PTR -364[rbp]
	jb	.L16
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	jmp	.L17
.L33:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -272[rbp]
	mov	rdi, rdx
#APP
# 84 "the_stack_data/544969.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -328[rbp], edx
	mov	DWORD PTR -324[rbp], eax
	mov	eax, DWORD PTR -356[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -356[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -272[rbp+rax*8], rdx
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 86 "the_stack_data/544969.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -320[rbp], edx
	mov	DWORD PTR -316[rbp], eax
	mov	eax, DWORD PTR -356[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -356[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 10000
	mov	eax, DWORD PTR -356[rbp]
	lea	edi, 1[rax]
	lea	rcx, -304[rbp]
	lea	rdx, -144[rbp]
	lea	rax, -272[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -312[rbp], eax
	cmp	DWORD PTR -332[rbp], 0
	je	.L18
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	cmp	DWORD PTR -312[rbp], 1
	jne	.L19
	mov	eax, DWORD PTR -356[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -356[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	jne	.L20
.L19:
	cmp	DWORD PTR -312[rbp], 0
	jns	.L21
	cmp	DWORD PTR -332[rbp], 0
	je	.L22
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L22:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L23
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L17
.L23:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L17
.L21:
	cmp	DWORD PTR -312[rbp], 0
	jne	.L17
	cmp	DWORD PTR -332[rbp], 0
	je	.L25
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L25:
	mov	edx, DWORD PTR -348[rbp]
	mov	eax, DWORD PTR -356[rbp]
	mov	esi, edx
	mov	edi, eax
	call	send_packet
	add	DWORD PTR -348[rbp], 1
	add	DWORD PTR -336[rbp], 1
	jmp	.L17
.L20:
	cmp	DWORD PTR -332[rbp], 0
	je	.L26
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L26:
	lea	rcx, -352[rbp]
	lea	rdx, -288[rbp]
	mov	eax, DWORD PTR -356[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1500
	lea	rsi, incoming.0[rip]
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], 0
	jns	.L27
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L28
.L27:
	cmp	DWORD PTR -308[rbp], 0
	jle	.L29
	mov	eax, DWORD PTR -308[rbp]
	cmp	eax, 1499
	ja	.L29
	add	DWORD PTR -344[rbp], 1
	mov	eax, DWORD PTR -308[rbp]
	mov	esi, eax
	lea	rdi, incoming.0[rip]
	call	udp_handle
	test	eax, eax
	je	.L30
	add	DWORD PTR -340[rbp], 1
.L30:
	mov	eax, DWORD PTR -348[rbp]
	sub	eax, DWORD PTR -364[rbp]
	cmp	DWORD PTR -344[rbp], eax
	jbe	.L28
	mov	edx, DWORD PTR -348[rbp]
	mov	eax, DWORD PTR -356[rbp]
	mov	esi, edx
	mov	edi, eax
	call	send_packet
	add	DWORD PTR -348[rbp], 1
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -308[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L32
.L28:
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
.L17:
	cmp	DWORD PTR -360[rbp], 0
	je	.L33
	mov	eax, DWORD PTR -344[rbp]
	cmp	eax, DWORD PTR -360[rbp]
	jb	.L33
.L32:
	mov	esi, DWORD PTR -336[rbp]
	mov	ecx, DWORD PTR -340[rbp]
	mov	edx, DWORD PTR -344[rbp]
	mov	eax, DWORD PTR -348[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	primary_loop, .-primary_loop
	.section	.rodata
.LC14:
	.string	"oops %d\n"
	.text
	.type	stuff_net_addr, @function
stuff_net_addr:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L36
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	herror@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	eax, 4
	je	.L37
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L37:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	stuff_net_addr, .-stuff_net_addr
	.section	.rodata
.LC15:
	.string	"bind"
	.align 8
.LC16:
	.string	"could not bind to udp port %d\n"
	.text
	.type	setup_receive, @function
setup_receive:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	eax, edx
	mov	WORD PTR -44[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	movzx	eax, WORD PTR -44[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L41
	lea	rdi, .LC15[rip]
	call	perror@PLT
	movsx	edx, WORD PTR -44[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L41:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	setup_receive, .-setup_receive
	.section	.rodata
.LC17:
	.string	"connect"
	.text
	.type	setup_transmit, @function
setup_transmit:
.LFB11:
	.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
	mov	eax, edx
	mov	WORD PTR -40[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, -32[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	rdi, rdx
	call	stuff_net_addr
	movzx	eax, WORD PTR -40[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L45
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L45:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	setup_transmit, .-setup_transmit
	.section	.rodata
.LC18:
	.string	"Usage: %s host npack juggle\n"
.LC19:
	.string	"socket"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -20[rbp], 1
	jg	.L47
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L47:
	cmp	DWORD PTR -20[rbp], 2
	jle	.L48
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -12[rbp], eax
.L48:
	cmp	DWORD PTR -20[rbp], 3
	jle	.L49
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -8[rbp], eax
.L49:
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L50
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L50:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	setup_receive
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 2000
	mov	rsi, rcx
	mov	edi, eax
	call	setup_transmit
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	primary_loop
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.data
	.align 4
	.type	last_key.1, @object
	.size	last_key.1, 4
last_key.1:
	.long	-1
	.local	incoming.0
	.comm	incoming.0,1500,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	"544969.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"dropped packet? key %u not %u+1\012\000"
	.align	2
.LC1:
	.ascii	"length not %u\000"
	.align	2
.LC2:
	.ascii	"data[%u]=%2.2x!=%2.2x\012\000"
	.align	2
.LC3:
	.ascii	"udp_handle  length=%u  key=%u  \000"
	.align	2
.LC4:
	.ascii	"%d FAIL\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	udp_handle, %function
udp_handle:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r1, r3, #3
	ldr	r3, .L10
	umull	r2, r3, r1, r3
	sub	r2, r1, r3
	lsr	r2, r2, #1
	add	r3, r3, r2
	lsr	r2, r3, #9
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r0, r3, #3
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #492
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	add	r3, r3, #1
	and	r3, r3, #255
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L2
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L10+8
	bl	printf
.L2:
	ldr	r2, .L10+4
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	beq	.L3
	ldr	r1, [fp, #-12]
	ldr	r0, .L10+12
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L3:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L4
.L6:
	ldr	r3, [fp, #-28]
	and	r3, r3, #255
	ldr	r2, [fp, #-24]
	eor	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	beq	.L5
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-28]
	ldr	r0, .L10+16
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, #1
	and	r3, r3, #255
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L4:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bcc	.L6
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L7
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-36]
	ldr	r0, .L10+20
	bl	printf
.L7:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L8
	ldr	r1, [fp, #-20]
	ldr	r0, .L10+24
	bl	printf
.L8:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	188260545
	.word	last_key.6590
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	udp_handle, .-udp_handle
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_packet, %function
send_packet:
	@ args = 0, pretend = 0, frame = 1528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1520
	sub	sp, sp, #8
	str	r0, [fp, #-1528]
	str	r1, [fp, #-1532]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1532]
	and	r3, r3, #255
	str	r3, [fp, #-1516]
	ldr	r3, [fp, #-1516]
	lsl	r1, r3, #3
	ldr	r3, .L16+4
	umull	r2, r3, r1, r3
	sub	r2, r1, r3
	lsr	r2, r2, #1
	add	r3, r3, r2
	lsr	r2, r3, #9
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r0, r3, #3
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #492
	str	r3, [fp, #-1512]
	ldr	r3, [fp, #-1516]
	str	r3, [fp, #-1520]
	mov	r3, #0
	str	r3, [fp, #-1524]
	b	.L13
.L14:
	ldr	r3, [fp, #-1520]
	and	r1, r3, #255
	sub	r2, fp, #1504
	sub	r2, r2, #4
	ldr	r3, [fp, #-1524]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, [fp, #-1520]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, #1
	and	r3, r3, #255
	str	r3, [fp, #-1520]
	ldr	r3, [fp, #-1524]
	add	r3, r3, #1
	str	r3, [fp, #-1524]
.L13:
	ldr	r2, [fp, #-1524]
	ldr	r3, [fp, #-1512]
	cmp	r2, r3
	bcc	.L14
	sub	r1, fp, #1504
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r2, [fp, #-1512]
	ldr	r0, [fp, #-1528]
	bl	send
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC5
	.word	188260545
	.size	send_packet, .-send_packet
	.section	.rodata
	.align	2
.LC6:
	.ascii	"select returns %d,\000"
	.align	2
.LC7:
	.ascii	" error\000"
	.align	2
.LC8:
	.ascii	"select\000"
	.align	2
.LC9:
	.ascii	"EINTR\000"
	.align	2
.LC10:
	.ascii	" sending\000"
	.align	2
.LC11:
	.ascii	" receiving\000"
	.align	2
.LC12:
	.ascii	"recvfrom\000"
	.align	2
.LC13:
	.ascii	"Ooops.  pack_len=%d\012\000"
	.align	2
.LC14:
	.ascii	"%u packets sent, %u received, %u failed, %u timeout"
	.ascii	"s\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	primary_loop
	.syntax unified
	.arm
	.fpu softvfp
	.type	primary_loop, %function
primary_loop:
	@ args = 0, pretend = 0, frame = 352
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #360
	str	r0, [fp, #-344]
	str	r1, [fp, #-348]
	str	r2, [fp, #-352]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-308]
	mov	r3, #0
	str	r3, [fp, #-332]
	mov	r3, #0
	str	r3, [fp, #-328]
	mov	r3, #0
	str	r3, [fp, #-324]
	mov	r3, #0
	str	r3, [fp, #-320]
	mov	r3, #16
	str	r3, [fp, #-336]
	mov	r3, #0
	str	r3, [fp, #-332]
	b	.L19
.L20:
	ldr	r1, [fp, #-332]
	ldr	r0, [fp, #-344]
	bl	send_packet
	ldr	r3, [fp, #-332]
	add	r3, r3, #1
	str	r3, [fp, #-332]
.L19:
	ldr	r2, [fp, #-332]
	ldr	r3, [fp, #-352]
	cmp	r2, r3
	bcc	.L20
	mov	r3, #0
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L21
.L41:
	sub	r3, fp, #264
	str	r3, [fp, #-304]
	mov	r3, #0
	str	r3, [fp, #-316]
	b	.L22
.L23:
	ldr	r3, [fp, #-304]
	ldr	r2, [fp, #-316]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L22:
	ldr	r3, [fp, #-316]
	cmp	r3, #31
	bls	.L23
	ldr	r3, [fp, #-344]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-260]
	ldr	r3, [fp, #-344]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-260]
	sub	r3, fp, #136
	str	r3, [fp, #-300]
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L24
.L25:
	ldr	r3, [fp, #-300]
	ldr	r2, [fp, #-312]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L24:
	ldr	r3, [fp, #-312]
	cmp	r3, #31
	bls	.L25
	ldr	r3, [fp, #-344]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-344]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-132]
	mov	r3, #0
	str	r3, [fp, #-288]
	ldr	r3, .L43+4
	str	r3, [fp, #-284]
	ldr	r3, [fp, #-344]
	add	r0, r3, #1
	sub	r2, fp, #136
	sub	r1, fp, #264
	sub	r3, fp, #288
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #0
	bl	select
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	beq	.L26
	ldr	r1, [fp, #-296]
	ldr	r0, .L43+8
	bl	printf
.L26:
	ldr	r3, [fp, #-296]
	cmp	r3, #1
	bne	.L27
	ldr	r3, [fp, #-344]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-260]
	ldr	r3, [fp, #-344]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L28
.L27:
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bge	.L29
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	beq	.L30
	ldr	r0, .L43+12
	bl	puts
.L30:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L31
	ldr	r0, .L43+16
	bl	perror
	b	.L21
.L31:
	ldr	r0, .L43+20
	bl	puts
	b	.L21
.L29:
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	beq	.L33
	ldr	r0, .L43+24
	bl	puts
.L33:
	ldr	r1, [fp, #-332]
	ldr	r0, [fp, #-344]
	bl	send_packet
	ldr	r3, [fp, #-332]
	add	r3, r3, #1
	str	r3, [fp, #-332]
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
	b	.L21
.L28:
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	beq	.L34
	ldr	r0, .L43+28
	bl	puts
.L34:
	sub	r3, fp, #336
	str	r3, [sp, #4]
	sub	r3, fp, #280
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L43+32
	ldr	r1, .L43+36
	ldr	r0, [fp, #-344]
	bl	recvfrom
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bge	.L35
	ldr	r0, .L43+40
	bl	perror
	b	.L36
.L35:
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	ble	.L37
	ldr	r3, [fp, #-292]
	ldr	r2, .L43+44
	cmp	r3, r2
	bhi	.L37
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
	ldr	r3, [fp, #-292]
	mov	r1, r3
	ldr	r0, .L43+36
	bl	udp_handle
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L38:
	ldr	r2, [fp, #-332]
	ldr	r3, [fp, #-352]
	sub	r3, r2, r3
	ldr	r2, [fp, #-328]
	cmp	r2, r3
	bls	.L36
	ldr	r1, [fp, #-332]
	ldr	r0, [fp, #-344]
	bl	send_packet
	ldr	r3, [fp, #-332]
	add	r3, r3, #1
	str	r3, [fp, #-332]
	b	.L36
.L37:
	ldr	r1, [fp, #-292]
	ldr	r0, .L43+48
	bl	printf
	ldr	r3, .L43+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L40
.L36:
	mov	r3, #0
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-284]
.L21:
	ldr	r3, [fp, #-348]
	cmp	r3, #0
	beq	.L41
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-348]
	cmp	r2, r3
	bcc	.L41
.L40:
	ldr	r3, [fp, #-320]
	str	r3, [sp]
	ldr	r3, [fp, #-324]
	ldr	r2, [fp, #-328]
	ldr	r1, [fp, #-332]
	ldr	r0, .L43+56
	bl	printf
	nop
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC15
	.word	10000
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	1500
	.word	incoming.6624
	.word	.LC12
	.word	1499
	.word	.LC13
	.word	stdout
	.word	.LC14
	.size	primary_loop, .-primary_loop
	.section	.rodata
	.align	2
.LC16:
	.ascii	"oops %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stuff_net_addr, %function
stuff_net_addr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	gethostbyname
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L46
	ldr	r0, [fp, #-20]
	bl	herror
	mov	r0, #1
	bl	exit
.L46:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #4
	beq	.L47
	ldr	r3, .L48
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r2, r3
	ldr	r1, .L48+4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L47:
	ldr	r0, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	mov	r2, #4
	mov	r1, r3
	bl	memcpy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	stderr
	.word	.LC16
	.size	stuff_net_addr, .-stuff_net_addr
	.section	.rodata
	.align	2
.LC17:
	.ascii	"bind\000"
	.align	2
.LC18:
	.ascii	"could not bind to udp port %d\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_receive, %function
setup_receive:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, r2
	strh	r3, [fp, #-38]	@ movhi
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, [fp, #-36]
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldrh	r3, [fp, #-38]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L53
	ldr	r0, .L54+4
	bl	perror
	ldr	r3, .L54+8
	ldr	r3, [r3]
	ldrsh	r2, [fp, #-38]
	ldr	r1, .L54+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L53:
	nop
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC19
	.word	.LC17
	.word	stderr
	.word	.LC18
	.size	setup_receive, .-setup_receive
	.section	.rodata
	.align	2
.LC20:
	.ascii	"connect\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_transmit, %function
setup_transmit:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, r2
	strh	r3, [fp, #-38]	@ movhi
	ldr	r3, .L60
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	sub	r3, fp, #24
	add	r3, r3, #4
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	stuff_net_addr
	ldrh	r3, [fp, #-38]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L59
	ldr	r0, .L60+4
	bl	perror
	mov	r0, #1
	bl	exit
.L59:
	nop
	ldr	r3, .L60
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	.LC21
	.word	.LC20
	.size	setup_transmit, .-setup_transmit
	.section	.rodata
	.align	2
.LC22:
	.ascii	"Usage: %s host npack juggle\012\000"
	.align	2
.LC23:
	.ascii	"socket\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bgt	.L63
	ldr	r3, .L68
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L68+4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L63:
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	ble	.L64
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-16]
.L64:
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	ble	.L65
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-12]
.L65:
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L66
	ldr	r0, .L68+8
	bl	perror
	mov	r0, #1
	bl	exit
.L66:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	setup_receive
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #2000
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	setup_transmit
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	primary_loop
	ldr	r0, [fp, #-8]
	bl	close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	stderr
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.data
	.align	2
	.type	last_key.6590, %object
	.size	last_key.6590, 4
last_key.6590:
	.word	-1
	.local	incoming.6624
	.comm	incoming.6624,1500,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
