	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parseQuery
_parseQuery:                            ## @parseQuery
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$1, (%rdi)
	movq	16(%rdi), %rdi
	callq	_pg_strdup
	movq	%rax, -80(%rbp)
	movq	%rax, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r15
	leaq	-68(%rbp), %r14
	leaq	-61(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$58, %esi
	callq	_strchr
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_parseVariable
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movl	(%rbx), %eax
	movq	_MAX_ARGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jge	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_sprintf
	movl	-68(%rbp), %edx
	leaq	-80(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rcx
	callq	_replaceVariable
	movq	%rax, %rdi
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	%r13, (%rax,%rcx,8)
	leal	1(%rcx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%r15
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	1(%r15), %rdi
	cmpb	$58, 1(%r15)
	movq	%rdi, %r15
	je	LBB0_4
	jmp	LBB0_8
LBB0_9:
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_Assert
	movq	-80(%rbp), %rax
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_10
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%edx
	movq	16(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	%r13, %rdi
	callq	_pg_free
	xorl	%eax, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ARGS,4,2                   ## @MAX_ARGS
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"statement has too many arguments (maximum is %d): %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"$%d"

	.no_dead_strip	_parseQuery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parseQuery
_parseQuery:                            ; @parseQuery
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	w8, #1
	str	w8, [x0]
	ldr	x0, [x0, #16]
	bl	_pg_strdup
	str	x0, [sp, #16]
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x23, _MAX_ARGS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_ARGS@GOTPAGEOFF]
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #58
	bl	_strchr
	mov	x21, x0
	cbz	x0, LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	x1, sp, #12
	mov	x0, x21
	bl	_parseVariable
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	w2, [x19]
	ldr	w8, [x23]
	cmp	w2, w8
	b.ge	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #27
	mov	x1, x20
	bl	_sprintf
	ldr	w2, [sp, #12]
	add	x0, sp, #16
	add	x3, sp, #27
	mov	x1, x21
	bl	_replaceVariable
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	str	x22, [x8, x9, lsl #3]
	add	w8, w9, #1
	str	w8, [x19]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x21, #1
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x0, #1]!
	cmp	w8, #58
	b.eq	LBB0_7
	b	LBB0_2
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [sp, #16]
	ldr	x9, [x19, #8]
	str	x8, [x9]
	mov	w0, #1
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x9, _stderr@GOTPAGE
Lloh8:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x9]
	sub	w2, w8, #1
	ldr	x3, [x19, #16]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, x22
	bl	_pg_free
	mov	w0, #0
LBB0_10:
	ldr	x8, [sp, #40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ARGS,4,2                   ; @MAX_ARGS
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"statement has too many arguments (maximum is %d): %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"$%d"

	.no_dead_strip	_parseQuery
.subsections_via_symbols
