	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_sendopcond
___card_sendopcond:                     ## @__card_sendopcond
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	$0, -64(%rbp)
	testq	%rdi, %rdi
	js	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_MAX_DRIVE@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jle	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	_gettick
	movq	%rax, %r14
	movq	__initType@GOTPCREL(%rip), %r13
	leaq	-80(%rbp), %r15
	movq	__ioResponse@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_TYPE_SDHC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	___card_sendappcmd
	movabsq	$274877906985, %rax             ## imm = 0x4000000029
	movq	%rax, -80(%rbp)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, -80(%rbp)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$5, %edx
	callq	___card_writecmd
	testq	%rax, %rax
	jne	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	___card_readresponse
	testq	%rax, %rax
	jne	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___check_response
	testq	%rax, %rax
	jne	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	__ioError@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CARDIO_OP_IOERR_IDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%rbx,4)
	je	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1500, %edx                     ## imm = 0x5DC
	callq	___card_checktimeout
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_TYPE_SDHC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	___card_sendappcmd
	movabsq	$274877906985, %rax             ## imm = 0x4000000029
	movq	%rax, -80(%rbp)
	jmp	LBB0_15
LBB0_2:
	movq	_CARDIO_ERROR_NOCARD@GOTPCREL(%rip), %rax
LBB0_21:
	movq	(%rax), %rax
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	$1, -80(%rbp)
LBB0_15:
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	___card_writecmd
	testq	%rax, %rax
	jne	LBB0_22
## %bb.16:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	___card_readresponse
	testq	%rax, %rax
	jne	LBB0_22
## %bb.17:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___check_response
	testq	%rax, %rax
	jne	LBB0_22
## %bb.18:
	movq	__ioError@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CARDIO_OP_IOERR_IDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%rbx,4)
	je	LBB0_20
## %bb.19:
	movq	_CARDIO_ERROR_IOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_20:
	movq	_CARDIO_ERROR_READY@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_24:
	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	__initType,8,3                  ## @_initType
	.comm	_TYPE_SDHC,8,3                  ## @TYPE_SDHC
	.comm	__ioResponse,8,3                ## @_ioResponse
	.comm	__ioError,8,3                   ## @_ioError
	.comm	_CARDIO_OP_IOERR_IDLE,4,2       ## @CARDIO_OP_IOERR_IDLE
	.comm	_CARDIO_ERROR_READY,8,3         ## @CARDIO_ERROR_READY
	.comm	_CARDIO_ERROR_IOERROR,8,3       ## @CARDIO_ERROR_IOERROR
	.no_dead_strip	___card_sendopcond
.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_sendopcond
lCPI0_0:
	.long	41                              ; 0x29
	.long	64                              ; 0x40
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
___card_sendopcond:                     ; @__card_sendopcond
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp]
	str	wzr, [sp, #16]
	tbnz	x0, #63, LBB0_13
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _MAX_DRIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_DRIVE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x0
	b.le	LBB0_13
; %bb.2:
	bl	_gettick
	mov	x20, x0
Lloh6:
	adrp	x25, __initType@GOTPAGE
Lloh7:
	ldr	x25, [x25, __initType@GOTPAGEOFF]
Lloh8:
	adrp	x24, _TYPE_SDHC@GOTPAGE
Lloh9:
	ldr	x24, [x24, _TYPE_SDHC@GOTPAGEOFF]
Lloh10:
	adrp	x23, __ioResponse@GOTPAGE
Lloh11:
	ldr	x23, [x23, __ioResponse@GOTPAGEOFF]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	mov	w26, #1
Lloh14:
	adrp	x22, __ioError@GOTPAGE
Lloh15:
	ldr	x22, [x22, __ioError@GOTPAGEOFF]
Lloh16:
	adrp	x21, _CARDIO_OP_IOERR_IDLE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _CARDIO_OP_IOERR_IDLE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	___card_sendappcmd
	str	d8, [sp]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w26, [sp]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, sp
	mov	x0, x19
	mov	w2, #5
	bl	___card_writecmd
	cbnz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldr	x1, [x8, x19, lsl #3]
	mov	x0, x19
	mov	w2, #1
	bl	___card_readresponse
	cbnz	x0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8]
	mov	x0, x19
	bl	___check_response
	cbnz	x0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	w8, [x8, x19, lsl #2]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1500
	bl	___card_checktimeout
	cbz	x0, LBB0_3
; %bb.11:
	ldr	x8, [x25]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.12:
	mov	x0, x19
	bl	___card_sendappcmd
	str	d8, [sp]
	b	LBB0_18
LBB0_13:
Lloh18:
	adrp	x8, _CARDIO_ERROR_NOCARD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CARDIO_ERROR_NOCARD@GOTPAGEOFF]
LBB0_14:
	ldr	x0, [x8]
LBB0_15:
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	mov	w8, #1
	str	w8, [sp]
LBB0_18:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #5
	bl	___card_writecmd
	cbnz	x0, LBB0_15
; %bb.19:
	ldr	x8, [x23]
	ldr	x1, [x8, x19, lsl #3]
	mov	x0, x19
	mov	w2, #1
	bl	___card_readresponse
	cbnz	x0, LBB0_15
; %bb.20:
	ldr	x8, [x23]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8]
	mov	x0, x19
	bl	___check_response
	cbnz	x0, LBB0_15
; %bb.21:
	ldr	x8, [x22]
	ldr	w8, [x8, x19, lsl #2]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
Lloh23:
	adrp	x8, _CARDIO_ERROR_IOERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CARDIO_ERROR_IOERROR@GOTPAGEOFF]
	b	LBB0_14
LBB0_23:
Lloh25:
	adrp	x8, _CARDIO_ERROR_READY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CARDIO_ERROR_READY@GOTPAGEOFF]
	b	LBB0_14
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DRIVE,8,3                  ; @MAX_DRIVE
	.comm	_CARDIO_ERROR_NOCARD,8,3        ; @CARDIO_ERROR_NOCARD
	.comm	__initType,8,3                  ; @_initType
	.comm	_TYPE_SDHC,8,3                  ; @TYPE_SDHC
	.comm	__ioResponse,8,3                ; @_ioResponse
	.comm	__ioError,8,3                   ; @_ioError
	.comm	_CARDIO_OP_IOERR_IDLE,4,2       ; @CARDIO_OP_IOERR_IDLE
	.comm	_CARDIO_ERROR_READY,8,3         ; @CARDIO_ERROR_READY
	.comm	_CARDIO_ERROR_IOERROR,8,3       ; @CARDIO_ERROR_IOERROR
	.no_dead_strip	___card_sendopcond
.subsections_via_symbols
