	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_enable_phy_wakeup_reg_access_bm ## -- Begin function e1000_enable_phy_wakeup_reg_access_bm
	.p2align	4, 0x90
_e1000_enable_phy_wakeup_reg_access_bm: ## @e1000_enable_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
	movl	$1, (%rdi)
	movq	_BM_PORT_CTRL_PAGE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_IGP_PAGE_SHIFT@GOTPCREL(%rip), %r13
	movb	(%r13), %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_7
LBB0_2:
	movq	_BM_WUC_ENABLE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_e1000e_read_phy_reg_mdic
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movl	(%r12), %esi
	movq	_BM_WUC_ENABLE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	movq	_BM_WUC_ENABLE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r15), %eax
	movq	_BM_WUC_ME_WU_BIT@GOTPCREL(%rip), %rcx
	movq	_BM_WUC_HOST_WU_BIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_BM_WUC_ENABLE_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_e1000e_write_phy_reg_mdic
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %rbx
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_e_dbg
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_BM_WUC_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r13), %cl
	shll	%cl, %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_e1000_set_page_igp             ## TAILCALL
	.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 read PHY register %d.%d\n"

	.comm	_BM_WUC_ENABLE_BIT,4,2          ## @BM_WUC_ENABLE_BIT
	.comm	_BM_WUC_ME_WU_BIT,4,2           ## @BM_WUC_ME_WU_BIT
	.comm	_BM_WUC_HOST_WU_BIT,4,2         ## @BM_WUC_HOST_WU_BIT
L_.str.2:                               ## @.str.2
	.asciz	"Could not write PHY register %d.%d\n"

	.comm	_BM_WUC_PAGE,4,2                ## @BM_WUC_PAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_enable_phy_wakeup_reg_access_bm ; -- Begin function e1000_enable_phy_wakeup_reg_access_bm
	.p2align	2
_e1000_enable_phy_wakeup_reg_access_bm: ; @e1000_enable_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	x19, x0
	mov	w8, #1
Lloh0:
	adrp	x22, _BM_PORT_CTRL_PAGE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BM_PORT_CTRL_PAGE@GOTPAGEOFF]
	str	w8, [x0]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _IGP_PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IGP_PAGE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x23]
	lsl	w1, w8, w9
	bl	_e1000_set_page_igp
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh6:
	adrp	x24, _BM_WUC_ENABLE_REG@GOTPAGE
Lloh7:
	ldr	x24, [x24, _BM_WUC_ENABLE_REG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_e1000e_read_phy_reg_mdic
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	w8, [x22]
	ldr	w9, [x24]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _BM_WUC_ENABLE_BIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BM_WUC_ENABLE_BIT@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh12:
	ldr	w8, [x8]
	orr	w8, w8, w9
Lloh13:
	adrp	x9, _BM_WUC_ME_WU_BIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BM_WUC_ME_WU_BIT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _BM_WUC_HOST_WU_BIT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _BM_WUC_HOST_WU_BIT@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w2, w8, w9
	ldr	w1, [x24]
	mov	x0, x19
	bl	_e1000e_write_phy_reg_mdic
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	ldr	w8, [x22]
	ldr	w9, [x24]
	stp	x8, x9, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_e_dbg
	mov	x0, x20
	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
LBB0_7:
Lloh21:
	adrp	x8, _BM_WUC_PAGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BM_WUC_PAGE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x23]
	lsl	w1, w8, w9
	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
	b	_e1000_set_page_igp
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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 read PHY register %d.%d\n"

	.comm	_BM_WUC_ENABLE_BIT,4,2          ; @BM_WUC_ENABLE_BIT
	.comm	_BM_WUC_ME_WU_BIT,4,2           ; @BM_WUC_ME_WU_BIT
	.comm	_BM_WUC_HOST_WU_BIT,4,2         ; @BM_WUC_HOST_WU_BIT
l_.str.2:                               ; @.str.2
	.asciz	"Could not write PHY register %d.%d\n"

	.comm	_BM_WUC_PAGE,4,2                ; @BM_WUC_PAGE
.subsections_via_symbols
