	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_nvm_validate_checksum      ## -- Begin function ice_nvm_validate_checksum
	.p2align	4, 0x90
_ice_nvm_validate_checksum:             ## @ice_nvm_validate_checksum
	.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	%rdi, %r14
	movq	_ICE_RES_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ice_acquire_nvm
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_ice_aqc_opc_nvm_checksum@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ice_fill_dflt_direct_cmd_desc
	movq	_ICE_AQC_NVM_CHECKSUM_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ice_aq_send_cmd
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ice_release_nvm
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.2:
	movl	-32(%rbp), %edi
	callq	_le16_to_cpu
	movq	_ICE_AQC_NVM_CHECKSUM_CORRECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_ICE_ERR_NVM_CHECKSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_RES_READ,4,2               ## @ICE_RES_READ
	.comm	_ice_aqc_opc_nvm_checksum,4,2   ## @ice_aqc_opc_nvm_checksum
	.comm	_ICE_AQC_NVM_CHECKSUM_VERIFY,4,2 ## @ICE_AQC_NVM_CHECKSUM_VERIFY
	.comm	_ICE_AQC_NVM_CHECKSUM_CORRECT,8,3 ## @ICE_AQC_NVM_CHECKSUM_CORRECT
	.comm	_ICE_ERR_NVM_CHECKSUM,4,2       ## @ICE_ERR_NVM_CHECKSUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_nvm_validate_checksum      ; -- Begin function ice_nvm_validate_checksum
	.p2align	2
_ice_nvm_validate_checksum:             ; @ice_nvm_validate_checksum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _ICE_RES_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_RES_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ice_acquire_nvm
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ice_aqc_opc_nvm_checksum@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ice_aqc_opc_nvm_checksum@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_ice_fill_dflt_direct_cmd_desc
Lloh6:
	adrp	x8, _ICE_AQC_NVM_CHECKSUM_VERIFY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_AQC_NVM_CHECKSUM_VERIFY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_ice_aq_send_cmd
	mov	x20, x0
	mov	x0, x19
	bl	_ice_release_nvm
	cbnz	w20, LBB0_3
; %bb.2:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
Lloh9:
	adrp	x8, _ICE_AQC_NVM_CHECKSUM_CORRECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_AQC_NVM_CHECKSUM_CORRECT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _ICE_ERR_NVM_CHECKSUM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ICE_ERR_NVM_CHECKSUM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w20, wzr, w9, eq
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_RES_READ,4,2               ; @ICE_RES_READ
	.comm	_ice_aqc_opc_nvm_checksum,4,2   ; @ice_aqc_opc_nvm_checksum
	.comm	_ICE_AQC_NVM_CHECKSUM_VERIFY,4,2 ; @ICE_AQC_NVM_CHECKSUM_VERIFY
	.comm	_ICE_AQC_NVM_CHECKSUM_CORRECT,8,3 ; @ICE_AQC_NVM_CHECKSUM_CORRECT
	.comm	_ICE_ERR_NVM_CHECKSUM,4,2       ; @ICE_ERR_NVM_CHECKSUM
.subsections_via_symbols
