	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_read_nvm_module_data      ## -- Begin function i40e_read_nvm_module_data
	.p2align	4, 0x90
_i40e_read_nvm_module_data:             ## @i40e_read_nvm_module_data
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rdi, %r15
	movl	%ecx, -48(%rbp)
	movl	$0, -44(%rbp)
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_i40e_read_nvm_word
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_I40E_DEBUG_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%rax, %rcx
LBB0_3:
	callq	_i40e_debug
	jmp	LBB0_9
LBB0_4:
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_5:
	movl	-44(%rbp), %esi
	movl	%esi, %eax
	andl	$-32769, %eax                   ## imm = 0xFFFF7FFF
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	jne	LBB0_7
## %bb.6:
	movq	_I40E_ERR_BAD_PTR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_I40E_PTR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %eax
	je	LBB0_12
## %bb.8:
	notl	%eax
	andl	%eax, %esi
	movl	%esi, %r14d
	shrl	$31, %r14d
	addl	%esi, %r14d
	sarl	%r14d
	movl	%r14d, -44(%rbp)
	movq	_I40E_RESOURCE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i40e_acquire_nvm
	testq	%rax, %rax
	je	LBB0_14
LBB0_9:
	movq	_I40E_ERR_NVM@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rbx
LBB0_11:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	addl	%r12d, %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_i40e_read_nvm_buffer
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	%rax, %rbx
	movq	_I40E_DEBUG_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_i40e_debug
	jmp	LBB0_11
LBB0_14:
	shll	$12, %r14d
	addl	%r12d, %r14d
	addl	%r14d, %r14d
	addl	%r13d, %r13d
	movq	$0, (%rsp)
	movq	%rbx, %r8
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	$1, %r9d
	callq	_i40e_aq_read_nvm
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_i40e_release_nvm
	testq	%r14, %r14
	je	LBB0_11
## %bb.15:
	movq	_I40E_DEBUG_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rcx
	jmp	LBB0_3
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_DEBUG_ALL,4,2             ## @I40E_DEBUG_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reading nvm word failed.Error code: %d.\n"

	.comm	_I40E_ERR_NVM,8,3               ## @I40E_ERR_NVM
	.comm	_I40E_ERR_BAD_PTR,8,3           ## @I40E_ERR_BAD_PTR
	.comm	_I40E_PTR_TYPE,4,2              ## @I40E_PTR_TYPE
	.comm	_I40E_RESOURCE_READ,4,2         ## @I40E_RESOURCE_READ
L_.str.1:                               ## @.str.1
	.asciz	"Reading nvm aq failed.Error code: %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Reading nvm buffer failed.Error code: %d.\n"

	.comm	_I40E_NVM_INVALID_PTR_VAL,4,2   ## @I40E_NVM_INVALID_PTR_VAL
	.comm	_I40E_NVM_INVALID_VAL,4,2       ## @I40E_NVM_INVALID_VAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_read_nvm_module_data      ; -- Begin function i40e_read_nvm_module_data
	.p2align	2
_i40e_read_nvm_module_data:             ; @i40e_read_nvm_module_data
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	stp	wzr, w3, [sp, #8]
	cbz	x1, LBB0_4
; %bb.1:
	add	x2, sp, #8
	mov	x0, x19
	bl	_i40e_read_nvm_word
	cbz	x0, LBB0_5
; %bb.2:
	mov	x3, x0
Lloh0:
	adrp	x8, _I40E_DEBUG_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_DEBUG_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
LBB0_3:
	bl	_i40e_debug
	b	LBB0_9
LBB0_4:
	mov	w8, #0
	b	LBB0_7
LBB0_5:
	ldr	w8, [sp, #8]
	and	w9, w8, #0xffff7fff
	mov	w10, #32767
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _I40E_ERR_BAD_PTR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40E_ERR_BAD_PTR@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh7:
	adrp	x9, _I40E_PTR_TYPE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I40E_PTR_TYPE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
	bics	w8, w8, w9
	cinc	w8, w8, lt
	asr	w23, w8, #1
	str	w23, [sp, #8]
Lloh10:
	adrp	x8, _I40E_RESOURCE_READ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I40E_RESOURCE_READ@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i40e_acquire_nvm
	cbz	x0, LBB0_14
LBB0_9:
Lloh13:
	adrp	x8, _I40E_ERR_NVM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I40E_ERR_NVM@GOTPAGEOFF]
LBB0_10:
	ldr	x20, [x8]
LBB0_11:
	mov	x0, x20
	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_12:
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	bl	_i40e_read_nvm_buffer
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.13:
Lloh15:
	adrp	x8, _I40E_DEBUG_ALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40E_DEBUG_ALL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_i40e_debug
	b	LBB0_11
LBB0_14:
	add	w8, w22, w23, lsl #12
	lsl	w2, w8, #1
	lsl	w3, w21, #1
	mov	x0, x19
	mov	w1, #0
	mov	x4, x20
	mov	w5, #1
	mov	x6, #0
	bl	_i40e_aq_read_nvm
	mov	x20, x0
	mov	x0, x19
	bl	_i40e_release_nvm
	cbz	x20, LBB0_11
; %bb.15:
Lloh20:
	adrp	x8, _I40E_DEBUG_ALL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I40E_DEBUG_ALL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_DEBUG_ALL,4,2             ; @I40E_DEBUG_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reading nvm word failed.Error code: %d.\n"

	.comm	_I40E_ERR_NVM,8,3               ; @I40E_ERR_NVM
	.comm	_I40E_ERR_BAD_PTR,8,3           ; @I40E_ERR_BAD_PTR
	.comm	_I40E_PTR_TYPE,4,2              ; @I40E_PTR_TYPE
	.comm	_I40E_RESOURCE_READ,4,2         ; @I40E_RESOURCE_READ
l_.str.1:                               ; @.str.1
	.asciz	"Reading nvm aq failed.Error code: %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Reading nvm buffer failed.Error code: %d.\n"

	.comm	_I40E_NVM_INVALID_PTR_VAL,4,2   ; @I40E_NVM_INVALID_PTR_VAL
	.comm	_I40E_NVM_INVALID_VAL,4,2       ; @I40E_NVM_INVALID_VAL
.subsections_via_symbols
