	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_exthandler
___card_exthandler:                     ## @__card_exthandler
	.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_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_9
## %bb.2:
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	(%rbx,%rbx,4), %r12
	movl	$1, %r14d
	cmpq	$0, 24(%r15,%r12,8)
	je	LBB0_9
## %bb.3:
	leaq	(%r15,%r12,8), %r13
	addq	$24, %r13
	cmpq	$0, 32(%r15,%r12,8)
	je	LBB0_5
## %bb.4:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_5:
	movq	$0, (%r13)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EXI_RegisterEXICallback
	movl	16(%r15,%r12,8), %edi
	callq	_SYS_CancelAlarm
	movq	8(%r15,%r12,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	(%r15,%r12,8), %rcx
	addq	$8, %rcx
	movq	$0, (%rcx)
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*%rax
LBB0_7:
	movq	(%r15,%r12,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	leaq	(%r15,%r12,8), %rax
	movq	$0, (%rax)
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*%rcx
LBB0_9:
	movq	%r14, %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	_cardmap,8,3                    ## @cardmap
	.comm	_CARD_ERROR_NOCARD,4,2          ## @CARD_ERROR_NOCARD
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"error: card->card_tx_cb!=NULL"

	.no_dead_strip	___card_exthandler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_exthandler
___card_exthandler:                     ; @__card_exthandler
	.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_10
LBB0_2:
	mov	x19, x0
Lloh6:
	adrp	x8, _cardmap@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
	mov	w8, #40
	madd	x21, x0, x8, x20
	ldr	x8, [x21, #24]!
	cbz	x8, LBB0_9
; %bb.3:
	mov	w8, #40
	madd	x8, x19, x8, x20
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_5:
	str	xzr, [x21]
	mov	x0, x19
	mov	x1, #0
	bl	_EXI_RegisterEXICallback
	mov	w8, #40
	madd	x22, x19, x8, x20
	ldr	w0, [x22, #16]
	bl	_SYS_CancelAlarm
	ldr	x8, [x22, #8]!
Lloh11:
	adrp	x21, _CARD_ERROR_NOCARD@GOTPAGE
Lloh12:
	ldr	x21, [x21, _CARD_ERROR_NOCARD@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.6:
	str	xzr, [x22]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
LBB0_7:
	mov	w8, #40
	madd	x9, x19, x8, x20
	ldr	x8, [x9]
	cbz	x8, LBB0_9
; %bb.8:
	str	xzr, [x9]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
LBB0_9:
	mov	w0, #1
LBB0_10:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.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,4,2          ; @CARD_ERROR_NOCARD
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"error: card->card_tx_cb!=NULL"

	.no_dead_strip	___card_exthandler
.subsections_via_symbols
