	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_sd_status
___card_sd_status:                      ## @__card_sd_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_MAX_DRIVE@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	__ioPageSize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$64, (%rax,%rdi,4)
	je	LBB0_4
## %bb.3:
	movl	$64, (%rax,%rbx,4)
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	___card_setblocklen
	testq	%rax, %rax
	jne	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	___card_sendappcmd
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movl	$13, %esi
	xorl	%edx, %edx
	callq	___card_sendcmd
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	___card_response2
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movq	_g_CardStatus@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%rbx, %rdi
	movl	$64, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	___card_dataread                ## TAILCALL
LBB0_1:
	movq	_CARDIO_ERROR_NOCARD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DRIVE,8,3                  ## @MAX_DRIVE
	.comm	_CARDIO_ERROR_NOCARD,8,3        ## @CARDIO_ERROR_NOCARD
	.comm	__ioPageSize,8,3                ## @_ioPageSize
	.comm	_g_CardStatus,8,3               ## @g_CardStatus
	.no_dead_strip	___card_sd_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_sd_status
___card_sd_status:                      ; @__card_sd_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
Lloh0:
	adrp	x8, _MAX_DRIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_DRIVE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ls	LBB0_7
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, __ioPageSize@GOTPAGE
Lloh4:
	ldr	x8, [x8, __ioPageSize@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w9, [x8, x0, lsl #2]
	cmp	w9, #64
	b.eq	LBB0_3
; %bb.2:
	mov	w9, #64
	str	w9, [x8, x19, lsl #2]
	mov	x0, x19
	mov	w1, #64
	bl	___card_setblocklen
	cbnz	x0, LBB0_8
LBB0_3:
	mov	x0, x19
	bl	___card_sendappcmd
	cbnz	x0, LBB0_8
; %bb.4:
	mov	x0, x19
	mov	w1, #13
	mov	x2, #0
	bl	___card_sendcmd
	cbnz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	___card_response2
	cbnz	x0, LBB0_8
; %bb.6:
Lloh6:
	adrp	x8, _g_CardStatus@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_CardStatus@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w1, [x8, x19, lsl #2]
	mov	x0, x19
	mov	w2, #64
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___card_dataread
LBB0_7:
Lloh9:
	adrp	x8, _CARDIO_ERROR_NOCARD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CARDIO_ERROR_NOCARD@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DRIVE,8,3                  ; @MAX_DRIVE
	.comm	_CARDIO_ERROR_NOCARD,8,3        ; @CARDIO_ERROR_NOCARD
	.comm	__ioPageSize,8,3                ; @_ioPageSize
	.comm	_g_CardStatus,8,3               ; @g_CardStatus
	.no_dead_strip	___card_sd_status
.subsections_via_symbols
