	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_xfer_done
_omap_hsmmc_xfer_done:                  ## @omap_hsmmc_xfer_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	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.6:
	movq	%rsi, %rbx
	movq	$0, 32(%r14)
	cmpq	$0, 24(%r14)
	je	LBB0_9
## %bb.7:
	cmpl	$-1, (%r14)
	je	LBB0_9
## %bb.8:
	movl	4(%r14), %edi
	callq	_mmc_dev
	movl	%eax, %r15d
	movl	36(%rbx), %r12d
	movl	16(%r14), %r13d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_omap_hsmmc_get_dma_dir
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_dma_unmap_sg
LBB0_9:
	cmpl	$0, 32(%rbx)
	je	LBB0_10
## %bb.11:
	movq	$0, 24(%rbx)
	jmp	LBB0_12
LBB0_1:
	movq	8(%r14), %rsi
	movq	48(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpl	$6, (%rax)
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 40(%r14)
	je	LBB0_4
## %bb.15:
	movq	$0, 40(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	$0, 8(%r14)
	movl	4(%r14), %edi
	jmp	LBB0_5
LBB0_10:
	movslq	(%rbx), %rax
	movslq	4(%rbx), %rcx
	imulq	%rax, %rcx
	addq	%rcx, 24(%rbx)
LBB0_12:
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_hsmmc_start_command       ## TAILCALL
LBB0_13:
	movq	$0, 8(%r14)
	movl	4(%r14), %edi
	movq	16(%rbx), %rsi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_request_done               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_omap_hsmmc_xfer_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_xfer_done
_omap_hsmmc_xfer_done:                  ; @omap_hsmmc_xfer_done
	.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	x19, x0
	cbz	x1, LBB0_7
; %bb.1:
	mov	x20, x1
	str	xzr, [x19, #32]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_mmc_dev
	mov	x21, x0
	ldr	w22, [x20, #36]
	ldr	w23, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_omap_hsmmc_get_dma_dir
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_dma_unmap_sg
LBB0_4:
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_12
; %bb.5:
	str	xzr, [x20, #24]
	ldr	w1, [x20, #8]
	cbz	w1, LBB0_13
LBB0_6:
	mov	x0, x19
	mov	x2, #0
	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	_omap_hsmmc_start_command
LBB0_7:
	ldr	x1, [x19, #8]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	w8, [x8]
	cmp	w8, #6
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_11
; %bb.10:
	str	xzr, [x19, #40]
	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
	ret
LBB0_11:
	str	xzr, [x19, #8]
	ldr	w0, [x19, #4]
	b	LBB0_14
LBB0_12:
	ldpsw	x8, x9, [x20]
	ldr	x10, [x20, #24]
	madd	x8, x9, x8, x10
	str	x8, [x20, #24]
	ldr	w1, [x20, #8]
	cbnz	w1, LBB0_6
LBB0_13:
	str	xzr, [x19, #8]
	ldr	w0, [x19, #4]
	ldr	x1, [x20, #16]
LBB0_14:
	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	_mmc_request_done
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_omap_hsmmc_xfer_done
.subsections_via_symbols
