	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_set_d3_lplu_state_ich8lan
_e1000_set_d3_lplu_state_ich8lan:       ## @e1000_set_d3_lplu_state_ich8lan
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_PHY_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_er32
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.1:
	movq	24(%r14), %rcx
	movq	_E1000_ALL_SPEED_DUPLEX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.2:
	movq	_E1000_ALL_NOT_GIG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	movq	_E1000_ALL_10_SPEED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
LBB0_4:
	movq	_E1000_PHY_CTRL_NOND0A_LPLU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	8(%r14), %rax
	movq	_e1000_phy_igp_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.5:
	movq	(%r14), %rax
	movq	_e1000_ich8lan@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_e1000e_gig_downshift_workaround_ich8lan
LBB0_7:
	movq	_IGP01E1000_PHY_PORT_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_18
## %bb.8:
	movq	_IGP01E1000_PSCFR_SMART_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_e1e_wphy
	jmp	LBB0_18
LBB0_9:
	movq	_E1000_PHY_CTRL_NOND0A_LPLU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	8(%r14), %rax
	movq	_e1000_phy_igp_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.10:
	movq	16(%r14), %rax
	movq	_e1000_smart_speed_on@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	_IGP01E1000_PHY_PORT_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_18
## %bb.12:
	movq	_IGP01E1000_PSCFR_SMART_SPEED@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %edx
	orl	(%rax), %edx
	jmp	LBB0_16
LBB0_13:
	movq	_e1000_smart_speed_off@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.14:
	movq	_IGP01E1000_PHY_PORT_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_18
## %bb.15:
	movq	_IGP01E1000_PSCFR_SMART_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
LBB0_16:
	movl	%edx, -28(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_e1e_wphy
	testq	%rax, %rax
	jne	LBB0_18
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_CTRL,4,2                   ## @PHY_CTRL
	.comm	_E1000_PHY_CTRL_NOND0A_LPLU,4,2 ## @E1000_PHY_CTRL_NOND0A_LPLU
	.comm	_e1000_phy_igp_3,8,3            ## @e1000_phy_igp_3
	.comm	_e1000_smart_speed_on,8,3       ## @e1000_smart_speed_on
	.comm	_IGP01E1000_PHY_PORT_CONFIG,4,2 ## @IGP01E1000_PHY_PORT_CONFIG
	.comm	_IGP01E1000_PSCFR_SMART_SPEED,4,2 ## @IGP01E1000_PSCFR_SMART_SPEED
	.comm	_e1000_smart_speed_off,8,3      ## @e1000_smart_speed_off
	.comm	_E1000_ALL_SPEED_DUPLEX,8,3     ## @E1000_ALL_SPEED_DUPLEX
	.comm	_E1000_ALL_NOT_GIG,8,3          ## @E1000_ALL_NOT_GIG
	.comm	_E1000_ALL_10_SPEED,8,3         ## @E1000_ALL_10_SPEED
	.comm	_e1000_ich8lan,8,3              ## @e1000_ich8lan
	.no_dead_strip	_e1000_set_d3_lplu_state_ich8lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_set_d3_lplu_state_ich8lan
_e1000_set_d3_lplu_state_ich8lan:       ; @e1000_set_d3_lplu_state_ich8lan
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _PHY_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PHY_CTRL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
	cbz	w20, LBB0_5
; %bb.1:
	ldr	x8, [x19, #24]
Lloh2:
	adrp	x9, _E1000_ALL_SPEED_DUPLEX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _E1000_ALL_SPEED_DUPLEX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _E1000_ALL_NOT_GIG@GOTPAGE
Lloh6:
	ldr	x10, [x10, _E1000_ALL_NOT_GIG@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _E1000_ALL_10_SPEED@GOTPAGE
Lloh9:
	ldr	x11, [x11, _E1000_ALL_10_SPEED@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_13
; %bb.2:
Lloh11:
	adrp	x8, _E1000_PHY_CTRL_NOND0A_LPLU@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E1000_PHY_CTRL_NOND0A_LPLU@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x21]
	bl	_ew32
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _e1000_phy_igp_3@GOTPAGE
Lloh15:
	ldr	x9, [x9, _e1000_phy_igp_3@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.3:
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _e1000_ich8lan@GOTPAGE
Lloh18:
	ldr	x9, [x9, _e1000_ich8lan@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_e1000e_gig_downshift_workaround_ich8lan
	b	LBB0_10
LBB0_5:
Lloh20:
	adrp	x8, _E1000_PHY_CTRL_NOND0A_LPLU@GOTPAGE
Lloh21:
	ldr	x8, [x8, _E1000_PHY_CTRL_NOND0A_LPLU@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x21]
	bl	_ew32
	ldr	x8, [x19, #8]
Lloh23:
	adrp	x9, _e1000_phy_igp_3@GOTPAGE
Lloh24:
	ldr	x9, [x9, _e1000_phy_igp_3@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.6:
	ldr	x8, [x19, #16]
Lloh26:
	adrp	x9, _e1000_smart_speed_on@GOTPAGE
Lloh27:
	ldr	x9, [x9, _e1000_smart_speed_on@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
Lloh29:
	adrp	x20, _IGP01E1000_PHY_PORT_CONFIG@GOTPAGE
Lloh30:
	ldr	x20, [x20, _IGP01E1000_PHY_PORT_CONFIG@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_14
; %bb.8:
Lloh31:
	adrp	x8, _IGP01E1000_PSCFR_SMART_SPEED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IGP01E1000_PSCFR_SMART_SPEED@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	b	LBB0_12
LBB0_9:
Lloh34:
	adrp	x9, _e1000_smart_speed_off@GOTPAGE
Lloh35:
	ldr	x9, [x9, _e1000_smart_speed_off@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_10:
Lloh37:
	adrp	x20, _IGP01E1000_PHY_PORT_CONFIG@GOTPAGE
Lloh38:
	ldr	x20, [x20, _IGP01E1000_PHY_PORT_CONFIG@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_14
; %bb.11:
Lloh39:
	adrp	x8, _IGP01E1000_PSCFR_SMART_SPEED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IGP01E1000_PSCFR_SMART_SPEED@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
LBB0_12:
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1e_wphy
	b	LBB0_14
LBB0_13:
	mov	x0, #0
LBB0_14:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_CTRL,4,2                   ; @PHY_CTRL
	.comm	_E1000_PHY_CTRL_NOND0A_LPLU,4,2 ; @E1000_PHY_CTRL_NOND0A_LPLU
	.comm	_e1000_phy_igp_3,8,3            ; @e1000_phy_igp_3
	.comm	_e1000_smart_speed_on,8,3       ; @e1000_smart_speed_on
	.comm	_IGP01E1000_PHY_PORT_CONFIG,4,2 ; @IGP01E1000_PHY_PORT_CONFIG
	.comm	_IGP01E1000_PSCFR_SMART_SPEED,4,2 ; @IGP01E1000_PSCFR_SMART_SPEED
	.comm	_e1000_smart_speed_off,8,3      ; @e1000_smart_speed_off
	.comm	_E1000_ALL_SPEED_DUPLEX,8,3     ; @E1000_ALL_SPEED_DUPLEX
	.comm	_E1000_ALL_NOT_GIG,8,3          ; @E1000_ALL_NOT_GIG
	.comm	_E1000_ALL_10_SPEED,8,3         ; @E1000_ALL_10_SPEED
	.comm	_e1000_ich8lan,8,3              ; @e1000_ich8lan
	.no_dead_strip	_e1000_set_d3_lplu_state_ich8lan
.subsections_via_symbols
