	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_integrated_phy_loopback
_e1000_integrated_phy_loopback:         ## @e1000_integrated_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	8(%rdi), %r14
	movl	$0, -44(%rbp)
	movq	$0, 48(%rdi)
	movl	8(%rdi), %eax
	movq	_e1000_phy_ife@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$24832, %edx                    ## imm = 0x6100
	callq	_e1e_wphy
	movq	_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_CTRL_SPD_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_E1000_CTRL_FRCSPD@GOTPCREL(%rip), %rax
	movq	_E1000_CTRL_FRCDPX@GOTPCREL(%rip), %rcx
	movq	_E1000_CTRL_SPD_100@GOTPCREL(%rip), %rdx
	orl	(%rax), %esi
	orl	(%rcx), %esi
	orl	(%rdx), %esi
	movq	_E1000_CTRL_FD@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%rbx), %edi
	callq	_ew32
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	jmp	LBB0_22
LBB0_2:
	movq	%rdi, %r12
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_12
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	%r14, %rdi
	callq	*24(%r12)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_e_err
	jmp	LBB0_22
LBB0_4:
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2056, %edx                     ## imm = 0x808
	callq	_e1e_wphy
	movq	_MII_BMCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$37184, %edx                    ## imm = 0x9140
	callq	_e1e_wphy
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$33088, %edx                    ## imm = 0x8140
	jmp	LBB0_11
LBB0_5:
	movq	_GG82563_PHY_KMRN_MODE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$460, %edx                      ## imm = 0x1CC
	jmp	LBB0_11
LBB0_6:
	movl	$2, %edi
	movl	$21, %esi
	callq	_PHY_REG
	leaq	-44(%rbp), %r15
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_e1e_rphy
	movl	-44(%rbp), %eax
	andl	$-8, %eax
	orl	$6, %eax
	movl	%eax, -44(%rbp)
	movl	$2, %edi
	movl	$21, %esi
	callq	_PHY_REG
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_e1e_wphy
	movq	%r14, %rdi
	callq	*40(%r12)
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	$769, %edi                      ## imm = 0x301
	movl	$16, %esi
	callq	_PHY_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_e1e_rphy
	movl	$769, %edi                      ## imm = 0x301
	movl	$16, %esi
	callq	_PHY_REG
	movl	-44(%rbp), %edx
	orl	$12, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_e1e_wphy
	movl	$776, %edi                      ## imm = 0x308
	movl	$16, %esi
	callq	_PHY_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_e1e_rphy
	movl	$776, %edi                      ## imm = 0x308
	movl	$16, %esi
	callq	_PHY_REG
	movl	-44(%rbp), %edx
	orl	$64, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_e1e_wphy
	movl	$769, %edi                      ## imm = 0x301
	movl	$16, %esi
	callq	_PHY_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_e1e_rphy
	movl	$769, %edi                      ## imm = 0x301
	movl	$16, %esi
	callq	_PHY_REG
	movl	-44(%rbp), %edx
	orl	$64, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_e1e_wphy
	movl	$769, %edi                      ## imm = 0x301
	movl	$20, %esi
	callq	_PHY_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_e1e_rphy
	movl	$769, %edi                      ## imm = 0x301
	movl	$20, %esi
	callq	_PHY_REG
	movl	$1024, %edx                     ## imm = 0x400
	orl	-44(%rbp), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	jmp	LBB0_11
LBB0_10:
	xorl	%edi, %edi
	movl	$21, %esi
	callq	_PHY_REG
	leaq	-44(%rbp), %rbx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_e1e_rphy
	xorl	%edi, %edi
	movl	$21, %esi
	callq	_PHY_REG
	movl	-44(%rbp), %edx
	andl	$-9, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_e1e_wphy
	movl	$776, %edi                      ## imm = 0x308
	movl	$18, %esi
	callq	_PHY_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_e1e_rphy
	movl	$776, %edi                      ## imm = 0x308
	movl	$18, %esi
	callq	_PHY_REG
	movl	-44(%rbp), %edx
	orl	$1, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_e1e_wphy
	movq	_I82577_PHY_LBK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$32769, %edx                    ## imm = 0x8001
LBB0_11:
	callq	_e1e_wphy
LBB0_12:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$16704, %edx                    ## imm = 0x4140
	callq	_e1e_wphy
	movl	$250, %edi
	callq	_msleep
	movq	_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_er32
	movq	_E1000_CTRL_SPD_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_E1000_CTRL_FRCSPD@GOTPCREL(%rip), %rdi
	movq	_E1000_CTRL_FRCDPX@GOTPCREL(%rip), %rsi
	movq	_E1000_CTRL_SPD_1000@GOTPCREL(%rip), %rcx
	movq	_E1000_CTRL_FD@GOTPCREL(%rip), %rax
	movq	_FLAG_IS_ICH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_E1000_CTRL_SLU@GOTPCREL(%rip), %r13
	andl	(%r12), %edx
	je	LBB0_14
## %bb.13:
	movl	(%r13), %edx
LBB0_14:
	orl	(%rdi), %ebx
	orl	(%rsi), %ebx
	orl	(%rcx), %ebx
	orl	(%rax), %ebx
	orl	%edx, %ebx
	movq	16(%r12), %rax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.15:
	cmpl	$128, (%r14)
	jne	LBB0_17
## %bb.16:
	movq	_E1000_CTRL_ILOS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_19
LBB0_17:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_FD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_19
## %bb.18:
	movq	_E1000_CTRL_ILOS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	(%r13), %ebx
LBB0_19:
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_ew32
	cmpl	$128, (%r14)
	jne	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_e1000_phy_disable_receiver
LBB0_21:
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	xorl	%ebx, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_e1000_configure_k1_ich8lan
	movq	%r14, %rdi
	callq	*32(%r12)
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_e1000_phy_ife,4,2              ## @e1000_phy_ife
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_SPD_SEL,4,2         ## @E1000_CTRL_SPD_SEL
	.comm	_E1000_CTRL_FRCSPD,4,2          ## @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ## @E1000_CTRL_FRCDPX
	.comm	_E1000_CTRL_SPD_100,4,2         ## @E1000_CTRL_SPD_100
	.comm	_E1000_CTRL_FD,4,2              ## @E1000_CTRL_FD
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ## @M88E1000_PHY_SPEC_CTRL
	.comm	_GG82563_PHY_KMRN_MODE_CTRL,4,2 ## @GG82563_PHY_KMRN_MODE_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot setup 1Gbps loopback.\n"

	.comm	_I82577_PHY_LBK_CTRL,4,2        ## @I82577_PHY_LBK_CTRL
	.comm	_E1000_CTRL_SPD_1000,4,2        ## @E1000_CTRL_SPD_1000
	.comm	_FLAG_IS_ICH,4,2                ## @FLAG_IS_ICH
	.comm	_E1000_CTRL_SLU,4,2             ## @E1000_CTRL_SLU
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_E1000_CTRL_ILOS,4,2            ## @E1000_CTRL_ILOS
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_FD,4,2            ## @E1000_STATUS_FD
	.no_dead_strip	_e1000_integrated_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_integrated_phy_loopback
_e1000_integrated_phy_loopback:         ; @e1000_integrated_phy_loopback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	w8, [x20, #8]!
	str	wzr, [sp, #12]
	str	xzr, [x20, #40]
Lloh0:
	adrp	x9, _e1000_phy_ife@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_phy_ife@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #24832
	bl	_e1e_wphy
Lloh6:
	adrp	x19, _CTRL@GOTPAGE
Lloh7:
	ldr	x19, [x19, _CTRL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_er32
Lloh8:
	adrp	x8, _E1000_CTRL_SPD_SEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_CTRL_SPD_SEL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh11:
	adrp	x9, _E1000_CTRL_FRCSPD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _E1000_CTRL_FRCSPD@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _E1000_CTRL_FRCDPX@GOTPAGE
Lloh15:
	ldr	x10, [x10, _E1000_CTRL_FRCDPX@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _E1000_CTRL_SPD_100@GOTPAGE
Lloh18:
	ldr	x11, [x11, _E1000_CTRL_SPD_100@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
Lloh20:
	adrp	x12, _E1000_CTRL_FD@GOTPAGE
Lloh21:
	ldr	x12, [x12, _E1000_CTRL_FD@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w1, w8, w12
	ldr	w0, [x19]
	bl	_ew32
	bl	_e1e_flush
	b	LBB0_18
LBB0_2:
	mov	x19, x0
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_11
; %bb.3:
Lloh23:
	adrp	x9, lJTI0_0@PAGE
Lloh24:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	x8, [x19, #24]
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_20
; %bb.5:
	mov	x21, x0
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_err
	b	LBB0_19
LBB0_6:
Lloh27:
	adrp	x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #2056
	bl	_e1e_wphy
Lloh30:
	adrp	x21, _MII_BMCR@GOTPAGE
Lloh31:
	ldr	x21, [x21, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #37184
	bl	_e1e_wphy
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #33088
	b	LBB0_10
LBB0_7:
Lloh32:
	adrp	x8, _GG82563_PHY_KMRN_MODE_CTRL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GG82563_PHY_KMRN_MODE_CTRL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #460
	b	LBB0_10
LBB0_8:
	mov	w0, #2
	mov	w1, #21
	bl	_PHY_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1e_rphy
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffff8
	orr	w8, w8, #0x6
	str	w8, [sp, #12]
	mov	w0, #2
	mov	w1, #21
	bl	_PHY_REG
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_e1e_wphy
	ldr	x8, [x19, #40]
	mov	x0, x20
	blr	x8
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	w0, #769
	mov	w1, #16
	bl	_PHY_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1e_rphy
	mov	w0, #769
	mov	w1, #16
	bl	_PHY_REG
	mov	x1, x0
	ldr	w8, [sp, #12]
	orr	w2, w8, #0xc
	mov	x0, x20
	bl	_e1e_wphy
	mov	w0, #776
	mov	w1, #16
	bl	_PHY_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1e_rphy
	mov	w0, #776
	mov	w1, #16
	bl	_PHY_REG
	mov	x1, x0
	ldr	w8, [sp, #12]
	orr	w2, w8, #0x40
	mov	x0, x20
	bl	_e1e_wphy
	mov	w0, #769
	mov	w1, #16
	bl	_PHY_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1e_rphy
	mov	w0, #769
	mov	w1, #16
	bl	_PHY_REG
	mov	x1, x0
	ldr	w8, [sp, #12]
	orr	w2, w8, #0x40
	mov	x0, x20
	bl	_e1e_wphy
	mov	w0, #769
	mov	w1, #20
	bl	_PHY_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1e_rphy
	mov	w0, #769
	mov	w1, #20
	bl	_PHY_REG
	mov	x1, x0
	ldr	w8, [sp, #12]
	orr	w2, w8, #0x400
	mov	x0, x20
	b	LBB0_10
LBB0_9:
	mov	w0, #0
	mov	w1, #21
	bl	_PHY_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1e_rphy
	mov	w0, #0
	mov	w1, #21
	bl	_PHY_REG
	mov	x1, x0
	ldr	w8, [sp, #12]
	and	w2, w8, #0xfffffff7
	mov	x0, x20
	bl	_e1e_wphy
	mov	w0, #776
	mov	w1, #18
	bl	_PHY_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1e_rphy
	mov	w0, #776
	mov	w1, #18
	bl	_PHY_REG
	mov	x1, x0
	ldr	w8, [sp, #12]
	orr	w2, w8, #0x1
	mov	x0, x20
	bl	_e1e_wphy
Lloh35:
	adrp	x8, _I82577_PHY_LBK_CTRL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _I82577_PHY_LBK_CTRL@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #32769
LBB0_10:
	bl	_e1e_wphy
LBB0_11:
Lloh38:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #16704
	bl	_e1e_wphy
	mov	w0, #250
	bl	_msleep
Lloh41:
	adrp	x22, _CTRL@GOTPAGE
Lloh42:
	ldr	x22, [x22, _CTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_er32
Lloh43:
	adrp	x8, _E1000_CTRL_SPD_SEL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _E1000_CTRL_SPD_SEL@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _E1000_CTRL_FRCSPD@GOTPAGE
Lloh47:
	ldr	x9, [x9, _E1000_CTRL_FRCSPD@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh48:
	ldr	w9, [x9]
Lloh49:
	adrp	x10, _E1000_CTRL_FRCDPX@GOTPAGE
Lloh50:
	ldr	x10, [x10, _E1000_CTRL_FRCDPX@GOTPAGEOFF]
Lloh51:
	adrp	x11, _E1000_CTRL_SPD_1000@GOTPAGE
Lloh52:
	ldr	x11, [x11, _E1000_CTRL_SPD_1000@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
Lloh54:
	ldr	w11, [x11]
Lloh55:
	adrp	x12, _E1000_CTRL_FD@GOTPAGE
Lloh56:
	ldr	x12, [x12, _E1000_CTRL_FD@GOTPAGEOFF]
Lloh57:
	ldr	w12, [x12]
	ldr	w13, [x19]
Lloh58:
	adrp	x14, _FLAG_IS_ICH@GOTPAGE
Lloh59:
	ldr	x14, [x14, _FLAG_IS_ICH@GOTPAGEOFF]
Lloh60:
	ldr	w14, [x14]
Lloh61:
	adrp	x23, _E1000_CTRL_SLU@GOTPAGE
Lloh62:
	ldr	x23, [x23, _E1000_CTRL_SLU@GOTPAGEOFF]
	ldr	w15, [x23]
	tst	w14, w13
	csel	w13, wzr, w15, eq
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w21, w8, w13
	ldr	x8, [x19, #16]
Lloh63:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh64:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	ldr	w8, [x20]
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.13:
Lloh66:
	adrp	x8, _E1000_CTRL_ILOS@GOTPAGE
Lloh67:
	ldr	x8, [x8, _E1000_CTRL_ILOS@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	orr	w21, w8, w21
	b	LBB0_16
LBB0_14:
Lloh69:
	adrp	x8, _STATUS@GOTPAGE
Lloh70:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	bl	_er32
Lloh72:
	adrp	x8, _E1000_STATUS_FD@GOTPAGE
Lloh73:
	ldr	x8, [x8, _E1000_STATUS_FD@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_16
; %bb.15:
Lloh75:
	adrp	x8, _E1000_CTRL_ILOS@GOTPAGE
Lloh76:
	ldr	x8, [x8, _E1000_CTRL_ILOS@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w8, w8, w21
	orr	w21, w8, w9
LBB0_16:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_ew32
	ldr	w8, [x20]
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_e1000_phy_disable_receiver
LBB0_18:
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	mov	w21, #0
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
	mov	x0, x20
	mov	w1, #0
	bl	_e1000_configure_k1_ich8lan
	ldr	x8, [x19, #32]
	mov	x0, x20
	blr	x8
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh53
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.comm	_e1000_phy_ife,4,2              ; @e1000_phy_ife
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_SPD_SEL,4,2         ; @E1000_CTRL_SPD_SEL
	.comm	_E1000_CTRL_FRCSPD,4,2          ; @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ; @E1000_CTRL_FRCDPX
	.comm	_E1000_CTRL_SPD_100,4,2         ; @E1000_CTRL_SPD_100
	.comm	_E1000_CTRL_FD,4,2              ; @E1000_CTRL_FD
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ; @M88E1000_PHY_SPEC_CTRL
	.comm	_GG82563_PHY_KMRN_MODE_CTRL,4,2 ; @GG82563_PHY_KMRN_MODE_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot setup 1Gbps loopback.\n"

	.comm	_I82577_PHY_LBK_CTRL,4,2        ; @I82577_PHY_LBK_CTRL
	.comm	_E1000_CTRL_SPD_1000,4,2        ; @E1000_CTRL_SPD_1000
	.comm	_FLAG_IS_ICH,4,2                ; @FLAG_IS_ICH
	.comm	_E1000_CTRL_SLU,4,2             ; @E1000_CTRL_SLU
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_E1000_CTRL_ILOS,4,2            ; @E1000_CTRL_ILOS
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_FD,4,2            ; @E1000_STATUS_FD
	.no_dead_strip	_e1000_integrated_phy_loopback
.subsections_via_symbols
