	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_link_status_change
_lan78xx_link_status_change:            ## @lan78xx_link_status_change
	.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
	movq	(%rdi), %r14
	cmpl	$0, 4(%r14)
	jne	LBB0_2
## %bb.1:
	cmpl	$100, (%r14)
	jne	LBB0_2
## %bb.3:
	movq	_LAN88XX_INT_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movq	_LAN88XX_INT_MASK_MDINTPIN_EN_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_phy_write
	movq	_MII_BMCR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %r12
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_phy_write
	orl	(%r12), %ebx
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_phy_write
	movq	_LAN88XX_INT_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movq	_LAN88XX_INT_MASK_MDINTPIN_EN_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LAN88XX_INT_MASK,4,2           ## @LAN88XX_INT_MASK
	.comm	_LAN88XX_INT_MASK_MDINTPIN_EN_,4,2 ## @LAN88XX_INT_MASK_MDINTPIN_EN_
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_LAN88XX_INT_STS,4,2            ## @LAN88XX_INT_STS
	.no_dead_strip	_lan78xx_link_status_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_link_status_change
_lan78xx_link_status_change:            ; @lan78xx_link_status_change
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x19, [x0]
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #100
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x21, _LAN88XX_INT_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LAN88XX_INT_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_read
Lloh2:
	adrp	x22, _LAN88XX_INT_MASK_MDINTPIN_EN_@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LAN88XX_INT_MASK_MDINTPIN_EN_@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_write
Lloh4:
	adrp	x23, _MII_BMCR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_phy_read
Lloh6:
	adrp	x24, _BMCR_SPEED100@GOTPAGE
Lloh7:
	ldr	x24, [x24, _BMCR_SPEED100@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh8:
	adrp	x9, _BMCR_SPEED1000@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w0, w8
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_phy_write
	ldr	w8, [x24]
	orr	w2, w8, w20
	ldr	w1, [x23]
	mov	x0, x19
	bl	_phy_write
Lloh11:
	adrp	x8, _LAN88XX_INT_STS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LAN88XX_INT_STS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_read
	ldr	w8, [x22]
	orr	w2, w8, w0
	ldr	w1, [x21]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_phy_write
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LAN88XX_INT_MASK,4,2           ; @LAN88XX_INT_MASK
	.comm	_LAN88XX_INT_MASK_MDINTPIN_EN_,4,2 ; @LAN88XX_INT_MASK_MDINTPIN_EN_
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_LAN88XX_INT_STS,4,2            ; @LAN88XX_INT_STS
	.no_dead_strip	_lan78xx_link_status_change
.subsections_via_symbols
