	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_power_down_phy
_e1000_power_down_phy:                  ## @e1000_power_down_phy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, (%rdi)
	jne	LBB0_6
## %bb.1:
	leaq	8(%rdi), %rbx
	movl	(%rbx), %eax
	cmpl	$137, %eax
	jl	LBB0_6
## %bb.2:
	movq	16(%rdi), %rcx
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.3:
	movl	$0, -20(%rbp)
	addl	$-128, %eax
	cmpl	$9, %eax
	ja	LBB0_6
## %bb.4:
	movq	_MANC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_MANC_SMBUS_EN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	_PHY_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	movq	_MII_CR_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1000_write_phy_reg
	movl	$1, %edi
	callq	_msleep
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_MANC,4,2                       ## @MANC
	.comm	_E1000_MANC_SMBUS_EN,4,2        ## @E1000_MANC_SMBUS_EN
	.comm	_PHY_CTRL,4,2                   ## @PHY_CTRL
	.comm	_MII_CR_POWER_DOWN,4,2          ## @MII_CR_POWER_DOWN
	.no_dead_strip	_e1000_power_down_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_power_down_phy
_e1000_power_down_phy:                  ; @e1000_power_down_phy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w8, [x19], #8
	cbnz	w8, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #137
	b.lt	LBB0_6
; %bb.2:
	ldr	x9, [x0, #16]
Lloh0:
	adrp	x10, _e1000_media_type_copper@GOTPAGE
Lloh1:
	ldr	x10, [x10, _e1000_media_type_copper@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.3:
	str	wzr, [sp, #12]
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _MANC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MANC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_er32
Lloh6:
	adrp	x8, _E1000_MANC_SMBUS_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_MANC_SMBUS_EN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x20, _PHY_CTRL@GOTPAGE
Lloh10:
	ldr	x20, [x20, _PHY_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg
Lloh11:
	adrp	x8, _MII_CR_POWER_DOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MII_CR_POWER_DOWN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	w0, #1
	bl	_msleep
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_MANC,4,2                       ; @MANC
	.comm	_E1000_MANC_SMBUS_EN,4,2        ; @E1000_MANC_SMBUS_EN
	.comm	_PHY_CTRL,4,2                   ; @PHY_CTRL
	.comm	_MII_CR_POWER_DOWN,4,2          ; @MII_CR_POWER_DOWN
	.no_dead_strip	_e1000_power_down_phy
.subsections_via_symbols
