	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_set_d0_lplu_state_82580
_igb_set_d0_lplu_state_82580:           ## @igb_set_d0_lplu_state_82580
	.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	_E1000_82580_PHY_POWER_MGMT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_rd32
	movq	_E1000_82580_PM_D0_LPLU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	orl	%eax, %ecx
	movq	_E1000_82580_PM_SPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
LBB0_6:
	andl	%ecx, %eax
LBB0_7:
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_wr32
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	notl	%ecx
	andl	%ecx, %eax
	movq	(%r14), %rcx
	movq	_e1000_smart_speed_on@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_E1000_82580_PM_SPD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	movq	_e1000_smart_speed_off@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.5:
	movq	_E1000_82580_PM_SPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_82580_PHY_POWER_MGMT,4,2 ## @E1000_82580_PHY_POWER_MGMT
	.comm	_E1000_82580_PM_D0_LPLU,4,2     ## @E1000_82580_PM_D0_LPLU
	.comm	_E1000_82580_PM_SPD,4,2         ## @E1000_82580_PM_SPD
	.comm	_e1000_smart_speed_on,8,3       ## @e1000_smart_speed_on
	.comm	_e1000_smart_speed_off,8,3      ## @e1000_smart_speed_off
	.no_dead_strip	_igb_set_d0_lplu_state_82580
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_set_d0_lplu_state_82580
_igb_set_d0_lplu_state_82580:           ; @igb_set_d0_lplu_state_82580
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _E1000_82580_PHY_POWER_MGMT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _E1000_82580_PHY_POWER_MGMT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_rd32
Lloh2:
	adrp	x8, _E1000_82580_PM_D0_LPLU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_82580_PM_D0_LPLU@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w20, LBB0_2
; %bb.1:
	orr	w8, w8, w0
Lloh5:
	adrp	x9, _E1000_82580_PM_SPD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _E1000_82580_PM_SPD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bic	w1, w8, w9
	b	LBB0_6
LBB0_2:
	bic	w1, w0, w8
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _e1000_smart_speed_on@GOTPAGE
Lloh9:
	ldr	x9, [x9, _e1000_smart_speed_on@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _E1000_82580_PM_SPD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E1000_82580_PM_SPD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w1, w8, w1
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x9, _e1000_smart_speed_off@GOTPAGE
Lloh15:
	ldr	x9, [x9, _e1000_smart_speed_off@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _E1000_82580_PM_SPD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E1000_82580_PM_SPD@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	bic	w1, w1, w8
LBB0_6:
	ldr	w0, [x21]
	bl	_wr32
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_82580_PHY_POWER_MGMT,4,2 ; @E1000_82580_PHY_POWER_MGMT
	.comm	_E1000_82580_PM_D0_LPLU,4,2     ; @E1000_82580_PM_D0_LPLU
	.comm	_E1000_82580_PM_SPD,4,2         ; @E1000_82580_PM_SPD
	.comm	_e1000_smart_speed_on,8,3       ; @e1000_smart_speed_on
	.comm	_e1000_smart_speed_off,8,3      ; @e1000_smart_speed_off
	.no_dead_strip	_igb_set_d0_lplu_state_82580
.subsections_via_symbols
