	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_set_eeprom
_i40e_set_eeprom:                       ## @i40e_set_eeprom
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movl	$0, -28(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, %edx
	shll	$16, %edx
	orl	12(%rbx), %edx
	movl	(%r15), %ecx
	cmpl	%edx, %ecx
	jne	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	sarl	$16, %ecx
	cmpl	%eax, %ecx
	jne	LBB0_5
## %bb.6:
	movq	___I40E_RESET_RECOVERY_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	___I40E_RESET_INTR_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	subl	(%rax), %r8d
	movl	%r8d, -28(%rbp)
LBB0_10:
	xorl	%eax, %eax
	movl	%r8d, %ecx
	orl	%edx, %ecx
	je	LBB0_14
## %bb.11:
	movq	_I40E_DEBUG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%rbx)
	je	LBB0_12
## %bb.13:
	movq	(%rbx), %rdi
	movl	24(%rbx), %ecx
	movq	_I40E_NVM_MOD_PNT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	andl	(%r15), %r9d
	movl	4(%r15), %eax
	movl	8(%r15), %ebx
	leaq	L_.str(%rip), %rsi
	pushq	%rax
	pushq	%rbx
	callq	_dev_info
	addq	$16, %rsp
	movl	-28(%rbp), %eax
	jmp	LBB0_14
LBB0_12:
	movl	%r8d, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	12(%rbx), %rdi
	leaq	-28(%rbp), %rcx
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_i40e_nvmupd_command
	movl	%eax, %edx
	movl	-28(%rbp), %r8d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	___I40E_RESET_RECOVERY_PENDING,4,2 ## @__I40E_RESET_RECOVERY_PENDING
	.comm	___I40E_RESET_INTR_RECEIVED,4,2 ## @__I40E_RESET_INTR_RECEIVED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_I40E_DEBUG_NVM,4,2             ## @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVMUpdate write failed err=%d status=0x%x errno=%d module=%d offset=0x%x size=%d\n"

	.comm	_I40E_NVM_MOD_PNT_MASK,4,2      ## @I40E_NVM_MOD_PNT_MASK
	.no_dead_strip	_i40e_set_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_set_eeprom
_i40e_set_eeprom:                       ; @i40e_set_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x22, [x8]
	mov	x21, x22
	ldr	w9, [x21, #12]!
	str	wzr, [sp, #12]
	ldr	w8, [x22, #16]
	orr	w10, w9, w8, lsl #16
	ldr	w9, [x19]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
	mov	w2, #0
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	asr	w10, w9, #16
	cmp	w9, #0
	ccmp	w10, w8, #0, ne
	b.eq	LBB0_4
; %bb.3:
	mov	w2, #0
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh4:
	adrp	x8, ___I40E_RESET_RECOVERY_PENDING@GOTPAGE
Lloh5:
	ldr	x8, [x8, ___I40E_RESET_RECOVERY_PENDING@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x22, #8]
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, ___I40E_RESET_INTR_RECEIVED@GOTPAGE
Lloh8:
	ldr	x8, [x8, ___I40E_RESET_INTR_RECEIVED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x22, #8]
	bl	_test_bit
	cbz	x0, LBB0_10
LBB0_6:
	mov	w2, #0
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w4, w8
	str	w4, [sp, #12]
	orr	w8, w4, w2
	cbz	w8, LBB0_11
LBB0_8:
	ldr	w8, [x22, #20]
Lloh12:
	adrp	x9, _I40E_DEBUG_NVM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I40E_DEBUG_NVM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	ldr	x0, [x22]
Lloh15:
	adrp	x8, _I40E_NVM_MOD_PNT_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40E_NVM_MOD_PNT_MASK@GOTPAGEOFF]
	ldr	w3, [x22, #24]
Lloh17:
	ldr	w8, [x8]
	ldp	w9, w7, [x19]
	and	w5, w8, w9
	ldr	w6, [x19, #8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w4, [sp, #12]
	b	LBB0_12
LBB0_10:
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_i40e_nvmupd_command
	mov	x2, x0
	ldr	w4, [sp, #12]
	orr	w8, w4, w2
	cbnz	w8, LBB0_8
LBB0_11:
	mov	w4, #0
LBB0_12:
	mov	x0, x4
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	___I40E_RESET_RECOVERY_PENDING,4,2 ; @__I40E_RESET_RECOVERY_PENDING
	.comm	___I40E_RESET_INTR_RECEIVED,4,2 ; @__I40E_RESET_INTR_RECEIVED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_I40E_DEBUG_NVM,4,2             ; @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVMUpdate write failed err=%d status=0x%x errno=%d module=%d offset=0x%x size=%d\n"

	.comm	_I40E_NVM_MOD_PNT_MASK,4,2      ; @I40E_NVM_MOD_PNT_MASK
	.no_dead_strip	_i40e_set_eeprom
.subsections_via_symbols
