	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_cfg_kmrn_10_100_80003es2lan
_e1000_cfg_kmrn_10_100_80003es2lan:     ## @e1000_cfg_kmrn_10_100_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, -48(%rbp)
	movq	_E1000_KMRNCTRLSTA_OFFSET_HD_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_e1000_write_kmrn_reg_80003es2lan
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_TIPG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_TIPG_IPGT_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	notq	%rsi
	andq	%rax, %rsi
	movq	_DEFAULT_TIPG_IPGT_10_100_80003ES2LAN@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	movl	(%r14), %edi
	callq	_ew32
	movl	$1, %r14d
	movq	_GG82563_PHY_KMRN_MODE_CTRL@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r15
	leaq	-64(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	cmpq	-64(%rbp), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r14), %rcx
	movq	_GG82563_MAX_KMRN_RETRY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r14
	movq	%rcx, %r14
	jl	LBB0_2
LBB0_6:
	movq	_HALF_DUPLEX@GOTPCREL(%rip), %rcx
	movq	_GG82563_KMCR_PASS_FALSE_CARRIER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, %rsi
	notq	%rsi
	andq	%rax, %rsi
	orq	%rax, %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%rcx)
	cmovneq	%rsi, %rdx
	movq	%rdx, -48(%rbp)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT,8,3 ## @E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT
	.comm	_E1000_KMRNCTRLSTA_OFFSET_HD_CTRL,4,2 ## @E1000_KMRNCTRLSTA_OFFSET_HD_CTRL
	.comm	_TIPG,4,2                       ## @TIPG
	.comm	_E1000_TIPG_IPGT_MASK,8,3       ## @E1000_TIPG_IPGT_MASK
	.comm	_DEFAULT_TIPG_IPGT_10_100_80003ES2LAN,8,3 ## @DEFAULT_TIPG_IPGT_10_100_80003ES2LAN
	.comm	_GG82563_PHY_KMRN_MODE_CTRL,4,2 ## @GG82563_PHY_KMRN_MODE_CTRL
	.comm	_GG82563_MAX_KMRN_RETRY,8,3     ## @GG82563_MAX_KMRN_RETRY
	.comm	_HALF_DUPLEX,8,3                ## @HALF_DUPLEX
	.comm	_GG82563_KMCR_PASS_FALSE_CARRIER,8,3 ## @GG82563_KMCR_PASS_FALSE_CARRIER
	.no_dead_strip	_e1000_cfg_kmrn_10_100_80003es2lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_cfg_kmrn_10_100_80003es2lan
_e1000_cfg_kmrn_10_100_80003es2lan:     ; @e1000_cfg_kmrn_10_100_80003es2lan
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	str	x2, [sp, #8]
Lloh3:
	adrp	x8, _E1000_KMRNCTRLSTA_OFFSET_HD_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_KMRNCTRLSTA_OFFSET_HD_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_e1000_write_kmrn_reg_80003es2lan
	cbz	x0, LBB0_2
LBB0_1:
	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_2:
Lloh6:
	adrp	x21, _TIPG@GOTPAGE
Lloh7:
	ldr	x21, [x21, _TIPG@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
Lloh8:
	adrp	x8, _E1000_TIPG_IPGT_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_TIPG_IPGT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	bic	x8, x0, x8
Lloh11:
	adrp	x9, _DEFAULT_TIPG_IPGT_10_100_80003ES2LAN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DEFAULT_TIPG_IPGT_10_100_80003ES2LAN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	orr	x1, x8, x9
	ldr	w0, [x21]
	bl	_ew32
	mov	w22, #1
Lloh14:
	adrp	x21, _GG82563_PHY_KMRN_MODE_CTRL@GOTPAGE
Lloh15:
	ldr	x21, [x21, _GG82563_PHY_KMRN_MODE_CTRL@GOTPAGEOFF]
Lloh16:
	adrp	x23, _GG82563_MAX_KMRN_RETRY@GOTPAGE
Lloh17:
	ldr	x23, [x23, _GG82563_MAX_KMRN_RETRY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [sp]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x22, x10, #0, ne
	add	x22, x22, #1
	b.lt	LBB0_3
; %bb.6:
Lloh18:
	adrp	x9, _HALF_DUPLEX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HALF_DUPLEX@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x10, _GG82563_KMCR_PASS_FALSE_CARRIER@GOTPAGE
Lloh22:
	ldr	x10, [x10, _GG82563_KMCR_PASS_FALSE_CARRIER@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	bic	x11, x8, x10
	orr	x8, x10, x8
	cmp	x9, x20
	csel	x2, x8, x11, eq
	str	x2, [sp, #8]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_e1e_wphy
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT,8,3 ; @E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT
	.comm	_E1000_KMRNCTRLSTA_OFFSET_HD_CTRL,4,2 ; @E1000_KMRNCTRLSTA_OFFSET_HD_CTRL
	.comm	_TIPG,4,2                       ; @TIPG
	.comm	_E1000_TIPG_IPGT_MASK,8,3       ; @E1000_TIPG_IPGT_MASK
	.comm	_DEFAULT_TIPG_IPGT_10_100_80003ES2LAN,8,3 ; @DEFAULT_TIPG_IPGT_10_100_80003ES2LAN
	.comm	_GG82563_PHY_KMRN_MODE_CTRL,4,2 ; @GG82563_PHY_KMRN_MODE_CTRL
	.comm	_GG82563_MAX_KMRN_RETRY,8,3     ; @GG82563_MAX_KMRN_RETRY
	.comm	_HALF_DUPLEX,8,3                ; @HALF_DUPLEX
	.comm	_GG82563_KMCR_PASS_FALSE_CARRIER,8,3 ; @GG82563_KMCR_PASS_FALSE_CARRIER
	.no_dead_strip	_e1000_cfg_kmrn_10_100_80003es2lan
.subsections_via_symbols
