	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_cmd_done
_omap_hsmmc_cmd_done:                   ## @omap_hsmmc_cmd_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpq	%rax, 40(%r15)
	jne	LBB0_4
## %bb.2:
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_AUTO_CMD23@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_12
LBB0_4:
	movq	$0, 40(%r15)
	movl	(%r14), %ebx
	movq	_MMC_RSP_PRESENT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	32(%r15), %edi
	movq	_RSP10@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OMAP_HSMMC_READ
	movq	16(%r14), %rcx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movq	%rax, 24(%rcx)
	movl	32(%r15), %edi
	movq	_RSP32@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OMAP_HSMMC_READ
	movq	16(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	32(%r15), %edi
	movq	_RSP54@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OMAP_HSMMC_READ
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	32(%r15), %edi
	movq	_RSP76@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OMAP_HSMMC_READ
	movq	16(%r14), %rcx
LBB0_7:
	movq	%rax, (%rcx)
LBB0_8:
	cmpq	$0, 24(%r15)
	jne	LBB0_10
## %bb.9:
	cmpl	$0, 16(%r15)
	je	LBB0_13
LBB0_10:
	cmpq	$0, 8(%r14)
	je	LBB0_11
LBB0_13:
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_hsmmc_request_done        ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	$0, 40(%r15)
	movq	%r15, %rdi
	callq	_omap_hsmmc_start_dma_transfer
	movq	8(%r15), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_hsmmc_start_command       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTO_CMD23,4,2                 ## @AUTO_CMD23
	.comm	_MMC_RSP_PRESENT,4,2            ## @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.comm	_RSP10,4,2                      ## @RSP10
	.comm	_RSP32,4,2                      ## @RSP32
	.comm	_RSP54,4,2                      ## @RSP54
	.comm	_RSP76,4,2                      ## @RSP76
	.no_dead_strip	_omap_hsmmc_cmd_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_cmd_done
_omap_hsmmc_cmd_done:                   ; @omap_hsmmc_cmd_done
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x19, #40]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _AUTO_CMD23@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTO_CMD23@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_4:
	str	xzr, [x19, #40]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _MMC_RSP_PRESENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_RSP_PRESENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
Lloh6:
	adrp	x9, _MMC_RSP_136@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_RSP_136@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w21, w9, w8
	ldr	w0, [x19, #32]
Lloh9:
	adrp	x8, _RSP10@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RSP10@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_OMAP_HSMMC_READ
	ldr	x8, [x20, #16]
	cbz	w21, LBB0_7
; %bb.6:
	str	x0, [x8, #24]
	ldr	w0, [x19, #32]
Lloh12:
	adrp	x8, _RSP32@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RSP32@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_OMAP_HSMMC_READ
	ldr	x8, [x20, #16]
	str	x0, [x8, #16]
	ldr	w0, [x19, #32]
Lloh15:
	adrp	x8, _RSP54@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RSP54@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_OMAP_HSMMC_READ
	ldr	x8, [x20, #16]
	str	x0, [x8, #8]
	ldr	w0, [x19, #32]
Lloh18:
	adrp	x8, _RSP76@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RSP76@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_OMAP_HSMMC_READ
	ldr	x8, [x20, #16]
LBB0_7:
	str	x0, [x8]
LBB0_8:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_11
LBB0_10:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_12
LBB0_11:
	ldr	x1, [x19, #8]
	mov	x0, x19
	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	_omap_hsmmc_request_done
LBB0_12:
	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
	ret
LBB0_13:
	str	xzr, [x19, #40]
	mov	x0, x19
	bl	_omap_hsmmc_start_dma_transfer
	ldr	x8, [x19, #8]
	ldp	w2, w1, [x8]
	mov	x0, x19
	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	_omap_hsmmc_start_command
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTO_CMD23,4,2                 ; @AUTO_CMD23
	.comm	_MMC_RSP_PRESENT,4,2            ; @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_RSP10,4,2                      ; @RSP10
	.comm	_RSP32,4,2                      ; @RSP32
	.comm	_RSP54,4,2                      ; @RSP54
	.comm	_RSP76,4,2                      ; @RSP76
	.no_dead_strip	_omap_hsmmc_cmd_done
.subsections_via_symbols
