	.file	"extr_ntp_io.c_findclosestinterface.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	findclosestinterface
	.type	findclosestinterface, @function
findclosestinterface:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r14, 4[rsp]
	mov	rdi, r14
	call	ZERO_SOCK@PLT
	mov	rbx, QWORD PTR ep_list[rip]
	test	rbx, rbx
	je	.L2
	xor	r12d, r12d
	mov	r15, rsp
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	QWORD PTR 16[rbx], 0
	jne	.L3
	mov	rdi, rbp
	call	AF@PLT
	cmp	rax, QWORD PTR [rbx]
	jne	.L3
	test	DWORD PTR 8[rbx], r13d
	jne	.L3
	lea	rdx, 12[rbx]
	mov	rsi, rbp
	mov	rdi, r15
	call	calc_addr_distance@PLT
	test	r12, r12
	je	.L5
	mov	rsi, r14
	mov	rdi, r15
	call	cmp_addr_distance@PLT
	cmp	eax, -1
	je	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbx, QWORD PTR 24[rbx]
	test	rbx, rbx
	jne	.L6
.L20:
	test	r12, r12
	je	.L2
	mov	rdi, rbp
	call	stoa@PLT
	lea	rdi, 12[r12]
	call	stoa@PLT
	mov	edi, 4
	movsx	rsi, eax
	call	DPRINTF@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR [rsp]
	mov	r12, rbx
	mov	rbx, QWORD PTR 24[rbx]
	mov	DWORD PTR 4[rsp], eax
	test	rbx, rbx
	jne	.L6
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	xor	r12d, r12d
	call	stoa@PLT
	mov	edi, 4
	movsx	rsi, eax
	call	DPRINTF@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	findclosestinterface, .-findclosestinterface
	.comm	ep_list,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ntp_io.c_findclosestinterface.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	findclosestinterface
	.syntax unified
	.arm
	.fpu softvfp
	.type	findclosestinterface, %function
findclosestinterface:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L21
	sub	sp, sp, #20
	mov	r5, r0
	add	r0, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r7, r1
	bl	ZERO_SOCK
	ldr	r3, .L21+4
	ldr	r4, [r3]
	cmp	r4, #0
	beq	.L2
	mov	r6, #0
.L6:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L3
	mov	r0, r5
	bl	AF
	ldr	r3, [r4]
	cmp	r0, r3
	bne	.L3
	ldr	r3, [r4, #4]
	tst	r7, r3
	bne	.L3
	mov	r1, r5
	add	r2, r4, #8
	add	r0, sp, #4
	bl	calc_addr_distance
	cmp	r6, #0
	beq	.L5
	add	r1, sp, #8
	add	r0, sp, #4
	bl	cmp_addr_distance
	cmn	r0, #1
	beq	.L5
.L3:
	ldr	r4, [r4, #16]
	cmp	r4, #0
	bne	.L6
.L20:
	cmp	r6, #0
	beq	.L2
	mov	r0, r5
	bl	stoa
	add	r0, r6, #8
	bl	stoa
	mov	r1, r0
	mov	r0, #4
	bl	DPRINTF
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	mov	r6, r4
	ldr	r4, [r4, #16]
	ldr	r3, [sp, #4]
	cmp	r4, #0
	str	r3, [sp, #8]
	bne	.L6
	b	.L20
.L2:
	mov	r0, r5
	bl	stoa
	mov	r1, r0
	mov	r0, #4
	bl	DPRINTF
	mov	r6, #0
	b	.L1
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	ep_list
	.size	findclosestinterface, .-findclosestinterface
	.comm	ep_list,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
