	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckCharacteristicIndex       ## -- Begin function CheckCharacteristicIndex
	.p2align	4, 0x90
_CheckCharacteristicIndex:              ## @CheckCharacteristicIndex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_BotCharacterFromHandle
	movq	_qfalse@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	L_.str(%rip), %rsi
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.2:
	movq	_MAX_CHARACTERISTICS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jle	LBB0_6
## %bb.3:
	movq	(%rax), %rax
	movl	%ebx, %ecx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_5
## %bb.4:
	movq	_qtrue@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%ebx, %edx
	callq	*(%rax)
LBB0_7:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_MAX_CHARACTERISTICS,4,2        ## @MAX_CHARACTERISTICS
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_ERROR,4,2                  ## @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"characteristic %d does not exist\n"

L_.str.1:                               ## @.str.1
	.asciz	"characteristic %d is not initialized\n"

	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckCharacteristicIndex       ; -- Begin function CheckCharacteristicIndex
	.p2align	2
_CheckCharacteristicIndex:              ; @CheckCharacteristicIndex
	.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
	mov	x19, x1
	bl	_BotCharacterFromHandle
	cbz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	tbnz	w19, #31, LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _MAX_CHARACTERISTICS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_CHARACTERISTICS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_6
; %bb.3:
	ldr	x8, [x0]
	ldr	w8, [x8, w19, uxtw #2]
	cbz	w8, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _qtrue@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
Lloh9:
	adrp	x8, _botimport@GOTPAGE
Lloh10:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _PRT_ERROR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PRT_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	mov	x2, x19
	blr	x8
LBB0_7:
Lloh15:
	adrp	x8, _qfalse@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_MAX_CHARACTERISTICS,4,2        ; @MAX_CHARACTERISTICS
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_ERROR,4,2                  ; @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"characteristic %d does not exist\n"

l_.str.1:                               ; @.str.1
	.asciz	"characteristic %d is not initialized\n"

	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
