	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_nvmupd_clear_wait_state   ## -- Begin function i40e_nvmupd_clear_wait_state
	.p2align	4, 0x90
_i40e_nvmupd_clear_wait_state:          ## @i40e_nvmupd_clear_wait_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_I40E_DEBUG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rdi), %rcx
	leaq	L_.str(%rip), %rdx
	callq	_i40e_debug
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_i40e_release_nvm
	movl	$0, (%rbx)
LBB0_2:
	movq	$0, 16(%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_I40E_NVMUPD_STATE_ERROR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movl	4(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.6:
	movq	_I40E_NVMUPD_STATE_INIT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_I40E_NVMUPD_STATE_WRITING@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_DEBUG_NVM,4,2             ## @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVMUPD: clearing wait on opcode 0x%04x\n"

	.comm	_I40E_NVMUPD_STATE_ERROR,4,2    ## @I40E_NVMUPD_STATE_ERROR
	.comm	_I40E_NVMUPD_STATE_INIT,4,2     ## @I40E_NVMUPD_STATE_INIT
	.comm	_I40E_NVMUPD_STATE_WRITING,4,2  ## @I40E_NVMUPD_STATE_WRITING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_nvmupd_clear_wait_state   ; -- Begin function i40e_nvmupd_clear_wait_state
	.p2align	2
_i40e_nvmupd_clear_wait_state:          ; @i40e_nvmupd_clear_wait_state
	.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_DEBUG_NVM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_DEBUG_NVM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x3, [x0, #16]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_i40e_debug
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_i40e_release_nvm
	str	wzr, [x19]
LBB0_2:
	str	xzr, [x19, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _I40E_NVMUPD_STATE_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40E_NVMUPD_STATE_ERROR@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.8:
Lloh7:
	adrp	x8, _I40E_NVMUPD_STATE_INIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40E_NVMUPD_STATE_INIT@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
Lloh9:
	adrp	x8, _I40E_NVMUPD_STATE_WRITING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_NVMUPD_STATE_WRITING@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_DEBUG_NVM,4,2             ; @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVMUPD: clearing wait on opcode 0x%04x\n"

	.comm	_I40E_NVMUPD_STATE_ERROR,4,2    ; @I40E_NVMUPD_STATE_ERROR
	.comm	_I40E_NVMUPD_STATE_INIT,4,2     ; @I40E_NVMUPD_STATE_INIT
	.comm	_I40E_NVMUPD_STATE_WRITING,4,2  ; @I40E_NVMUPD_STATE_WRITING
.subsections_via_symbols
