	.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, %r15d
	movq	%rdi, %r12
	callq	_efx_mcdi
	movq	%rax, %rbx
	leaq	12(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_efx_mcdi_complete
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_MCDI_MODE_EVENTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movl	%r15d, 8(%rbx)
	movq	$0, 24(%rbx)
	incl	16(%rbx)
	jmp	LBB0_7
LBB0_3:
	movq	_RESET_TYPE_MC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_efx_schedule_reset
	movq	_MCDI_STATUS_DELAY_COUNT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.4:
	xorl	%ebx, %ebx
	movq	_MCDI_STATUS_DELAY_US@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_efx_mcdi_poll_reboot
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	callq	_udelay
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_5
LBB0_7:
	movq	%r14, %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	_RESET_TYPE_MC_FAILURE,4,2      ## @RESET_TYPE_MC_FAILURE
	.comm	_MCDI_STATUS_DELAY_COUNT,4,2    ## @MCDI_STATUS_DELAY_COUNT
	.comm	_MCDI_STATUS_DELAY_US,4,2       ## @MCDI_STATUS_DELAY_US
	.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	x21, x1
	mov	x20, x0
	bl	_efx_mcdi
	mov	x22, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_spin_lock
	mov	x0, x22
	bl	_efx_mcdi_complete
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x22]
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_7
; %bb.2:
	str	w21, [x22, #8]
	str	xzr, [x22, #24]
	ldr	w8, [x22, #16]
	add	w8, w8, #1
	str	w8, [x22, #16]
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _RESET_TYPE_MC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESET_TYPE_MC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_efx_schedule_reset
Lloh6:
	adrp	x21, _MCDI_STATUS_DELAY_COUNT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MCDI_STATUS_DELAY_COUNT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w22, #0
Lloh8:
	adrp	x23, _MCDI_STATUS_DELAY_US@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MCDI_STATUS_DELAY_US@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_efx_mcdi_poll_reboot
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	bl	_udelay
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.lt	LBB0_5
LBB0_7:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MCDI_MODE_EVENTS,8,3           ; @MCDI_MODE_EVENTS
	.comm	_RESET_TYPE_MC_FAILURE,4,2      ; @RESET_TYPE_MC_FAILURE
	.comm	_MCDI_STATUS_DELAY_COUNT,4,2    ; @MCDI_STATUS_DELAY_COUNT
	.comm	_MCDI_STATUS_DELAY_US,4,2       ; @MCDI_STATUS_DELAY_US
	.no_dead_strip	_efx_mcdi_ev_death
.subsections_via_symbols
