	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atalk_find_interface
_atalk_find_interface:                  ## @atalk_find_interface
	.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, %r14d
	movq	%rdi, %r15
	movq	_atalk_interfaces_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock_bh
	movq	_atalk_interfaces@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	movq	_ATADDR_ANYNODE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	movq	_ATADDR_BCAST@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, 24(%rbx)
	jne	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, 32(%rbx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATIF_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %eax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATADDR_ANYNET@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	callq	_ntohs
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_ntohs
	cmpq	%rax, %r12
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_ntohs
	movq	%rax, %r12
	movq	16(%rbx), %rdi
	callq	_ntohs
	cmpq	%rax, %r12
	jg	LBB0_11
	jmp	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	_atalk_interfaces_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock_bh
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_atalk_interfaces_lock,4,2      ## @atalk_interfaces_lock
	.comm	_atalk_interfaces,8,3           ## @atalk_interfaces
	.comm	_ATADDR_BCAST,4,2               ## @ATADDR_BCAST
	.comm	_ATADDR_ANYNODE,4,2             ## @ATADDR_ANYNODE
	.comm	_ATIF_PROBE,4,2                 ## @ATIF_PROBE
	.comm	_ATADDR_ANYNET,8,3              ## @ATADDR_ANYNET
	.no_dead_strip	_atalk_find_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atalk_find_interface
_atalk_find_interface:                  ; @atalk_find_interface
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, _atalk_interfaces_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _atalk_interfaces_lock@GOTPAGEOFF]
	bl	_read_lock_bh
Lloh2:
	adrp	x8, _atalk_interfaces@GOTPAGE
Lloh3:
	ldr	x8, [x8, _atalk_interfaces@GOTPAGEOFF]
Lloh4:
	ldr	x19, [x8]
	cbz	x19, LBB0_10
; %bb.1:
Lloh5:
	adrp	x23, _ATADDR_BCAST@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ATADDR_BCAST@GOTPAGEOFF]
Lloh7:
	adrp	x24, _ATADDR_ANYNODE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ATADDR_ANYNODE@GOTPAGEOFF]
Lloh9:
	adrp	x25, _ATIF_PROBE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _ATIF_PROBE@GOTPAGEOFF]
Lloh11:
	adrp	x26, _ATADDR_ANYNET@GOTPAGE
Lloh12:
	ldr	x26, [x26, _ATADDR_ANYNET@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [x19, #40]
	cbz	x19, LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23]
	ldr	w8, [x24]
	cmp	w9, w20
	ccmp	w8, w20, #4, ne
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, #24]
	cmp	w9, w20
	b.ne	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #32]
	cmp	x9, x21
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x26]
	cmp	w8, w20
	ccmp	x9, x21, #4, eq
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #8]
	bl	_ntohs
	mov	x22, x0
	mov	x0, x21
	bl	_ntohs
	cmp	x22, x0
	b.gt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_ntohs
	mov	x22, x0
	ldr	x0, [x19, #16]
	bl	_ntohs
	cmp	x22, x0
	b.gt	LBB0_2
LBB0_10:
Lloh13:
	adrp	x0, _atalk_interfaces_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _atalk_interfaces_lock@GOTPAGEOFF]
	bl	_read_unlock_bh
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_atalk_interfaces_lock,4,2      ; @atalk_interfaces_lock
	.comm	_atalk_interfaces,8,3           ; @atalk_interfaces
	.comm	_ATADDR_BCAST,4,2               ; @ATADDR_BCAST
	.comm	_ATADDR_ANYNODE,4,2             ; @ATADDR_ANYNODE
	.comm	_ATIF_PROBE,4,2                 ; @ATIF_PROBE
	.comm	_ATADDR_ANYNET,8,3              ; @ATADDR_ANYNET
	.no_dead_strip	_atalk_find_interface
.subsections_via_symbols
