	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_suspend                    ## -- Begin function phy_suspend
	.p2align	4, 0x90
_phy_suspend:                           ## @phy_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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_to_phy_driver
	movq	%rax, %r14
	movq	16(%rbx), %r15
	movq	$0, -40(%rbp)
	movq	_ETHTOOL_GWOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_phy_ethtool_get_wol
	cmpq	$0, -40(%rbp)
	je	LBB0_1
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	cmpq	$0, (%r15)
	jne	LBB0_3
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	movl	$1, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_GWOL,4,2               ## @ETHTOOL_GWOL
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_suspend                    ; -- Begin function phy_suspend
	.p2align	2
_phy_suspend:                           ; @phy_suspend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_to_phy_driver
	mov	x20, x0
	ldr	x21, [x19, #16]
	str	xzr, [sp]
Lloh0:
	adrp	x8, _ETHTOOL_GWOL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_GWOL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	bl	_phy_ethtool_get_wol
	ldr	x8, [sp]
	cbz	x8, LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
	add	sp, sp, #64
	ret
LBB0_3:
	cbz	x21, LBB0_5
; %bb.4:
	ldr	x8, [x21]
	cbnz	x8, LBB0_1
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_2
LBB0_8:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_GWOL,4,2               ; @ETHTOOL_GWOL
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
