	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_set_eee
_qede_set_eee:                          ## @qede_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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	(%rbx), %edi
	callq	*16(%rax)
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	leaq	-96(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	*8(%rax)
	cmpl	$0, -72(%rbp)
	je	LBB0_10
## %bb.2:
	leaq	-64(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movq	_QED_LINK_OVERRIDE_EEE_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -44(%rbp)
	movl	(%r14), %ecx
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	orl	%edx, %esi
	andl	%ecx, %esi
	je	LBB0_11
## %bb.3:
	cmpl	%ecx, %esi
	jne	LBB0_11
## %bb.4:
	testl	%ecx, %edx
	je	LBB0_6
## %bb.5:
	movq	_QED_EEE_1G_ADV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -48(%rbp)
LBB0_6:
	testl	%ecx, %eax
	je	LBB0_8
## %bb.7:
	movq	_QED_EEE_10G_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -48(%rbp)
LBB0_8:
	movl	12(%r14), %eax
	movl	%eax, -52(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -56(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -60(%rbp)
	movl	$1, -64(%rbp)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rbx), %edi
	leaq	-64(%rbp), %rsi
	callq	*(%rax)
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_INFO
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_INFO
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_QED_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_DP_VERBOSE
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link settings are not allowed to be changed\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"EEE is not supported\n"

	.comm	_QED_LINK_OVERRIDE_EEE_CONFIG,4,2 ## @QED_LINK_OVERRIDE_EEE_CONFIG
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_ADVERTISED_10000baseT_Full,4,2 ## @ADVERTISED_10000baseT_Full
	.comm	_QED_MSG_DEBUG,4,2              ## @QED_MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"Invalid advertised capabilities %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_EEE_1G_ADV,4,2             ## @QED_EEE_1G_ADV
	.comm	_QED_EEE_10G_ADV,4,2            ## @QED_EEE_10G_ADV
	.no_dead_strip	_qede_set_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_set_eee
_qede_set_eee:                          ; @qede_set_eee
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	ldr	w0, [x0]
	blr	x8
	cbz	w0, LBB0_4
; %bb.1:
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w0, [x19]
	add	x1, sp, #32
	blr	x8
	ldr	w8, [sp, #56]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #28
	bl	_memset
Lloh0:
	adrp	x8, _QED_LINK_OVERRIDE_EEE_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_LINK_OVERRIDE_EEE_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [sp, #20]
	orr	w8, w9, w8
	str	w8, [sp, #20]
	ldr	w3, [x20]
Lloh3:
	adrp	x8, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh5:
	adrp	x10, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
Lloh8:
	ldr	w8, [x10]
	orr	w10, w8, w9
	and	w10, w10, w3
	cmp	w10, #0
	ccmp	w10, w3, #0, ne
	b.eq	LBB0_9
; %bb.3:
Lloh9:
	adrp	x8, _QED_MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QED_MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_DP_INFO
Lloh20:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	tst	w9, w3
	b.eq	LBB0_11
; %bb.10:
Lloh22:
	adrp	x9, _QED_EEE_1G_ADV@GOTPAGE
Lloh23:
	ldr	x9, [x9, _QED_EEE_1G_ADV@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	str	w9, [sp, #16]
LBB0_11:
	tst	w8, w3
	b.eq	LBB0_13
; %bb.12:
Lloh25:
	adrp	x8, _QED_EEE_10G_ADV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _QED_EEE_10G_ADV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
LBB0_13:
	ldr	w8, [x20, #12]
	str	w8, [sp, #12]
	ldur	d0, [x20, #4]
	stur	d0, [sp, #4]
	mov	w8, #1
	str	w8, [sp]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x19]
	mov	x1, sp
	blr	x8
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link settings are not allowed to be changed\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"EEE is not supported\n"

	.comm	_QED_LINK_OVERRIDE_EEE_CONFIG,4,2 ; @QED_LINK_OVERRIDE_EEE_CONFIG
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_ADVERTISED_10000baseT_Full,4,2 ; @ADVERTISED_10000baseT_Full
	.comm	_QED_MSG_DEBUG,4,2              ; @QED_MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"Invalid advertised capabilities %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_EEE_1G_ADV,4,2             ; @QED_EEE_1G_ADV
	.comm	_QED_EEE_10G_ADV,4,2            ; @QED_EEE_10G_ADV
	.no_dead_strip	_qede_set_eee
.subsections_via_symbols
