	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_bist_nvm_get_num_images ## -- Begin function qed_mcp_bist_nvm_get_num_images
	.p2align	4, 0x90
_qed_mcp_bist_nvm_get_num_images:       ## @qed_mcp_bist_nvm_get_num_images
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_DRV_MB_PARAM_BIST_NVM_TEST_NUM_IMAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	%rdx, %r9
	movq	_DRV_MSG_CODE_BIST_TEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-4(%rbp), %r8
	movl	%eax, %ecx
	callq	_qed_mcp_cmd
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_FW_MSG_CODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	-4(%rbp), %ecx
	movq	_FW_MSG_CODE_OK@GOTPCREL(%rip), %rdx
	movq	_EINVAL@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	subl	(%rsi), %eax
	cmpl	(%rdx), %ecx
	cmovel	%edi, %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_MB_PARAM_BIST_NVM_TEST_NUM_IMAGES,4,2 ## @DRV_MB_PARAM_BIST_NVM_TEST_NUM_IMAGES
	.comm	_DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT,4,2 ## @DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT
	.comm	_DRV_MSG_CODE_BIST_TEST,4,2     ## @DRV_MSG_CODE_BIST_TEST
	.comm	_FW_MSG_CODE_MASK,4,2           ## @FW_MSG_CODE_MASK
	.comm	_FW_MSG_CODE_OK,4,2             ## @FW_MSG_CODE_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_bist_nvm_get_num_images ; -- Begin function qed_mcp_bist_nvm_get_num_images
	.p2align	2
_qed_mcp_bist_nvm_get_num_images:       ; @qed_mcp_bist_nvm_get_num_images
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x5, x2
Lloh0:
	adrp	x8, _DRV_MB_PARAM_BIST_NVM_TEST_NUM_IMAGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_MB_PARAM_BIST_NVM_TEST_NUM_IMAGES@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	lsl	w3, w8, w9
Lloh6:
	adrp	x8, _DRV_MSG_CODE_BIST_TEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRV_MSG_CODE_BIST_TEST@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	sub	x4, x29, #4
	bl	_qed_mcp_cmd
	cbnz	w0, LBB0_2
; %bb.1:
	ldur	w8, [x29, #-4]
Lloh9:
	adrp	x9, _FW_MSG_CODE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FW_MSG_CODE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh12:
	adrp	x9, _FW_MSG_CODE_OK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FW_MSG_CODE_OK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _EINVAL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w8, w9
	csneg	w0, wzr, w10, eq
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_MB_PARAM_BIST_NVM_TEST_NUM_IMAGES,4,2 ; @DRV_MB_PARAM_BIST_NVM_TEST_NUM_IMAGES
	.comm	_DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT,4,2 ; @DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT
	.comm	_DRV_MSG_CODE_BIST_TEST,4,2     ; @DRV_MSG_CODE_BIST_TEST
	.comm	_FW_MSG_CODE_MASK,4,2           ; @FW_MSG_CODE_MASK
	.comm	_FW_MSG_CODE_OK,4,2             ; @FW_MSG_CODE_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
