	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function postprocess_sql_command
_postprocess_sql_command:               ## @postprocess_sql_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rdi), %rax
	movq	_SQL_COMMAND@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	12(%rbx), %esi
	leaq	-160(%rbp), %r14
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_strlcpy
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcspn
	movb	$0, -160(%rbp,%rax)
	movq	%r14, %rdi
	callq	_pg_strdup
	movl	%eax, 24(%rbx)
	movq	_querymode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_parseQuery
	testl	%eax, %eax
	jne	LBB0_4
	jmp	LBB0_6
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.2:
	movl	12(%rbx), %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	incl	8(%rbx)
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.5:
	addq	$144, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movl	$1, %edi
	callq	_exit
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SQL_COMMAND,8,3                ## @SQL_COMMAND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n\r"

	.comm	_querymode,4,2                  ## @querymode
	.no_dead_strip	_postprocess_sql_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function postprocess_sql_command
_postprocess_sql_command:               ; @postprocess_sql_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _SQL_COMMAND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SQL_COMMAND@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	w1, [x19, #12]
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w2, #128
	bl	_strlcpy
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strcspn
	strb	wzr, [x20, x0]
	add	x0, sp, #8
	bl	_pg_strdup
	str	w0, [x19, #24]
Lloh8:
	adrp	x8, _querymode@GOTPAGE
Lloh9:
	ldr	x8, [x8, _querymode@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_parseQuery
	cbnz	w0, LBB0_4
	b	LBB0_6
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x19, #12]
	ldr	x9, [x19, #16]
	str	w8, [x9]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_4:
	ldur	x8, [x29, #-24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_6:
	mov	w0, #1
	bl	_exit
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SQL_COMMAND,8,3                ; @SQL_COMMAND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n\r"

	.comm	_querymode,4,2                  ; @querymode
	.no_dead_strip	_postprocess_sql_command
.subsections_via_symbols
