	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_request_done               ## -- Begin function mmc_request_done
	.p2align	4, 0x90
_mmc_request_done:                      ## @mmc_request_done
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	32(%rsi), %r12
	movl	(%r12), %r15d
	movq	8(%r12), %rax
	movq	_MMC_SEND_TUNING_BLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.1:
	movq	_MMC_SEND_TUNING_BLOCK_HS200@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.2:
	cmpl	$0, 20(%r14)
	jne	LBB0_11
## %bb.3:
	movq	_EILSEQ@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpl	%eax, %r15d
	je	LBB0_10
## %bb.4:
	movq	24(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	cmpl	%eax, (%rcx)
	je	LBB0_10
LBB0_6:
	movq	16(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	cmpl	%eax, (%rcx)
	je	LBB0_10
LBB0_8:
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.9:
	cmpl	%eax, (%rcx)
	jne	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	callq	_mmc_retune_needed
LBB0_11:
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.12:
	cmpq	$0, 24(%r12)
	je	LBB0_16
## %bb.13:
	movq	%r14, %rdi
	callq	_mmc_host_is_spi
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	16(%r12), %rax
	movq	_R1_SPI_ILLEGAL_COMMAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.15:
	movq	$0, 24(%r12)
LBB0_16:
	cmpq	%r13, 8(%r14)
	jne	LBB0_18
## %bb.17:
	movq	$0, 8(%r14)
LBB0_18:
	movq	%r13, %rdi
	callq	_mmc_complete_cmd
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_trace_mmc_request_done
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.19:
	cmpq	$0, 24(%r12)
	je	LBB0_21
## %bb.20:
	movl	16(%r14), %edi
	callq	_mmc_card_removed
	testq	%rax, %rax
	je	LBB0_29
LBB0_21:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mmc_should_fail_request
	cmpq	$0, 8(%r14)
	jne	LBB0_23
## %bb.22:
	movl	(%r14), %edi
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_led_trigger_event
LBB0_23:
	cmpq	$0, 24(%r13)
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	callq	_mmc_hostname
	movq	24(%r13), %rsi
	movq	8(%rsi), %rdx
	movl	(%rsi), %ecx
	movq	16(%rsi), %rsi
	movl	(%rsi), %r8d
	movl	4(%rsi), %r9d
	movl	8(%rsi), %r10d
	movl	12(%rsi), %r11d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	callq	_pr_debug
	addq	$16, %rsp
LBB0_25:
	movq	%r14, %rdi
	callq	_mmc_hostname
	movq	8(%r12), %rdx
	movq	16(%r12), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %r9d
	movl	8(%rcx), %r10d
	movl	12(%rcx), %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_pr_debug
	addq	$16, %rsp
	cmpq	$0, 16(%r13)
	je	LBB0_27
## %bb.26:
	movq	%r14, %rdi
	callq	_mmc_hostname
	movq	16(%r13), %rcx
	movslq	4(%rcx), %rdx
	movl	(%rcx), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_27:
	cmpq	$0, 8(%r13)
	je	LBB0_29
## %bb.28:
	movq	%r14, %rdi
	callq	_mmc_hostname
	movq	8(%r13), %rsi
	movq	8(%rsi), %rdx
	movl	(%rsi), %ecx
	movq	16(%rsi), %rsi
	movl	(%rsi), %r8d
	movl	4(%rsi), %r9d
	movl	8(%rsi), %r10d
	movl	12(%rsi), %ebx
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_pr_debug
	addq	$16, %rsp
LBB0_29:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.31:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_SEND_TUNING_BLOCK,8,3      ## @MMC_SEND_TUNING_BLOCK
	.comm	_MMC_SEND_TUNING_BLOCK_HS200,8,3 ## @MMC_SEND_TUNING_BLOCK_HS200
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_R1_SPI_ILLEGAL_COMMAND,4,2     ## @R1_SPI_ILLEGAL_COMMAND
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: req done <CMD%u>: %d: %08x %08x %08x %08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: req done (CMD%u): %d: %08x %08x %08x %08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s:     %d bytes transferred: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s:     (CMD%u): %d: %08x %08x %08x %08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_request_done               ; -- Begin function mmc_request_done
	.p2align	2
_mmc_request_done:                      ; @mmc_request_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	ldr	x22, [x1, #32]
	ldr	w21, [x22]
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x9, _MMC_SEND_TUNING_BLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_SEND_TUNING_BLOCK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MMC_SEND_TUNING_BLOCK_HS200@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMC_SEND_TUNING_BLOCK_HS200@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_10
; %bb.1:
	ldr	w8, [x20, #20]
	cbnz	w8, LBB0_10
; %bb.2:
Lloh6:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w21, w8
	b.eq	LBB0_9
; %bb.3:
	neg	w8, w8
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	w9, [x9]
	cmp	w9, w8
	b.eq	LBB0_9
LBB0_5:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	w9, [x9]
	cmp	w9, w8
	b.eq	LBB0_9
LBB0_7:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_10
; %bb.8:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_mmc_retune_needed
LBB0_10:
	cbz	w21, LBB0_15
; %bb.11:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x8, [x22, #16]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _R1_SPI_ILLEGAL_COMMAND@GOTPAGE
Lloh10:
	ldr	x9, [x9, _R1_SPI_ILLEGAL_COMMAND@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	str	xzr, [x22, #24]
LBB0_15:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.ne	LBB0_17
; %bb.16:
	str	xzr, [x20, #8]
LBB0_17:
	mov	x0, x19
	bl	_mmc_complete_cmd
	mov	x0, x20
	mov	x1, x19
	bl	_trace_mmc_request_done
	cbz	w21, LBB0_20
; %bb.18:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	w0, [x20, #16]
	bl	_mmc_card_removed
	cbz	x0, LBB0_28
LBB0_20:
	mov	x0, x20
	mov	x1, x19
	bl	_mmc_should_fail_request
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_22
; %bb.21:
	ldr	w0, [x20]
Lloh12:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_led_trigger_event
LBB0_22:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_24
; %bb.23:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
	ldr	x8, [x19, #24]
	ldr	w3, [x8]
	ldp	x2, x8, [x8, #8]
	ldp	w9, w10, [x8]
	ldp	w11, w8, [x8, #8]
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_24:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
	ldp	x2, x8, [x22, #8]
	ldp	w9, w10, [x8]
	ldp	w11, w8, [x8, #8]
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_pr_debug
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_26
; %bb.25:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
	ldr	x8, [x19, #16]
	ldp	w3, w2, [x8]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
LBB0_26:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_28
; %bb.27:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
	ldp	x2, x8, [x8, #8]
	ldp	w9, w10, [x8]
	ldp	w11, w8, [x8, #8]
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
LBB0_28:
	ldr	x1, [x19]
	cbz	x1, LBB0_30
; %bb.29:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	br	x1
LBB0_30:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_SEND_TUNING_BLOCK,8,3      ; @MMC_SEND_TUNING_BLOCK
	.comm	_MMC_SEND_TUNING_BLOCK_HS200,8,3 ; @MMC_SEND_TUNING_BLOCK_HS200
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_R1_SPI_ILLEGAL_COMMAND,4,2     ; @R1_SPI_ILLEGAL_COMMAND
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: req done <CMD%u>: %d: %08x %08x %08x %08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: req done (CMD%u): %d: %08x %08x %08x %08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s:     %d bytes transferred: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s:     (CMD%u): %d: %08x %08x %08x %08x\n"

.subsections_via_symbols
