	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_set_eee
_igb_set_eee:                           ## @igb_set_eee
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	24(%rax), %rax
	movq	_e1000_i350@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	16(%r12), %rax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movq	%r12, %r14
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_igb_get_eee
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.5:
	cmpq	$0, -56(%rbp)
	je	LBB0_17
## %bb.6:
	movq	-72(%rbp), %rax
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.9:
	cmpq	$0, 24(%r13)
	je	LBB0_11
## %bb.10:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	16(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_13
## %bb.18:
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_8:
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	movq	-64(%rbp), %rax
	cmpq	8(%r13), %rax
	jne	LBB0_16
## %bb.12:
	movq	16(%r13), %rax
LBB0_13:
	addq	$8, %r12
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	xorl	%ebx, %ebx
	cmpl	%ecx, (%r12)
	je	LBB0_20
## %bb.14:
	movl	%ecx, (%r12)
	movq	%r12, %rdi
	callq	_igb_set_eee_i350
	movq	%r15, %rdi
	callq	_netif_running
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	callq	_igb_reinit_locked
	jmp	LBB0_20
LBB0_16:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_19:
	callq	_igb_reset
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_i350,8,3                 ## @e1000_i350
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting EEE tx-lpi is not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Setting EEE Tx LPI timer is not supported\n"

L_.str.2:                               ## @.str.2
	.asciz	"Setting EEE Advertisement is not supported\n"

L_.str.3:                               ## @.str.3
	.asciz	"Setting EEE options are not supported with EEE disabled\n"

	.no_dead_strip	_igb_set_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_set_eee
_igb_set_eee:                           ; @igb_set_eee
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	x8, [x0, #24]
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	x19, x0
	ldr	x8, [x0, #16]
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	x1, sp
	mov	x0, x20
	bl	_igb_get_eee
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_10
; %bb.4:
	ldr	x8, [sp]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.5:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_14
; %bb.6:
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_16
; %bb.11:
	ldr	x0, [x19]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_12:
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:
	bl	_dev_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_14:
	ldr	x8, [sp, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.15:
	ldr	x8, [x21, #16]
LBB0_16:
	add	x0, x19, #8
	ldr	w9, [x0]
	cmp	x8, #0
	cset	w8, eq
	cmp	w9, w8
	b.eq	LBB0_21
; %bb.17:
	str	w8, [x0]
	bl	_igb_set_eee_i350
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_20
; %bb.18:
	mov	x0, x19
	bl	_igb_reinit_locked
	b	LBB0_21
LBB0_19:
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_20:
	mov	x0, x19
	bl	_igb_reset
LBB0_21:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_i350,8,3                 ; @e1000_i350
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting EEE tx-lpi is not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Setting EEE Tx LPI timer is not supported\n"

l_.str.2:                               ; @.str.2
	.asciz	"Setting EEE Advertisement is not supported\n"

l_.str.3:                               ; @.str.3
	.asciz	"Setting EEE options are not supported with EEE disabled\n"

	.no_dead_strip	_igb_set_eee
.subsections_via_symbols
