	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_phy_hw_reset             ## -- Begin function e1000_phy_hw_reset
	.p2align	4, 0x90
_e1000_phy_hw_reset:                    ## @e1000_phy_hw_reset
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	(%r14), %rax
	movq	_e1000_82543@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movq	_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_er32
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	_E1000_CTRL_PHY_RST@GOTPCREL(%rip), %rax
	movl	%ebx, %esi
	orl	(%rax), %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$10, %edi
	callq	_msleep
	jmp	LBB0_3
LBB0_2:
	movq	_CTRL_EXT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_er32
	movq	_E1000_CTRL_EXT_SDP4_DIR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_E1000_CTRL_EXT_SDP4_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$10, %edi
	callq	_msleep
	orl	(%r12), %ebx
LBB0_3:
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$150, %edi
	callq	_udelay
	movq	(%r14), %rax
	movq	_e1000_82541@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_e1000_82547@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_5:
	movq	_LEDCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_IGP_ACTIVITY_LED_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_IGP_ACTIVITY_LED_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IGP_LED3_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_ew32
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_e1000_get_phy_cfg_done         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resetting Phy...\n"

	.comm	_e1000_82543,8,3                ## @e1000_82543
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_PHY_RST,4,2         ## @E1000_CTRL_PHY_RST
	.comm	_CTRL_EXT,4,2                   ## @CTRL_EXT
	.comm	_E1000_CTRL_EXT_SDP4_DIR,4,2    ## @E1000_CTRL_EXT_SDP4_DIR
	.comm	_E1000_CTRL_EXT_SDP4_DATA,4,2   ## @E1000_CTRL_EXT_SDP4_DATA
	.comm	_e1000_82541,8,3                ## @e1000_82541
	.comm	_e1000_82547,8,3                ## @e1000_82547
	.comm	_LEDCTL,4,2                     ## @LEDCTL
	.comm	_IGP_ACTIVITY_LED_MASK,4,2      ## @IGP_ACTIVITY_LED_MASK
	.comm	_IGP_ACTIVITY_LED_ENABLE,4,2    ## @IGP_ACTIVITY_LED_ENABLE
	.comm	_IGP_LED3_MODE,4,2              ## @IGP_LED3_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_phy_hw_reset             ; -- Begin function e1000_phy_hw_reset
	.p2align	2
_e1000_phy_hw_reset:                    ; @e1000_phy_hw_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _e1000_82543@GOTPAGE
Lloh3:
	ldr	x9, [x9, _e1000_82543@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh5:
	adrp	x21, _CTRL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _CTRL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
	mov	x20, x0
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _E1000_CTRL_PHY_RST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E1000_CTRL_PHY_RST@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w1, w8, w20
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #10
	bl	_msleep
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x21, _CTRL_EXT@GOTPAGE
Lloh11:
	ldr	x21, [x21, _CTRL_EXT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
Lloh12:
	adrp	x8, _E1000_CTRL_EXT_SDP4_DIR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E1000_CTRL_EXT_SDP4_DIR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh15:
	adrp	x22, _E1000_CTRL_EXT_SDP4_DATA@GOTPAGE
Lloh16:
	ldr	x22, [x22, _E1000_CTRL_EXT_SDP4_DATA@GOTPAGEOFF]
	ldr	w9, [x22]
	bic	w20, w8, w9
	ldr	w0, [x21]
	mov	x1, x20
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #10
	bl	_msleep
	ldr	w8, [x22]
	orr	w20, w8, w20
LBB0_3:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #150
	bl	_udelay
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _e1000_82541@GOTPAGE
Lloh18:
	ldr	x9, [x9, _e1000_82541@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _e1000_82547@GOTPAGE
Lloh21:
	ldr	x10, [x10, _e1000_82547@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh23:
	adrp	x20, _LEDCTL@GOTPAGE
Lloh24:
	ldr	x20, [x20, _LEDCTL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh25:
	adrp	x8, _IGP_ACTIVITY_LED_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IGP_ACTIVITY_LED_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh28:
	adrp	x9, _IGP_ACTIVITY_LED_ENABLE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IGP_ACTIVITY_LED_ENABLE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _IGP_LED3_MODE@GOTPAGE
Lloh32:
	ldr	x10, [x10, _IGP_LED3_MODE@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w1, w8, w10
	ldr	w0, [x20]
	bl	_ew32
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_e1000_get_phy_cfg_done
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resetting Phy...\n"

	.comm	_e1000_82543,8,3                ; @e1000_82543
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_PHY_RST,4,2         ; @E1000_CTRL_PHY_RST
	.comm	_CTRL_EXT,4,2                   ; @CTRL_EXT
	.comm	_E1000_CTRL_EXT_SDP4_DIR,4,2    ; @E1000_CTRL_EXT_SDP4_DIR
	.comm	_E1000_CTRL_EXT_SDP4_DATA,4,2   ; @E1000_CTRL_EXT_SDP4_DATA
	.comm	_e1000_82541,8,3                ; @e1000_82541
	.comm	_e1000_82547,8,3                ; @e1000_82547
	.comm	_LEDCTL,4,2                     ; @LEDCTL
	.comm	_IGP_ACTIVITY_LED_MASK,4,2      ; @IGP_ACTIVITY_LED_MASK
	.comm	_IGP_ACTIVITY_LED_ENABLE,4,2    ; @IGP_ACTIVITY_LED_ENABLE
	.comm	_IGP_LED3_MODE,4,2              ; @IGP_LED3_MODE
.subsections_via_symbols
