	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_response2
___card_response2:                      ## @__card_response2
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MAX_DRIVE@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	__ioResponse@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax,%rdi,8), %rsi
	movl	$2, %edx
	callq	___card_readresponse
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	testb	$124, (%rax)
	jne	LBB0_6
## %bb.4:
	testb	$-98, 4(%rax)
	je	LBB0_5
LBB0_6:
	movq	_CARDIO_ERROR_FATALERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_CARDIO_ERROR_NOCARD@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_CARDIO_ERROR_READY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.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
	.comm	_CARDIO_ERROR_READY,8,3         ## @CARDIO_ERROR_READY
	.comm	_CARDIO_ERROR_FATALERROR,8,3    ## @CARDIO_ERROR_FATALERROR
	.no_dead_strip	___card_response2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_response2
___card_response2:                      ; @__card_response2
	.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_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, __ioResponse@GOTPAGE
Lloh4:
	ldr	x20, [x20, __ioResponse@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x1, [x8, x0, lsl #3]
	mov	w2, #2
	bl	___card_readresponse
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8, x19, lsl #3]
	ldrb	w9, [x8]
	tst	w9, #0x7c
	b.ne	LBB0_4
; %bb.3:
	ldrb	w8, [x8, #4]
	mov	w9, #158
	tst	w8, w9
	b.eq	LBB0_8
LBB0_4:
Lloh5:
	adrp	x8, _CARDIO_ERROR_FATALERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CARDIO_ERROR_FATALERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _CARDIO_ERROR_NOCARD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CARDIO_ERROR_NOCARD@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh9:
	adrp	x8, _CARDIO_ERROR_READY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CARDIO_ERROR_READY@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.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
	.comm	_CARDIO_ERROR_READY,8,3         ; @CARDIO_ERROR_READY
	.comm	_CARDIO_ERROR_FATALERROR,8,3    ; @CARDIO_ERROR_FATALERROR
	.no_dead_strip	___card_response2
.subsections_via_symbols
