	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_ev_bist
_efx_mcdi_ev_bist:                      ## @efx_mcdi_ev_bist
	.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, %r15
	callq	_efx_mcdi
	movq	%rax, %rbx
	leaq	12(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	$1, (%r15)
	movq	%rbx, %rdi
	callq	_efx_mcdi_proxy_abort
	movq	%rbx, %rdi
	callq	_efx_mcdi_complete_sync
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_MCDI_MODE_EVENTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	incl	16(%rbx)
LBB0_3:
	movl	$1, 8(%rbx)
	movq	_RESET_TYPE_MC_BIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_efx_schedule_reset
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCDI_MODE_EVENTS,8,3           ## @MCDI_MODE_EVENTS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_RESET_TYPE_MC_BIST,4,2         ## @RESET_TYPE_MC_BIST
	.no_dead_strip	_efx_mcdi_ev_bist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_mcdi_ev_bist
_efx_mcdi_ev_bist:                      ; @efx_mcdi_ev_bist
	.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	x19, x0
	bl	_efx_mcdi
	mov	x21, x0
	add	x20, x0, #12
	mov	x0, x20
	bl	_spin_lock
	mov	w22, #1
	str	w22, [x19]
	mov	x0, x21
	bl	_efx_mcdi_proxy_abort
	mov	x0, x21
	bl	_efx_mcdi_complete_sync
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _MCDI_MODE_EVENTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MCDI_MODE_EVENTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x21, #40]
	stp	xzr, xzr, [x21, #24]
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
LBB0_3:
	str	w22, [x21, #8]
Lloh6:
	adrp	x8, _RESET_TYPE_MC_BIST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RESET_TYPE_MC_BIST@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_efx_schedule_reset
	mov	x0, x20
	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
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MCDI_MODE_EVENTS,8,3           ; @MCDI_MODE_EVENTS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_RESET_TYPE_MC_BIST,4,2         ; @RESET_TYPE_MC_BIST
	.no_dead_strip	_efx_mcdi_ev_bist
.subsections_via_symbols
