	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_init_nvm                  ## -- Begin function i40e_init_nvm
	.p2align	4, 0x90
_i40e_init_nvm:                         ## @i40e_init_nvm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_I40E_GLNVM_GENS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rd32
	movq	_I40E_GLNVM_GENS_SR_SIZE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_I40E_GLNVM_GENS_SR_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, %edi
	callq	_BIT
	movq	_I40E_SR_WORDS_IN_1KB@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	_I40E_GLNVM_FLA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rd32
	movq	_I40E_GLNVM_FLA_LOCKED_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_I40E_MAX_NVM_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$0, 4(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_2:
	movl	$1, 4(%rbx)
	movq	_I40E_ERR_NVM_BLANK_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_I40E_DEBUG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_i40e_debug
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_GLNVM_GENS,4,2            ## @I40E_GLNVM_GENS
	.comm	_I40E_GLNVM_GENS_SR_SIZE_MASK,4,2 ## @I40E_GLNVM_GENS_SR_SIZE_MASK
	.comm	_I40E_GLNVM_GENS_SR_SIZE_SHIFT,4,2 ## @I40E_GLNVM_GENS_SR_SIZE_SHIFT
	.comm	_I40E_SR_WORDS_IN_1KB,4,2       ## @I40E_SR_WORDS_IN_1KB
	.comm	_I40E_GLNVM_FLA,4,2             ## @I40E_GLNVM_FLA
	.comm	_I40E_GLNVM_FLA_LOCKED_MASK,4,2 ## @I40E_GLNVM_FLA_LOCKED_MASK
	.comm	_I40E_MAX_NVM_TIMEOUT,4,2       ## @I40E_MAX_NVM_TIMEOUT
	.comm	_I40E_ERR_NVM_BLANK_MODE,4,2    ## @I40E_ERR_NVM_BLANK_MODE
	.comm	_I40E_DEBUG_NVM,4,2             ## @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVM init error: unsupported blank mode.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_init_nvm                  ; -- Begin function i40e_init_nvm
	.p2align	2
_i40e_init_nvm:                         ; @i40e_init_nvm
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _I40E_GLNVM_GENS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_GLNVM_GENS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rd32
Lloh3:
	adrp	x8, _I40E_GLNVM_GENS_SR_SIZE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_GLNVM_GENS_SR_SIZE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _I40E_GLNVM_GENS_SR_SIZE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I40E_GLNVM_GENS_SR_SIZE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w0, w8, w9
	bl	_BIT
Lloh9:
	adrp	x8, _I40E_SR_WORDS_IN_1KB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_SR_WORDS_IN_1KB@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mul	w8, w8, w0
	str	w8, [x19]
Lloh12:
	adrp	x8, _I40E_GLNVM_FLA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40E_GLNVM_FLA@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rd32
Lloh15:
	adrp	x8, _I40E_GLNVM_FLA_LOCKED_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40E_GLNVM_FLA_LOCKED_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w20, #0
Lloh18:
	adrp	x8, _I40E_MAX_NVM_TIMEOUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40E_MAX_NVM_TIMEOUT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	wzr, w8, [x19, #4]
	b	LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh21:
	adrp	x8, _I40E_ERR_NVM_BLANK_MODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40E_ERR_NVM_BLANK_MODE@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
Lloh24:
	adrp	x8, _I40E_DEBUG_NVM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I40E_DEBUG_NVM@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_i40e_debug
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_GLNVM_GENS,4,2            ; @I40E_GLNVM_GENS
	.comm	_I40E_GLNVM_GENS_SR_SIZE_MASK,4,2 ; @I40E_GLNVM_GENS_SR_SIZE_MASK
	.comm	_I40E_GLNVM_GENS_SR_SIZE_SHIFT,4,2 ; @I40E_GLNVM_GENS_SR_SIZE_SHIFT
	.comm	_I40E_SR_WORDS_IN_1KB,4,2       ; @I40E_SR_WORDS_IN_1KB
	.comm	_I40E_GLNVM_FLA,4,2             ; @I40E_GLNVM_FLA
	.comm	_I40E_GLNVM_FLA_LOCKED_MASK,4,2 ; @I40E_GLNVM_FLA_LOCKED_MASK
	.comm	_I40E_MAX_NVM_TIMEOUT,4,2       ; @I40E_MAX_NVM_TIMEOUT
	.comm	_I40E_ERR_NVM_BLANK_MODE,4,2    ; @I40E_ERR_NVM_BLANK_MODE
	.comm	_I40E_DEBUG_NVM,4,2             ; @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVM init error: unsupported blank mode.\n"

.subsections_via_symbols
