	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotLoadMatchTemplates          ## -- Begin function BotLoadMatchTemplates
	.p2align	4, 0x90
_BotLoadMatchTemplates:                 ## @BotLoadMatchTemplates
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_BOTFILESBASEFOLDER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PC_SetBaseFolder
	movq	%r15, %rdi
	callq	_LoadSourceFile
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	leaq	-80(%rbp), %rsi
	movq	%rax, %rdi
	callq	_PC_ReadToken
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	xorl	%r12d, %r12d
	movq	_TT_NUMBER@GOTPCREL(%rip), %rcx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	-80(%rbp), %rax
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_TT_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -72(%rbp)
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %r13
	movq	-64(%rbp), %r15
	movq	%rbx, %rdi
	callq	_PC_ExpectTokenString
	testl	%eax, %eax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rsi
	callq	_PC_ReadToken
	testq	%rax, %rax
	je	LBB0_26
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	-56(%rbp), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rbx, %rdi
	callq	_PC_UnreadLastToken
	movl	$40, %edi
	callq	_GetClearedHunkMemory
	movq	%rax, %r14
	movq	%r15, (%rax)
	movq	$0, 32(%rax)
	testq	%r12, %r12
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, 32(%r12)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %r12
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_BotLoadMatchPieces
	movl	%eax, 24(%r14)
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_PC_ExpectTokenString
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	(%r12), %rsi
	movq	_TT_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rcx
	callq	_PC_ExpectTokenType
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-64(%rbp), %rax
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_PC_ExpectTokenString
	testl	%eax, %eax
	je	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	(%r12), %rsi
	movq	_TT_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rcx
	callq	_PC_ExpectTokenType
	testl	%eax, %eax
	je	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-64(%rbp), %rax
	movq	%rax, 16(%r14)
	movq	%rbx, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_PC_ExpectTokenString
	testl	%eax, %eax
	je	LBB0_21
## %bb.25:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_PC_ExpectTokenString
	movq	%r14, %r12
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_21
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rsi
	callq	_PC_ReadToken
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %rcx
	leaq	L_.str.2(%rip), %rsi
	jne	LBB0_5
	jmp	LBB0_27
LBB0_3:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	*(%rax)
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_9:
	callq	_BotFreeMatchTemplates
	movq	%rbx, %rdi
	callq	_FreeSource
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_2:
	xorl	%r14d, %r14d
LBB0_27:
	movq	%rbx, %rdi
	callq	_FreeSource
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_MESSAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdx
	callq	*(%rax)
LBB0_28:
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_BotFreeMatchTemplates
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_7:
	movl	-56(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_SourceError
LBB0_8:
	movq	%r14, %rdi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_BOTFILESBASEFOLDER,4,2         ## @BOTFILESBASEFOLDER
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_ERROR,4,2                  ## @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"counldn't load %s\n"

	.comm	_TT_NUMBER,8,3                  ## @TT_NUMBER
	.comm	_TT_INTEGER,4,2                 ## @TT_INTEGER
L_.str.1:                               ## @.str.1
	.asciz	"expected integer, found %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"{"

L_.str.3:                               ## @.str.3
	.asciz	"}"

L_.str.4:                               ## @.str.4
	.asciz	"="

L_.str.5:                               ## @.str.5
	.asciz	"("

L_.str.6:                               ## @.str.6
	.asciz	","

L_.str.7:                               ## @.str.7
	.asciz	")"

L_.str.8:                               ## @.str.8
	.asciz	";"

	.comm	_PRT_MESSAGE,4,2                ## @PRT_MESSAGE
L_.str.9:                               ## @.str.9
	.asciz	"loaded %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotLoadMatchTemplates          ; -- Begin function BotLoadMatchTemplates
	.p2align	2
_BotLoadMatchTemplates:                 ; @BotLoadMatchTemplates
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
Lloh0:
	adrp	x8, _BOTFILESBASEFOLDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BOTFILESBASEFOLDER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PC_SetBaseFolder
	mov	x0, x21
	bl	_LoadSourceFile
	cbz	x0, LBB0_19
; %bb.1:
	mov	x19, x0
	mov	x1, sp
	bl	_PC_ReadToken
	cbz	x0, LBB0_20
; %bb.2:
	mov	x25, #0
	mov	x22, #0
Lloh3:
	adrp	x28, _TT_NUMBER@GOTPAGE
Lloh4:
	ldr	x28, [x28, _TT_NUMBER@GOTPAGEOFF]
Lloh5:
	adrp	x27, _TT_INTEGER@GOTPAGE
Lloh6:
	ldr	x27, [x27, _TT_INTEGER@GOTPAGEOFF]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh9:
	adrp	x23, l_.str.3@PAGE
Lloh10:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh11:
	adrp	x24, l_.str.4@PAGE
Lloh12:
	add	x24, x24, l_.str.4@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [sp]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x26, [sp, #16]
	mov	x0, x19
	bl	_PC_ExpectTokenString
	cbz	w0, LBB0_24
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, sp
	mov	x0, x19
	bl	_PC_ReadToken
	cbz	x0, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [sp, #24]
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	bl	_PC_UnreadLastToken
	mov	w0, #40
	bl	_GetClearedHunkMemory
	mov	x20, x0
	str	x26, [x0]
	str	xzr, [x0, #32]
	cbz	x25, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	str	x20, [x25, #32]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x22, x20
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	_BotLoadMatchPieces
	str	w0, [x20, #24]
	cbz	w0, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_PC_ExpectTokenString
	cbz	w0, LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x1, [x28]
	ldr	w2, [x27]
	mov	x3, sp
	mov	x0, x19
	bl	_PC_ExpectTokenType
	cbz	w0, LBB0_24
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [sp, #16]
	str	x8, [x20, #8]
	mov	x0, x19
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_PC_ExpectTokenString
	cbz	w0, LBB0_24
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x1, [x28]
	ldr	w2, [x27]
	mov	x3, sp
	mov	x0, x19
	bl	_PC_ExpectTokenType
	cbz	w0, LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [sp, #16]
	str	x8, [x20, #16]
	mov	x0, x19
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_PC_ExpectTokenString
	cbz	w0, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_PC_ExpectTokenString
	mov	x25, x20
	cbnz	w0, LBB0_6
	b	LBB0_24
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_PC_ReadToken
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	cbnz	x0, LBB0_3
	b	LBB0_21
LBB0_19:
Lloh23:
	adrp	x8, _botimport@GOTPAGE
Lloh24:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _PRT_ERROR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PRT_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x9]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	blr	x8
	b	LBB0_25
LBB0_20:
	mov	x22, #0
LBB0_21:
	mov	x0, x19
	bl	_FreeSource
Lloh31:
	adrp	x8, _botimport@GOTPAGE
Lloh32:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _PRT_MESSAGE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PRT_MESSAGE@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x9]
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x21
	blr	x8
	b	LBB0_26
LBB0_22:
	mov	x0, x22
	bl	_BotFreeMatchTemplates
	b	LBB0_25
LBB0_23:
	ldr	w2, [sp, #24]
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_SourceError
LBB0_24:
	mov	x0, x22
	bl	_BotFreeMatchTemplates
	mov	x0, x19
	bl	_FreeSource
LBB0_25:
	mov	x22, #0
LBB0_26:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_BOTFILESBASEFOLDER,4,2         ; @BOTFILESBASEFOLDER
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_ERROR,4,2                  ; @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"counldn't load %s\n"

	.comm	_TT_NUMBER,8,3                  ; @TT_NUMBER
	.comm	_TT_INTEGER,4,2                 ; @TT_INTEGER
l_.str.1:                               ; @.str.1
	.asciz	"expected integer, found %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"{"

l_.str.3:                               ; @.str.3
	.asciz	"}"

l_.str.4:                               ; @.str.4
	.asciz	"="

l_.str.5:                               ; @.str.5
	.asciz	"("

l_.str.6:                               ; @.str.6
	.asciz	","

l_.str.7:                               ; @.str.7
	.asciz	")"

l_.str.8:                               ; @.str.8
	.asciz	";"

	.comm	_PRT_MESSAGE,4,2                ; @PRT_MESSAGE
l_.str.9:                               ; @.str.9
	.asciz	"loaded %s\n"

.subsections_via_symbols
