	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_omap_dma_cb
_mmc_omap_dma_cb:                       ## @mmc_omap_dma_cb
	.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	%rdx, %rbx
	movl	%esi, %r14d
	movq	(%rdx), %rdi
	movq	24(%rdx), %r15
	shrq	$63, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	40(%rbx), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	_OMAP1_DMA_TOUT_IRQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movl	40(%rbx), %edi
	callq	_mmc_dev
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	movq	_OMAP_DMA_DROP_IRQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movl	40(%rbx), %edi
	callq	_mmc_dev
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_7:
	movq	_OMAP_DMA_BLOCK_IRQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.8:
	movl	32(%rbx), %eax
	addl	%eax, (%r15)
	movq	8(%rbx), %rax
	movq	24(%rbx), %rsi
	incq	%rax
	movq	%rax, 8(%rbx)
	cmpq	16(%rbx), %rax
	jge	LBB0_9
## %bb.11:
	movq	%rbx, %rdi
	callq	_mmc_omap_prepare_dma
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_start_dma                 ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_omap_dma_done              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA callback while DMA not enabled\n"

	.comm	_OMAP1_DMA_TOUT_IRQ,4,2         ## @OMAP1_DMA_TOUT_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"DMA timeout\n"

	.comm	_OMAP_DMA_DROP_IRQ,4,2          ## @OMAP_DMA_DROP_IRQ
L_.str.2:                               ## @.str.2
	.asciz	"DMA sync error\n"

	.comm	_OMAP_DMA_BLOCK_IRQ,4,2         ## @OMAP_DMA_BLOCK_IRQ
	.no_dead_strip	_mmc_omap_dma_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_omap_dma_cb
_mmc_omap_dma_cb:                       ; @mmc_omap_dma_cb
	.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	x19, x2
	mov	x20, x1
	ldr	x21, [x2, #24]
	ldr	x8, [x2]
	lsr	x0, x8, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #40]
	bl	_mmc_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh2:
	adrp	x8, _OMAP1_DMA_TOUT_IRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OMAP1_DMA_TOUT_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19, #40]
	bl	_mmc_dev
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _OMAP_DMA_DROP_IRQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OMAP_DMA_DROP_IRQ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.5:
	ldr	w0, [x19, #40]
	bl	_mmc_dev
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	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	_dev_err
LBB0_7:
Lloh12:
	adrp	x8, _OMAP_DMA_BLOCK_IRQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OMAP_DMA_BLOCK_IRQ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x19, #32]
	ldr	w9, [x21]
	add	w8, w9, w8
	str	w8, [x21]
	ldp	x8, x9, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldr	x1, [x19, #24]
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_mmc_omap_prepare_dma
	ldr	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_start_dma
LBB0_10:
	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_11:
	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	_mmc_omap_dma_done
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA callback while DMA not enabled\n"

	.comm	_OMAP1_DMA_TOUT_IRQ,4,2         ; @OMAP1_DMA_TOUT_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"DMA timeout\n"

	.comm	_OMAP_DMA_DROP_IRQ,4,2          ; @OMAP_DMA_DROP_IRQ
l_.str.2:                               ; @.str.2
	.asciz	"DMA sync error\n"

	.comm	_OMAP_DMA_BLOCK_IRQ,4,2         ; @OMAP_DMA_BLOCK_IRQ
	.no_dead_strip	_mmc_omap_dma_cb
.subsections_via_symbols
