	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_stat_queries              ## -- Begin function load_stat_queries
	.p2align	4, 0x90
_load_stat_queries:                     ## @load_stat_queries
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_stat_queries_file@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAX_QUERY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_stats_cnt@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	movq	_MAX_STATS@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.5:
	movq	_stat_expr@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rcx
	decq	%rcx
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	movq	%rcx, (%r15)
	movq	(%r12), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_19
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MAX_QUERY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	$1, %eax
	jle	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%rbx)
	movq	%rbx, %rdi
	leaq	_load_stat_queries.qs(%rip), %rsi
	leaq	-52(%rbp), %rdx
	movl	$2, %ecx
	callq	_split
	cmpl	$0, -52(%rbp)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_load_stat_queries.qs(%rip), %rdi
	callq	_get_type_id
	movq	_stat_type@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r15), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r15), %rdi
	movq	(%rcx,%rdi,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	shlq	$3, %rdi
	addq	(%r13), %rdi
	movq	_load_stat_queries.qs+8(%rip), %rsi
	shlq	$2, %rdx
	movq	_types@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	callq	_expression_compile
	testq	%rax, %rax
	jne	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	callq	_IS_STR
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	_v_int@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tree_conv
	movq	(%r13), %rdx
	movq	(%r15), %rcx
	movq	%rax, (%rdx,%rcx,8)
	jmp	LBB0_18
LBB0_7:
	movq	(%r15), %rcx
	movq	(%r12), %rdx
LBB0_19:
	cmpq	%rdx, %rcx
	je	LBB0_20
## %bb.22:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	jmp	LBB0_21
LBB0_13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_load_stat_queries.qs(%rip), %rdx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_21
LBB0_25:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_load_stat_queries.qs+8(%rip), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_load_stat_queries.qs+8(%rip), %rdx
	leaq	L_.str.5(%rip), %rsi
LBB0_21:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_26:
	callq	___stack_chk_fail
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_21
LBB0_4:
	xorl	%edx, %edx
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_stat_queries_file,8,3          ## @stat_queries_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Can't open file %s with queries.\n"

	.comm	_MAX_QUERY_LEN,4,2              ## @MAX_QUERY_LEN
	.comm	_stats_cnt,8,3                  ## @stats_cnt
	.comm	_MAX_STATS,8,3                  ## @MAX_STATS
.zerofill __DATA,__bss,_load_stat_queries.qs,24,4 ## @load_stat_queries.qs
L_.str.2:                               ## @.str.2
	.asciz	"Too much commas in query %s.\n"

	.comm	_stat_type,8,3                  ## @stat_type
L_.str.3:                               ## @.str.3
	.asciz	"Can't find type [%s].\n"

	.comm	_stat_expr,8,3                  ## @stat_expr
	.comm	_types,8,3                      ## @types
L_.str.4:                               ## @.str.4
	.asciz	"Cannot compile expression [%s] : error [%s]\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot convert result of query[%s] (string) to int\n"

	.comm	_v_int,4,2                      ## @v_int
L_.str.6:                               ## @.str.6
	.asciz	"Max number of stat_queries %d exceeded. Aborting.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_stat_queries              ; -- Begin function load_stat_queries
	.p2align	2
_load_stat_queries:                     ; @load_stat_queries
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x20, _stat_queries_file@GOTPAGE
Lloh4:
	ldr	x20, [x20, _stat_queries_file@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_16
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_25
; %bb.2:
	mov	x19, x0
	mov	x8, sp
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
Lloh7:
	adrp	x23, _MAX_QUERY_LEN@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MAX_QUERY_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh11:
	adrp	x24, _stats_cnt@GOTPAGE
Lloh12:
	ldr	x24, [x24, _stats_cnt@GOTPAGEOFF]
	str	xzr, [x24]
Lloh13:
	adrp	x25, _MAX_STATS@GOTPAGE
Lloh14:
	ldr	x25, [x25, _MAX_STATS@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_23
; %bb.3:
Lloh15:
	adrp	x28, _stat_type@GOTPAGE
Lloh16:
	ldr	x28, [x28, _stat_type@GOTPAGEOFF]
Lloh17:
	adrp	x22, _stat_expr@GOTPAGE
Lloh18:
	ldr	x22, [x22, _stat_expr@GOTPAGEOFF]
Lloh19:
	adrp	x26, _types@GOTPAGE
Lloh20:
	ldr	x26, [x26, _types@GOTPAGEOFF]
Lloh21:
	adrp	x21, _load_stat_queries.qs@PAGE
Lloh22:
	add	x21, x21, _load_stat_queries.qs@PAGEOFF
Lloh23:
	adrp	x27, _v_int@GOTPAGE
Lloh24:
	ldr	x27, [x27, _v_int@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	sub	x8, x8, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x8, #1
	str	x9, [x24]
	ldr	x8, [x25]
	cmp	x9, x8
	b.hs	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_strlen
	cmp	w0, #1
	b.le	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_strlen
	add	x8, x20, w0, sxtw
	sturb	wzr, [x8, #-1]
	sub	x2, x29, #92
	mov	x0, x20
	mov	x1, x21
	mov	w3, #2
	bl	_split
	ldur	w8, [x29, #-92]
	cbz	w8, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh25:
	adrp	x8, _load_stat_queries.qs@PAGE
Lloh26:
	ldr	x0, [x8, _load_stat_queries.qs@PAGEOFF]
	bl	_get_type_id
	ldr	x8, [x28]
	ldr	x9, [x24]
	str	x0, [x8, x9, lsl #3]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x22]
	add	x0, x10, x9, lsl #3
Lloh27:
	adrp	x9, _load_stat_queries.qs@PAGE+8
Lloh28:
	ldr	x1, [x9, _load_stat_queries.qs@PAGEOFF+8]
	ldr	x9, [x26]
	add	x2, x9, x8, lsl #2
	bl	_expression_compile
	cbnz	x0, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
	bl	_IS_STR
	cbnz	x0, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x24]
	ldr	x0, [x8, x9, lsl #3]
	ldr	w1, [x27]
	bl	_tree_conv
	ldr	x9, [x22]
	ldr	x8, [x24]
	str	x0, [x9, x8, lsl #3]
	b	LBB0_5
LBB0_13:
	ldr	x9, [x24]
	ldr	x8, [x25]
LBB0_14:
	cmp	x9, x8
	b.eq	LBB0_23
; %bb.15:
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	mov	sp, x8
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.17:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	str	x20, [sp, #-16]!
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_19:
Lloh37:
	adrp	x8, _stderr@GOTPAGE
Lloh38:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x8, _load_stat_queries.qs@PAGE
Lloh41:
	ldr	x8, [x8, _load_stat_queries.qs@PAGEOFF]
	str	x8, [sp, #-16]!
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_20:
Lloh44:
	adrp	x8, _stderr@GOTPAGE
Lloh45:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _load_stat_queries.qs@PAGE+8
Lloh48:
	ldr	x9, [x9, _load_stat_queries.qs@PAGEOFF+8]
	stp	x9, x0, [sp, #-16]!
Lloh49:
	adrp	x1, l_.str.4@PAGE
Lloh50:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
	b	LBB0_22
LBB0_21:
Lloh51:
	adrp	x8, _stderr@GOTPAGE
Lloh52:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
Lloh54:
	adrp	x8, _load_stat_queries.qs@PAGE+8
Lloh55:
	ldr	x8, [x8, _load_stat_queries.qs@PAGEOFF+8]
	str	x8, [sp, #-16]!
Lloh56:
	adrp	x1, l_.str.5@PAGE
Lloh57:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_22:
	bl	_fprintf
	add	sp, sp, #16
	mov	w0, #1
	bl	_exit
LBB0_23:
Lloh58:
	adrp	x9, _stderr@GOTPAGE
Lloh59:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x9]
	str	x8, [sp, #-16]!
Lloh61:
	adrp	x1, l_.str.6@PAGE
Lloh62:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_22
LBB0_24:
	bl	___stack_chk_fail
LBB0_25:
Lloh63:
	adrp	x8, _stderr@GOTPAGE
Lloh64:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	ldr	x8, [x20]
	str	x8, [sp, #-16]!
Lloh66:
	adrp	x1, l_.str.1@PAGE
Lloh67:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_22
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdr	Lloh25, Lloh26
	.loh AdrpLdr	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdr	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdr	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdr	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_stat_queries_file,8,3          ; @stat_queries_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Can't open file %s with queries.\n"

	.comm	_MAX_QUERY_LEN,4,2              ; @MAX_QUERY_LEN
	.comm	_stats_cnt,8,3                  ; @stats_cnt
	.comm	_MAX_STATS,8,3                  ; @MAX_STATS
.zerofill __DATA,__bss,_load_stat_queries.qs,24,3 ; @load_stat_queries.qs
l_.str.2:                               ; @.str.2
	.asciz	"Too much commas in query %s.\n"

	.comm	_stat_type,8,3                  ; @stat_type
l_.str.3:                               ; @.str.3
	.asciz	"Can't find type [%s].\n"

	.comm	_stat_expr,8,3                  ; @stat_expr
	.comm	_types,8,3                      ; @types
l_.str.4:                               ; @.str.4
	.asciz	"Cannot compile expression [%s] : error [%s]\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot convert result of query[%s] (string) to int\n"

	.comm	_v_int,4,2                      ; @v_int
l_.str.6:                               ; @.str.6
	.asciz	"Max number of stat_queries %d exceeded. Aborting.\n"

.subsections_via_symbols
