	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_set_phy_loopback
_e1000_set_phy_loopback:                ## @e1000_set_phy_loopback
	.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
	movl	$0, -20(%rbp)
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$10, %eax
	ja	LBB0_15
## %bb.1:
	cmpl	$7, %eax
	je	LBB0_2
## %bb.14:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_e1000_integrated_phy_loopback  ## TAILCALL
LBB0_15:
	movq	_PHY_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	movq	_MII_CR_LOOPBACK@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
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_2:
	movl	4(%rbx), %eax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	movl	$8, %r14d
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.3:
	movq	%rbx, %rdi
	callq	_e1000_nonintegrated_phy_loopback
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	movq	%rbx, %rdi
	callq	_e1000_nonintegrated_phy_loopback
	testl	%eax, %eax
	je	LBB0_16
## %bb.5:
	movq	%rbx, %rdi
	callq	_e1000_nonintegrated_phy_loopback
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	movq	%rbx, %rdi
	callq	_e1000_nonintegrated_phy_loopback
	testl	%eax, %eax
	je	LBB0_16
## %bb.7:
	movq	%rbx, %rdi
	callq	_e1000_nonintegrated_phy_loopback
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:
	movq	%rbx, %rdi
	callq	_e1000_nonintegrated_phy_loopback
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	movq	%rbx, %rdi
	callq	_e1000_nonintegrated_phy_loopback
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movq	%rbx, %rdi
	callq	_e1000_nonintegrated_phy_loopback
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movq	%rbx, %rdi
	callq	_e1000_nonintegrated_phy_loopback
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movq	%rbx, %rdi
	callq	_e1000_nonintegrated_phy_loopback
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movq	%rbx, %rdi
	callq	_e1000_nonintegrated_phy_loopback
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
	shll	$3, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_media_type_copper,4,2    ## @e1000_media_type_copper
	.comm	_PHY_CTRL,4,2                   ## @PHY_CTRL
	.comm	_MII_CR_LOOPBACK,4,2            ## @MII_CR_LOOPBACK
	.no_dead_strip	_e1000_set_phy_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_set_phy_loopback
_e1000_set_phy_loopback:                ; @e1000_set_phy_loopback
	.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
	str	wzr, [sp, #12]
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #10
	b.hi	LBB0_3
; %bb.1:
	cmp	w8, #7
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_e1000_integrated_phy_loopback
LBB0_3:
Lloh0:
	adrp	x20, _PHY_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PHY_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg
Lloh2:
	adrp	x8, _MII_CR_LOOPBACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_CR_LOOPBACK@GOTPAGEOFF]
Lloh4:
	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, #0
	b	LBB0_17
LBB0_4:
	ldr	w8, [x19, #4]
Lloh5:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh6:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.5:
	mov	x0, x19
	bl	_e1000_nonintegrated_phy_loopback
	cbz	w0, LBB0_17
; %bb.6:
	mov	x0, x19
	bl	_e1000_nonintegrated_phy_loopback
	cbz	w0, LBB0_17
; %bb.7:
	mov	x0, x19
	bl	_e1000_nonintegrated_phy_loopback
	cbz	w0, LBB0_17
; %bb.8:
	mov	x0, x19
	bl	_e1000_nonintegrated_phy_loopback
	cbz	w0, LBB0_17
; %bb.9:
	mov	x0, x19
	bl	_e1000_nonintegrated_phy_loopback
	cbz	w0, LBB0_17
; %bb.10:
	mov	x0, x19
	bl	_e1000_nonintegrated_phy_loopback
	cbz	w0, LBB0_17
; %bb.11:
	mov	x0, x19
	bl	_e1000_nonintegrated_phy_loopback
	cbz	w0, LBB0_17
; %bb.12:
	mov	x0, x19
	bl	_e1000_nonintegrated_phy_loopback
	cbz	w0, LBB0_17
; %bb.13:
	mov	x0, x19
	bl	_e1000_nonintegrated_phy_loopback
	cbz	w0, LBB0_17
; %bb.14:
	mov	x0, x19
	bl	_e1000_nonintegrated_phy_loopback
	cbz	w0, LBB0_17
; %bb.15:
	mov	x0, x19
	bl	_e1000_nonintegrated_phy_loopback
	cmp	w0, #0
	cset	w8, ne
	lsl	w0, w8, #3
	b	LBB0_17
LBB0_16:
	mov	w0, #8
LBB0_17:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_media_type_copper,4,2    ; @e1000_media_type_copper
	.comm	_PHY_CTRL,4,2                   ; @PHY_CTRL
	.comm	_MII_CR_LOOPBACK,4,2            ; @MII_CR_LOOPBACK
	.no_dead_strip	_e1000_set_phy_loopback
.subsections_via_symbols
