	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __retry
___retry:                               ## @__retry
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EXI_CHANNEL_0@GOTPCREL(%rip), %rax
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %r15
	cmpq	%rdi, (%rax)
	ja	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_15
## %bb.2:
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_EXI_DEVICE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXI_SPEED16MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_EXI_Select
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %r13
	shlq	$5, %r13
	leaq	(%r12,%r13), %r14
	movq	%r14, %rdi
	callq	___setuptimeout
	movq	(%r12,%r13), %rsi
	movl	28(%r12,%r13), %edx
	movq	_EXI_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_EXI_ImmEx
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	(%r14), %rax
	cmpl	$82, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_CARD_READSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%r12,%r13), %rsi
	movl	24(%r12,%r13), %edx
	movq	_EXI_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_EXI_ImmEx
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movl	16(%r12,%r13), %ecx
	cmpl	$-1, %ecx
	je	LBB0_8
## %bb.11:
	movq	(%r14), %rax
	cmpl	$82, (%rax)
	movl	$128, %edx
	jne	LBB0_13
## %bb.12:
	movq	_CARD_READSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_13:
	movl	20(%r12,%r13), %esi
	movq	___card_txhandler@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	callq	_EXI_Dma
	testq	%rax, %rax
	je	LBB0_9
## %bb.14:
	movq	_CARD_ERROR_READY@GOTPCREL(%rip), %r15
	jmp	LBB0_15
LBB0_3:
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %r15
	jmp	LBB0_10
LBB0_8:
	movq	_CARD_ERROR_READY@GOTPCREL(%rip), %r15
LBB0_9:
	movq	%rbx, %rdi
	callq	_EXI_Deselect
LBB0_10:
	movq	%rbx, %rdi
	callq	_EXI_Unlock
LBB0_15:
	movq	(%r15), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXI_CHANNEL_0,8,3              ## @EXI_CHANNEL_0
	.comm	_EXI_CHANNEL_2,8,3              ## @EXI_CHANNEL_2
	.comm	_CARD_ERROR_NOCARD,8,3          ## @CARD_ERROR_NOCARD
	.comm	_cardmap,8,3                    ## @cardmap
	.comm	_EXI_DEVICE_0,4,2               ## @EXI_DEVICE_0
	.comm	_EXI_SPEED16MHZ,4,2             ## @EXI_SPEED16MHZ
	.comm	_EXI_WRITE,4,2                  ## @EXI_WRITE
	.comm	_CARD_READSIZE,4,2              ## @CARD_READSIZE
	.comm	_CARD_ERROR_READY,8,3           ## @CARD_ERROR_READY
	.comm	___card_txhandler,4,2           ## @__card_txhandler
	.no_dead_strip	___retry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __retry
___retry:                               ; @__retry
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _EXI_CHANNEL_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXI_CHANNEL_0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EXI_CHANNEL_2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXI_CHANNEL_2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #0, ls
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x20, _CARD_ERROR_NOCARD@GOTPAGE
Lloh7:
	ldr	x20, [x20, _CARD_ERROR_NOCARD@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
	mov	x19, x0
Lloh8:
	adrp	x8, _cardmap@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh10:
	ldr	x21, [x8]
Lloh11:
	adrp	x8, _EXI_DEVICE_0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EXI_DEVICE_0@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _EXI_SPEED16MHZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EXI_SPEED16MHZ@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_EXI_Select
	cbz	x0, LBB0_9
; %bb.3:
	add	x20, x21, x19, lsl #5
	mov	x0, x20
	bl	___setuptimeout
	ldr	x1, [x20]
	ldr	w2, [x20, #28]
Lloh17:
	adrp	x23, _EXI_WRITE@GOTPAGE
Lloh18:
	ldr	x23, [x23, _EXI_WRITE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x19
	bl	_EXI_ImmEx
	cbz	x0, LBB0_10
; %bb.4:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh19:
	adrp	x22, _CARD_READSIZE@GOTPAGE
Lloh20:
	ldr	x22, [x22, _CARD_READSIZE@GOTPAGEOFF]
	cmp	w8, #82
	b.ne	LBB0_6
; %bb.5:
	add	x8, x21, x19, lsl #5
	ldr	x9, [x8, #8]
	ldrsw	x10, [x22]
	add	x1, x9, x10, lsl #2
	ldr	w2, [x8, #24]
	ldr	w3, [x23]
	mov	x0, x19
	bl	_EXI_ImmEx
	cbz	x0, LBB0_10
LBB0_6:
	add	x8, x21, x19, lsl #5
	ldr	w3, [x8, #16]
	cmn	w3, #1
	b.eq	LBB0_11
; %bb.7:
	ldr	x9, [x20]
	ldr	w9, [x9]
	ldr	w10, [x22]
	mov	w11, #128
	cmp	w9, #82
	csel	w2, w10, w11, eq
	ldr	w1, [x8, #20]
Lloh21:
	adrp	x8, ___card_txhandler@GOTPAGE
Lloh22:
	ldr	x8, [x8, ___card_txhandler@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_EXI_Dma
	cbz	x0, LBB0_10
; %bb.8:
Lloh24:
	adrp	x20, _CARD_ERROR_READY@GOTPAGE
Lloh25:
	ldr	x20, [x20, _CARD_ERROR_READY@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
Lloh26:
	adrp	x20, _CARD_ERROR_NOCARD@GOTPAGE
Lloh27:
	ldr	x20, [x20, _CARD_ERROR_NOCARD@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh28:
	adrp	x20, _CARD_ERROR_NOCARD@GOTPAGE
Lloh29:
	ldr	x20, [x20, _CARD_ERROR_NOCARD@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh30:
	adrp	x20, _CARD_ERROR_READY@GOTPAGE
Lloh31:
	ldr	x20, [x20, _CARD_ERROR_READY@GOTPAGEOFF]
LBB0_12:
	mov	x0, x19
	bl	_EXI_Deselect
LBB0_13:
	mov	x0, x19
	bl	_EXI_Unlock
LBB0_14:
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EXI_CHANNEL_0,8,3              ; @EXI_CHANNEL_0
	.comm	_EXI_CHANNEL_2,8,3              ; @EXI_CHANNEL_2
	.comm	_CARD_ERROR_NOCARD,8,3          ; @CARD_ERROR_NOCARD
	.comm	_cardmap,8,3                    ; @cardmap
	.comm	_EXI_DEVICE_0,4,2               ; @EXI_DEVICE_0
	.comm	_EXI_SPEED16MHZ,4,2             ; @EXI_SPEED16MHZ
	.comm	_EXI_WRITE,4,2                  ; @EXI_WRITE
	.comm	_CARD_READSIZE,4,2              ; @CARD_READSIZE
	.comm	_CARD_ERROR_READY,8,3           ; @CARD_ERROR_READY
	.comm	___card_txhandler,4,2           ; @__card_txhandler
	.no_dead_strip	___retry
.subsections_via_symbols
