	.file	"94021.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	cfg_clockid, @object
	.size	cfg_clockid, 4
cfg_clockid:
	.long	11
	.local	cfg_do_ipv4
	.comm	cfg_do_ipv4,1,1
	.local	cfg_do_ipv6
	.comm	cfg_do_ipv6,1,1
	.align 2
	.type	cfg_port, @object
	.size	cfg_port, 2
cfg_port:
	.value	8000
	.align 4
	.type	cfg_variance_us, @object
	.size	cfg_variance_us, 4
cfg_variance_us:
	.long	2000
	.local	glob_tstart
	.comm	glob_tstart,8,8
	.local	cfg_in
	.comm	cfg_in,128,32
	.local	cfg_out
	.comm	cfg_out,128,32
	.local	cfg_num_pkt
	.comm	cfg_num_pkt,4,4
	.section	.rodata
.LC0:
	.string	"gettime"
	.text
	.type	gettime_ns, @function
gettime_ns:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR cfg_clockid[rip]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	clock_gettime@PLT
	test	eax, eax
	je	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -48[rbp], 1
	mov	DWORD PTR -44[rbp], eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[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
	nop
.L2:
	mov	rax, QWORD PTR -32[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	gettime_ns, .-gettime_ns
	.section	.rodata
.LC1:
	.string	"write"
.LC2:
	.string	"write: 0B"
	.text
	.type	do_send_one, @function
do_send_one:
.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	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 -192[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], 1
	lea	rax, -112[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], 1
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	js	.L6
	lea	rax, -32[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], 24
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR 8[rax]
	imul	rax, rax, 1000
	mov	rdx, rax
	mov	rax, QWORD PTR glob_tstart[rip]
	add	rax, rdx
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, 15
	jbe	.L7
	mov	rax, QWORD PTR -64[rbp]
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -136[rbp]
	mov	DWORD PTR 12[rax], 61
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR [rax], 24
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR [rdx], rax
.L6:
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sendmsg@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], -1
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -160[rbp], 1
	mov	DWORD PTR -156[rbp], eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -128[rbp], rax
	mov	rdx, QWORD PTR -128[rbp]
	mov	ecx, DWORD PTR -156[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L9:
	cmp	DWORD PTR -164[rbp], 0
	jne	.L12
	mov	DWORD PTR -152[rbp], 1
	mov	DWORD PTR -148[rbp], 0
	lea	rax, .LC2[rip]
	mov	QWORD PTR -120[rbp], rax
	mov	rdx, QWORD PTR -120[rbp]
	mov	ecx, DWORD PTR -148[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L12:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	do_send_one, .-do_send_one
	.section	.rodata
.LC3:
	.string	"read"
.LC4:
	.string	"read: %dB"
	.align 8
.LC5:
	.string	"payload:%c delay:%lld expected:%lld (us)\n"
.LC6:
	.string	"payload mismatch. expected %c"
.LC7:
	.string	"exceeds variance (%d us)"
	.text
	.type	do_recv_one, @function
do_recv_one:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, -10[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	ecx, 0
	mov	edx, 2
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], -1
	jne	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -96[rbp], 1
	mov	DWORD PTR -92[rbp], eax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[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
.L14:
	cmp	DWORD PTR -100[rbp], 1
	je	.L15
	mov	DWORD PTR -88[rbp], 1
	mov	DWORD PTR -84[rbp], 0
	lea	rax, .LC4[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L15:
	call	gettime_ns
	mov	rdx, QWORD PTR glob_tstart[rip]
	sub	rax, rdx
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, 0
	test	rax, rax
	cmovs	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	movzx	eax, BYTE PTR -10[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	movzx	edx, BYTE PTR -10[rbp]
	mov	rax, QWORD PTR -128[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L16
	mov	rax, QWORD PTR -128[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	mov	DWORD PTR -80[rbp], 1
	mov	DWORD PTR -76[rbp], 0
	lea	rax, .LC6[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L16:
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, QWORD PTR -56[rbp]
	cqo
	xor	rax, rdx
	sub	rax, rdx
	mov	edx, DWORD PTR cfg_variance_us[rip]
	movsx	rdx, edx
	cmp	rax, rdx
	jle	.L19
	mov	ecx, DWORD PTR cfg_variance_us[rip]
	mov	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -68[rbp], 0
	lea	rax, .LC7[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L19:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	do_recv_one, .-do_recv_one
	.section	.rodata
	.align 8
.LC8:
	.string	"recv: not empty as expected (%d, %d)"
	.text
	.type	do_recv_verify_empty, @function
do_recv_verify_empty:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, -9[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	ecx, 0
	mov	edx, 1
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L21
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L24
.L21:
	call	__errno_location@PLT
	mov	edi, DWORD PTR [rax]
	mov	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -28[rbp], 0
	lea	rax, .LC8[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	ecx, DWORD PTR -36[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	r8d, edi
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L24:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	do_recv_verify_empty, .-do_recv_verify_empty
	.section	.rodata
.LC9:
	.string	"setsockopt txtime"
.LC10:
	.string	"getsockopt txtime"
.LC11:
	.string	"getsockopt txtime: mismatch"
	.text
	.type	setsockopt_txtime, @function
setsockopt_txtime:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR cfg_clockid[rip]
	mov	DWORD PTR -24[rbp], eax
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -76[rbp], 8
	lea	rdx, -24[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	r8d, 8
	mov	rcx, rdx
	mov	edx, 61
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L26
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -68[rbp], eax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[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
.L26:
	lea	rcx, -76[rbp]
	lea	rdx, -16[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 61
	mov	esi, 1
	mov	edi, eax
	call	getsockopt@PLT
	test	eax, eax
	je	.L27
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], eax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[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
.L27:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, 8
	jne	.L28
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	lea	rcx, -16[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L31
.L28:
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -52[rbp], 0
	lea	rax, .LC11[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -32[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
.L31:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	setsockopt_txtime, .-setsockopt_txtime
	.section	.rodata
.LC12:
	.string	"socket t"
.LC13:
	.string	"connect"
	.text
	.type	setup_tx, @function
setup_tx:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edx, 0
	mov	esi, 2
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L33
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -28[rbp], eax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L33:
	mov	rcx, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -20[rbp], eax
	lea	rax, .LC13[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L34:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	setsockopt_txtime
	mov	eax, DWORD PTR -36[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	setup_tx, .-setup_tx
	.section	.rodata
.LC14:
	.string	"socket r"
.LC15:
	.string	"bind"
.LC16:
	.string	"setsockopt rcv timeout"
	.text
	.type	setup_rx, @function
setup_rx:
.LFB14:
	.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	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	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 -24[rbp], 100000
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edx, 0
	mov	esi, 2
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], -1
	jne	.L37
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -80[rbp], 1
	mov	DWORD PTR -76[rbp], eax
	lea	rax, .LC14[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -56[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
.L37:
	mov	rcx, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L38
	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 -48[rbp], rax
	mov	rdx, QWORD PTR -48[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
.L38:
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	r8d, 16
	mov	rcx, rdx
	mov	edx, 20
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L39
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], eax
	lea	rax, .LC16[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[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
.L39:
	mov	eax, DWORD PTR -84[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
.LFE14:
	.size	setup_rx, .-setup_rx
	.section	.rodata
.LC17:
	.string	"tai"
.LC18:
	.string	"monotonic"
.LC19:
	.string	"\nSO_TXTIME ipv%c clock %s\n"
.LC20:
	.string	"close r"
.LC21:
	.string	"close t"
	.text
	.type	do_test, @function
do_test:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	eax, DWORD PTR cfg_clockid[rip]
	cmp	eax, 11
	jne	.L43
	lea	rax, .LC17[rip]
	jmp	.L44
.L43:
	lea	rax, .LC18[rip]
.L44:
	mov	rdx, QWORD PTR -56[rbp]
	movzx	edx, WORD PTR [rdx]
	cmp	dx, 2
	jne	.L45
	mov	edx, 52
	jmp	.L46
.L45:
	mov	edx, 54
.L46:
	mov	rdi, QWORD PTR stderr[rip]
	mov	rcx, rax
	lea	rsi, .LC19[rip]
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	setup_tx
	mov	DWORD PTR -40[rbp], eax
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	setup_rx
	mov	DWORD PTR -36[rbp], eax
	call	gettime_ns
	mov	QWORD PTR glob_tstart[rip], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, cfg_in[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	do_send_one
	add	DWORD PTR -44[rbp], 1
.L47:
	mov	eax, DWORD PTR cfg_num_pkt[rip]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L48
	mov	DWORD PTR -44[rbp], 0
	jmp	.L49
.L50:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, cfg_out[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	do_recv_one
	add	DWORD PTR -44[rbp], 1
.L49:
	mov	eax, DWORD PTR cfg_num_pkt[rip]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L50
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	do_recv_verify_empty
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L51
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -28[rbp], eax
	lea	rax, .LC20[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L51:
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L53
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -20[rbp], eax
	lea	rax, .LC21[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L53:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	do_test, .-do_test
	.section	.rodata
.LC22:
	.string	"strdup"
.LC23:
	.string	"exceeds max pkt count (%d)"
.LC24:
	.string	","
	.text
	.type	parse_io, @function
parse_io:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -52[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L56
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -48[rbp], 1
	mov	DWORD PTR -44[rbp], eax
	lea	rax, .LC22[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[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
	nop
	jmp	.L56
.L60:
	mov	QWORD PTR -32[rbp], 0
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 16
	cmp	eax, 1
	ja	.L57
	mov	DWORD PTR -40[rbp], 1
	mov	DWORD PTR -36[rbp], 0
	lea	rax, .LC23[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, 8
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L57:
	mov	eax, DWORD PTR -52[rbp]
	and	eax, 1
	test	eax, eax
	je	.L58
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	imul	rdx, rax, 1000
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR 8[rax], rdx
	add	QWORD PTR -80[rbp], 16
	jmp	.L59
.L58:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	BYTE PTR [rax], dl
.L59:
	add	DWORD PTR -52[rbp], 1
.L56:
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L60
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	parse_io, .-parse_io
	.section	.rodata
.LC25:
	.string	"mono"
.LC26:
	.string	"unknown clock id %s"
.LC27:
	.string	"parse error at %d"
.LC28:
	.string	"46c:"
	.align 8
.LC29:
	.string	"Usage: %s [-46] -c <clock> <in> <out>"
	.align 8
.LC30:
	.string	"i/o streams len mismatch (%d, %d)\n"
	.text
	.type	parse_opts, @function
parse_opts:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	jmp	.L63
.L72:
	cmp	DWORD PTR -76[rbp], 99
	je	.L64
	cmp	DWORD PTR -76[rbp], 99
	jg	.L65
	cmp	DWORD PTR -76[rbp], 52
	je	.L66
	cmp	DWORD PTR -76[rbp], 54
	je	.L67
	jmp	.L65
.L66:
	mov	BYTE PTR cfg_do_ipv4[rip], 1
	jmp	.L63
.L67:
	mov	BYTE PTR cfg_do_ipv6[rip], 1
	jmp	.L63
.L64:
	mov	rax, QWORD PTR optarg[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L68
	mov	DWORD PTR cfg_clockid[rip], 11
	jmp	.L63
.L68:
	mov	rax, QWORD PTR optarg[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L70
	mov	rax, QWORD PTR optarg[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L71
.L70:
	mov	DWORD PTR cfg_clockid[rip], 1
	jmp	.L69
.L71:
	mov	rcx, QWORD PTR optarg[rip]
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 0
	lea	rax, .LC26[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L69:
	jmp	.L63
.L65:
	mov	ecx, DWORD PTR optind[rip]
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -52[rbp], 0
	lea	rax, .LC27[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L63:
	mov	rcx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -84[rbp]
	lea	rdx, .LC28[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], -1
	jne	.L72
	mov	edx, DWORD PTR optind[rip]
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, edx
	cmp	eax, 2
	je	.L73
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	DWORD PTR -48[rbp], 1
	mov	DWORD PTR -44[rbp], 0
	lea	rax, .LC29[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	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L73:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, cfg_in[rip]
	mov	rdi, rax
	call	parse_io
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, cfg_out[rip]
	mov	rdi, rax
	call	parse_io
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	je	.L74
	mov	DWORD PTR -40[rbp], 1
	mov	DWORD PTR -36[rbp], 0
	lea	rax, .LC30[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	edi, DWORD PTR -68[rbp]
	mov	ecx, DWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	r8d, edi
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L74:
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR cfg_num_pkt[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	parse_opts, .-parse_opts
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parse_opts
	movzx	eax, BYTE PTR cfg_do_ipv6[rip]
	test	al, al
	je	.L76
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	WORD PTR -48[rbp], 10
	movzx	eax, WORD PTR cfg_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	mov	rax, QWORD PTR in6addr_loopback[rip]
	mov	rdx, QWORD PTR in6addr_loopback[rip+8]
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -32[rbp], rdx
	lea	rax, -48[rbp]
	mov	esi, 28
	mov	rdi, rax
	call	do_test
.L76:
	movzx	eax, BYTE PTR cfg_do_ipv4[rip]
	test	al, al
	je	.L77
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	WORD PTR -48[rbp], 2
	movzx	eax, WORD PTR cfg_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	mov	edi, 2130706433
	call	htonl@PLT
	mov	DWORD PTR -44[rbp], eax
	lea	rax, -48[rbp]
	mov	esi, 16
	mov	rdi, rax
	call	do_test
.L77:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L79
	call	__stack_chk_fail@PLT
.L79:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.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	"94021.c"
	.text
	.data
	.align	2
	.type	cfg_clockid, %object
	.size	cfg_clockid, 4
cfg_clockid:
	.word	11
	.local	cfg_do_ipv4
	.comm	cfg_do_ipv4,1,1
	.local	cfg_do_ipv6
	.comm	cfg_do_ipv6,1,1
	.align	1
	.type	cfg_port, %object
	.size	cfg_port, 2
cfg_port:
	.short	8000
	.align	2
	.type	cfg_variance_us, %object
	.size	cfg_variance_us, 4
cfg_variance_us:
	.word	2000
	.local	glob_tstart
	.comm	glob_tstart,8,8
	.local	cfg_in
	.comm	cfg_in,128,8
	.local	cfg_out
	.comm	cfg_out,128,8
	.local	cfg_num_pkt
	.comm	cfg_num_pkt,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"gettime\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gettime_ns, %function
gettime_ns:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L5+4
	ldr	r3, [r3]
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, .L5+8
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	error
	nop
.L2:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, .L5+12
	mul	r2, r3, r1
	mov	r3, #0
	mul	r3, r0, r3
	add	ip, r2, r3
	ldr	lr, .L5+12
	umull	r2, r3, r0, lr
	add	r1, ip, r3
	mov	r3, r1
	ldr	r1, [fp, #-20]
	mov	r0, r1
	asr	r1, r0, #31
	adds	r4, r2, r0
	adc	r5, r3, r1
	mov	r2, r4
	mov	r3, r5
	ldr	r1, .L5
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC1
	.word	cfg_clockid
	.word	.LC0
	.word	1000000000
	.size	gettime_ns, .-gettime_ns
	.section	.rodata
	.align	2
.LC2:
	.ascii	"write\000"
	.align	2
.LC3:
	.ascii	"write: 0B\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_send_one, %function
do_send_one:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #112
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #72
	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, #80
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-132]
	str	r3, [fp, #-80]
	mov	r3, #1
	str	r3, [fp, #-76]
	sub	r3, fp, #80
	str	r3, [fp, #-64]
	mov	r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-132]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	blt	.L8
	sub	r3, fp, #44
	mov	r2, #20
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #44
	str	r3, [fp, #-56]
	mov	r3, #20
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-132]
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #5
	orr	r5, r5, r2, lsr #27
	lsl	r4, r2, #5
	mov	r2, r4
	mov	r3, r5
	subs	r2, r2, r0
	sbc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #2
	orr	r5, r5, r2, lsr #30
	lsl	r4, r2, #2
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #3
	orr	r1, r1, r2, lsr #29
	lsl	r0, r2, #3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, .L15+4
	ldmia	r3, {r2-r3}
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-92]
	str	r7, [fp, #-88]
	ldr	r3, [fp, #-52]
	cmp	r3, #11
	bls	.L9
	ldr	r3, [fp, #-56]
	b	.L10
.L9:
	mov	r3, #0
.L10:
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-124]
	mov	r2, #61
	str	r2, [r3, #8]
	ldr	r3, [fp, #-124]
	mov	r2, #20
	str	r2, [r3]
	ldr	r3, [fp, #-124]
	add	r3, r3, #12
	sub	r1, fp, #92
	mov	r2, #8
	mov	r0, r3
	bl	memcpy
.L8:
	sub	r3, fp, #72
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	sendmsg
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmn	r3, #1
	bne	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-116]
	str	r3, [fp, #-112]
	ldr	r3, .L15+8
	str	r3, [fp, #-108]
	ldr	r2, [fp, #-108]
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-116]
	bl	error
	nop
.L11:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L14
	mov	r3, #1
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	ldr	r3, .L15+12
	str	r3, [fp, #-96]
	ldr	r2, [fp, #-96]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-104]
	bl	error
	nop
.L14:
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC4
	.word	glob_tstart
	.word	.LC2
	.word	.LC3
	.size	do_send_one, .-do_send_one
	.section	.rodata
	.align	2
.LC5:
	.ascii	"read\000"
	.align	2
.LC6:
	.ascii	"read: %dB\000"
	.global	__aeabi_uldivmod
	.align	2
.LC7:
	.ascii	"payload:%c delay:%lld expected:%lld (us)\012\000"
	.align	2
.LC8:
	.ascii	"payload mismatch. expected %c\000"
	.align	2
.LC9:
	.ascii	"exceeds variance (%d us)\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_recv_one, %function
do_recv_one:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #104
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r1, fp, #20
	mov	r3, #0
	mov	r2, #2
	ldr	r0, [fp, #-96]
	bl	recv
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r3, .L25+4
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-84]
	bl	error
	nop
.L18:
	ldr	r3, [fp, #-88]
	cmp	r3, #1
	beq	.L19
	mov	r3, #1
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r3, .L25+8
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-72]
	bl	error
	nop
.L19:
	bl	gettime_ns
	ldr	r3, .L25+12
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	mov	r2, #1000
	mov	r3, #0
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-100]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r1, r3, #0
	bge	.L20
	mov	r2, #0
	mov	r3, #0
.L20:
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L25+16
	ldr	r0, [r3]
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r1
	ldr	r1, .L25+20
	bl	fprintf
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	ldr	r3, [fp, #-100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L21
	ldr	r3, [fp, #-100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, #1
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, .L25+24
	str	r3, [fp, #-52]
	mov	r3, r2
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-60]
	bl	error
	nop
.L21:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, .L25+28
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L24
	ldr	r3, .L25+28
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-48]
	mov	r2, #0
	str	r2, [fp, #-44]
	ldr	r2, .L25+32
	str	r2, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	error
	nop
.L24:
	nop
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC10
	.word	.LC5
	.word	.LC6
	.word	glob_tstart
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	cfg_variance_us
	.word	.LC9
	.size	do_recv_one, .-do_recv_one
	.section	.rodata
	.align	2
.LC11:
	.ascii	"recv: not empty as expected (%d, %d)\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_recv_verify_empty, %function
do_recv_verify_empty:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r1, fp, #12
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-32]
	bl	recv
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L28
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L31
.L28:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-24]
	mov	r2, #0
	str	r2, [fp, #-20]
	ldr	r2, .L32+4
	str	r2, [fp, #-16]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	error
	nop
.L31:
	nop
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC12
	.word	.LC11
	.size	do_recv_verify_empty, .-do_recv_verify_empty
	.section	.rodata
	.align	2
.LC13:
	.ascii	"setsockopt txtime\000"
	.align	2
.LC14:
	.ascii	"getsockopt txtime\000"
	.align	2
.LC15:
	.ascii	"getsockopt txtime: mismatch\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setsockopt_txtime, %function
setsockopt_txtime:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldr	r3, .L41+4
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	mov	r3, #8
	str	r3, [fp, #-64]
	sub	r3, fp, #24
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #61
	mov	r1, #1
	ldr	r0, [fp, #-72]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, .L41+8
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-60]
	bl	error
	nop
.L35:
	sub	r2, fp, #16
	sub	r3, fp, #64
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #61
	mov	r1, #1
	ldr	r0, [fp, #-72]
	bl	getsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-48]
	str	r3, [fp, #-44]
	ldr	r3, .L41+12
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	error
	nop
.L36:
	ldr	r3, [fp, #-64]
	cmp	r3, #8
	bne	.L37
	ldr	r2, [fp, #-64]
	sub	r1, fp, #16
	sub	r3, fp, #24
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
.L37:
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L41+16
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	error
	nop
.L40:
	nop
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC16
	.word	cfg_clockid
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	setsockopt_txtime, .-setsockopt_txtime
	.section	.rodata
	.align	2
.LC17:
	.ascii	"socket t\000"
	.align	2
.LC18:
	.ascii	"connect\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_tx, %function
setup_tx:
	@ 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, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3]
	mov	r2, #0
	mov	r1, #2
	mov	r0, r3
	bl	socket
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L44
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L47
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	error
	nop
.L44:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, .L47+4
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	error
	nop
.L45:
	ldr	r0, [fp, #-32]
	bl	setsockopt_txtime
	ldr	r3, [fp, #-32]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC17
	.word	.LC18
	.size	setup_tx, .-setup_tx
	.section	.rodata
	.align	2
.LC19:
	.ascii	"socket r\000"
	.align	2
.LC20:
	.ascii	"bind\000"
	.align	2
.LC21:
	.ascii	"setsockopt rcv timeout\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_rx, %function
setup_rx:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldr	r3, .L55+4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-64]
	ldrh	r3, [r3]
	mov	r2, #0
	mov	r1, #2
	mov	r0, r3
	bl	socket
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L50
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, .L55+8
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-52]
	bl	error
	nop
.L50:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-68]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-40]
	str	r3, [fp, #-36]
	ldr	r3, .L55+12
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	error
	nop
.L51:
	sub	r3, fp, #16
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, [fp, #-56]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L52
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L55+16
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	error
	nop
.L52:
	ldr	r3, [fp, #-56]
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC22
	.word	100000
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	setup_rx, .-setup_rx
	.section	.rodata
	.align	2
.LC23:
	.ascii	"tai\000"
	.align	2
.LC24:
	.ascii	"monotonic\000"
	.align	2
.LC25:
	.ascii	"\012SO_TXTIME ipv%c clock %s\012\000"
	.align	2
.LC26:
	.ascii	"close r\000"
	.align	2
.LC27:
	.ascii	"close t\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_test, %function
do_test:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L69
	ldr	r0, [r3]
	ldr	r3, [fp, #-48]
	ldrh	r3, [r3]
	cmp	r3, #2
	bne	.L58
	mov	r2, #52
	b	.L59
.L58:
	mov	r2, #54
.L59:
	ldr	r3, .L69+4
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L60
	ldr	r3, .L69+8
	b	.L61
.L60:
	ldr	r3, .L69+12
.L61:
	ldr	r1, .L69+16
	bl	fprintf
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	setup_tx
	str	r0, [fp, #-36]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	setup_rx
	str	r0, [fp, #-32]
	bl	gettime_ns
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L69+20
	stm	r1, {r2-r3}
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L62
.L63:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #4
	ldr	r2, .L69+24
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	do_send_one
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L62:
	ldr	r3, .L69+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L63
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L64
.L65:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #4
	ldr	r2, .L69+32
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	do_recv_one
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L64:
	ldr	r3, .L69+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L65
	ldr	r0, [fp, #-32]
	bl	do_recv_verify_empty
	ldr	r0, [fp, #-32]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L69+36
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	error
	nop
.L66:
	ldr	r0, [fp, #-36]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, .L69+40
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	error
	nop
.L68:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	stderr
	.word	cfg_clockid
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	glob_tstart
	.word	cfg_in
	.word	cfg_num_pkt
	.word	cfg_out
	.word	.LC26
	.word	.LC27
	.size	do_test, .-do_test
	.section	.rodata
	.align	2
.LC28:
	.ascii	"strdup\000"
	.align	2
.LC29:
	.ascii	"exceeds max pkt count (%d)\000"
	.align	2
.LC30:
	.ascii	",\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_io, %function
parse_io:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-48]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L73
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L79
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	error
	nop
	b	.L73
.L77:
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #16
	cmp	r3, #1
	bhi	.L74
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L79+4
	str	r3, [fp, #-8]
	mov	r3, #8
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	error
	nop
.L74:
	ldr	r3, [fp, #-36]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L75
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	strtol
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-52]
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-52]
	add	r3, r3, #16
	str	r3, [fp, #-52]
	b	.L76
.L75:
	ldr	r3, [fp, #-32]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-52]
	strb	r2, [r3]
.L76:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L73:
	ldr	r1, .L79+8
	ldr	r0, [fp, #-40]
	bl	strtok
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L77
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r3, [fp, #-36]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L80:
	.align	2
.L79:
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.size	parse_io, .-parse_io
	.section	.rodata
	.align	2
.LC31:
	.ascii	"mono\000"
	.align	2
.LC32:
	.ascii	"unknown clock id %s\000"
	.align	2
.LC33:
	.ascii	"parse error at %d\000"
	.align	2
.LC34:
	.ascii	"46c:\000"
	.align	2
.LC35:
	.ascii	"Usage: %s [-46] -c <clock> <in> <out>\000"
	.align	2
.LC36:
	.ascii	"i/o streams len mismatch (%d, %d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_opts, %function
parse_opts:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	b	.L82
.L91:
	ldr	r3, [fp, #-64]
	cmp	r3, #99
	beq	.L83
	ldr	r3, [fp, #-64]
	cmp	r3, #99
	bgt	.L84
	ldr	r3, [fp, #-64]
	cmp	r3, #52
	beq	.L85
	ldr	r3, [fp, #-64]
	cmp	r3, #54
	beq	.L86
	b	.L84
.L85:
	ldr	r3, .L94
	mov	r2, #1
	strb	r2, [r3]
	b	.L82
.L86:
	ldr	r3, .L94+4
	mov	r2, #1
	strb	r2, [r3]
	b	.L82
.L83:
	ldr	r3, .L94+8
	ldr	r3, [r3]
	ldr	r1, .L94+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L87
	ldr	r3, .L94+16
	mov	r2, #11
	str	r2, [r3]
	b	.L82
.L87:
	ldr	r3, .L94+8
	ldr	r3, [r3]
	ldr	r1, .L94+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L89
	ldr	r3, .L94+8
	ldr	r3, [r3]
	ldr	r1, .L94+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L90
.L89:
	ldr	r3, .L94+16
	mov	r2, #1
	str	r2, [r3]
	b	.L88
.L90:
	ldr	r3, .L94+8
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-52]
	mov	r2, #0
	str	r2, [fp, #-48]
	ldr	r2, .L94+28
	str	r2, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-52]
	bl	error
	nop
.L88:
	b	.L82
.L84:
	ldr	r3, .L94+32
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-40]
	mov	r2, #0
	str	r2, [fp, #-36]
	ldr	r2, .L94+36
	str	r2, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	error
	nop
.L82:
	ldr	r2, .L94+40
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-72]
	bl	getopt
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmn	r3, #1
	bne	.L91
	ldr	r3, .L94+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	sub	r3, r2, r3
	cmp	r3, #2
	beq	.L92
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-28]
	mov	r2, #0
	str	r2, [fp, #-24]
	ldr	r2, .L94+44
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	error
	nop
.L92:
	ldr	r3, .L94+32
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L94+48
	mov	r0, r3
	bl	parse_io
	str	r0, [fp, #-60]
	ldr	r3, .L94+32
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L94+52
	mov	r0, r3
	bl	parse_io
	str	r0, [fp, #-56]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	beq	.L93
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L94+56
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-56]
	str	r3, [sp]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	error
	nop
.L93:
	ldr	r2, .L94+60
	ldr	r3, [fp, #-60]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L95:
	.align	2
.L94:
	.word	cfg_do_ipv4
	.word	cfg_do_ipv6
	.word	optarg
	.word	.LC23
	.word	cfg_clockid
	.word	.LC24
	.word	.LC31
	.word	.LC32
	.word	optind
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	cfg_in
	.word	cfg_out
	.word	.LC36
	.word	cfg_num_pkt
	.size	parse_opts, .-parse_opts
	.section	.rodata
	.align	2
.LC37:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L101
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	parse_opts
	ldr	r3, .L101+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L97
	sub	r3, fp, #36
	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]
	mov	r3, #10
	strh	r3, [fp, #-36]	@ movhi
	ldr	r3, .L101+8
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-34]	@ movhi
	ldr	r3, .L101+12
	sub	ip, fp, #28
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #36
	mov	r1, #28
	mov	r0, r3
	bl	do_test
.L97:
	ldr	r3, .L101+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L98
	sub	r3, fp, #36
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #2
	strh	r3, [fp, #-36]	@ movhi
	ldr	r3, .L101+8
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-34]	@ movhi
	ldr	r0, .L101+20
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	mov	r1, #16
	mov	r0, r3
	bl	do_test
.L98:
	mov	r3, #0
	ldr	r2, .L101
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L100
	bl	__stack_chk_fail
.L100:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC37
	.word	cfg_do_ipv6
	.word	cfg_port
	.word	in6addr_loopback
	.word	cfg_do_ipv4
	.word	2130706433
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
