	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_findclosestinterface           ## -- Begin function findclosestinterface
	.p2align	4, 0x90
_findclosestinterface:                  ## @findclosestinterface
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-44(%rbp), %rdi
	callq	_ZERO_SOCK
	movq	_ep_list@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.1:
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r12
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax
	movl	%eax, -44(%rbp)
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14), %r14
	testq	%r14, %r14
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%r14)
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_AF
	cmpq	(%r14), %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, 8(%r14)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	12(%r14), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_calc_addr_distance
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	callq	_cmp_addr_distance
	cmpl	$-1, %eax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_9:
	testq	%r13, %r13
	je	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	callq	_stoa
	leaq	12(%r13), %rdi
	callq	_stoa
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	callq	_stoa
	xorl	%r13d, %r13d
LBB0_12:
	movslq	%eax, %rsi
	movl	$4, %edi
	callq	_DPRINTF
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ep_list,8,3                    ## @ep_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_findclosestinterface           ; -- Begin function findclosestinterface
	.p2align	2
_findclosestinterface:                  ; @findclosestinterface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_ZERO_SOCK
Lloh0:
	adrp	x8, _ep_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ep_list@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cbz	x22, LBB0_11
; %bb.1:
	mov	x19, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [sp, #8]
	mov	x19, x22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_AF
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #8]
	tst	w8, w21
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, x22, #12
	add	x0, sp, #12
	mov	x1, x20
	bl	_calc_addr_distance
	cbz	x19, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_cmp_addr_distance
	cmn	w0, #1
	b.ne	LBB0_3
	b	LBB0_2
LBB0_9:
	cbz	x19, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_stoa
	add	x0, x19, #12
	bl	_stoa
                                        ; kill: def $w0 killed $w0 def $x0
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_stoa
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x19, #0
LBB0_12:
	sxtw	x1, w0
	mov	w0, #4
	bl	_DPRINTF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ep_list,8,3                    ; @ep_list
.subsections_via_symbols
