	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan88xx_phy_config_intr
_lan88xx_phy_config_intr:               ## @lan88xx_phy_config_intr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PHY_INTERRUPT_ENABLED@GOTPCREL(%rip), %rcx
	movq	_LAN88XX_INT_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$32767, %edx                    ## imm = 0x7FFF
	callq	_phy_write
	movq	_LAN88XX_INT_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movl	(%r14), %esi
	movq	_LAN88XX_INT_MASK_MDINTPIN_EN_@GOTPCREL(%rip), %rax
	movq	_LAN88XX_INT_MASK_LINK_CHANGE_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	xorl	%edx, %edx
LBB0_3:
	callq	_phy_write
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERRUPT_ENABLED,8,3      ## @PHY_INTERRUPT_ENABLED
	.comm	_LAN88XX_INT_MASK,4,2           ## @LAN88XX_INT_MASK
	.comm	_LAN88XX_INT_STS,4,2            ## @LAN88XX_INT_STS
	.comm	_LAN88XX_INT_MASK_MDINTPIN_EN_,4,2 ## @LAN88XX_INT_MASK_MDINTPIN_EN_
	.comm	_LAN88XX_INT_MASK_LINK_CHANGE_,4,2 ## @LAN88XX_INT_MASK_LINK_CHANGE_
	.no_dead_strip	_lan88xx_phy_config_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan88xx_phy_config_intr
_lan88xx_phy_config_intr:               ; @lan88xx_phy_config_intr
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _PHY_INTERRUPT_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_INTERRUPT_ENABLED@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x20, _LAN88XX_INT_MASK@GOTPAGE
Lloh4:
	ldr	x20, [x20, _LAN88XX_INT_MASK@GOTPAGEOFF]
	ldr	w1, [x20]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w2, #32767
	bl	_phy_write
Lloh5:
	adrp	x8, _LAN88XX_INT_STS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LAN88XX_INT_STS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
Lloh8:
	adrp	x8, _LAN88XX_INT_MASK_MDINTPIN_EN_@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LAN88XX_INT_MASK_MDINTPIN_EN_@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _LAN88XX_INT_MASK_LINK_CHANGE_@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LAN88XX_INT_MASK_LINK_CHANGE_@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w2, #0
LBB0_3:
	bl	_phy_write
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERRUPT_ENABLED,8,3      ; @PHY_INTERRUPT_ENABLED
	.comm	_LAN88XX_INT_MASK,4,2           ; @LAN88XX_INT_MASK
	.comm	_LAN88XX_INT_STS,4,2            ; @LAN88XX_INT_STS
	.comm	_LAN88XX_INT_MASK_MDINTPIN_EN_,4,2 ; @LAN88XX_INT_MASK_MDINTPIN_EN_
	.comm	_LAN88XX_INT_MASK_LINK_CHANGE_,4,2 ; @LAN88XX_INT_MASK_LINK_CHANGE_
	.no_dead_strip	_lan88xx_phy_config_intr
.subsections_via_symbols
