	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotMatchVariable               ## -- Begin function BotMatchVariable
	.p2align	4, 0x90
_BotMatchVariable:                      ## @BotMatchVariable
	.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	%rdx, %r14
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movq	_MAX_MATCHVARIABLES@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_2
## %bb.4:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	%esi, %ebx
	shlq	$4, %rbx
	movq	(%rax,%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_3
## %bb.5:
	movl	8(%rax,%rbx), %eax
	leal	1(%rax), %r12d
	cmpl	%ecx, %eax
	cmovgel	%ecx, %r12d
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	(%r15), %rax
	movslq	(%rax,%rbx), %rsi
	shlq	$2, %rsi
	addq	8(%r15), %rsi
	movslq	%r12d, %rbx
	leaq	-1(%rbx), %rdx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strncpy
	movb	$0, -1(%r14,%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	callq	*(%rax)
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MATCHVARIABLES,4,2         ## @MAX_MATCHVARIABLES
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_FATAL,4,2                  ## @PRT_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BotMatchVariable: variable out of range\n"

L_.str.1:                               ## @.str.1
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotMatchVariable               ; -- Begin function BotMatchVariable
	.p2align	2
_BotMatchVariable:                      ; @BotMatchVariable
	.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
	mov	x19, x2
	tbnz	w1, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MAX_MATCHVARIABLES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_MATCHVARIABLES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0]
	mov	w9, w1
	lsl	x21, x9, #4
	ldr	x9, [x8, x21]
	tbnz	x9, #63, LBB0_5
; %bb.3:
	add	x8, x8, x21
	ldr	w8, [x8, #8]
	cmp	w8, w3
	csinc	w22, w3, w8, ge
	lsr	x8, x9, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldp	x9, x8, [x20]
	ldr	x9, [x9, x21]
	lsl	x9, x9, #32
	add	x1, x8, x9, asr #30
	sxtw	x8, w22
	sub	x20, x8, #1
	mov	x0, x19
	mov	x2, x20
	bl	_strncpy
	strb	wzr, [x19, 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
LBB0_4:
Lloh3:
	adrp	x8, _botimport@GOTPAGE
Lloh4:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _PRT_FATAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PRT_FATAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
LBB0_5:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	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
	b	_strcpy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MATCHVARIABLES,4,2         ; @MAX_MATCHVARIABLES
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_FATAL,4,2                  ; @PRT_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BotMatchVariable: variable out of range\n"

l_.str.1:                               ; @.str.1
	.space	1

.subsections_via_symbols
