	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_loopback_cleanup
_e1000_loopback_cleanup:                ## @e1000_loopback_cleanup
	.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
	movq	%rdi, %rbx
	movq	_RCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_RCTL_LBM_TCVR@GOTPCREL(%rip), %rcx
	movq	_E1000_RCTL_LBM_MAC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edi
	callq	_ew32
	movl	$1, 4(%rbx)
	movq	_PHY_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	movl	-20(%rbp), %edx
	movq	_MII_CR_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, %eax
	je	LBB0_2
## %bb.1:
	notl	%eax
	andl	%eax, %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1000_write_phy_reg
	movq	%rbx, %rdi
	callq	_e1000_phy_reset
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCTL,4,2                       ## @RCTL
	.comm	_E1000_RCTL_LBM_TCVR,4,2        ## @E1000_RCTL_LBM_TCVR
	.comm	_E1000_RCTL_LBM_MAC,4,2         ## @E1000_RCTL_LBM_MAC
	.comm	_PHY_CTRL,4,2                   ## @PHY_CTRL
	.comm	_MII_CR_LOOPBACK,4,2            ## @MII_CR_LOOPBACK
	.no_dead_strip	_e1000_loopback_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_loopback_cleanup
_e1000_loopback_cleanup:                ; @e1000_loopback_cleanup
	.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
Lloh0:
	adrp	x20, _RCTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RCTL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh2:
	adrp	x8, _E1000_RCTL_LBM_TCVR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_RCTL_LBM_TCVR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _E1000_RCTL_LBM_MAC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _E1000_RCTL_LBM_MAC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w1, w0, w8
	ldr	w0, [x20]
	bl	_ew32
	mov	w8, #1
	str	w8, [x19, #4]
Lloh8:
	adrp	x20, _PHY_CTRL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _PHY_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg
	ldr	w8, [sp, #12]
Lloh10:
	adrp	x9, _MII_CR_LOOPBACK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MII_CR_LOOPBACK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bic	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	x0, x19
	bl	_e1000_phy_reset
LBB0_2:
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RCTL,4,2                       ; @RCTL
	.comm	_E1000_RCTL_LBM_TCVR,4,2        ; @E1000_RCTL_LBM_TCVR
	.comm	_E1000_RCTL_LBM_MAC,4,2         ; @E1000_RCTL_LBM_MAC
	.comm	_PHY_CTRL,4,2                   ; @PHY_CTRL
	.comm	_MII_CR_LOOPBACK,4,2            ; @MII_CR_LOOPBACK
	.no_dead_strip	_e1000_loopback_cleanup
.subsections_via_symbols
