	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmio_mmc_pio_irq
_tmio_mmc_pio_irq:                      ## @tmio_mmc_pio_irq
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.5:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_1:
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:
	movq	8(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	callq	_tmio_mmc_kmap_atomic
	movq	%rax, %r15
	movslq	(%rbx), %rdx
	movq	%rdx, %r12
	addq	%rax, %r12
	movq	8(%rbx), %rax
	movl	(%rax), %r13d
	subl	%edx, %r13d
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	cmpl	%eax, %r13d
	cmovael	%eax, %r13d
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_tmio_mmc_transfer_data
	addl	%r13d, (%rbx)
	movq	8(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdx
	callq	_tmio_mmc_kunmap_atomic
	movl	(%rbx), %eax
	movq	8(%rbx), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_tmio_mmc_next_sg
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PIO IRQ in DMA mode!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Spurious PIO IRQ\n"

L_.str.2:                               ## @.str.2
	.asciz	"count: %08x offset: %08x flags %08x\n"

	.no_dead_strip	_tmio_mmc_pio_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmio_mmc_pio_irq
_tmio_mmc_pio_irq:                      ; @tmio_mmc_pio_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_pr_err
LBB0_2:
	mov	x19, x0
	ldr	x22, [x0, #24]
	cbz	x22, LBB0_6
; %bb.3:
	ldr	x0, [x19, #8]
	add	x1, sp, #24
	bl	_tmio_mmc_kmap_atomic
	mov	x20, x0
	ldrsw	x8, [x19]
	add	x21, x0, x8
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	ldp	w10, w11, [x22]
	sub	w9, w9, w8
	cmp	w9, w10
	csel	w22, w9, w10, lo
	stp	x8, x11, [sp, #8]
	str	x22, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_tmio_mmc_transfer_data
	ldr	w8, [x19]
	add	w8, w8, w22
	str	w8, [x19]
	ldr	x0, [x19, #8]
	add	x1, sp, #24
	mov	x2, x20
	bl	_tmio_mmc_kunmap_atomic
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_tmio_mmc_next_sg
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_pr_debug
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PIO IRQ in DMA mode!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Spurious PIO IRQ\n"

l_.str.2:                               ; @.str.2
	.asciz	"count: %08x offset: %08x flags %08x\n"

	.no_dead_strip	_tmio_mmc_pio_irq
.subsections_via_symbols
