	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_tasklet_finish
_sdhci_tasklet_finish:                  ## @sdhci_tasklet_finish
	.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, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leaq	48(%rbx), %rdi
	callq	_del_timer
	movq	40(%rbx), %r15
	movq	_SDHCI_DEVICE_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_10
## %bb.1:
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
LBB0_7:
	movq	_SDHCI_QUIRK_CLOCK_BEFORE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_9
## %bb.8:
	movl	8(%rbx), %esi
	movl	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_sdhci_set_clock
LBB0_9:
	movq	_SDHCI_RESET_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_reset
	movq	_SDHCI_RESET_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_reset
LBB0_10:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	$0, 40(%rbx)
	movq	%rbx, %rdi
	callq	_sdhci_deactivate_led
	xorl	%eax, %eax
	callq	_mmiowb
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	12(%rbx), %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_request_done               ## TAILCALL
LBB0_2:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	cmpq	$0, 8(%rax)
	jne	LBB0_7
## %bb.4:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	cmpq	$0, (%rax)
	jne	LBB0_7
LBB0_6:
	movq	_SDHCI_QUIRK_RESET_AFTER_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_7
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_DEVICE_DEAD,4,2          ## @SDHCI_DEVICE_DEAD
	.comm	_SDHCI_QUIRK_RESET_AFTER_REQUEST,4,2 ## @SDHCI_QUIRK_RESET_AFTER_REQUEST
	.comm	_SDHCI_QUIRK_CLOCK_BEFORE_RESET,4,2 ## @SDHCI_QUIRK_CLOCK_BEFORE_RESET
	.comm	_SDHCI_RESET_CMD,4,2            ## @SDHCI_RESET_CMD
	.comm	_SDHCI_RESET_DATA,4,2           ## @SDHCI_RESET_DATA
	.no_dead_strip	_sdhci_tasklet_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_tasklet_finish
_sdhci_tasklet_finish:                  ; @sdhci_tasklet_finish
	.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
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x19, #48
	bl	_del_timer
	ldr	x21, [x19, #40]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SDHCI_DEVICE_DEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_DEVICE_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
LBB0_2:
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _SDHCI_QUIRK_CLOCK_BEFORE_RESET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDHCI_QUIRK_CLOCK_BEFORE_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x19, #8]
	str	wzr, [x19, #8]
	mov	x0, x19
	bl	_sdhci_set_clock
LBB0_4:
Lloh6:
	adrp	x8, _SDHCI_RESET_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_RESET_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdhci_reset
Lloh9:
	adrp	x8, _SDHCI_RESET_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDHCI_RESET_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdhci_reset
LBB0_5:
	stp	xzr, xzr, [x19, #24]
	str	xzr, [x19, #40]
	mov	x0, x19
	bl	_sdhci_deactivate_led
	bl	_mmiowb
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #12]
	mov	x1, x21
	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	_mmc_request_done
LBB0_6:
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_2
; %bb.8:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
LBB0_10:
	ldr	w8, [x19, #4]
Lloh12:
	adrp	x9, _SDHCI_QUIRK_RESET_AFTER_REQUEST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDHCI_QUIRK_RESET_AFTER_REQUEST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_DEVICE_DEAD,4,2          ; @SDHCI_DEVICE_DEAD
	.comm	_SDHCI_QUIRK_RESET_AFTER_REQUEST,4,2 ; @SDHCI_QUIRK_RESET_AFTER_REQUEST
	.comm	_SDHCI_QUIRK_CLOCK_BEFORE_RESET,4,2 ; @SDHCI_QUIRK_CLOCK_BEFORE_RESET
	.comm	_SDHCI_RESET_CMD,4,2            ; @SDHCI_RESET_CMD
	.comm	_SDHCI_RESET_DATA,4,2           ; @SDHCI_RESET_DATA
	.no_dead_strip	_sdhci_tasklet_finish
.subsections_via_symbols
