	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_unlockedhandler
___card_unlockedhandler:                ## @__card_unlockedhandler
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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_6
## %bb.1:
	movq	%rdi, %rbx
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_6
## %bb.2:
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %r12
	movq	_CARD_ERROR_UNLOCKED@GOTPCREL(%rip), %r15
	testq	%r12, %r12
	je	LBB0_6
## %bb.3:
	movq	_CARD_ERROR_READY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	$0, (%rax,%rbx,8)
	movq	%rbx, %rdi
	callq	_EXI_Probe
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%r12
LBB0_6:
	movq	(%r15), %rax
	popq	%rbx
	popq	%r12
	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	_CARD_ERROR_READY,8,3           ## @CARD_ERROR_READY
	.comm	_CARD_ERROR_UNLOCKED,8,3        ## @CARD_ERROR_UNLOCKED
	.no_dead_strip	___card_unlockedhandler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_unlockedhandler
___card_unlockedhandler:                ; @__card_unlockedhandler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _EXI_CHANNEL_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXI_CHANNEL_0@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EXI_CHANNEL_2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EXI_CHANNEL_2@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x20, _CARD_ERROR_NOCARD@GOTPAGE
Lloh7:
	ldr	x20, [x20, _CARD_ERROR_NOCARD@GOTPAGEOFF]
	cmp	x8, x0
	ccmp	x9, x0, #0, ls
	b.ls	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh8:
	adrp	x8, _cardmap@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x21, [x8, x0, lsl #3]
	cbz	x21, LBB0_3
; %bb.2:
Lloh11:
	adrp	x9, _CARD_ERROR_READY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CARD_ERROR_READY@GOTPAGEOFF]
Lloh13:
	ldr	x22, [x9]
	str	xzr, [x8, x19, lsl #3]
	mov	x0, x19
	bl	_EXI_Probe
	ldr	x8, [x20]
	cmp	x0, #0
	csel	x1, x8, x22, eq
	mov	x0, x19
	blr	x21
LBB0_3:
Lloh14:
	adrp	x20, _CARD_ERROR_UNLOCKED@GOTPAGE
Lloh15:
	ldr	x20, [x20, _CARD_ERROR_UNLOCKED@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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	_CARD_ERROR_READY,8,3           ; @CARD_ERROR_READY
	.comm	_CARD_ERROR_UNLOCKED,8,3        ; @CARD_ERROR_UNLOCKED
	.no_dead_strip	___card_unlockedhandler
.subsections_via_symbols
