	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __tmio_mmc_sdio_irq
___tmio_mmc_sdio_irq:                   ## @__tmio_mmc_sdio_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	8(%rdi), %r13
	movq	_TMIO_MMC_SDIO_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	_CTL_SDIO_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_sd_ctrl_read16
	movl	%eax, %r15d
	movq	_TMIO_SDIO_MASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %eax
	notl	%eax
	andl	%ecx, %eax
	notl	%ecx
	andl	%r15d, %ecx
	movq	_TMIO_MMC_SDIO_STATUS_SETBITS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%r13), %edx
	je	LBB0_4
## %bb.3:
	movq	_TMIO_SDIO_SETBITS_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_4:
	orl	%ecx, %edx
	andl	%eax, %r15d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sd_ctrl_write16
	movq	_MMC_CAP_SDIO_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.5:
	movq	_TMIO_SDIO_STAT_IOIRQ@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_mmc_signal_sdio_irq
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TMIO_MMC_SDIO_IRQ,4,2          ## @TMIO_MMC_SDIO_IRQ
	.comm	_CTL_SDIO_STATUS,4,2            ## @CTL_SDIO_STATUS
	.comm	_TMIO_SDIO_MASK_ALL,4,2         ## @TMIO_SDIO_MASK_ALL
	.comm	_TMIO_MMC_SDIO_STATUS_SETBITS,4,2 ## @TMIO_MMC_SDIO_STATUS_SETBITS
	.comm	_TMIO_SDIO_SETBITS_MASK,4,2     ## @TMIO_SDIO_SETBITS_MASK
	.comm	_MMC_CAP_SDIO_IRQ,4,2           ## @MMC_CAP_SDIO_IRQ
	.comm	_TMIO_SDIO_STAT_IOIRQ,4,2       ## @TMIO_SDIO_STAT_IOIRQ
	.no_dead_strip	___tmio_mmc_sdio_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_sdio_irq
___tmio_mmc_sdio_irq:                   ; @__tmio_mmc_sdio_irq
	.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
	ldr	x22, [x0, #8]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _TMIO_MMC_SDIO_IRQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TMIO_MMC_SDIO_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x19, [x0, #16]
Lloh3:
	adrp	x23, _CTL_SDIO_STATUS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CTL_SDIO_STATUS@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_sd_ctrl_read16
Lloh5:
	adrp	x8, _TMIO_SDIO_MASK_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TMIO_SDIO_MASK_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w9, w8, w0
	ldr	w10, [x21]
	bic	w20, w9, w10
	bic	w8, w0, w8
	ldr	w9, [x22]
Lloh8:
	adrp	x10, _TMIO_MMC_SDIO_STATUS_SETBITS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TMIO_MMC_SDIO_STATUS_SETBITS@GOTPAGEOFF]
Lloh10:
	adrp	x11, _TMIO_SDIO_SETBITS_MASK@GOTPAGE
Lloh11:
	ldr	x11, [x11, _TMIO_SDIO_SETBITS_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w2, w9, w8
	ldr	w1, [x23]
	mov	x0, x21
	bl	_sd_ctrl_write16
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _MMC_CAP_SDIO_IRQ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MMC_CAP_SDIO_IRQ@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
Lloh17:
	adrp	x8, _TMIO_SDIO_STAT_IOIRQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TMIO_SDIO_STAT_IOIRQ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_mmc_signal_sdio_irq
	b	LBB0_5
LBB0_4:
	mov	w20, #0
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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TMIO_MMC_SDIO_IRQ,4,2          ; @TMIO_MMC_SDIO_IRQ
	.comm	_CTL_SDIO_STATUS,4,2            ; @CTL_SDIO_STATUS
	.comm	_TMIO_SDIO_MASK_ALL,4,2         ; @TMIO_SDIO_MASK_ALL
	.comm	_TMIO_MMC_SDIO_STATUS_SETBITS,4,2 ; @TMIO_MMC_SDIO_STATUS_SETBITS
	.comm	_TMIO_SDIO_SETBITS_MASK,4,2     ; @TMIO_SDIO_SETBITS_MASK
	.comm	_MMC_CAP_SDIO_IRQ,4,2           ; @MMC_CAP_SDIO_IRQ
	.comm	_TMIO_SDIO_STAT_IOIRQ,4,2       ; @TMIO_SDIO_STAT_IOIRQ
	.no_dead_strip	___tmio_mmc_sdio_irq
.subsections_via_symbols
