	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_setup_copper_link_80003es2lan
_e1000_setup_copper_link_80003es2lan:   ## @e1000_setup_copper_link_80003es2lan
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_CTRL_SLU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_E1000_CTRL_FRCSPD@GOTPCREL(%rip), %rcx
	movq	_E1000_CTRL_FRCDPX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_ew32
	movl	$52, %edi
	movl	$4, %esi
	callq	_GG82563_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_e1000_write_kmrn_reg_80003es2lan
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movl	$52, %edi
	movl	$9, %esi
	callq	_GG82563_REG
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_e1000_read_kmrn_reg_80003es2lan
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	orb	$63, -28(%rbp)
	movl	$52, %edi
	movl	$9, %esi
	callq	_GG82563_REG
	movl	-28(%rbp), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_e1000_write_kmrn_reg_80003es2lan
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	_E1000_KMRNCTRLSTA_OFFSET_INB_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_e1000_read_kmrn_reg_80003es2lan
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	_E1000_KMRNCTRLSTA_INB_CTRL_DIS_PADDING@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -28(%rbp)
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_e1000_write_kmrn_reg_80003es2lan
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_e1000_copper_link_setup_gg82563_80003es2lan
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_e1000e_setup_copper_link
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_SLU,4,2             ## @E1000_CTRL_SLU
	.comm	_E1000_CTRL_FRCSPD,4,2          ## @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ## @E1000_CTRL_FRCDPX
	.comm	_E1000_KMRNCTRLSTA_OFFSET_INB_CTRL,4,2 ## @E1000_KMRNCTRLSTA_OFFSET_INB_CTRL
	.comm	_E1000_KMRNCTRLSTA_INB_CTRL_DIS_PADDING,4,2 ## @E1000_KMRNCTRLSTA_INB_CTRL_DIS_PADDING
	.no_dead_strip	_e1000_setup_copper_link_80003es2lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_setup_copper_link_80003es2lan
_e1000_setup_copper_link_80003es2lan:   ; @e1000_setup_copper_link_80003es2lan
	.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, _CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh2:
	adrp	x8, _E1000_CTRL_SLU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_CTRL_SLU@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh5:
	adrp	x9, _E1000_CTRL_FRCSPD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _E1000_CTRL_FRCSPD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _E1000_CTRL_FRCDPX@GOTPAGE
Lloh9:
	ldr	x10, [x10, _E1000_CTRL_FRCDPX@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w1, w8, w9
	ldr	w0, [x20]
	bl	_ew32
	mov	w0, #52
	mov	w1, #4
	bl	_GG82563_REG
	mov	x1, x0
	mov	x0, x19
	mov	w2, #65535
	bl	_e1000_write_kmrn_reg_80003es2lan
	cbnz	x0, LBB0_7
; %bb.1:
	mov	w0, #52
	mov	w1, #9
	bl	_GG82563_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_kmrn_reg_80003es2lan
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x3f
	str	w8, [sp, #12]
	mov	w0, #52
	mov	w1, #9
	bl	_GG82563_REG
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_e1000_write_kmrn_reg_80003es2lan
	cbnz	x0, LBB0_7
; %bb.3:
Lloh11:
	adrp	x20, _E1000_KMRNCTRLSTA_OFFSET_INB_CTRL@GOTPAGE
Lloh12:
	ldr	x20, [x20, _E1000_KMRNCTRLSTA_OFFSET_INB_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_kmrn_reg_80003es2lan
	cbnz	x0, LBB0_7
; %bb.4:
Lloh13:
	adrp	x8, _E1000_KMRNCTRLSTA_INB_CTRL_DIS_PADDING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E1000_KMRNCTRLSTA_INB_CTRL_DIS_PADDING@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1000_write_kmrn_reg_80003es2lan
	cbnz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_e1000_copper_link_setup_gg82563_80003es2lan
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_e1000e_setup_copper_link
LBB0_7:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_SLU,4,2             ; @E1000_CTRL_SLU
	.comm	_E1000_CTRL_FRCSPD,4,2          ; @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ; @E1000_CTRL_FRCDPX
	.comm	_E1000_KMRNCTRLSTA_OFFSET_INB_CTRL,4,2 ; @E1000_KMRNCTRLSTA_OFFSET_INB_CTRL
	.comm	_E1000_KMRNCTRLSTA_INB_CTRL_DIS_PADDING,4,2 ; @E1000_KMRNCTRLSTA_INB_CTRL_DIS_PADDING
	.no_dead_strip	_e1000_setup_copper_link_80003es2lan
.subsections_via_symbols
