	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_powersave_phy
_jme_powersave_phy:                     ## @jme_powersave_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	8(%rbx), %rdi
	callq	_device_may_wakeup
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_jme_set_100m_half
	movq	_PMCS_LFEN@GOTPCREL(%rip), %rax
	movq	_PMCS_LREN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_jme_wait_link
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_jme_clear_pm_enable_wol        ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_jme_phy_off                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PMCS_LFEN,4,2                  ## @PMCS_LFEN
	.comm	_PMCS_LREN,4,2                  ## @PMCS_LREN
	.no_dead_strip	_jme_powersave_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_powersave_phy
_jme_powersave_phy:                     ; @jme_powersave_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
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_device_may_wakeup
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_jme_set_100m_half
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PMCS_LFEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PMCS_LFEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _PMCS_LREN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PMCS_LREN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_jme_wait_link
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_jme_clear_pm_enable_wol
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_jme_phy_off
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PMCS_LFEN,4,2                  ; @PMCS_LFEN
	.comm	_PMCS_LREN,4,2                  ; @PMCS_LREN
	.no_dead_strip	_jme_powersave_phy
.subsections_via_symbols
