	.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, %r12
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	16(%rax), %rax
	movq	_e1000_i350@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	32(%r15), %rax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	%r15, %r14
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_igb_get_eee
	testl	%eax, %eax
	jne	LBB0_28
## %bb.4:
	cmpq	$0, -64(%rbp)
	je	LBB0_12
## %bb.5:
	movq	-80(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_6
## %bb.7:
	cmpq	$0, 24(%r12)
	je	LBB0_9
## %bb.8:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_26
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_27:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpq	$0, 16(%r12)
	je	LBB0_14
## %bb.13:
	movl	8(%r12), %edi
	movl	$1, %r13d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_16:
	addq	$16, %r15
	callq	_ethtool_adv_to_mmd_eee_adv_t
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	cmpq	$0, 16(%r12)
	sete	%al
	cmpl	%eax, 24(%r14)
	je	LBB0_20
## %bb.17:
	movl	%eax, 24(%r14)
	movq	_IGB_FLAG_EEE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	%rbx, %rdi
	callq	_netif_running
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	callq	_igb_reinit_locked
	jmp	LBB0_20
LBB0_6:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_26
LBB0_14:
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_26
LBB0_9:
	movl	8(%r12), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.10:
	movq	_ADVERTISE_100_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ADVERTISE_1000_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	orl	%ecx, %edx
	notl	%edx
	testl	%edx, %edi
	je	LBB0_15
LBB0_11:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_26
LBB0_19:
	callq	_igb_reset
LBB0_20:
	movq	(%r15), %rax
	movq	_e1000_i354@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_igb_set_eee_i354
	jmp	LBB0_23
LBB0_22:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_igb_set_eee_i350
LBB0_23:
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:
	movq	(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
LBB0_26:
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_27
LBB0_24:
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_15:
	xorl	%edx, %edx
	testl	%edi, %ecx
	setne	%dl
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	testl	%edi, %eax
	setne	%r13b
	jmp	LBB0_16
	.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"

	.comm	_ADVERTISE_100_FULL,4,2         ## @ADVERTISE_100_FULL
	.comm	_ADVERTISE_1000_FULL,4,2        ## @ADVERTISE_1000_FULL
L_.str.2:                               ## @.str.2
	.asciz	"EEE Advertisement supports only 100Tx and/or 100T full duplex\n"

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

	.comm	_IGB_FLAG_EEE,4,2               ## @IGB_FLAG_EEE
	.comm	_e1000_i354,8,3                 ## @e1000_i354
L_.str.4:                               ## @.str.4
	.asciz	"Problem setting EEE advertisement options\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, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x20, #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	x19, x0
	ldr	x8, [x0, #32]
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	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x1, sp
	mov	x0, x21
	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, [x22]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.5:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_17
; %bb.6:
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_26
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, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_16
; %bb.11:
	ldr	w0, [x22, #8]
	mov	w23, #1
	mov	w24, #1
LBB0_12:
	bl	_ethtool_adv_to_mmd_eee_adv_t
	str	w0, [x19, #12]
	ldr	w9, [x19, #24]
	ldr	x8, [x22, #16]
	cmp	x8, #0
	cset	w8, eq
	cmp	w9, w8
	b.eq	LBB0_21
; %bb.13:
	str	w8, [x19, #24]
Lloh10:
	adrp	x8, _IGB_FLAG_EEE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IGB_FLAG_EEE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_20
; %bb.14:
	mov	x0, x19
	bl	_igb_reinit_locked
	b	LBB0_21
LBB0_15:
	ldr	x0, [x19]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_26
LBB0_16:
	ldr	x0, [x19]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_26
LBB0_17:
	ldr	w0, [x22, #8]
	cbz	w0, LBB0_19
; %bb.18:
Lloh17:
	adrp	x8, _ADVERTISE_100_FULL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ADVERTISE_100_FULL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x8]
Lloh20:
	adrp	x8, _ADVERTISE_1000_FULL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ADVERTISE_1000_FULL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w10, w8, w9
	bics	wzr, w0, w10
	b.eq	LBB0_27
LBB0_19:
	ldr	x0, [x19]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_26
LBB0_20:
	mov	x0, x19
	bl	_igb_reset
LBB0_21:
	ldr	x8, [x20]
Lloh25:
	adrp	x9, _e1000_i354@GOTPAGE
Lloh26:
	ldr	x9, [x9, _e1000_i354@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:
	bl	_igb_set_eee_i354
	b	LBB0_24
LBB0_23:
	bl	_igb_set_eee_i350
LBB0_24:
	cbz	w0, LBB0_9
; %bb.25:
	ldr	x0, [x19]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_26:
	bl	_dev_err
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_27:
	tst	w9, w0
	cset	w24, ne
	tst	w8, w0
	cset	w23, ne
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.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"

	.comm	_ADVERTISE_100_FULL,4,2         ; @ADVERTISE_100_FULL
	.comm	_ADVERTISE_1000_FULL,4,2        ; @ADVERTISE_1000_FULL
l_.str.2:                               ; @.str.2
	.asciz	"EEE Advertisement supports only 100Tx and/or 100T full duplex\n"

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

	.comm	_IGB_FLAG_EEE,4,2               ; @IGB_FLAG_EEE
	.comm	_e1000_i354,8,3                 ; @e1000_i354
l_.str.4:                               ; @.str.4
	.asciz	"Problem setting EEE advertisement options\n"

	.no_dead_strip	_igb_set_eee
.subsections_via_symbols
