	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88772_restore_phy
_ax88772_restore_phy:                   ## @ax88772_restore_phy
	.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	8(%rdi), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movl	4(%rdi), %edi
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_asix_mdio_write_nopm
	movl	4(%r14), %ecx
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%r14)
LBB0_3:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_asix_mdio_write_nopm
	movq	$0, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.no_dead_strip	_ax88772_restore_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88772_restore_phy
_ax88772_restore_phy:                   ; @ax88772_restore_phy
	.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
	ldr	x20, [x0, #8]
	ldr	w3, [x20]
	cbz	w3, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_asix_mdio_write_nopm
	ldr	w3, [x20, #4]
Lloh3:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _BMCR_ANRESTART@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w3, w8, w3
	str	w3, [x20, #4]
LBB0_3:
	ldp	w1, w0, [x19]
Lloh9:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_asix_mdio_write_nopm
	str	xzr, [x20]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.no_dead_strip	_ax88772_restore_phy
.subsections_via_symbols
