	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_mmc_request_done
_mxs_mmc_request_done:                  ## @mxs_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	40(%rdi), %r15
	movq	8(%rdi), %r14
	movq	16(%rdi), %rbx
	movq	%r15, %rdi
	callq	_mmc_resp_type
	movq	_MMC_RSP_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	24(%r13), %r12
	movq	%r15, %rdi
	callq	_mmc_resp_type
	movl	%eax, %ebx
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	32(%r13), %r14
	movq	%r12, %rdi
	callq	_HW_SSP_SDRESP0
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_readl
	movq	(%r15), %rcx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	%rax, 24(%rcx)
	movq	32(%r13), %rbx
	movq	%r12, %rdi
	callq	_HW_SSP_SDRESP1
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
	movq	32(%r13), %rbx
	movq	%r12, %rdi
	callq	_HW_SSP_SDRESP2
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	32(%r13), %rbx
	movq	%r12, %rdi
	callq	_HW_SSP_SDRESP3
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movq	(%r15), %rcx
LBB0_3:
	movq	%rax, (%rcx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_4:
	cmpq	8(%r14), %r15
	je	LBB0_5
## %bb.7:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.8:
	movl	(%r13), %edi
	callq	_mmc_dev
	movl	32(%rbx), %edx
	movl	36(%rbx), %esi
	movl	24(%r13), %ecx
	movl	%eax, %edi
	callq	_dma_unmap_sg
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.12:
	movl	$0, (%rbx)
	movq	$0, 16(%r13)
	cmpq	$0, 24(%rbx)
	jne	LBB0_11
	jmp	LBB0_13
LBB0_5:
	movl	16(%r14), %esi
	jmp	LBB0_6
LBB0_9:
	movl	8(%rbx), %eax
	imull	4(%rbx), %eax
	movl	%eax, (%rbx)
	movq	$0, 16(%r13)
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.10:
	cmpq	$0, 8(%r14)
	je	LBB0_11
LBB0_13:
	movq	$0, 8(%r13)
	movl	(%r13), %edi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_request_done               ## TAILCALL
LBB0_11:
	movl	(%r14), %esi
LBB0_6:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mxs_mmc_start_cmd              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_RSP_PRESENT,4,2            ## @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.no_dead_strip	_mxs_mmc_request_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_mmc_request_done
_mxs_mmc_request_done:                  ; @mxs_mmc_request_done
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x21, [x0, #40]
	ldp	x20, x23, [x0, #8]
	mov	x0, x21
	bl	_mmc_resp_type
Lloh0:
	adrp	x8, _MMC_RSP_PRESENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_RSP_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	add	x22, x19, #24
	mov	x0, x21
	bl	_mmc_resp_type
Lloh3:
	adrp	x8, _MMC_RSP_136@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_RSP_136@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w24, w8, w0
	ldr	x25, [x19, #32]
	mov	x0, x22
	bl	_HW_SSP_SDRESP0
	add	x0, x0, x25
	bl	_readl
	ldr	x8, [x21]
	cbz	w24, LBB0_3
; %bb.2:
	str	x0, [x8, #24]
	ldr	x24, [x19, #32]
	mov	x0, x22
	bl	_HW_SSP_SDRESP1
	add	x0, x0, x24
	bl	_readl
	ldr	x8, [x21]
	str	x0, [x8, #16]
	ldr	x24, [x19, #32]
	mov	x0, x22
	bl	_HW_SSP_SDRESP2
	add	x0, x0, x24
	bl	_readl
	ldr	x8, [x21]
	str	x0, [x8, #8]
	ldr	x24, [x19, #32]
	mov	x0, x22
	bl	_HW_SSP_SDRESP3
	add	x0, x0, x24
	bl	_readl
	ldr	x8, [x21]
LBB0_3:
	str	x0, [x8]
LBB0_4:
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.eq	LBB0_8
; %bb.5:
	cbz	x23, LBB0_11
; %bb.6:
	ldr	w0, [x19]
	bl	_mmc_dev
	ldp	w2, w1, [x23, #32]
	ldr	w3, [x19, #24]
	bl	_dma_unmap_sg
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_9
; %bb.7:
	str	wzr, [x23]
	str	xzr, [x19, #16]
	ldr	x8, [x23, #24]
	cbnz	x8, LBB0_12
	b	LBB0_11
LBB0_8:
	ldr	w1, [x20, #16]
	b	LBB0_13
LBB0_9:
	ldp	w8, w9, [x23, #4]
	mul	w8, w9, w8
	str	w8, [x23]
	str	xzr, [x19, #16]
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_12
LBB0_11:
	str	xzr, [x19, #8]
	ldr	w0, [x19]
	mov	x1, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mmc_request_done
LBB0_12:
	ldr	w1, [x20]
LBB0_13:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mxs_mmc_start_cmd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_RSP_PRESENT,4,2            ; @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.no_dead_strip	_mxs_mmc_request_done
.subsections_via_symbols
