	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imxmci_check_status
_imxmci_check_status:                   ## @imxmci_check_status
	.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	%rdi, %r15
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	movl	20(%r15), %edi
	callq	_mmc_dev
	movl	%eax, %edi
	callq	*%rbx
	movl	(%r15), %ecx
	cmpl	%ecx, %eax
	je	LBB0_4
## %bb.3:
	xorl	$1, %ecx
	movl	%ecx, (%r15)
	movl	20(%r15), %edi
	callq	_mmc_dev
	cmpl	$0, (%r15)
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_info
	movq	_IMXMCI_PEND_CARD_XCHG_b@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %rsi
	callq	_set_bit
	leaq	12(%r15), %rdi
	callq	_tasklet_schedule
LBB0_4:
	movq	_IMXMCI_PEND_WAIT_RESP_b@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_IMXMCI_PEND_DMA_DATA_b@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_atomic_inc
	movq	%rbx, %rdi
	callq	_atomic_read
	cmpl	$5, %eax
	jl	LBB0_9
## %bb.7:
	leaq	12(%r15), %rdi
	callq	_tasklet_schedule
	jmp	LBB0_9
LBB0_8:
	leaq	8(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
LBB0_9:
	addq	$4, %r15
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	sarl	%ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"inserted"

L_.str.2:                               ## @.str.2
	.asciz	"removed"

	.comm	_IMXMCI_PEND_CARD_XCHG_b,4,2    ## @IMXMCI_PEND_CARD_XCHG_b
	.comm	_IMXMCI_PEND_WAIT_RESP_b,4,2    ## @IMXMCI_PEND_WAIT_RESP_b
	.comm	_IMXMCI_PEND_DMA_DATA_b,4,2     ## @IMXMCI_PEND_DMA_DATA_b
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_imxmci_check_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imxmci_check_status
_imxmci_check_status:                   ; @imxmci_check_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x20, [x8]
	cbz	x20, LBB0_4
; %bb.2:
	ldr	w0, [x19, #20]
	bl	_mmc_dev
	blr	x20
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.3:
	eor	w8, w8, #0x1
	str	w8, [x19]
	ldr	w0, [x19, #20]
	bl	_mmc_dev
	ldr	w8, [x19]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh6:
	adrp	x8, _IMXMCI_PEND_CARD_XCHG_b@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMXMCI_PEND_CARD_XCHG_b@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_set_bit
	add	x0, x19, #12
	bl	_tasklet_schedule
LBB0_4:
Lloh9:
	adrp	x8, _IMXMCI_PEND_WAIT_RESP_b@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IMXMCI_PEND_WAIT_RESP_b@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x20, x19, #16
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _IMXMCI_PEND_DMA_DATA_b@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IMXMCI_PEND_DMA_DATA_b@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_8
LBB0_6:
	add	x20, x19, #8
	mov	x0, x20
	bl	_atomic_inc
	mov	x0, x20
	bl	_atomic_read
	cmp	w0, #5
	b.lt	LBB0_9
; %bb.7:
	add	x0, x19, #12
	bl	_tasklet_schedule
	b	LBB0_9
LBB0_8:
	add	x0, x19, #8
	mov	w1, #0
	bl	_atomic_set
LBB0_9:
	add	x0, x19, #4
Lloh15:
	adrp	x8, _jiffies@GOTPAGE
Lloh16:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh17:
	adrp	x9, _HZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	ldr	w9, [x9]
	asr	w9, w9, #1
	add	x1, x8, w9, sxtw
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"inserted"

l_.str.2:                               ; @.str.2
	.asciz	"removed"

	.comm	_IMXMCI_PEND_CARD_XCHG_b,4,2    ; @IMXMCI_PEND_CARD_XCHG_b
	.comm	_IMXMCI_PEND_WAIT_RESP_b,4,2    ; @IMXMCI_PEND_WAIT_RESP_b
	.comm	_IMXMCI_PEND_DMA_DATA_b,4,2     ; @IMXMCI_PEND_DMA_DATA_b
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_imxmci_check_status
.subsections_via_symbols
