	.file	"648943.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"fcntl 1"
.LC1:
	.string	"fcntl 2"
	.text
	.globl	set_nonblocking
	.type	set_nonblocking, @function
set_nonblocking:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	or	DWORD PTR -4[rbp], 2048
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L3
.L4:
	mov	eax, 1
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	set_nonblocking, .-set_nonblocking
	.section	.rodata
.LC2:
	.string	"TCP_QUICKACK"
	.text
	.globl	set_quickack
	.type	set_quickack, @function
set_quickack:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	lea	rdx, -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 12
	mov	esi, 6
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L8
	lea	rdi, .LC2[rip]
	call	perror@PLT
.L8:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	set_quickack, .-set_quickack
	.section	.rodata
	.align 8
.LC3:
	.string	"usage: tcp_lat <bind-to> <host> <port> <message-size><roundtrip-count> <polling>"
.LC4:
	.string	"malloc"
.LC5:
	.string	"message size: %i octets\n"
.LC6:
	.string	"roundtrip count: %li\n"
.LC7:
	.string	"getaddrinfo: %s\n"
.LC8:
	.string	"socket"
.LC9:
	.string	"connect"
.LC10:
	.string	"connect EAGAIN"
.LC11:
	.string	"write"
.LC12:
	.string	"read"
.LC13:
	.string	"write at: %3li:%6li ns\n"
.LC14:
	.string	"read at: %3li:%6li, %li mks\n"
.LC15:
	.string	"latency: %li mks\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 232
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -260[rbp], edi
	mov	QWORD PTR -272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	cmp	DWORD PTR -260[rbp], 7
	je	.L10
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -256[rbp], eax
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 48
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	DWORD PTR -252[rbp], eax
	mov	eax, DWORD PTR -256[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -200[rbp], rax
	cmp	QWORD PTR -200[rbp], 0
	jne	.L12
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -256[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -104[rbp], 1
	mov	DWORD PTR -112[rbp], 1
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -232[rbp]
	lea	rdx, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -248[rbp], eax
	cmp	DWORD PTR -248[rbp], 0
	je	.L13
	mov	eax, DWORD PTR -248[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -232[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -232[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], -1
	jne	.L14
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L11
.L14:
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 24
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rcx, -232[rbp]
	lea	rdx, -112[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -248[rbp], eax
	cmp	DWORD PTR -248[rbp], 0
	je	.L15
	mov	eax, DWORD PTR -248[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L15:
	cmp	DWORD PTR -252[rbp], 0
	je	.L16
	mov	eax, DWORD PTR -244[rbp]
	mov	edi, eax
	call	set_nonblocking
	test	eax, eax
	jne	.L16
	mov	eax, 1
	jmp	.L11
.L16:
	mov	eax, DWORD PTR -244[rbp]
	mov	edi, eax
	call	set_quickack
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -232[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -244[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -240[rbp], eax
	cmp	DWORD PTR -240[rbp], 115
	je	.L18
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L11
.L18:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L17:
	mov	edi, 1
	call	sleep@PLT
	lea	rax, -160[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	eax, DWORD PTR -244[rbp]
	mov	edi, eax
	call	set_quickack
	mov	rax, QWORD PTR -208[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -192[rbp], rdx
	mov	rdx, rax
	mov	r14, rdx
	mov	r15d, 0
	mov	rdx, rax
	mov	r12, rdx
	mov	r13d, 0
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L19:
	cmp	rsp, rdx
	je	.L20
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L19
.L20:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L21
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L21:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -184[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	jmp	.L22
.L33:
	mov	edi, 1
	call	sleep@PLT
	lea	rax, -144[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	eax, DWORD PTR -256[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR -244[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -256[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L23
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L11
.L23:
	mov	QWORD PTR -224[rbp], 0
	jmp	.L25
.L32:
	cmp	DWORD PTR -252[rbp], 0
	je	.L26
	mov	ecx, 64
	jmp	.L27
.L26:
	mov	ecx, 0
.L27:
	mov	eax, DWORD PTR -256[rbp]
	cdqe
	sub	rax, QWORD PTR -224[rbp]
	mov	rdx, rax
	mov	rsi, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR -224[rbp]
	add	rsi, rax
	mov	eax, DWORD PTR -244[rbp]
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], -1
	jne	.L28
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -236[rbp], eax
	cmp	DWORD PTR -236[rbp], 11
	je	.L25
	cmp	DWORD PTR -236[rbp], 11
	je	.L25
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L11
.L28:
	cmp	QWORD PTR -176[rbp], 0
	je	.L38
	mov	eax, DWORD PTR -244[rbp]
	mov	edi, eax
	call	set_quickack
	mov	rax, QWORD PTR -176[rbp]
	add	QWORD PTR -224[rbp], rax
.L25:
	mov	eax, DWORD PTR -256[rbp]
	cdqe
	cmp	QWORD PTR -224[rbp], rax
	jb	.L32
	jmp	.L31
.L38:
	nop
.L31:
	lea	rax, -128[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -144[rbp]
	sub	rax, rdx
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, QWORD PTR -136[rbp]
	sub	rax, rcx
	add	rax, rdx
	mov	QWORD PTR -168[rbp], rax
	mov	rsi, QWORD PTR -136[rbp]
	mov	rcx, QWORD PTR -144[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000
	mov	rax, rcx
	sub	rax, rdx
	mov	rdx, rsi
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rsi, QWORD PTR -120[rbp]
	mov	rcx, QWORD PTR -128[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000
	mov	rax, rcx
	sub	rax, rdx
	mov	rdx, QWORD PTR -168[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	mov	rcx, QWORD PTR -168[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	add	QWORD PTR -216[rbp], 1
.L22:
	mov	rax, QWORD PTR -216[rbp]
	cmp	rax, QWORD PTR -208[rbp]
	jl	.L33
	mov	QWORD PTR -216[rbp], 0
	jmp	.L34
.L35:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -216[rbp], 1
.L34:
	mov	rax, QWORD PTR -216[rbp]
	cmp	rax, QWORD PTR -208[rbp]
	jl	.L35
	mov	eax, 0
.L11:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.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	"648943.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fcntl 1\000"
	.align	2
.LC1:
	.ascii	"fcntl 2\000"
	.text
	.align	2
	.global	set_nonblocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_nonblocking, %function
set_nonblocking:
	@ 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]
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-16]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L5
	bl	perror
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2048
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L5+4
	bl	perror
	mov	r3, #0
	b	.L3
.L4:
	mov	r3, #1
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.size	set_nonblocking, .-set_nonblocking
	.section	.rodata
	.align	2
.LC2:
	.ascii	"TCP_QUICKACK\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_quickack
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_quickack, %function
set_quickack:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #12
	mov	r1, #6
	ldr	r0, [fp, #-16]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L11+4
	bl	perror
.L10:
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	.LC2
	.size	set_quickack, .-set_quickack
	.section	.rodata
	.align	2
.LC4:
	.ascii	"usage: tcp_lat <bind-to> <host> <port> <message-siz"
	.ascii	"e><roundtrip-count> <polling>\000"
	.align	2
.LC5:
	.ascii	"malloc\000"
	.align	2
.LC6:
	.ascii	"message size: %i octets\012\000"
	.align	2
.LC7:
	.ascii	"roundtrip count: %li\012\000"
	.align	2
.LC8:
	.ascii	"getaddrinfo: %s\012\000"
	.align	2
.LC9:
	.ascii	"socket\000"
	.align	2
.LC10:
	.ascii	"connect\000"
	.align	2
.LC11:
	.ascii	"connect EAGAIN\000"
	.align	2
.LC12:
	.ascii	"write\000"
	.align	2
.LC13:
	.ascii	"read\000"
	.align	2
.LC14:
	.ascii	"write at: %3li:%6li ns\012\000"
	.align	2
.LC15:
	.ascii	"read at: %3li:%6li, %li mks\012\000"
	.align	2
.LC16:
	.ascii	"latency: %li mks\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #148
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r3, sp
	mov	r10, r3
	ldr	r3, [fp, #-176]
	cmp	r3, #7
	beq	.L14
	ldr	r0, .L40+4
	bl	puts
	mov	r3, #1
	b	.L15
.L14:
	ldr	r3, [fp, #-180]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-164]
	ldr	r3, [fp, #-180]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-116]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-180]
	add	r3, r3, #24
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-164]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L40+8
	bl	perror
	mov	r3, #1
	b	.L15
.L16:
	ldr	r1, [fp, #-164]
	ldr	r0, .L40+12
	bl	printf
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	ldr	r0, .L40+16
	bl	printf
	sub	r3, fp, #72
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r3, #1
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-180]
	add	r3, r3, #4
	ldr	r0, [r3]
	sub	r3, fp, #172
	sub	r2, fp, #72
	mov	r1, #0
	bl	getaddrinfo
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L40+20
	ldr	r4, [r3]
	ldr	r0, [fp, #-152]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L40+24
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L15
.L17:
	ldr	r3, [fp, #-172]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-172]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-172]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L40+28
	bl	perror
	mov	r3, #1
	b	.L15
.L18:
	ldr	r3, [fp, #-180]
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r3, [fp, #-180]
	add	r3, r3, #12
	ldr	r1, [r3]
	sub	r3, fp, #172
	sub	r2, fp, #72
	bl	getaddrinfo
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L40+20
	ldr	r4, [r3]
	ldr	r0, [fp, #-152]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L40+24
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L15
.L19:
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L20
	ldr	r0, [fp, #-148]
	bl	set_nonblocking
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	mov	r3, #1
	b	.L15
.L20:
	ldr	r0, [fp, #-148]
	bl	set_quickack
	ldr	r3, [fp, #-172]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-172]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-148]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #115
	beq	.L22
	ldr	r0, .L40+32
	bl	perror
	mov	r3, #1
	b	.L15
.L22:
	ldr	r0, .L40+36
	bl	puts
.L21:
	mov	r0, #1
	bl	sleep
	sub	r3, fp, #96
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r0, [fp, #-148]
	bl	set_quickack
	sub	r9, fp, #116
	ldmia	r9, {r8-r9}
	mov	r3, r8
	sub	r3, r3, #1
	str	r3, [fp, #-140]
	mov	r3, r8
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, r8
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, r8
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-136]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-124]
	str	r3, [fp, #-120]
	b	.L23
.L34:
	mov	r0, #1
	bl	sleep
	sub	r3, fp, #88
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-164]
	mov	r2, r3
	ldr	r1, [fp, #-156]
	ldr	r0, [fp, #-148]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-164]
	cmp	r3, r2
	beq	.L24
	ldr	r0, .L40+40
	bl	perror
	mov	r3, #1
	b	.L15
.L24:
	mov	r3, #0
	str	r3, [fp, #-168]
	b	.L26
.L33:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-168]
	add	r1, r2, r3
	ldr	r2, [fp, #-164]
	ldr	r3, [fp, #-168]
	sub	r2, r2, r3
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L27
	mov	r3, #64
	b	.L28
.L27:
	mov	r3, #0
.L28:
	ldr	r0, [fp, #-148]
	bl	recv
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmn	r3, #1
	bne	.L29
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmp	r3, #11
	beq	.L26
	ldr	r3, [fp, #-128]
	cmp	r3, #11
	beq	.L26
	ldr	r0, .L40+44
	bl	perror
	mov	r3, #1
	b	.L15
.L29:
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L39
	ldr	r0, [fp, #-148]
	bl	set_quickack
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	str	r3, [fp, #-168]
.L26:
	ldr	r3, [fp, #-164]
	ldr	r2, [fp, #-168]
	cmp	r2, r3
	bcc	.L33
	b	.L32
.L39:
	nop
.L32:
	sub	r3, fp, #80
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-88]
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r1, r3
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	sub	r3, r2, r3
	add	r3, r1, r3
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	ldr	r2, [fp, #-88]
	ldr	r3, .L40+48
	smull	r1, r3, r2, r3
	asr	r1, r3, #6
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	sub	r1, r2, r3
	ldr	r3, [fp, #-84]
	mov	r2, r3
	ldr	r0, .L40+52
	bl	printf
	ldr	r2, [fp, #-80]
	ldr	r3, .L40+48
	smull	r1, r3, r2, r3
	asr	r1, r3, #6
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	sub	r1, r2, r3
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-108]
	ldr	r0, .L40+56
	bl	printf
	ldr	r1, [fp, #-108]
	ldr	r3, [fp, #-136]
	ldr	r2, [fp, #-124]
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-124]
	str	r7, [fp, #-120]
.L23:
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L34
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-124]
	str	r3, [fp, #-120]
	b	.L35
.L36:
	ldr	r3, [fp, #-136]
	ldr	r2, [fp, #-124]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L40+60
	bl	printf
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-124]
	str	r5, [fp, #-120]
.L35:
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L36
	mov	r3, #0
.L15:
	mov	sp, r10
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC17
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	274877907
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
