	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_dma_callback
_omap_hsmmc_dma_callback:               ## @omap_hsmmc_dma_callback
	.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, %rbx
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	cmpl	$0, (%rbx)
	js	LBB0_5
## %bb.1:
	movq	16(%rbx), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_omap_hsmmc_get_dma_chan
	cmpl	$0, 8(%r15)
	jne	LBB0_3
## %bb.2:
	movq	(%rax), %rax
	movl	(%rax), %r12d
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %r13d
	movq	%r15, %rdi
	callq	_mmc_get_dma_dir
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_dma_unmap_sg
LBB0_3:
	movl	$-1, (%rbx)
	movl	4(%rbx), %r15d
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
LBB0_6:
	movq	16(%rbx), %rsi
	movq	$0, 16(%rbx)
	movl	8(%rbx), %edi
	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_dma_callback
.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_callback
_omap_hsmmc_dma_callback:               ; @omap_hsmmc_dma_callback
	.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
	add	x20, x0, #24
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_omap_hsmmc_get_dma_chan
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x0]
	ldr	w22, [x8]
	ldp	w24, w23, [x21]
	mov	x0, x21
	bl	_mmc_get_dma_dir
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_dma_unmap_sg
LBB0_3:
	ldr	w21, [x19, #4]
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irq
	cbz	w21, LBB0_6
; %bb.4:
	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_5:
	mov	x0, x20
	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	_spin_unlock_irq
LBB0_6:
	ldr	x1, [x19, #16]
	str	xzr, [x19, #16]
	ldr	w0, [x19, #8]
	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_dma_callback
.subsections_via_symbols
