	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_set_eee_i350               ## -- Begin function igb_set_eee_i350
	.p2align	4, 0x90
_igb_set_eee_i350:                      ## @igb_set_eee_i350
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movq	_e1000_i350@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	_E1000_IPCNFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movl	%eax, %r12d
	movq	_E1000_EEER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movl	%eax, %r14d
	cmpl	$0, (%rbx)
	je	LBB0_3
## %bb.5:
	movq	_E1000_IPCNFG_EEE_1G_AN@GOTPCREL(%rip), %rax
	movq	_E1000_IPCNFG_EEE_100M_AN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r12d
	movq	_E1000_EEER_TX_LPI_EN@GOTPCREL(%rip), %rax
	movq	_E1000_EEER_RX_LPI_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_E1000_EEER_LPI_FC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	_E1000_EEE_SU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	_E1000_IPCNFG_EEE_100M_AN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%r12d, %edx
	notl	%ecx
	andl	%r12d, %ecx
	testl	%r13d, %r13d
	cmovnel	%edx, %ecx
	movq	_E1000_IPCNFG_EEE_1G_AN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	movl	%r12d, %edx
	orl	%ecx, %edx
	notl	%r12d
	andl	%ecx, %r12d
	testl	%r15d, %r15d
	cmovnel	%edx, %r12d
	movq	_E1000_EEER_TX_LPI_EN@GOTPCREL(%rip), %rcx
	movq	_E1000_EEER_RX_LPI_EN@GOTPCREL(%rip), %rdx
	movq	_E1000_EEER_LPI_FC@GOTPCREL(%rip), %rsi
	orl	(%rcx), %r14d
	orl	(%rdx), %r14d
	orl	(%rsi), %r14d
	movq	_E1000_EEE_SU_LPI_CLK_STP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
LBB0_6:
	movq	_E1000_IPCNFG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%r12d, %esi
	callq	_wr32
	movq	_E1000_EEER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_wr32
	movl	(%r15), %edi
	callq	_rd32
	movl	(%rbx), %edi
	callq	_rd32
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_i350,8,3                 ## @e1000_i350
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_E1000_IPCNFG,4,2               ## @E1000_IPCNFG
	.comm	_E1000_EEER,4,2                 ## @E1000_EEER
	.comm	_E1000_EEE_SU,4,2               ## @E1000_EEE_SU
	.comm	_E1000_IPCNFG_EEE_100M_AN,4,2   ## @E1000_IPCNFG_EEE_100M_AN
	.comm	_E1000_IPCNFG_EEE_1G_AN,4,2     ## @E1000_IPCNFG_EEE_1G_AN
	.comm	_E1000_EEER_TX_LPI_EN,4,2       ## @E1000_EEER_TX_LPI_EN
	.comm	_E1000_EEER_RX_LPI_EN,4,2       ## @E1000_EEER_RX_LPI_EN
	.comm	_E1000_EEER_LPI_FC,4,2          ## @E1000_EEER_LPI_FC
	.comm	_E1000_EEE_SU_LPI_CLK_STP,4,2   ## @E1000_EEE_SU_LPI_CLK_STP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LPI Clock Stop Bit should not be set!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_set_eee_i350               ; -- Begin function igb_set_eee_i350
	.p2align	2
_igb_set_eee_i350:                      ; @igb_set_eee_i350
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _e1000_i350@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_i350@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh4:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	mov	x21, x2
	mov	x19, x1
Lloh6:
	adrp	x24, _E1000_IPCNFG@GOTPAGE
Lloh7:
	ldr	x24, [x24, _E1000_IPCNFG@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_rd32
	mov	x23, x0
Lloh8:
	adrp	x25, _E1000_EEER@GOTPAGE
Lloh9:
	ldr	x25, [x25, _E1000_EEER@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_rd32
	mov	x20, x0
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _E1000_IPCNFG_EEE_1G_AN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_IPCNFG_EEE_1G_AN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _E1000_IPCNFG_EEE_100M_AN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _E1000_IPCNFG_EEE_100M_AN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w19, w23, w8
Lloh16:
	adrp	x8, _E1000_EEER_TX_LPI_EN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E1000_EEER_TX_LPI_EN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _E1000_EEER_RX_LPI_EN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _E1000_EEER_RX_LPI_EN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _E1000_EEER_LPI_FC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _E1000_EEER_LPI_FC@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w20, w20, w8
	b	LBB0_6
LBB0_4:
Lloh25:
	adrp	x8, _E1000_EEE_SU@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E1000_EEE_SU@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_rd32
Lloh28:
	adrp	x8, _E1000_IPCNFG_EEE_100M_AN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _E1000_IPCNFG_EEE_100M_AN@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w9, w8, w23
	bic	w8, w23, w8
	cmp	w21, #0
	csel	w8, w8, w9, eq
Lloh31:
	adrp	x9, _E1000_IPCNFG_EEE_1G_AN@GOTPAGE
Lloh32:
	ldr	x9, [x9, _E1000_IPCNFG_EEE_1G_AN@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w8, w8, w9
	cmp	w19, #0
	csel	w19, w8, w10, eq
Lloh34:
	adrp	x8, _E1000_EEER_TX_LPI_EN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _E1000_EEER_TX_LPI_EN@GOTPAGEOFF]
Lloh36:
	adrp	x9, _E1000_EEER_RX_LPI_EN@GOTPAGE
Lloh37:
	ldr	x9, [x9, _E1000_EEER_RX_LPI_EN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	adrp	x10, _E1000_EEER_LPI_FC@GOTPAGE
Lloh41:
	ldr	x10, [x10, _E1000_EEER_LPI_FC@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w20, w8, w10
Lloh43:
	adrp	x8, _E1000_EEE_SU_LPI_CLK_STP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _E1000_EEE_SU_LPI_CLK_STP@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh46:
	adrp	x0, l_.str@PAGE
Lloh47:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
LBB0_6:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_wr32
	ldr	w0, [x25]
	mov	x1, x20
	bl	_wr32
	ldr	w0, [x24]
	bl	_rd32
	ldr	w0, [x25]
	bl	_rd32
LBB0_7:
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_i350,8,3                 ; @e1000_i350
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_E1000_IPCNFG,4,2               ; @E1000_IPCNFG
	.comm	_E1000_EEER,4,2                 ; @E1000_EEER
	.comm	_E1000_EEE_SU,4,2               ; @E1000_EEE_SU
	.comm	_E1000_IPCNFG_EEE_100M_AN,4,2   ; @E1000_IPCNFG_EEE_100M_AN
	.comm	_E1000_IPCNFG_EEE_1G_AN,4,2     ; @E1000_IPCNFG_EEE_1G_AN
	.comm	_E1000_EEER_TX_LPI_EN,4,2       ; @E1000_EEER_TX_LPI_EN
	.comm	_E1000_EEER_RX_LPI_EN,4,2       ; @E1000_EEER_RX_LPI_EN
	.comm	_E1000_EEER_LPI_FC,4,2          ; @E1000_EEER_LPI_FC
	.comm	_E1000_EEE_SU_LPI_CLK_STP,4,2   ; @E1000_EEE_SU_LPI_CLK_STP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LPI Clock Stop Bit should not be set!\n"

.subsections_via_symbols
