	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_sendCMD8
___card_sendCMD8:                       ## @__card_sendCMD8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_MAX_DRIVE@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	$8, -48(%rbp)
	movabsq	$730144440321, %rax             ## imm = 0xAA00000001
	movq	%rax, -36(%rbp)
	leaq	-48(%rbp), %rsi
	movl	$5, %edx
	callq	___card_writecmd
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	__ioResponse@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	___card_readresponse
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___check_response
	jmp	LBB0_5
LBB0_1:
	movq	_CARDIO_ERROR_NOCARD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DRIVE,8,3                  ## @MAX_DRIVE
	.comm	_CARDIO_ERROR_NOCARD,8,3        ## @CARDIO_ERROR_NOCARD
	.comm	__ioResponse,8,3                ## @_ioResponse
	.no_dead_strip	___card_sendCMD8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function __card_sendCMD8
lCPI0_0:
	.long	1                               ; 0x1
	.long	170                             ; 0xaa
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
___card_sendCMD8:                       ; @__card_sendCMD8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stur	xzr, [sp, #8]
Lloh3:
	adrp	x8, _MAX_DRIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_DRIVE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ls	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w8, #8
	str	w8, [sp, #4]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #16]
	add	x1, sp, #4
	mov	w2, #5
	bl	___card_writecmd
	cbnz	x0, LBB0_5
; %bb.2:
Lloh8:
	adrp	x20, __ioResponse@GOTPAGE
Lloh9:
	ldr	x20, [x20, __ioResponse@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x1, [x8, x19, lsl #3]
	mov	x0, x19
	mov	w2, #5
	bl	___card_readresponse
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8]
	mov	x0, x19
	bl	___check_response
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _CARDIO_ERROR_NOCARD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CARDIO_ERROR_NOCARD@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
LBB0_5:
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DRIVE,8,3                  ; @MAX_DRIVE
	.comm	_CARDIO_ERROR_NOCARD,8,3        ; @CARDIO_ERROR_NOCARD
	.comm	__ioResponse,8,3                ; @_ioResponse
	.no_dead_strip	___card_sendCMD8
.subsections_via_symbols
