	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_set_eee_i354               ## -- Begin function igb_set_eee_i354
	.p2align	4, 0x90
_igb_set_eee_i354:                      ## @igb_set_eee_i354
	.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	8(%rdi), %rax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_M88E1543_E_PHY_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	movq	_M88E1512_E_PHY_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.7:
	movq	_E1000_EEE_ADV_ADDR_I354@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_E1000_EEE_ADV_DEV_I354@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_igb_read_xmdio_reg
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:
	movq	_E1000_EEE_ADV_100_SUPPORTED@GOTPCREL(%rip), %rax
	movq	_E1000_EEE_ADV_1000_SUPPORTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	-44(%rbp), %ecx
LBB0_9:
	movl	%ecx, -44(%rbp)
	movq	_E1000_EEE_ADV_ADDR_I354@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_E1000_EEE_ADV_DEV_I354@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_igb_write_xmdio_reg
	jmp	LBB0_5
LBB0_10:
	movq	_E1000_M88E1543_PAGE_ADDR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$18, %edx
	callq	*24(%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.11:
	movq	_E1000_M88E1543_EEE_CTRL_1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*32(%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.12:
	movq	_E1000_M88E1543_EEE_CTRL_1_MS@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.13:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*24(%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.14:
	movq	_E1000_EEE_ADV_ADDR_I354@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_E1000_EEE_ADV_DEV_I354@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_igb_read_xmdio_reg
	testq	%rax, %rax
	jne	LBB0_5
## %bb.15:
	movq	_E1000_EEE_ADV_100_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.16:
	orl	-44(%rbp), %eax
	jmp	LBB0_18
LBB0_17:
	notl	%eax
	andl	-44(%rbp), %eax
LBB0_18:
	movq	_E1000_EEE_ADV_1000_SUPPORTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	orl	%eax, %ecx
	testl	%r14d, %r14d
	cmovel	%edx, %ecx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_M88E1543_E_PHY_ID,8,3          ## @M88E1543_E_PHY_ID
	.comm	_M88E1512_E_PHY_ID,8,3          ## @M88E1512_E_PHY_ID
	.comm	_E1000_M88E1543_PAGE_ADDR,4,2   ## @E1000_M88E1543_PAGE_ADDR
	.comm	_E1000_M88E1543_EEE_CTRL_1,4,2  ## @E1000_M88E1543_EEE_CTRL_1
	.comm	_E1000_M88E1543_EEE_CTRL_1_MS,4,2 ## @E1000_M88E1543_EEE_CTRL_1_MS
	.comm	_E1000_EEE_ADV_ADDR_I354,4,2    ## @E1000_EEE_ADV_ADDR_I354
	.comm	_E1000_EEE_ADV_DEV_I354,4,2     ## @E1000_EEE_ADV_DEV_I354
	.comm	_E1000_EEE_ADV_100_SUPPORTED,4,2 ## @E1000_EEE_ADV_100_SUPPORTED
	.comm	_E1000_EEE_ADV_1000_SUPPORTED,4,2 ## @E1000_EEE_ADV_1000_SUPPORTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_set_eee_i354               ; -- Begin function igb_set_eee_i354
	.p2align	2
_igb_set_eee_i354:                      ; @igb_set_eee_i354
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh3:
	adrp	x9, _M88E1543_E_PHY_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _M88E1543_E_PHY_ID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _M88E1512_E_PHY_ID@GOTPAGE
Lloh7:
	ldr	x10, [x10, _M88E1512_E_PHY_ID@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.3:
Lloh9:
	adrp	x8, _E1000_EEE_ADV_ADDR_I354@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_EEE_ADV_ADDR_I354@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _E1000_EEE_ADV_DEV_I354@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E1000_EEE_ADV_DEV_I354@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_igb_read_xmdio_reg
	cbnz	x0, LBB0_7
; %bb.4:
Lloh15:
	adrp	x8, _E1000_EEE_ADV_100_SUPPORTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E1000_EEE_ADV_100_SUPPORTED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _E1000_EEE_ADV_1000_SUPPORTED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _E1000_EEE_ADV_1000_SUPPORTED@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w3, w9, w8
LBB0_5:
	str	w3, [sp, #12]
Lloh21:
	adrp	x8, _E1000_EEE_ADV_ADDR_I354@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E1000_EEE_ADV_ADDR_I354@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _E1000_EEE_ADV_DEV_I354@GOTPAGE
Lloh25:
	ldr	x8, [x8, _E1000_EEE_ADV_DEV_I354@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_igb_write_xmdio_reg
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	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_8:
	mov	x21, x2
	mov	x20, x1
	ldr	x8, [x19, #24]
Lloh27:
	adrp	x22, _E1000_M88E1543_PAGE_ADDR@GOTPAGE
Lloh28:
	ldr	x22, [x22, _E1000_M88E1543_PAGE_ADDR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #18
	blr	x8
	cbnz	x0, LBB0_7
; %bb.9:
	ldr	x8, [x19, #32]
Lloh29:
	adrp	x23, _E1000_M88E1543_EEE_CTRL_1@GOTPAGE
Lloh30:
	ldr	x23, [x23, _E1000_M88E1543_EEE_CTRL_1@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_7
; %bb.10:
Lloh31:
	adrp	x8, _E1000_M88E1543_EEE_CTRL_1_MS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _E1000_M88E1543_EEE_CTRL_1_MS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #24]
	ldr	w1, [x23]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_7
; %bb.11:
	ldr	x8, [x19, #24]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	cbnz	x0, LBB0_7
; %bb.12:
Lloh34:
	adrp	x8, _E1000_EEE_ADV_ADDR_I354@GOTPAGE
Lloh35:
	ldr	x8, [x8, _E1000_EEE_ADV_ADDR_I354@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _E1000_EEE_ADV_DEV_I354@GOTPAGE
Lloh38:
	ldr	x8, [x8, _E1000_EEE_ADV_DEV_I354@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_igb_read_xmdio_reg
	cbnz	x0, LBB0_7
; %bb.13:
Lloh40:
	adrp	x8, _E1000_EEE_ADV_100_SUPPORTED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _E1000_EEE_ADV_100_SUPPORTED@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cbz	w21, LBB0_15
; %bb.14:
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	b	LBB0_16
LBB0_15:
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
LBB0_16:
Lloh43:
	adrp	x9, _E1000_EEE_ADV_1000_SUPPORTED@GOTPAGE
Lloh44:
	ldr	x9, [x9, _E1000_EEE_ADV_1000_SUPPORTED@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	bic	w10, w8, w9
	orr	w8, w9, w8
	cmp	w20, #0
	csel	w3, w10, w8, eq
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_M88E1543_E_PHY_ID,8,3          ; @M88E1543_E_PHY_ID
	.comm	_M88E1512_E_PHY_ID,8,3          ; @M88E1512_E_PHY_ID
	.comm	_E1000_M88E1543_PAGE_ADDR,4,2   ; @E1000_M88E1543_PAGE_ADDR
	.comm	_E1000_M88E1543_EEE_CTRL_1,4,2  ; @E1000_M88E1543_EEE_CTRL_1
	.comm	_E1000_M88E1543_EEE_CTRL_1_MS,4,2 ; @E1000_M88E1543_EEE_CTRL_1_MS
	.comm	_E1000_EEE_ADV_ADDR_I354,4,2    ; @E1000_EEE_ADV_ADDR_I354
	.comm	_E1000_EEE_ADV_DEV_I354,4,2     ; @E1000_EEE_ADV_DEV_I354
	.comm	_E1000_EEE_ADV_100_SUPPORTED,4,2 ; @E1000_EEE_ADV_100_SUPPORTED
	.comm	_E1000_EEE_ADV_1000_SUPPORTED,4,2 ; @E1000_EEE_ADV_1000_SUPPORTED
.subsections_via_symbols
