	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_disable_phy_wakeup_reg_access_bm ## -- Begin function e1000_disable_phy_wakeup_reg_access_bm
	.p2align	4, 0x90
_e1000_disable_phy_wakeup_reg_access_bm: ## @e1000_disable_phy_wakeup_reg_access_bm
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_BM_PORT_CTRL_PAGE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_IGP_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	callq	_e1000_set_page_igp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	jmp	LBB0_5
LBB0_2:
	movq	_BM_WUC_ENABLE_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_e1000e_write_phy_reg_mdic
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BM_PORT_CTRL_PAGE,4,2          ## @BM_PORT_CTRL_PAGE
	.comm	_IGP_PAGE_SHIFT,4,2             ## @IGP_PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not set Port Control page\n"

	.comm	_BM_WUC_ENABLE_REG,4,2          ## @BM_WUC_ENABLE_REG
L_.str.1:                               ## @.str.1
	.asciz	"Could not restore PHY register %d.%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_disable_phy_wakeup_reg_access_bm ; -- Begin function e1000_disable_phy_wakeup_reg_access_bm
	.p2align	2
_e1000_disable_phy_wakeup_reg_access_bm: ; @e1000_disable_phy_wakeup_reg_access_bm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _BM_PORT_CTRL_PAGE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BM_PORT_CTRL_PAGE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _IGP_PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IGP_PAGE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	lsl	w1, w8, w9
	bl	_e1000_set_page_igp
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh7:
	adrp	x23, _BM_WUC_ENABLE_REG@GOTPAGE
Lloh8:
	ldr	x23, [x23, _BM_WUC_ENABLE_REG@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_e1000e_write_phy_reg_mdic
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x22]
	ldr	w9, [x23]
	stp	x8, x9, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_e_dbg
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BM_PORT_CTRL_PAGE,4,2          ; @BM_PORT_CTRL_PAGE
	.comm	_IGP_PAGE_SHIFT,4,2             ; @IGP_PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not set Port Control page\n"

	.comm	_BM_WUC_ENABLE_REG,4,2          ; @BM_WUC_ENABLE_REG
l_.str.1:                               ; @.str.1
	.asciz	"Could not restore PHY register %d.%d\n"

.subsections_via_symbols
