	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tifm_sd_check_status
_tifm_sd_check_status:                  ## @tifm_sd_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rcx
	movq	8(%rcx), %rdx
	cmpq	$0, 8(%rdx)
	je	LBB0_1
LBB0_6:
	addq	$4, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_schedule               ## TAILCALL
LBB0_1:
	movl	(%rbx), %eax
	movq	_CMD_READY@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_21
## %bb.2:
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:
	cmpq	$0, 8(%rdx)
	je	LBB0_7
## %bb.4:
	movq	_SCMD_ACTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_5:
	movq	_SCMD_READY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
	jmp	LBB0_21
LBB0_7:
	movq	_BRS_READY@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_21
## %bb.8:
	movq	24(%rbx), %r15
	cmpq	$0, 16(%rbx)
	jne	LBB0_10
## %bb.9:
	movq	_FIFO_READY@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_21
LBB0_10:
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	movq	(%rcx), %rsi
	testl	%edi, (%rdx)
	je	LBB0_17
## %bb.11:
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.12:
	movq	_SCMD_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_13
## %bb.14:
	movq	_SCMD_READY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
LBB0_15:
	movq	_CARD_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.18:
	movq	_SCMD_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_5
## %bb.19:
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_20
LBB0_13:
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	_TIFM_MMCSD_EOFB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_SOCK_MMCSD_INT_ENABLE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl
	orl	%eax, %r14d
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
LBB0_20:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tifm_sd_exec                   ## TAILCALL
LBB0_16:
	movq	_TIFM_MMCSD_EOFB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	notl	%r14d
	movq	_SOCK_MMCSD_INT_ENABLE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl
	andl	%eax, %r14d
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%r14d, %edi
	callq	_writel
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_READY,4,2                  ## @CMD_READY
	.comm	_SCMD_ACTIVE,4,2                ## @SCMD_ACTIVE
	.comm	_SCMD_READY,4,2                 ## @SCMD_READY
	.comm	_BRS_READY,4,2                  ## @BRS_READY
	.comm	_FIFO_READY,4,2                 ## @FIFO_READY
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_TIFM_MMCSD_EOFB,4,2            ## @TIFM_MMCSD_EOFB
	.comm	_SOCK_MMCSD_INT_ENABLE,8,3      ## @SOCK_MMCSD_INT_ENABLE
	.comm	_CARD_BUSY,4,2                  ## @CARD_BUSY
	.no_dead_strip	_tifm_sd_check_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tifm_sd_check_status
_tifm_sd_check_status:                  ; @tifm_sd_check_status
	.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, x0
	ldr	x9, [x0, #8]
	ldr	x10, [x9, #8]
	ldr	x8, [x10, #8]
	cbz	x8, LBB0_2
LBB0_1:
	add	x0, x19, #4
	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
	b	_tasklet_schedule
LBB0_2:
	ldr	w8, [x19]
Lloh0:
	adrp	x11, _CMD_READY@GOTPAGE
Lloh1:
	ldr	x11, [x11, _CMD_READY@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_15
; %bb.3:
	ldr	x10, [x10]
	cbz	x10, LBB0_1
; %bb.4:
	ldr	x11, [x10, #8]
	cbz	x11, LBB0_7
; %bb.5:
Lloh3:
	adrp	x9, _SCMD_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCMD_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
LBB0_6:
Lloh6:
	adrp	x9, _SCMD_READY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SCMD_READY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
	b	LBB0_15
LBB0_7:
Lloh9:
	adrp	x11, _BRS_READY@GOTPAGE
Lloh10:
	ldr	x11, [x11, _BRS_READY@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_15
; %bb.8:
	ldp	x11, x20, [x19, #16]
	cbnz	x11, LBB0_10
; %bb.9:
Lloh12:
	adrp	x11, _FIFO_READY@GOTPAGE
Lloh13:
	ldr	x11, [x11, _FIFO_READY@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_15
LBB0_10:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _MMC_DATA_WRITE@GOTPAGE
Lloh16:
	ldr	x11, [x11, _MMC_DATA_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	ldr	x1, [x9]
	tst	w11, w10
	b.eq	LBB0_16
; %bb.11:
	cbz	x1, LBB0_14
; %bb.12:
Lloh18:
	adrp	x9, _SCMD_ACTIVE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SCMD_ACTIVE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.13:
Lloh21:
	adrp	x9, _SCMD_READY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SCMD_READY@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_14:
Lloh24:
	adrp	x9, _CARD_BUSY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CARD_BUSY@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
LBB0_15:
	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
LBB0_16:
	cbz	x1, LBB0_1
; %bb.17:
Lloh27:
	adrp	x9, _SCMD_ACTIVE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SCMD_ACTIVE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.18:
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_20
LBB0_19:
	orr	w8, w9, w8
	str	w8, [x19]
Lloh30:
	adrp	x8, _TIFM_MMCSD_EOFB@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TIFM_MMCSD_EOFB@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
	ldr	x8, [x20]
Lloh33:
	adrp	x22, _SOCK_MMCSD_INT_ENABLE@GOTPAGE
Lloh34:
	ldr	x22, [x22, _SOCK_MMCSD_INT_ENABLE@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w0, w21
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
LBB0_20:
	mov	x0, x19
	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
	b	_tifm_sd_exec
LBB0_21:
Lloh35:
	adrp	x8, _TIFM_MMCSD_EOFB@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TIFM_MMCSD_EOFB@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
	ldr	x8, [x20]
Lloh38:
	adrp	x22, _SOCK_MMCSD_INT_ENABLE@GOTPAGE
Lloh39:
	ldr	x22, [x22, _SOCK_MMCSD_INT_ENABLE@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	bic	w0, w0, w21
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_READY,4,2                  ; @CMD_READY
	.comm	_SCMD_ACTIVE,4,2                ; @SCMD_ACTIVE
	.comm	_SCMD_READY,4,2                 ; @SCMD_READY
	.comm	_BRS_READY,4,2                  ; @BRS_READY
	.comm	_FIFO_READY,4,2                 ; @FIFO_READY
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_TIFM_MMCSD_EOFB,4,2            ; @TIFM_MMCSD_EOFB
	.comm	_SOCK_MMCSD_INT_ENABLE,8,3      ; @SOCK_MMCSD_INT_ENABLE
	.comm	_CARD_BUSY,4,2                  ; @CARD_BUSY
	.no_dead_strip	_tifm_sd_check_status
.subsections_via_symbols
