	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_templates                ## -- Begin function parse_templates
	.p2align	4, 0x90
_parse_templates:                       ## @parse_templates
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_check_TOKEN
	movq	_TOKEN_NONE@GOTPCREL(%rip), %r13
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%r13), %rax
	je	LBB0_10
## %bb.1:
	leaq	L_.str.1(%rip), %r15
	movq	_d3dxof_parsing@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_check_TOKEN
	cmpq	(%r13), %rax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_check_TOKEN
	movq	_TOKEN_TEMPLATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_parse_template
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_TRACE
	movl	(%r12), %edi
	callq	_TRACE_ON
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	movslq	(%rax), %rax
	leaq	(%rdi,%rax,4), %rsi
	addq	$-4, %rsi
	callq	_dump_template
	jmp	LBB0_8
LBB0_9:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	_FALSE@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	(%rcx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TOKEN_NONE,8,3                 ## @TOKEN_NONE
	.comm	_TOKEN_TEMPLATE,8,3             ## @TOKEN_TEMPLATE
	.comm	_TRUE,8,3                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Template is not correct\n"

	.comm	_FALSE,8,3                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Template successfully parsed:\n"

	.comm	_d3dxof_parsing,4,2             ## @d3dxof_parsing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_templates                ; -- Begin function parse_templates
	.p2align	2
_parse_templates:                       ; @parse_templates
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_check_TOKEN
Lloh0:
	adrp	x23, _TOKEN_NONE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TOKEN_NONE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x22, _TRUE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh6:
	adrp	x24, _d3dxof_parsing@GOTPAGE
Lloh7:
	ldr	x24, [x24, _d3dxof_parsing@GOTPAGEOFF]
Lloh8:
	adrp	x22, _TRUE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
Lloh10:
	adrp	x25, _TOKEN_TEMPLATE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _TOKEN_TEMPLATE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_check_TOKEN
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x19, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_check_TOKEN
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_parse_template
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_TRACE
	ldr	w0, [x24]
	bl	_TRACE_ON
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	ldrsw	x8, [x8]
	add	x8, x0, x8, lsl #2
	sub	x1, x8, #4
	bl	_dump_template
	b	LBB0_3
LBB0_9:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh14:
	adrp	x22, _FALSE@GOTPAGE
Lloh15:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	x0, [x22]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TOKEN_NONE,8,3                 ; @TOKEN_NONE
	.comm	_TOKEN_TEMPLATE,8,3             ; @TOKEN_TEMPLATE
	.comm	_TRUE,8,3                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Template is not correct\n"

	.comm	_FALSE,8,3                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Template successfully parsed:\n"

	.comm	_d3dxof_parsing,4,2             ; @d3dxof_parsing
.subsections_via_symbols
