	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_start
___card_start:                          ## @__card_start
	.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), %rbx
	cmpq	%rdi, (%rax)
	ja	LBB0_12
## %bb.1:
	movq	%rdi, %r12
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_12
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	(%r12,%r12,2), %rbx
	callq	__CPU_ISR_Disable
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%r14, 16(%r13,%rbx,8)
LBB0_4:
	leaq	(,%rbx,8), %r14
	addq	%r13, %r14
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	%r15, 8(%r13,%rbx,8)
LBB0_6:
	movq	___unlocked_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_EXI_DEVICE_0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	___card_unlockedhandler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_EXI_Lock
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	$0, (%r14)
	movl	(%rbx), %esi
	movq	_EXI_SPEED16MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_EXI_Select
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	___setuptimeout
	movq	_CARD_ERROR_READY@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_7:
	movq	_CARD_ERROR_BUSY@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_9:
	movq	%r12, %rdi
	callq	_EXI_Unlock
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rbx
LBB0_11:
	callq	__CPU_ISR_Restore
LBB0_12:
	movq	(%rbx), %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	___unlocked_callback,8,3        ## @__unlocked_callback
	.comm	_EXI_DEVICE_0,4,2               ## @EXI_DEVICE_0
	.comm	___card_unlockedhandler,4,2     ## @__card_unlockedhandler
	.comm	_CARD_ERROR_BUSY,8,3            ## @CARD_ERROR_BUSY
	.comm	_EXI_SPEED16MHZ,4,2             ## @EXI_SPEED16MHZ
	.comm	_CARD_ERROR_READY,8,3           ## @CARD_ERROR_READY
	.no_dead_strip	___card_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_start
___card_start:                          ; @__card_start
	.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	x19, _CARD_ERROR_NOCARD@GOTPAGE
Lloh7:
	ldr	x19, [x19, _CARD_ERROR_NOCARD@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh8:
	adrp	x8, _cardmap@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh10:
	ldr	x23, [x8]
	mov	w8, #24
	madd	x20, x0, x8, x23
	bl	__CPU_ISR_Disable
	cbz	x22, LBB0_4
; %bb.3:
	mov	w8, #24
	madd	x8, x19, x8, x23
	str	x22, [x8, #16]
LBB0_4:
	cbz	x21, LBB0_6
; %bb.5:
	mov	w8, #24
	madd	x8, x19, x8, x23
	str	x21, [x8, #8]
LBB0_6:
Lloh11:
	adrp	x8, ___unlocked_callback@GOTPAGE
Lloh12:
	ldr	x8, [x8, ___unlocked_callback@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh14:
	adrp	x21, _EXI_DEVICE_0@GOTPAGE
Lloh15:
	ldr	x21, [x21, _EXI_DEVICE_0@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh16:
	adrp	x8, ___card_unlockedhandler@GOTPAGE
Lloh17:
	ldr	x8, [x8, ___card_unlockedhandler@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_EXI_Lock
	cbz	x0, LBB0_9
; %bb.7:
	str	xzr, [x20]
	ldr	w1, [x21]
Lloh19:
	adrp	x8, _EXI_SPEED16MHZ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXI_SPEED16MHZ@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_EXI_Select
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x20
	bl	___setuptimeout
Lloh22:
	adrp	x19, _CARD_ERROR_READY@GOTPAGE
Lloh23:
	ldr	x19, [x19, _CARD_ERROR_READY@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh24:
	adrp	x19, _CARD_ERROR_BUSY@GOTPAGE
Lloh25:
	ldr	x19, [x19, _CARD_ERROR_BUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_EXI_Unlock
Lloh26:
	adrp	x19, _CARD_ERROR_NOCARD@GOTPAGE
Lloh27:
	ldr	x19, [x19, _CARD_ERROR_NOCARD@GOTPAGEOFF]
LBB0_11:
	bl	__CPU_ISR_Restore
LBB0_12:
	ldr	x0, [x19]
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.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	___unlocked_callback,8,3        ; @__unlocked_callback
	.comm	_EXI_DEVICE_0,4,2               ; @EXI_DEVICE_0
	.comm	___card_unlockedhandler,4,2     ; @__card_unlockedhandler
	.comm	_CARD_ERROR_BUSY,8,3            ; @CARD_ERROR_BUSY
	.comm	_EXI_SPEED16MHZ,4,2             ; @EXI_SPEED16MHZ
	.comm	_CARD_ERROR_READY,8,3           ; @CARD_ERROR_READY
	.no_dead_strip	___card_start
.subsections_via_symbols
