	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_test_chip
_efx_ef10_test_chip:                    ## @efx_ef10_test_chip
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_RESET_TYPE_WORLD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_efx_reset_down
	movq	_MC_CMD_ENABLE_OFFLINE_BIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_efx_mcdi_rpc
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_MC_CMD_MC_MEM_BIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_efx_ef10_run_bist
	negq	%rax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	$1, %eax
	movl	%eax, (%r14)
	movq	_MC_CMD_REG_BIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_efx_ef10_run_bist
	negq	%rax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	$1, %eax
	movl	%eax, 4(%r14)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_efx_mcdi_reset
LBB0_2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmovnel	%eax, %ebx
	movl	(%r12), %esi
	xorl	%edx, %edx
	testl	%ebx, %ebx
	sete	%dl
	movq	%r15, %rdi
	callq	_efx_reset_up
	testl	%ebx, %ebx
	cmovnel	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET_TYPE_WORLD,4,2           ## @RESET_TYPE_WORLD
	.comm	_MC_CMD_ENABLE_OFFLINE_BIST,4,2 ## @MC_CMD_ENABLE_OFFLINE_BIST
	.comm	_MC_CMD_MC_MEM_BIST,4,2         ## @MC_CMD_MC_MEM_BIST
	.comm	_MC_CMD_REG_BIST,4,2            ## @MC_CMD_REG_BIST
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_efx_ef10_test_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ef10_test_chip
_efx_ef10_test_chip:                    ; @efx_ef10_test_chip
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _RESET_TYPE_WORLD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RESET_TYPE_WORLD@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_efx_reset_down
Lloh2:
	adrp	x8, _MC_CMD_ENABLE_OFFLINE_BIST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MC_CMD_ENABLE_OFFLINE_BIST@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_efx_mcdi_rpc
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _MC_CMD_MC_MEM_BIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MC_CMD_MC_MEM_BIST@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_efx_ef10_run_bist
	cmp	x0, #0
	mov	w22, #1
	cneg	w8, w22, ne
	str	w8, [x20]
Lloh8:
	adrp	x8, _MC_CMD_REG_BIST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MC_CMD_REG_BIST@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_efx_ef10_run_bist
	cmp	x0, #0
	cneg	w8, w22, ne
	str	w8, [x20, #4]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_efx_mcdi_reset
LBB0_2:
Lloh11:
	adrp	x8, _EPERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w0, w8
	csel	w20, wzr, w0, eq
	ldr	w1, [x21]
	cmp	w20, #0
	cset	w2, eq
	mov	x0, x19
	bl	_efx_reset_up
	cmp	w20, #0
	csel	w0, w0, w20, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET_TYPE_WORLD,4,2           ; @RESET_TYPE_WORLD
	.comm	_MC_CMD_ENABLE_OFFLINE_BIST,4,2 ; @MC_CMD_ENABLE_OFFLINE_BIST
	.comm	_MC_CMD_MC_MEM_BIST,4,2         ; @MC_CMD_MC_MEM_BIST
	.comm	_MC_CMD_REG_BIST,4,2            ; @MC_CMD_REG_BIST
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_efx_ef10_test_chip
.subsections_via_symbols
