	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atalk_find_primary
_atalk_find_primary:                    ## @atalk_find_primary
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_atalk_interfaces_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock_bh
	movq	_atalk_interfaces@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %rdi
	movl	(%rdi), %edi
	testl	%edi, %edx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%edi, %ecx
	movl	$0, %edi
	cmoveq	%rsi, %rdi
	testq	%rbx, %rbx
	cmoveq	%rdi, %rbx
	movq	16(%rsi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.5:
	testq	%rbx, %rbx
	jne	LBB0_7
LBB0_6:
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_3:
	movq	%rsi, %rbx
LBB0_7:
	movq	_atalk_interfaces_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock_bh
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_atalk_interfaces_lock,4,2      ## @atalk_interfaces_lock
	.comm	_atalk_interfaces,8,3           ## @atalk_interfaces
	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_IFF_POINTOPOINT,4,2            ## @IFF_POINTOPOINT
	.no_dead_strip	_atalk_find_primary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atalk_find_primary
_atalk_find_primary:                    ; @atalk_find_primary
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
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	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, #0
Lloh5:
	adrp	x9, _IFF_LOOPBACK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFF_LOOPBACK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _IFF_POINTOPOINT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IFF_POINTOPOINT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w10, w10, w9
	mov	x11, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, #8]
	ldr	w12, [x12]
	tst	w10, w12
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	tst	w9, w12
	csel	x12, x11, xzr, eq
	cmp	x19, #0
	csel	x19, x12, x19, eq
	ldr	x11, [x11, #16]
	cbnz	x11, LBB0_2
; %bb.4:
	cbnz	x19, LBB0_7
LBB0_5:
	mov	x19, x8
	b	LBB0_7
LBB0_6:
	mov	x19, x11
LBB0_7:
Lloh11:
	adrp	x0, _atalk_interfaces_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _atalk_interfaces_lock@GOTPAGEOFF]
	bl	_read_unlock_bh
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_atalk_interfaces_lock,4,2      ; @atalk_interfaces_lock
	.comm	_atalk_interfaces,8,3           ; @atalk_interfaces
	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_IFF_POINTOPOINT,4,2            ; @IFF_POINTOPOINT
	.no_dead_strip	_atalk_find_primary
.subsections_via_symbols
