	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	24(%rsi), %rbx
	movl	(%rbx), %r15d
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.1:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_mmc_host_is_spi
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movq	_R1_SPI_ILLEGAL_COMMAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	$0, 24(%rbx)
	jmp	LBB0_6
LBB0_5:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.12:
	movq	%r14, %rdi
	callq	_mmc_hostname
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	decq	24(%rbx)
	movl	$0, (%rbx)
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_6:
	movl	(%r14), %edi
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_led_trigger_event
	movq	%r14, %rdi
	callq	_mmc_hostname
	movl	16(%rbx), %edx
	movq	8(%rbx), %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(%r12)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_mmc_hostname
	movq	16(%r12), %rdx
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_8:
	cmpq	$0, 8(%r12)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_mmc_hostname
	movq	8(%r12), %rsi
	movl	16(%rsi), %edx
	movl	(%rsi), %ecx
	movq	8(%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_10:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R1_SPI_ILLEGAL_COMMAND,4,2     ## @R1_SPI_ILLEGAL_COMMAND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: req failed (CMD%u): %d, retrying...\n"

	.comm	_LED_OFF,4,2                    ## @LED_OFF
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, #24]
	ldr	w21, [x22]
	cbz	w21, LBB0_7
; %bb.1:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _R1_SPI_ILLEGAL_COMMAND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _R1_SPI_ILLEGAL_COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	str	xzr, [x22, #24]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
	ldr	w2, [x22, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x21
	bl	_pr_debug
	ldr	x8, [x22, #24]
	sub	x8, x8, #1
	str	x8, [x22, #24]
	str	wzr, [x22]
	ldr	x8, [x20, #8]
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, 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	x2
LBB0_7:
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_led_trigger_event
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
	ldr	w2, [x22, #16]
	ldr	x8, [x22, #8]
	ldp	w9, w10, [x8]
	ldp	w11, w8, [x8, #8]
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_pr_debug
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
	ldr	x8, [x19, #16]
	ldp	w3, w2, [x8]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
LBB0_9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #16]
	ldr	w3, [x8]
	ldr	x8, [x8, #8]
	ldp	w9, w10, [x8]
	ldp	w11, w8, [x8, #8]
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
LBB0_11:
	ldr	x1, [x19]
	cbz	x1, LBB0_13
; %bb.12:
	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_13:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_R1_SPI_ILLEGAL_COMMAND,4,2     ; @R1_SPI_ILLEGAL_COMMAND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: req failed (CMD%u): %d, retrying...\n"

	.comm	_LED_OFF,4,2                    ; @LED_OFF
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
