	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __tmio_mmc_card_detect_irq
___tmio_mmc_card_detect_irq:            ## @__tmio_mmc_card_detect_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
	movl	%esi, %ebx
	movq	_TMIO_STAT_CARD_INSERT@GOTPCREL(%rip), %r13
	movq	_TMIO_STAT_CARD_REMOVE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	orl	(%r13), %esi
	testl	%ebx, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	(%rdi), %r12
	callq	_tmio_mmc_ack_mmc_irqs
	testl	%ebx, (%r14)
	je	LBB0_4
## %bb.3:
	cmpq	$0, 8(%r12)
	jne	LBB0_6
LBB0_4:
	movl	$1, %r14d
	testl	%ebx, (%r13)
	je	LBB0_8
## %bb.5:
	cmpq	$0, 8(%r12)
	jne	LBB0_8
LBB0_6:
	movq	%r12, %rdi
	callq	_work_pending
	movl	$1, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	(%r15), %rbx
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mmc_detect_change
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TMIO_STAT_CARD_INSERT,4,2      ## @TMIO_STAT_CARD_INSERT
	.comm	_TMIO_STAT_CARD_REMOVE,4,2      ## @TMIO_STAT_CARD_REMOVE
	.no_dead_strip	___tmio_mmc_card_detect_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_card_detect_irq
___tmio_mmc_card_detect_irq:            ; @__tmio_mmc_card_detect_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
	mov	x20, x1
Lloh0:
	adrp	x22, _TMIO_STAT_CARD_INSERT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TMIO_STAT_CARD_INSERT@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _TMIO_STAT_CARD_REMOVE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TMIO_STAT_CARD_REMOVE@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w1, w9, w8
	tst	w1, w20
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0]
	bl	_tmio_mmc_ack_mmc_irqs
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_5
LBB0_3:
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_work_pending
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x19, [x19]
	mov	w0, #100
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_mmc_detect_change
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TMIO_STAT_CARD_INSERT,4,2      ; @TMIO_STAT_CARD_INSERT
	.comm	_TMIO_STAT_CARD_REMOVE,4,2      ; @TMIO_STAT_CARD_REMOVE
	.no_dead_strip	___tmio_mmc_card_detect_irq
.subsections_via_symbols
