	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_mx_mmc_irq_thread
_meson_mx_mmc_irq_thread:               ## @meson_mx_mmc_irq_thread
	.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	%rsi, %r14
	movq	8(%rsi), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	leaq	4(%r14), %rdi
	callq	_del_timer_sync
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	callq	_mmc_dev
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	movl	12(%rdi), %r12d
	movl	16(%rdi), %r13d
	callq	_mmc_get_dma_dir
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dma_unmap_sg
	movq	(%rbx), %rax
	movl	8(%rax), %ecx
	imull	4(%rax), %ecx
	movl	%ecx, (%rax)
LBB0_3:
	movq	%rbx, %rdi
	callq	_meson_mx_mmc_get_next_cmd
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_meson_mx_mmc_start_cmd
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_meson_mx_mmc_request_done
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_meson_mx_mmc_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_mx_mmc_irq_thread
_meson_mx_mmc_irq_thread:               ; @meson_mx_mmc_irq_thread
	.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, x1
	ldr	x20, [x1, #8]
	cmp	x20, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_6
; %bb.1:
	add	x0, x19, #4
	bl	_del_timer_sync
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	bl	_mmc_dev
	mov	x21, x0
	ldr	x0, [x20]
	ldp	w23, w22, [x0, #12]
	bl	_mmc_get_dma_dir
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_dma_unmap_sg
	ldr	x8, [x20]
	ldp	w9, w10, [x8, #4]
	mul	w9, w10, w9
	str	w9, [x8]
LBB0_3:
	mov	x0, x20
	bl	_meson_mx_mmc_get_next_cmd
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
	ldr	w0, [x19]
	bl	_meson_mx_mmc_start_cmd
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_meson_mx_mmc_request_done
LBB0_6:
Lloh0:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_meson_mx_mmc_irq_thread
.subsections_via_symbols
