	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88772_suspend
_ax88772_suspend:                       ## @ax88772_suspend
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	$1, %esi
	callq	_asix_read_medium_status
	movq	_AX_MEDIUM_RE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_asix_write_medium_mode
	movl	4(%rbx), %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_asix_read_medium_status
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_netdev_dbg
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_asix_mdio_read_nopm
	movq	%rax, 8(%r15)
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_asix_mdio_read_nopm
	movq	%rax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AX_MEDIUM_RE,4,2               ## @AX_MEDIUM_RE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ax88772_suspend: medium=0x%04x\n"

	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.no_dead_strip	_ax88772_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88772_suspend
_ax88772_suspend:                       ; @ax88772_suspend
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	w1, #1
	bl	_asix_read_medium_status
Lloh0:
	adrp	x8, _AX_MEDIUM_RE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AX_MEDIUM_RE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x19
	mov	w2, #1
	bl	_asix_write_medium_mode
	ldr	w20, [x19, #4]
	mov	x0, x19
	mov	w1, #1
	bl	_asix_read_medium_status
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldp	w1, w0, [x19]
Lloh5:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_asix_mdio_read_nopm
	str	x0, [x21, #8]
	ldp	w1, w0, [x19]
Lloh8:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_asix_mdio_read_nopm
	str	x0, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AX_MEDIUM_RE,4,2               ; @AX_MEDIUM_RE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ax88772_suspend: medium=0x%04x\n"

	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.no_dead_strip	_ax88772_suspend
.subsections_via_symbols
