	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_txhandler
___card_txhandler:                      ## @__card_txhandler
	.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
	xorl	%r14d, %r14d
	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	_CARD_ERROR_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_EXI_Deselect
	movq	%rbx, %rdi
	callq	_EXI_Unlock
	movq	(%r13,%rbx,8), %r12
	movl	$1, %r14d
	testq	%r12, %r12
	je	LBB0_6
## %bb.3:
	movq	$0, (%r13,%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), %r15
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*%r12
LBB0_6:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_ERROR_READY,8,3           ## @CARD_ERROR_READY
	.comm	_EXI_CHANNEL_0,8,3              ## @EXI_CHANNEL_0
	.comm	_EXI_CHANNEL_2,8,3              ## @EXI_CHANNEL_2
	.comm	_cardmap,8,3                    ## @cardmap
	.comm	_CARD_ERROR_NOCARD,8,3          ## @CARD_ERROR_NOCARD
	.no_dead_strip	___card_txhandler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_txhandler
___card_txhandler:                      ; @__card_txhandler
	.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:
	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:
	mov	x0, #0
	b	LBB0_5
LBB0_2:
	mov	x19, x0
Lloh6:
	adrp	x8, _CARD_ERROR_READY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CARD_ERROR_READY@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
Lloh9:
	adrp	x8, _cardmap@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	bl	_EXI_Deselect
	mov	x0, x19
	bl	_EXI_Unlock
	ldr	x21, [x22, x19, lsl #3]
	cbz	x21, LBB0_4
; %bb.3:
	str	xzr, [x22, x19, lsl #3]
	mov	x0, x19
	bl	_EXI_Probe
Lloh12:
	adrp	x8, _CARD_ERROR_NOCARD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CARD_ERROR_NOCARD@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x1, x8, x20, eq
	mov	x0, x19
	blr	x21
LBB0_4:
	mov	w0, #1
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_ERROR_READY,8,3           ; @CARD_ERROR_READY
	.comm	_EXI_CHANNEL_0,8,3              ; @EXI_CHANNEL_0
	.comm	_EXI_CHANNEL_2,8,3              ; @EXI_CHANNEL_2
	.comm	_cardmap,8,3                    ; @cardmap
	.comm	_CARD_ERROR_NOCARD,8,3          ; @CARD_ERROR_NOCARD
	.no_dead_strip	___card_txhandler
.subsections_via_symbols
