	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expression_compile             ## -- Begin function expression_compile
	.p2align	4, 0x90
_expression_compile:                    ## @expression_compile
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_sp_init
	movq	__cur_type@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	%r14, (%rbx)
	movq	%r14, %rdi
	callq	_get_token_list
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_FAIL
	movq	16(%rbx), %rax
LBB0_2:
	movq	%rax, %rdi
	callq	_gen_tree
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	16(%rbx), %rdi
	callq	_del_token_list
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_FAIL
	movq	8(%rbx), %rax
LBB0_4:
	movq	%rax, %rdi
	callq	_simplify_tree
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	16(%rbx), %rdi
	callq	_del_token_list
	movq	8(%rbx), %rdi
	callq	_del_node
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_FAIL
LBB0_6:
	movq	8(%rbx), %rdi
	callq	_expression_prepare
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	16(%rbx), %rdi
	callq	_del_token_list
	movq	8(%rbx), %rdi
	callq	_del_node
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_FAIL
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__cur_type,8,3                  ## @_cur_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't split query [%s] into tokens"

L_.str.1:                               ## @.str.1
	.asciz	"can't parse query [%s] as arithmetic expression"

L_.str.2:                               ## @.str.2
	.asciz	"can't prepare expression [%s]"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expression_compile             ; -- Begin function expression_compile
	.p2align	2
_expression_compile:                    ; @expression_compile
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_sp_init
Lloh0:
	adrp	x8, __cur_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, __cur_type@GOTPAGEOFF]
Lloh2:
	str	x21, [x8]
	str	x19, [x20]
	mov	x0, x19
	bl	_get_token_list
	str	x0, [x20, #16]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_FAIL
	ldr	x0, [x20, #16]
LBB0_2:
	bl	_gen_tree
	str	x0, [x20, #8]
	cbz	x0, LBB0_7
; %bb.3:
	bl	_simplify_tree
	cbz	w0, LBB0_8
LBB0_4:
	ldr	x0, [x20, #8]
	bl	_expression_prepare
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x0, [x20, #16]
	bl	_del_token_list
	ldr	x0, [x20, #8]
	bl	_del_node
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_FAIL
LBB0_6:
	mov	x0, #0
	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_7:
	ldr	x0, [x20, #16]
	bl	_del_token_list
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_FAIL
	ldr	x0, [x20, #8]
	bl	_simplify_tree
	cbnz	w0, LBB0_4
LBB0_8:
	ldr	x0, [x20, #16]
	bl	_del_token_list
	ldr	x0, [x20, #8]
	bl	_del_node
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_FAIL
	b	LBB0_4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	__cur_type,8,3                  ; @_cur_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't split query [%s] into tokens"

l_.str.1:                               ; @.str.1
	.asciz	"can't parse query [%s] as arithmetic expression"

l_.str.2:                               ; @.str.2
	.asciz	"can't prepare expression [%s]"

.subsections_via_symbols
