	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_setup_loopback_test
_e1000_setup_loopback_test:             ## @e1000_setup_loopback_test
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	movq	_e1000_pch_spt@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_2
## %bb.1:
	movq	_FEXTNVM11@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_FEXTNVM11_DISABLE_MULR_FIX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_ew32
	xorl	%edi, %edi
	callq	_TARC
	movl	%eax, %edi
	callq	_er32
                                        ## kill: def $eax killed $eax def $rax
	andl	$-805306369, %eax               ## imm = 0xCFFFFFFF
	leal	536870912(%rax), %r14d
	xorl	%edi, %edi
	callq	_TARC
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_ew32
LBB0_2:
	movq	(%rbx), %rcx
	movq	_e1000_media_type_fiber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_4
## %bb.3:
	movq	_e1000_media_type_internal_serdes@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_4
## %bb.8:
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rdx
	movl	$7, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_e1000_integrated_phy_loopback  ## TAILCALL
LBB0_4:
	movl	8(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_5
## %bb.7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_e1000_set_82571_fiber_loopback ## TAILCALL
LBB0_5:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_e1000_set_es2lan_mac_loopback  ## TAILCALL
LBB0_10:
	movq	_RCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_RCTL_LBM_TCVR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_ew32
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_pch_spt,4,2              ## @e1000_pch_spt
	.comm	_FEXTNVM11,4,2                  ## @FEXTNVM11
	.comm	_E1000_FEXTNVM11_DISABLE_MULR_FIX,4,2 ## @E1000_FEXTNVM11_DISABLE_MULR_FIX
	.comm	_e1000_media_type_fiber,8,3     ## @e1000_media_type_fiber
	.comm	_e1000_media_type_internal_serdes,8,3 ## @e1000_media_type_internal_serdes
	.comm	_RCTL,4,2                       ## @RCTL
	.comm	_E1000_RCTL_LBM_TCVR,4,2        ## @E1000_RCTL_LBM_TCVR
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.no_dead_strip	_e1000_setup_loopback_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_setup_loopback_test
_e1000_setup_loopback_test:             ; @e1000_setup_loopback_test
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, [x0, #8]
Lloh0:
	adrp	x9, _e1000_pch_spt@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_pch_spt@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _FEXTNVM11@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FEXTNVM11@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh5:
	adrp	x8, _E1000_FEXTNVM11_DISABLE_MULR_FIX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E1000_FEXTNVM11_DISABLE_MULR_FIX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x20]
	bl	_ew32
	mov	w0, #0
	bl	_TARC
	bl	_er32
	and	w8, w0, #0xcfffffff
	orr	w20, w8, #0x20000000
	mov	w0, #0
	bl	_TARC
	mov	x1, x20
	bl	_ew32
LBB0_2:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _e1000_media_type_fiber@GOTPAGE
Lloh9:
	ldr	x9, [x9, _e1000_media_type_fiber@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _e1000_media_type_internal_serdes@GOTPAGE
Lloh12:
	ldr	x10, [x10, _e1000_media_type_internal_serdes@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x19, #8]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_7
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_e1000_set_82571_fiber_loopback
LBB0_5:
Lloh14:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh15:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_e1000_integrated_phy_loopback
LBB0_7:
	cmp	w8, #130
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_e1000_set_es2lan_mac_loopback
LBB0_9:
	mov	w0, #7
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x19, _RCTL@GOTPAGE
Lloh18:
	ldr	x19, [x19, _RCTL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_er32
Lloh19:
	adrp	x8, _E1000_RCTL_LBM_TCVR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E1000_RCTL_LBM_TCVR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x19]
	bl	_ew32
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_pch_spt,4,2              ; @e1000_pch_spt
	.comm	_FEXTNVM11,4,2                  ; @FEXTNVM11
	.comm	_E1000_FEXTNVM11_DISABLE_MULR_FIX,4,2 ; @E1000_FEXTNVM11_DISABLE_MULR_FIX
	.comm	_e1000_media_type_fiber,8,3     ; @e1000_media_type_fiber
	.comm	_e1000_media_type_internal_serdes,8,3 ; @e1000_media_type_internal_serdes
	.comm	_RCTL,4,2                       ; @RCTL
	.comm	_E1000_RCTL_LBM_TCVR,4,2        ; @E1000_RCTL_LBM_TCVR
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.no_dead_strip	_e1000_setup_loopback_test
.subsections_via_symbols
