	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_check
___card_check:                          ## @__card_check
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FALSE@GOTPCREL(%rip), %r14
	testq	%rdi, %rdi
	js	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	_MAX_DRIVE@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_EXI_ProbeEx
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	cmpq	$1, %rax
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	_EXI_GetState
	movq	_EXI_FLAG_ATTACH@GOTPCREL(%rip), %rcx
	movq	_TRUE@GOTPCREL(%rip), %r15
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	___card_exthandler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EXI_Attach
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_sdgecko_insertedCB
LBB0_7:
	movq	%r15, %r14
LBB0_8:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DRIVE,8,3                  ## @MAX_DRIVE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_EXI_FLAG_ATTACH,4,2            ## @EXI_FLAG_ATTACH
	.comm	___card_exthandler,4,2          ## @__card_exthandler
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	___card_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_check
___card_check:                          ; @__card_check
	.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, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	tbnz	x0, #63, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x9, _MAX_DRIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_DRIVE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, x0
	b.le	LBB0_9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_EXI_ProbeEx
	cbz	x0, LBB0_2
; %bb.3:
	cmp	x0, #1
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_EXI_GetState
Lloh5:
	adrp	x8, _EXI_FLAG_ATTACH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXI_FLAG_ATTACH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, ___card_exthandler@GOTPAGE
Lloh9:
	ldr	x8, [x8, ___card_exthandler@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EXI_Attach
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_sdgecko_insertedCB
LBB0_7:
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DRIVE,8,3                  ; @MAX_DRIVE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_EXI_FLAG_ATTACH,4,2            ; @EXI_FLAG_ATTACH
	.comm	___card_exthandler,4,2          ; @__card_exthandler
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	___card_check
.subsections_via_symbols
