	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_ev_death
_efx_mcdi_ev_death:                     ## @efx_mcdi_ev_death
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_efx_mcdi
	movq	%rax, %r15
	leaq	16(%rax), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%r15, %rdi
	callq	_efx_mcdi_proxy_abort
	movq	%r15, %rdi
	callq	_efx_mcdi_complete_sync
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	(%r15), %rax
	movq	_MCDI_MODE_EVENTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	movl	%r14d, 8(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15)
	incl	20(%r15)
	jmp	LBB0_11
LBB0_1:
	movq	_MCDI_STATUS_DELAY_COUNT@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	movq	_MCDI_STATUS_DELAY_US@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_efx_mcdi_poll_reboot
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edi
	callq	_udelay
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_3
	jmp	LBB0_8
LBB0_7:
	testl	%r14d, %r14d
	jne	LBB0_10
LBB0_8:
	movq	(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	*%rax
LBB0_10:
	movl	$1, 12(%r15)
	movq	_RESET_TYPE_MC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_efx_schedule_reset
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCDI_MODE_EVENTS,8,3           ## @MCDI_MODE_EVENTS
	.comm	_MCDI_STATUS_DELAY_COUNT,4,2    ## @MCDI_STATUS_DELAY_COUNT
	.comm	_MCDI_STATUS_DELAY_US,4,2       ## @MCDI_STATUS_DELAY_US
	.comm	_RESET_TYPE_MC_FAILURE,4,2      ## @RESET_TYPE_MC_FAILURE
	.no_dead_strip	_efx_mcdi_ev_death
.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_death
_efx_mcdi_ev_death:                     ; @efx_mcdi_ev_death
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x21, x0
	bl	_efx_mcdi
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock
	mov	x0, x20
	bl	_efx_mcdi_proxy_abort
	mov	x0, x20
	bl	_efx_mcdi_complete_sync
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
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_11
; %bb.2:
	str	w22, [x20, #8]
	stp	xzr, xzr, [x20, #24]
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
	b	LBB0_11
LBB0_3:
Lloh3:
	adrp	x23, _MCDI_STATUS_DELAY_COUNT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MCDI_STATUS_DELAY_COUNT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w22, #0
Lloh5:
	adrp	x24, _MCDI_STATUS_DELAY_US@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MCDI_STATUS_DELAY_US@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_efx_mcdi_poll_reboot
	cbnz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	bl	_udelay
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_5
	b	LBB0_8
LBB0_7:
	cbnz	w22, LBB0_10
LBB0_8:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x21
	blr	x8
LBB0_10:
	mov	w8, #1
	str	w8, [x20, #12]
Lloh7:
	adrp	x8, _RESET_TYPE_MC_FAILURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RESET_TYPE_MC_FAILURE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_efx_schedule_reset
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MCDI_MODE_EVENTS,8,3           ; @MCDI_MODE_EVENTS
	.comm	_MCDI_STATUS_DELAY_COUNT,4,2    ; @MCDI_STATUS_DELAY_COUNT
	.comm	_MCDI_STATUS_DELAY_US,4,2       ; @MCDI_STATUS_DELAY_US
	.comm	_RESET_TYPE_MC_FAILURE,4,2      ; @RESET_TYPE_MC_FAILURE
	.no_dead_strip	_efx_mcdi_ev_death
.subsections_via_symbols
