	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmio_mmc_irq
_tmio_mmc_irq:                          ## @tmio_mmc_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
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_CTL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sd_ctrl_read32
	movl	%eax, %r13d
	movq	_CTL_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sd_ctrl_read32
	movl	%eax, %ebx
	movq	_TMIO_MASK_IRQ@GOTPCREL(%rip), %rax
	movl	%ebx, %r12d
	notl	%r12d
	andl	%r13d, %r12d
	movl	(%rax), %r15d
	movl	%r13d, %edi
	callq	_pr_debug_status
	movl	%r12d, %edi
	andl	%r15d, %edi
	callq	_pr_debug_status
	andl	%r12d, %r15d
	je	LBB0_13
## %bb.1:
	leaq	L_.str.2(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CTL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sd_ctrl_read32
	movl	%eax, %r13d
	movq	_CTL_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sd_ctrl_read32
	movl	%eax, %ebx
	notl	%ebx
	andl	%r13d, %ebx
	movq	_TMIO_MASK_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	%r13d, %edi
	callq	_pr_debug_status
	andl	%ebx, %r15d
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_TMIO_STAT_CARD_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TMIO_STAT_CARD_INSERT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	testl	%r15d, %esi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ack_mmc_irqs
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_mmc_detect_change
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TMIO_MASK_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %esi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ack_mmc_irqs
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_tmio_mmc_cmd_irq
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TMIO_STAT_TXRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TMIO_STAT_RXRDY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	testl	%r15d, %esi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ack_mmc_irqs
	movq	%r14, %rdi
	callq	_tmio_mmc_pio_irq
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TMIO_STAT_DATAEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %esi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ack_mmc_irqs
	movq	%r14, %rdi
	callq	_tmio_mmc_data_irq
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_disable_mmc_irqs
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	movl	%r13d, %edi
	callq	_pr_debug_status
LBB0_12:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MMC IRQ begin\n"

	.comm	_CTL_STATUS,4,2                 ## @CTL_STATUS
	.comm	_CTL_IRQ_MASK,4,2               ## @CTL_IRQ_MASK
	.comm	_TMIO_MASK_IRQ,4,2              ## @TMIO_MASK_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"tmio_mmc: Spurious irq, disabling! 0x%08x 0x%08x 0x%08x\n"

	.comm	_TMIO_STAT_CARD_INSERT,4,2      ## @TMIO_STAT_CARD_INSERT
	.comm	_TMIO_STAT_CARD_REMOVE,4,2      ## @TMIO_STAT_CARD_REMOVE
	.comm	_TMIO_MASK_CMD,4,2              ## @TMIO_MASK_CMD
	.comm	_TMIO_STAT_RXRDY,4,2            ## @TMIO_STAT_RXRDY
	.comm	_TMIO_STAT_TXRQ,4,2             ## @TMIO_STAT_TXRQ
	.comm	_TMIO_STAT_DATAEND,4,2          ## @TMIO_STAT_DATAEND
L_.str.2:                               ## @.str.2
	.asciz	"Status at end of loop: %08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"MMC IRQ end\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tmio_mmc_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_irq
_tmio_mmc_irq:                          ; @tmio_mmc_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x8, _CTL_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CTL_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sd_ctrl_read32
	mov	x20, x0
Lloh5:
	adrp	x8, _CTL_IRQ_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CTL_IRQ_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sd_ctrl_read32
	mov	x21, x0
Lloh8:
	adrp	x8, _TMIO_MASK_IRQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TMIO_MASK_IRQ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w23, w20, w0
	and	w22, w23, w8
	mov	x0, x20
	bl	_pr_debug_status
	mov	x0, x22
	bl	_pr_debug_status
	cbz	w22, LBB0_12
; %bb.1:
Lloh11:
	adrp	x23, _TMIO_STAT_CARD_INSERT@GOTPAGE
Lloh12:
	ldr	x23, [x23, _TMIO_STAT_CARD_INSERT@GOTPAGEOFF]
Lloh13:
	adrp	x27, _TMIO_STAT_CARD_REMOVE@GOTPAGE
Lloh14:
	ldr	x27, [x27, _TMIO_STAT_CARD_REMOVE@GOTPAGEOFF]
Lloh15:
	adrp	x28, _TMIO_MASK_CMD@GOTPAGE
Lloh16:
	ldr	x28, [x28, _TMIO_MASK_CMD@GOTPAGEOFF]
Lloh17:
	adrp	x24, _TMIO_STAT_RXRDY@GOTPAGE
Lloh18:
	ldr	x24, [x24, _TMIO_STAT_RXRDY@GOTPAGEOFF]
Lloh19:
	adrp	x25, _TMIO_STAT_TXRQ@GOTPAGE
Lloh20:
	ldr	x25, [x25, _TMIO_STAT_TXRQ@GOTPAGEOFF]
Lloh21:
	adrp	x21, l_.str.2@PAGE
Lloh22:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh23:
	adrp	x26, _TMIO_STAT_DATAEND@GOTPAGE
Lloh24:
	ldr	x26, [x26, _TMIO_STAT_DATAEND@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh25:
	adrp	x8, _CTL_STATUS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CTL_STATUS@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sd_ctrl_read32
	mov	x20, x0
Lloh28:
	adrp	x8, _CTL_IRQ_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CTL_IRQ_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sd_ctrl_read32
Lloh31:
	adrp	x8, _TMIO_MASK_IRQ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TMIO_MASK_IRQ@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	bic	w9, w20, w0
	and	w22, w9, w8
	str	x20, [sp]
	mov	x0, x21
	bl	_pr_debug
	mov	x0, x20
	bl	_pr_debug_status
	cbz	w22, LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x27]
	orr	w1, w9, w8
	tst	w1, w22
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ack_mmc_irqs
	ldr	w0, [x19]
	mov	w1, #0
	bl	_mmc_detect_change
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x28]
	tst	w1, w22
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ack_mmc_irqs
	mov	x0, x19
	mov	x1, x20
	bl	_tmio_mmc_cmd_irq
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w1, w9, w8
	tst	w1, w22
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ack_mmc_irqs
	mov	x0, x19
	bl	_tmio_mmc_pio_irq
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x26]
	tst	w1, w22
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ack_mmc_irqs
	mov	x0, x19
	bl	_tmio_mmc_data_irq
	b	LBB0_2
LBB0_11:
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	mov	x1, x23
	bl	_disable_mmc_irqs
	stp	x21, xzr, [sp, #8]
	mov	x8, x20
	str	x8, [sp]
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	x0, x20
	bl	_pr_debug_status
LBB0_13:
Lloh38:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MMC IRQ begin\n"

	.comm	_CTL_STATUS,4,2                 ; @CTL_STATUS
	.comm	_CTL_IRQ_MASK,4,2               ; @CTL_IRQ_MASK
	.comm	_TMIO_MASK_IRQ,4,2              ; @TMIO_MASK_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"tmio_mmc: Spurious irq, disabling! 0x%08x 0x%08x 0x%08x\n"

	.comm	_TMIO_STAT_CARD_INSERT,4,2      ; @TMIO_STAT_CARD_INSERT
	.comm	_TMIO_STAT_CARD_REMOVE,4,2      ; @TMIO_STAT_CARD_REMOVE
	.comm	_TMIO_MASK_CMD,4,2              ; @TMIO_MASK_CMD
	.comm	_TMIO_STAT_RXRDY,4,2            ; @TMIO_STAT_RXRDY
	.comm	_TMIO_STAT_TXRQ,4,2             ; @TMIO_STAT_TXRQ
	.comm	_TMIO_STAT_DATAEND,4,2          ; @TMIO_STAT_DATAEND
l_.str.2:                               ; @.str.2
	.asciz	"Status at end of loop: %08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"MMC IRQ end\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tmio_mmc_irq
.subsections_via_symbols
