	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_access_phy_debug_regs_hv
_e1000_access_phy_debug_regs_hv:        ## @e1000_access_phy_debug_regs_hv
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_e1000_phy_82578@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_I82578_ADDR_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_I82577_ADDR_REG@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r13
	movl	$2, 8(%rbx)
	andl	$63, %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_e1000e_write_phy_reg_mdic
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_5:
	incq	%r13
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_e1000e_read_phy_reg_mdic
	jmp	LBB0_8
LBB0_7:
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_e1000e_write_phy_reg_mdic
LBB0_8:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
LBB0_10:
	callq	_e_dbg
LBB0_11:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_phy_82578,8,3            ## @e1000_phy_82578
	.comm	_I82578_ADDR_REG,8,3            ## @I82578_ADDR_REG
	.comm	_I82577_ADDR_REG,8,3            ## @I82577_ADDR_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not write the Address Offset port register\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not access the Data port register\n"

	.no_dead_strip	_e1000_access_phy_debug_regs_hv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_access_phy_debug_regs_hv
_e1000_access_phy_debug_regs_hv:        ; @e1000_access_phy_debug_regs_hv
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _e1000_phy_82578@GOTPAGE
Lloh1:
	ldr	x8, [x8, _e1000_phy_82578@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _I82578_ADDR_REG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _I82578_ADDR_REG@GOTPAGEOFF]
Lloh5:
	adrp	x11, _I82577_ADDR_REG@GOTPAGE
Lloh6:
	ldr	x11, [x11, _I82577_ADDR_REG@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, eq
	ldr	x23, [x8]
	mov	w8, #2
	str	w8, [x0, #8]
	and	w2, w1, #0x3f
	mov	x1, x23
	bl	_e1000e_write_phy_reg_mdic
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	add	x1, x23, #1
	cbz	w22, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x2, x20
	bl	_e1000e_read_phy_reg_mdic
	mov	x19, x0
	cbnz	x0, LBB0_5
	b	LBB0_7
LBB0_4:
	ldr	w2, [x20]
	mov	x0, x21
	bl	_e1000e_write_phy_reg_mdic
	mov	x19, x0
	cbz	x0, LBB0_7
LBB0_5:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_e_dbg
LBB0_7:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_phy_82578,8,3            ; @e1000_phy_82578
	.comm	_I82578_ADDR_REG,8,3            ; @I82578_ADDR_REG
	.comm	_I82577_ADDR_REG,8,3            ; @I82577_ADDR_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not write the Address Offset port register\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not access the Data port register\n"

	.no_dead_strip	_e1000_access_phy_debug_regs_hv
.subsections_via_symbols
