	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_thread_irq
_sdhci_thread_irq:                      ## @sdhci_thread_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_sdhci_request_done
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %r15d
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_SDHCI_INT_CARD_INSERT@GOTPCREL(%rip), %rax
	movq	_SDHCI_INT_CARD_REMOVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rbx
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	$200, %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mmc_detect_change
LBB0_4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_INT_CARD_INSERT,4,2      ## @SDHCI_INT_CARD_INSERT
	.comm	_SDHCI_INT_CARD_REMOVE,4,2      ## @SDHCI_INT_CARD_REMOVE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_sdhci_thread_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_thread_irq
_sdhci_thread_irq:                      ; @sdhci_thread_irq
	.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	x19, x1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_sdhci_request_done
	cbz	w0, LBB0_1
; %bb.2:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w21, [x19]
	str	wzr, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh0:
	adrp	x8, _SDHCI_INT_CARD_INSERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_INT_CARD_INSERT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SDHCI_INT_CARD_REMOVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDHCI_INT_CARD_REMOVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	x19, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	w0, #200
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_mmc_detect_change
LBB0_4:
Lloh6:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh8:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_INT_CARD_INSERT,4,2      ; @SDHCI_INT_CARD_INSERT
	.comm	_SDHCI_INT_CARD_REMOVE,4,2      ; @SDHCI_INT_CARD_REMOVE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_sdhci_thread_irq
.subsections_via_symbols
