	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_config_mac_to_phy
_e1000_config_mac_to_phy:               ## @e1000_config_mac_to_phy
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_e1000_82544@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	_e1000_ce4100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_2:
	movq	_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_er32
	movq	_E1000_CTRL_FRCSPD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_E1000_CTRL_FRCDPX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_E1000_CTRL_SPD_SEL@GOTPCREL(%rip), %rcx
	movq	_E1000_CTRL_ILOS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	cmpl	$128, 8(%r12)
	jne	LBB0_8
## %bb.3:
	movq	_PHY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	_e1000_read_phy_reg
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movl	-36(%rbp), %eax
	movq	_RTL_PHY_CTRL_FD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_E1000_CTRL_FD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	movl	%r14d, %edx
	orl	%ebx, %edx
	notl	%r14d
	andl	%ebx, %r14d
	testl	%ecx, %ecx
	cmovnel	%edx, %r14d
	movq	_RTL_PHY_CTRL_SPD_100@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	_E1000_CTRL_SPD_10@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movq	_M88E1000_PHY_SPEC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	_e1000_read_phy_reg
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	movq	_M88E1000_PSSR_DPLX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-36(%rbp), %eax
	movq	_E1000_CTRL_FD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%r14d, %ecx
	orl	%ebx, %ecx
	notl	%r14d
	andl	%ebx, %r14d
	testl	%eax, %eax
	cmovnel	%ecx, %r14d
	movq	%r12, %rdi
	callq	_e1000_config_collision_dist
	movq	_M88E1000_PSSR_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-36(%rbp), %eax
	movq	_M88E1000_PSSR_1000MBS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	movq	_E1000_CTRL_SPD_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movq	_E1000_CTRL_SPD_100@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_e1000_config_collision_dist
	jmp	LBB0_14
LBB0_11:
	movq	_M88E1000_PSSR_100MBS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.12:
	movq	_E1000_CTRL_SPD_100@GOTPCREL(%rip), %rax
LBB0_13:
	orl	(%rax), %r14d
LBB0_14:
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_ew32
LBB0_15:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_82544,8,3                ## @e1000_82544
	.comm	_e1000_ce4100,8,3               ## @e1000_ce4100
	.comm	_E1000_SUCCESS,4,2              ## @E1000_SUCCESS
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_FRCSPD,4,2          ## @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ## @E1000_CTRL_FRCDPX
	.comm	_E1000_CTRL_SPD_SEL,4,2         ## @E1000_CTRL_SPD_SEL
	.comm	_E1000_CTRL_ILOS,4,2            ## @E1000_CTRL_ILOS
	.comm	_PHY_CTRL,4,2                   ## @PHY_CTRL
	.comm	_RTL_PHY_CTRL_FD,4,2            ## @RTL_PHY_CTRL_FD
	.comm	_E1000_CTRL_FD,4,2              ## @E1000_CTRL_FD
	.comm	_RTL_PHY_CTRL_SPD_100,4,2       ## @RTL_PHY_CTRL_SPD_100
	.comm	_E1000_CTRL_SPD_100,4,2         ## @E1000_CTRL_SPD_100
	.comm	_E1000_CTRL_SPD_10,4,2          ## @E1000_CTRL_SPD_10
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ## @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_DPLX,4,2         ## @M88E1000_PSSR_DPLX
	.comm	_M88E1000_PSSR_SPEED,4,2        ## @M88E1000_PSSR_SPEED
	.comm	_M88E1000_PSSR_1000MBS,4,2      ## @M88E1000_PSSR_1000MBS
	.comm	_E1000_CTRL_SPD_1000,4,2        ## @E1000_CTRL_SPD_1000
	.comm	_M88E1000_PSSR_100MBS,4,2       ## @M88E1000_PSSR_100MBS
	.no_dead_strip	_e1000_config_mac_to_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_config_mac_to_phy
_e1000_config_mac_to_phy:               ; @e1000_config_mac_to_phy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_82544@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_82544@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _e1000_ce4100@GOTPAGE
Lloh4:
	ldr	x10, [x10, _e1000_ce4100@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ge
	b.ne	LBB0_11
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x21, _CTRL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CTRL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
Lloh8:
	adrp	x8, _E1000_CTRL_FRCSPD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_CTRL_FRCSPD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _E1000_CTRL_FRCDPX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _E1000_CTRL_FRCDPX@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _E1000_CTRL_SPD_SEL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _E1000_CTRL_SPD_SEL@GOTPAGEOFF]
Lloh16:
	adrp	x10, _E1000_CTRL_ILOS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _E1000_CTRL_ILOS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w20, w8, w9
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
Lloh20:
	adrp	x8, _PHY_CTRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PHY_CTRL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	w0, LBB0_12
; %bb.3:
	ldr	w8, [sp, #12]
Lloh23:
	adrp	x9, _RTL_PHY_CTRL_FD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RTL_PHY_CTRL_FD@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _E1000_CTRL_FD@GOTPAGE
Lloh27:
	ldr	x10, [x10, _E1000_CTRL_FD@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w11, w10, w20
	bic	w10, w20, w10
	tst	w9, w8
	csel	w9, w10, w11, eq
Lloh29:
	adrp	x10, _RTL_PHY_CTRL_SPD_100@GOTPAGE
Lloh30:
	ldr	x10, [x10, _RTL_PHY_CTRL_SPD_100@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
Lloh32:
	adrp	x11, _E1000_CTRL_SPD_10@GOTPAGE
Lloh33:
	ldr	x11, [x11, _E1000_CTRL_SPD_10@GOTPAGEOFF]
Lloh34:
	adrp	x12, _E1000_CTRL_SPD_100@GOTPAGE
Lloh35:
	ldr	x12, [x12, _E1000_CTRL_SPD_100@GOTPAGEOFF]
	tst	w10, w8
	csel	x8, x11, x12, eq
	ldr	w8, [x8]
	orr	w20, w8, w9
	mov	x0, x19
	bl	_e1000_config_collision_dist
	b	LBB0_10
LBB0_4:
Lloh36:
	adrp	x8, _M88E1000_PHY_SPEC_STATUS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _M88E1000_PHY_SPEC_STATUS@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	w8, [sp, #12]
Lloh39:
	adrp	x9, _M88E1000_PSSR_DPLX@GOTPAGE
Lloh40:
	ldr	x9, [x9, _M88E1000_PSSR_DPLX@GOTPAGEOFF]
Lloh41:
	adrp	x10, _E1000_CTRL_FD@GOTPAGE
Lloh42:
	ldr	x10, [x10, _E1000_CTRL_FD@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
Lloh44:
	ldr	w10, [x10]
	orr	w11, w10, w20
	bic	w10, w20, w10
	tst	w9, w8
	csel	w20, w10, w11, eq
	mov	x0, x19
	bl	_e1000_config_collision_dist
	ldr	w8, [sp, #12]
Lloh45:
	adrp	x9, _M88E1000_PSSR_SPEED@GOTPAGE
Lloh46:
	ldr	x9, [x9, _M88E1000_PSSR_SPEED@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh48:
	adrp	x9, _M88E1000_PSSR_1000MBS@GOTPAGE
Lloh49:
	ldr	x9, [x9, _M88E1000_PSSR_1000MBS@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
Lloh51:
	adrp	x8, _E1000_CTRL_SPD_1000@GOTPAGE
Lloh52:
	ldr	x8, [x8, _E1000_CTRL_SPD_1000@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh53:
	adrp	x9, _M88E1000_PSSR_100MBS@GOTPAGE
Lloh54:
	ldr	x9, [x9, _M88E1000_PSSR_100MBS@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.8:
Lloh56:
	adrp	x8, _E1000_CTRL_SPD_100@GOTPAGE
Lloh57:
	ldr	x8, [x8, _E1000_CTRL_SPD_100@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_10:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_ew32
LBB0_11:
Lloh58:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh59:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_82544,8,3                ; @e1000_82544
	.comm	_e1000_ce4100,8,3               ; @e1000_ce4100
	.comm	_E1000_SUCCESS,4,2              ; @E1000_SUCCESS
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_FRCSPD,4,2          ; @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ; @E1000_CTRL_FRCDPX
	.comm	_E1000_CTRL_SPD_SEL,4,2         ; @E1000_CTRL_SPD_SEL
	.comm	_E1000_CTRL_ILOS,4,2            ; @E1000_CTRL_ILOS
	.comm	_PHY_CTRL,4,2                   ; @PHY_CTRL
	.comm	_RTL_PHY_CTRL_FD,4,2            ; @RTL_PHY_CTRL_FD
	.comm	_E1000_CTRL_FD,4,2              ; @E1000_CTRL_FD
	.comm	_RTL_PHY_CTRL_SPD_100,4,2       ; @RTL_PHY_CTRL_SPD_100
	.comm	_E1000_CTRL_SPD_100,4,2         ; @E1000_CTRL_SPD_100
	.comm	_E1000_CTRL_SPD_10,4,2          ; @E1000_CTRL_SPD_10
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ; @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_DPLX,4,2         ; @M88E1000_PSSR_DPLX
	.comm	_M88E1000_PSSR_SPEED,4,2        ; @M88E1000_PSSR_SPEED
	.comm	_M88E1000_PSSR_1000MBS,4,2      ; @M88E1000_PSSR_1000MBS
	.comm	_E1000_CTRL_SPD_1000,4,2        ; @E1000_CTRL_SPD_1000
	.comm	_M88E1000_PSSR_100MBS,4,2       ; @M88E1000_PSSR_100MBS
	.no_dead_strip	_e1000_config_mac_to_phy
.subsections_via_symbols
