	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_bist_register_test     ## -- Begin function qed_mcp_bist_register_test
	.p2align	4, 0x90
_qed_mcp_bist_register_test:            ## @qed_mcp_bist_register_test
	.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_REGISTER_TEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	_DRV_MSG_CODE_BIST_TEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-16(%rbp), %r8
	leaq	-8(%rbp), %r9
	movq	%rax, %rcx
	callq	_qed_mcp_cmd
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_FW_MSG_CODE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	-16(%rbp), %rax
	movq	_FW_MSG_CODE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	-8(%rbp), %rcx
	movq	_DRV_MB_PARAM_BIST_RC_PASSED@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_4
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_MB_PARAM_BIST_REGISTER_TEST,8,3 ## @DRV_MB_PARAM_BIST_REGISTER_TEST
	.comm	_DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT,8,3 ## @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,8,3           ## @FW_MSG_CODE_MASK
	.comm	_FW_MSG_CODE_OK,8,3             ## @FW_MSG_CODE_OK
	.comm	_DRV_MB_PARAM_BIST_RC_PASSED,8,3 ## @DRV_MB_PARAM_BIST_RC_PASSED
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_bist_register_test     ; -- Begin function qed_mcp_bist_register_test
	.p2align	2
_qed_mcp_bist_register_test:            ; @qed_mcp_bist_register_test
	.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
Lloh0:
	adrp	x8, _DRV_MB_PARAM_BIST_REGISTER_TEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_MB_PARAM_BIST_REGISTER_TEST@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	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	lsl	x3, x8, x9
Lloh6:
	adrp	x8, _DRV_MSG_CODE_BIST_TEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRV_MSG_CODE_BIST_TEST@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x5, sp
	bl	_qed_mcp_cmd
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, _FW_MSG_CODE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FW_MSG_CODE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	and	x8, x9, x8
Lloh12:
	adrp	x9, _FW_MSG_CODE_OK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FW_MSG_CODE_OK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [sp]
Lloh15:
	adrp	x9, _DRV_MB_PARAM_BIST_RC_PASSED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DRV_MB_PARAM_BIST_RC_PASSED@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_MB_PARAM_BIST_REGISTER_TEST,8,3 ; @DRV_MB_PARAM_BIST_REGISTER_TEST
	.comm	_DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT,8,3 ; @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,8,3           ; @FW_MSG_CODE_MASK
	.comm	_FW_MSG_CODE_OK,8,3             ; @FW_MSG_CODE_OK
	.comm	_DRV_MB_PARAM_BIST_RC_PASSED,8,3 ; @DRV_MB_PARAM_BIST_RC_PASSED
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
