	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_bist_nvm_get_image_att ## -- Begin function qed_mcp_bist_nvm_get_image_att
	.p2align	4, 0x90
_qed_mcp_bist_nvm_get_image_att:        ## @qed_mcp_bist_nvm_get_image_att
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %eax
	movq	%rdx, %r14
	movl	$0, -28(%rbp)
	movl	$0, -20(%rbp)
	movq	_DRV_MB_PARAM_BIST_NVM_TEST_IMAGE_BY_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_DRV_MB_PARAM_BIST_TEST_IMAGE_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	$0, -24(%rbp)
	orl	%edx, %eax
	movq	_DRV_MSG_CODE_BIST_TEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-28(%rbp), %rbx
	leaq	-20(%rbp), %r8
	leaq	-24(%rbp), %r9
	movl	%eax, %ecx
	pushq	%r14
	pushq	%rbx
	callq	_qed_mcp_nvm_rd_cmd
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_FW_MSG_CODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	movq	_FW_MSG_CODE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	cmpl	$1, (%r14)
	je	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_MB_PARAM_BIST_NVM_TEST_IMAGE_BY_INDEX,4,2 ## @DRV_MB_PARAM_BIST_NVM_TEST_IMAGE_BY_INDEX
	.comm	_DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT,4,2 ## @DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT
	.comm	_DRV_MB_PARAM_BIST_TEST_IMAGE_INDEX_SHIFT,4,2 ## @DRV_MB_PARAM_BIST_TEST_IMAGE_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_image_att ; -- Begin function qed_mcp_bist_nvm_get_image_att
	.p2align	2
_qed_mcp_bist_nvm_get_image_att:        ; @qed_mcp_bist_nvm_get_image_att
	.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, x2
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
Lloh0:
	adrp	x8, _DRV_MB_PARAM_BIST_NVM_TEST_IMAGE_BY_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_MB_PARAM_BIST_NVM_TEST_IMAGE_BY_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh6:
	adrp	x9, _DRV_MB_PARAM_BIST_TEST_IMAGE_INDEX_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRV_MB_PARAM_BIST_TEST_IMAGE_INDEX_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w3, w9
	orr	w3, w9, w8
Lloh9:
	adrp	x8, _DRV_MSG_CODE_BIST_TEST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRV_MSG_CODE_BIST_TEST@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x4, sp, #8
	add	x5, sp, #4
	add	x6, sp, #12
	mov	x7, x19
	bl	_qed_mcp_nvm_rd_cmd
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w8, [sp, #8]
Lloh12:
	adrp	x9, _FW_MSG_CODE_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FW_MSG_CODE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh15:
	adrp	x9, _FW_MSG_CODE_OK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FW_MSG_CODE_OK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_MB_PARAM_BIST_NVM_TEST_IMAGE_BY_INDEX,4,2 ; @DRV_MB_PARAM_BIST_NVM_TEST_IMAGE_BY_INDEX
	.comm	_DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT,4,2 ; @DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT
	.comm	_DRV_MB_PARAM_BIST_TEST_IMAGE_INDEX_SHIFT,4,2 ; @DRV_MB_PARAM_BIST_TEST_IMAGE_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
