	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_phy_hw_reset_generic    ## -- Begin function e1000e_phy_hw_reset_generic
	.p2align	4, 0x90
_e1000e_phy_hw_reset_generic:           ## @e1000e_phy_hw_reset_generic
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	callq	*%rax
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movq	%rdi, %rbx
	callq	*16(%rdi)
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movl	%eax, %r15d
	movl	(%r14), %edi
	movq	_E1000_CTRL_PHY_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r15d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	32(%rbx), %edi
	callq	_udelay
	movl	(%r14), %edi
	movl	%r15d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$150, %edi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rdi)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_PHY_RST,4,2         ## @E1000_CTRL_PHY_RST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_phy_hw_reset_generic    ; -- Begin function e1000e_phy_hw_reset_generic
	.p2align	2
_e1000e_phy_hw_reset_generic:           ; @e1000e_phy_hw_reset_generic
	.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
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, #0
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_5
LBB0_4:
	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
	ret
LBB0_5:
Lloh0:
	adrp	x21, _CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CTRL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
	mov	x20, x0
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _E1000_CTRL_PHY_RST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_CTRL_PHY_RST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w1, w8, w20
	bl	_ew32
	bl	_e1e_flush
	ldr	w0, [x19, #32]
	bl	_udelay
	ldr	w0, [x21]
	mov	x1, x20
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #150
	mov	w1, #300
	bl	_usleep_range
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	ldr	x1, [x19]
	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
	br	x1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_PHY_RST,4,2         ; @E1000_CTRL_PHY_RST
.subsections_via_symbols
