	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_mmc_irq_thread
_meson_mmc_irq_thread:                  ## @meson_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	16(%rsi), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_meson_mmc_wait_desc_stop
	movl	4(%r14), %edi
LBB0_4:
	movl	(%rbx), %esi
	callq	_meson_mmc_request_done
	jmp	LBB0_9
LBB0_5:
	movq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_meson_mmc_bounce_buf_read
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	4(%r15), %r12d
	imull	(%r15), %r12d
	xorl	%edi, %edi
	cmpl	(%r14), %r12d
	seta	%dil
	callq	_WARN_ON
	movl	8(%r15), %esi
	movl	12(%r15), %edi
	movl	8(%r14), %edx
	movl	%r12d, %ecx
	callq	_sg_copy_from_buffer
LBB0_7:
	movq	%rbx, %rdi
	callq	_meson_mmc_get_next_command
	movl	4(%r14), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	%rax, %rsi
	callq	_meson_mmc_start_cmd
LBB0_9:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_meson_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_mmc_irq_thread
_meson_mmc_irq_thread:                  ; @meson_mmc_irq_thread
	.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
	ldr	x19, [x1, #16]
	cmp	x19, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_meson_mmc_wait_desc_stop
	ldr	w0, [x20, #4]
LBB0_4:
	ldr	w1, [x19]
	bl	_meson_mmc_request_done
	b	LBB0_9
LBB0_5:
	ldr	x21, [x19, #8]
	mov	x0, x21
	bl	_meson_mmc_bounce_buf_read
	cbz	x0, LBB0_7
; %bb.6:
	ldp	w8, w9, [x21]
	mul	w22, w9, w8
	ldr	w8, [x20]
	cmp	w22, w8
	cset	w0, hi
	bl	_WARN_ON
	ldp	w1, w0, [x21, #8]
	ldr	w2, [x20, #8]
	mov	x3, x22
	bl	_sg_copy_from_buffer
LBB0_7:
	mov	x0, x19
	bl	_meson_mmc_get_next_command
	mov	x1, x0
	ldr	w0, [x20, #4]
	cbz	x1, LBB0_4
; %bb.8:
	bl	_meson_mmc_start_cmd
LBB0_9:
Lloh2:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_meson_mmc_irq_thread
.subsections_via_symbols
