	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_dma_cb
_omap_hsmmc_dma_cb:                     ## @omap_hsmmc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	_OMAP2_DMA_MISALIGNED_ERR_IRQ@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movl	40(%rbx), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
LBB0_2:
	movl	(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_5
## %bb.3:
	movq	8(%rbx), %rdx
	incq	%rdx
	movq	%rdx, 8(%rbx)
	cmpq	16(%rbx), %rdx
	jge	LBB0_4
## %bb.6:
	movq	32(%rbx), %rsi
	addq	(%rsi), %rdx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_omap_hsmmc_config_dma_params   ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	_omap_free_dma
	movl	$-1, (%rbx)
	addq	$24, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_up                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP2_DMA_MISALIGNED_ERR_IRQ,4,2 ## @OMAP2_DMA_MISALIGNED_ERR_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MISALIGNED_ADRS_ERR\n"

	.no_dead_strip	_omap_hsmmc_dma_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_dma_cb
_omap_hsmmc_dma_cb:                     ; @omap_hsmmc_dma_cb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
Lloh0:
	adrp	x8, _OMAP2_DMA_MISALIGNED_ERR_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP2_DMA_MISALIGNED_ERR_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #40]
	bl	_mmc_dev
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_2:
	ldr	w0, [x19]
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldp	x8, x9, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.4:
	ldr	x1, [x19, #32]
	ldr	x9, [x1]
	add	x2, x9, x8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_omap_hsmmc_config_dma_params
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_omap_free_dma
	mov	w8, #-1
	str	w8, [x19], #24
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_up
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP2_DMA_MISALIGNED_ERR_IRQ,4,2 ; @OMAP2_DMA_MISALIGNED_ERR_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MISALIGNED_ADRS_ERR\n"

	.no_dead_strip	_omap_hsmmc_dma_cb
.subsections_via_symbols
