	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SendQuery                      ## -- Begin function SendQuery
	.p2align	4, 0x90
_SendQuery:                             ## @SendQuery
	.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	$56, %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	$0, -96(%rbp)
	movq	_pset@GOTPCREL(%rip), %r13
	cmpl	$0, 96(%r13)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	cmpq	$0, 136(%r13)
	je	LBB0_5
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_fflush
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_fflush
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rdi
	movl	$3, %esi
	callq	_fgets
	testq	%rax, %rax
	sete	%al
	cmpb	$120, -80(%rbp)
	setne	%cl
	orb	%al, %cl
	xorl	%r15d, %r15d
	cmpb	$1, %cl
	jne	LBB0_60
## %bb.4:
	movq	_cancel_pressed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
	jmp	LBB0_60
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pg_log_error
	jmp	LBB0_60
LBB0_5:
	movq	(%r13), %rax
	movq	_PSQL_ECHO_QUERIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_puts
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_fflush
LBB0_7:
	movq	128(%r13), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movq	128(%r13), %rdi
	callq	_fflush
LBB0_9:
	xorl	%eax, %eax
	callq	_SetCancelConn
	movl	96(%r13), %edi
	callq	_PQtransactionStatus
	cmpl	$131, %eax
	jne	LBB0_16
## %bb.10:
	cmpl	$0, 120(%r13)
	jne	LBB0_16
## %bb.11:
	movq	%r14, %rdi
	callq	_command_no_begin
	movb	$1, %r12b
	testl	%eax, %eax
	jne	LBB0_25
## %bb.12:
	movl	96(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_PQexec
	movq	%rax, -88(%rbp)
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.15:
	movq	-88(%rbp), %rdi
	callq	_ClearOrSaveResult
	movl	96(%r13), %edi
	callq	_PQtransactionStatus
LBB0_16:
	movb	$1, %r12b
	cmpl	$129, %eax
	jne	LBB0_25
## %bb.17:
	movq	8(%r13), %rax
	movq	_PSQL_ERROR_ROLLBACK_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.18:
	cmpq	$0, 112(%r13)
	jne	LBB0_20
## %bb.19:
	movq	_PSQL_ERROR_ROLLBACK_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
LBB0_20:
	cmpb	$1, _SendQuery.on_error_rollback_warning(%rip)
	je	LBB0_23
## %bb.21:
	movl	16(%r13), %edi
	cmpl	$79999, %edi                    ## imm = 0x1387F
	jg	LBB0_23
## %bb.22:
	leaq	-80(%rbp), %rdx
	xorl	%esi, %esi
	movl	$32, %ecx
	callq	_formatPGVersionNumber
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_pg_log_warning
	movb	$1, _SendQuery.on_error_rollback_warning(%rip)
	jmp	LBB0_25
LBB0_23:
	movl	96(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_PQexec
	movq	%rax, -88(%rbp)
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.24:
	movq	-88(%rbp), %rdi
	callq	_ClearOrSaveResult
	xorl	%r12d, %r12d
LBB0_25:
	cmpl	$0, 20(%r13)
	je	LBB0_27
## %bb.26:
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	callq	_DescribeQuery
LBB0_39:
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_ResetCancelConn
	movq	$0, -88(%rbp)
LBB0_40:
	testl	%r15d, %r15d
	jne	LBB0_43
## %bb.41:
	movq	(%r13), %rax
	movq	_PSQL_ECHO_ERRORS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_43
## %bb.42:
	leaq	L_.str.7(%rip), %rdi
	movq	%r14, %rsi
	callq	_pg_log_info
LBB0_43:
	testb	%r12b, %r12b
	jne	LBB0_54
## %bb.44:
	movl	96(%r13), %edi
	callq	_PQtransactionStatus
	movl	%eax, %r12d
	leal	-128(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_53
## %bb.45:
	leaq	L_.str.8(%rip), %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_52:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ConnectionUp
	testl	%eax, %eax
	je	LBB0_54
LBB0_53:
	leaq	L_.str.13(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pg_log_error
	jmp	LBB0_54
LBB0_27:
	cmpq	$0, 24(%r13)
	jle	LBB0_31
## %bb.28:
	cmpl	$0, 32(%r13)
	jne	LBB0_31
## %bb.29:
	cmpl	$0, 36(%r13)
	jne	LBB0_31
## %bb.30:
	movq	%r14, %rdi
	callq	_is_select_command
	testl	%eax, %eax
	je	LBB0_31
## %bb.38:
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ExecQueryUsingCursor
	jmp	LBB0_39
LBB0_31:
	cmpq	$0, 104(%r13)
	je	LBB0_33
## %bb.32:
	callq	_INSTR_TIME_SET_CURRENT
LBB0_33:
	movl	96(%r13), %edi
	movq	%r14, %rsi
	callq	_PQexec
	movq	%rax, -88(%rbp)
	xorl	%eax, %eax
	callq	_ResetCancelConn
	leaq	-88(%rbp), %rdi
	callq	_ProcessResult
	movl	%eax, %r15d
	cmpq	$0, 104(%r13)
	je	LBB0_35
## %bb.34:
	callq	_INSTR_TIME_SET_CURRENT
	callq	_INSTR_TIME_SUBTRACT
	callq	_INSTR_TIME_GET_MILLISEC
	movsd	%xmm0, -96(%rbp)
LBB0_35:
	testl	%r15d, %r15d
	je	LBB0_40
## %bb.36:
	movq	-88(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_40
## %bb.37:
	callq	_PrintQueryResults
	movl	%eax, %r15d
	jmp	LBB0_40
LBB0_13:
	movl	96(%r13), %edi
	callq	_PQerrorMessage
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	callq	_pg_log_info
	movq	-88(%rbp), %rdi
	callq	_ClearOrSaveResult
	jmp	LBB0_14
LBB0_46:
	movq	-88(%rbp), %rdi
	leaq	L_.str.12(%rip), %r14
	testq	%rdi, %rdi
	je	LBB0_50
## %bb.47:
	callq	_PQcmdStatus
	leaq	L_.str.9(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_54
## %bb.48:
	movq	-88(%rbp), %rdi
	callq	_PQcmdStatus
	leaq	L_.str.10(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_54
## %bb.49:
	movq	-88(%rbp), %rdi
	callq	_PQcmdStatus
	leaq	L_.str.11(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_54
LBB0_50:
	movl	96(%r13), %edi
	movq	%r14, %rsi
	callq	_PQexec
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_69
## %bb.51:
	movq	%r14, %rdi
	callq	_PQclear
LBB0_54:
	movq	-88(%rbp), %rdi
	callq	_ClearOrSaveResult
	cmpq	$0, 104(%r13)
	je	LBB0_56
## %bb.55:
	movsd	-96(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_PrintTiming
LBB0_56:
	movq	40(%r13), %rbx
	movl	96(%r13), %edi
	callq	_PQclientEncoding
	cmpq	%rax, %rbx
	je	LBB0_59
## %bb.57:
	movl	96(%r13), %edi
	callq	_PQclientEncoding
	testq	%rax, %rax
	js	LBB0_59
## %bb.58:
	movl	96(%r13), %edi
	callq	_PQclientEncoding
	movq	%rax, 40(%r13)
	movq	%rax, 88(%r13)
	movl	80(%r13), %r14d
	movq	%rax, %rdi
	callq	_pg_encoding_to_char
	leaq	L_.str.14(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_SetVariable
LBB0_59:
	xorl	%eax, %eax
	callq	_PrintNotifications
LBB0_60:
	movq	72(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_62
## %bb.61:
	callq	_free
	movq	$0, 72(%r13)
LBB0_62:
	movl	$0, 48(%r13)
	movq	64(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_64
## %bb.63:
	callq	_free
	movq	$0, 64(%r13)
LBB0_64:
	movl	$0, 20(%r13)
	movq	$0, 32(%r13)
	movq	56(%r13), %rdi
	callq	_lengthof
	testl	%eax, %eax
	jle	LBB0_67
## %bb.65:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_66:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_pg_free
	movq	56(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movq	56(%r13), %rdi
	callq	_lengthof
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_66
LBB0_67:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_70
## %bb.68:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_69:
	movl	96(%r13), %edi
	callq	_PQerrorMessage
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	callq	_pg_log_info
	movq	%r14, %rdi
	callq	_ClearOrSaveResult
	movq	-88(%rbp), %rdi
	callq	_PQclear
LBB0_14:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ResetCancelConn
	jmp	LBB0_60
LBB0_70:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_52, LBB0_52-LJTI0_0
.set L0_0_set_46, LBB0_46-LJTI0_0
.set L0_0_set_50, LBB0_50-LJTI0_0
.set L0_0_set_54, LBB0_54-LJTI0_0
LJTI0_0:
	.long	L0_0_set_52
	.long	L0_0_set_46
	.long	L0_0_set_50
	.long	L0_0_set_54
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_SendQuery.on_error_rollback_warning,1,2 ## @SendQuery.on_error_rollback_warning
	.comm	_pset,144,3                     ## @pset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"You are currently not connected to a database."

	.comm	_stderr,8,3                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"***(Single step mode: verify command)*******************************************\n%s\n***(press return to proceed or enter x and return to cancel)********************\n"

	.comm	_stdout,8,3                     ## @stdout
	.comm	_stdin,4,2                      ## @stdin
	.comm	_cancel_pressed,8,3             ## @cancel_pressed
	.comm	_PSQL_ECHO_QUERIES,8,3          ## @PSQL_ECHO_QUERIES
L_.str.2:                               ## @.str.2
	.asciz	"********* QUERY **********\n%s\n**************************\n\n"

L_.str.3:                               ## @.str.3
	.asciz	"BEGIN"

	.comm	_PGRES_COMMAND_OK,8,3           ## @PGRES_COMMAND_OK
L_.str.4:                               ## @.str.4
	.asciz	"%s"

	.comm	_PSQL_ERROR_ROLLBACK_OFF,8,3    ## @PSQL_ERROR_ROLLBACK_OFF
	.comm	_PSQL_ERROR_ROLLBACK_ON,8,3     ## @PSQL_ERROR_ROLLBACK_ON
L_.str.5:                               ## @.str.5
	.asciz	"The server (version %s) does not support savepoints for ON_ERROR_ROLLBACK."

L_.str.6:                               ## @.str.6
	.asciz	"SAVEPOINT pg_psql_temporary_savepoint"

	.comm	_PSQL_ECHO_ERRORS,8,3           ## @PSQL_ECHO_ERRORS
L_.str.7:                               ## @.str.7
	.asciz	"STATEMENT:  %s"

L_.str.8:                               ## @.str.8
	.asciz	"ROLLBACK TO pg_psql_temporary_savepoint"

L_.str.9:                               ## @.str.9
	.asciz	"SAVEPOINT"

L_.str.10:                              ## @.str.10
	.asciz	"RELEASE"

L_.str.11:                              ## @.str.11
	.asciz	"ROLLBACK"

L_.str.12:                              ## @.str.12
	.asciz	"RELEASE pg_psql_temporary_savepoint"

L_.str.13:                              ## @.str.13
	.asciz	"unexpected transaction status (%d)"

L_.str.14:                              ## @.str.14
	.asciz	"ENCODING"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SendQuery                      ; -- Begin function SendQuery
	.p2align	2
_SendQuery:                             ; @SendQuery
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x21, _pset@GOTPAGE
Lloh4:
	ldr	x21, [x21, _pset@GOTPAGEOFF]
	ldr	w8, [x21, #96]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x21, #136]
	cbz	x8, LBB0_13
; %bb.2:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	bl	_fflush
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_printf
Lloh10:
	adrp	x8, _stdout@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	bl	_fflush
Lloh13:
	adrp	x8, _stdin@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x0, sp, #24
	mov	w1, #3
	bl	_fgets
	ldrb	w8, [sp, #24]
	cmp	w8, #120
	ccmp	x0, #0, #4, eq
Lloh16:
	adrp	x8, _cancel_pressed@GOTPAGE
Lloh17:
	ldr	x8, [x8, _cancel_pressed@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ccmp	x8, #0, #0, eq
	b.eq	LBB0_15
	b	LBB0_4
LBB0_3:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_log_error
LBB0_4:
	mov	w20, #0
	ldr	x0, [x21, #72]
	cbz	x0, LBB0_6
LBB0_5:
	bl	_free
	str	xzr, [x21, #72]
LBB0_6:
	str	wzr, [x21, #48]
	ldr	x0, [x21, #64]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_free
	str	xzr, [x21, #64]
LBB0_8:
	str	wzr, [x21, #20]
	str	xzr, [x21, #32]
	ldr	x0, [x21, #56]
	bl	_lengthof
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x19, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #56]
	lsl	x22, x19, #3
	ldr	x0, [x8, x22]
	bl	_pg_free
	ldr	x8, [x21, #56]
	str	xzr, [x8, x22]
	add	x19, x19, #1
	ldr	x0, [x21, #56]
	bl	_lengthof
	cmp	x19, w0, sxtw
	b.lt	LBB0_10
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_70
; %bb.12:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	x8, [x21]
Lloh24:
	adrp	x9, _PSQL_ECHO_QUERIES@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PSQL_ECHO_QUERIES@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_puts
Lloh27:
	adrp	x8, _stdout@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh29:
	ldr	x0, [x8]
	bl	_fflush
LBB0_15:
	ldr	x20, [x21, #128]
	cbz	x20, LBB0_17
; %bb.16:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_fprintf
	ldr	x0, [x21, #128]
	bl	_fflush
LBB0_17:
	bl	_SetCancelConn
	ldr	w0, [x21, #96]
	bl	_PQtransactionStatus
	ldr	w8, [x21, #120]
	cmp	w0, #131
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_25
; %bb.18:
	cmp	w0, #129
	b.ne	LBB0_26
LBB0_19:
	ldr	x8, [x21, #8]
Lloh32:
	adrp	x9, _PSQL_ERROR_ROLLBACK_OFF@GOTPAGE
Lloh33:
	ldr	x9, [x9, _PSQL_ERROR_ROLLBACK_OFF@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_26
; %bb.20:
	ldr	x9, [x21, #112]
	cbnz	x9, LBB0_22
; %bb.21:
Lloh35:
	adrp	x9, _PSQL_ERROR_ROLLBACK_ON@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PSQL_ERROR_ROLLBACK_ON@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
LBB0_22:
	adrp	x20, _SendQuery.on_error_rollback_warning@PAGE
	ldrb	w8, [x20, _SendQuery.on_error_rollback_warning@PAGEOFF]
	cmp	w8, #1
	b.eq	LBB0_54
; %bb.23:
	ldr	w0, [x21, #16]
	mov	w8, #14463
	movk	w8, #1, lsl #16
	cmp	w0, w8
	b.gt	LBB0_54
; %bb.24:
	add	x2, sp, #24
	mov	w1, #0
	mov	w3, #32
	bl	_formatPGVersionNumber
	mov	x1, x0
Lloh38:
	adrp	x0, l_.str.5@PAGE
Lloh39:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pg_log_warning
	mov	w22, #1
	strb	w22, [x20, _SendQuery.on_error_rollback_warning@PAGEOFF]
	ldr	w8, [x21, #20]
	cbnz	w8, LBB0_27
	b	LBB0_56
LBB0_25:
	mov	x0, x19
	bl	_command_no_begin
	cbz	w0, LBB0_38
LBB0_26:
	mov	w22, #1
	ldr	w8, [x21, #20]
	cbz	w8, LBB0_56
LBB0_27:
	add	x1, sp, #8
	mov	x0, x19
	bl	_DescribeQuery
LBB0_28:
	mov	x20, x0
	bl	_ResetCancelConn
	str	xzr, [sp, #16]
LBB0_29:
	cbnz	w20, LBB0_32
; %bb.30:
	ldr	x8, [x21]
Lloh40:
	adrp	x9, _PSQL_ECHO_ERRORS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _PSQL_ECHO_ERRORS@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.31:
Lloh43:
	adrp	x0, l_.str.7@PAGE
Lloh44:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_pg_log_info
LBB0_32:
	tbnz	w22, #0, LBB0_47
; %bb.33:
	ldr	w0, [x21, #96]
	bl	_PQtransactionStatus
	mov	x19, x0
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_36
; %bb.34:
Lloh45:
	adrp	x1, l_.str.8@PAGE
Lloh46:
	add	x1, x1, l_.str.8@PAGEOFF
Lloh47:
	adrp	x9, lJTI0_0@PAGE
Lloh48:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_35
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_35:
	bl	_ConnectionUp
	cbz	w0, LBB0_37
LBB0_36:
	str	x19, [sp]
Lloh49:
	adrp	x0, l_.str.13@PAGE
Lloh50:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_pg_log_error
LBB0_37:
	mov	w20, #0
	b	LBB0_47
LBB0_38:
	ldr	w0, [x21, #96]
Lloh51:
	adrp	x1, l_.str.3@PAGE
Lloh52:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_PQexec
	str	x0, [sp, #16]
	bl	_PQresultStatus
Lloh53:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh54:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_68
; %bb.39:
	ldr	x0, [sp, #16]
	bl	_ClearOrSaveResult
	ldr	w0, [x21, #96]
	bl	_PQtransactionStatus
	cmp	w0, #129
	b.eq	LBB0_19
	b	LBB0_26
LBB0_40:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_44
; %bb.41:
	bl	_PQcmdStatus
Lloh56:
	adrp	x1, l_.str.9@PAGE
Lloh57:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_47
; %bb.42:
	ldr	x0, [sp, #16]
	bl	_PQcmdStatus
Lloh58:
	adrp	x1, l_.str.10@PAGE
Lloh59:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_47
; %bb.43:
	ldr	x0, [sp, #16]
	bl	_PQcmdStatus
Lloh60:
	adrp	x1, l_.str.11@PAGE
Lloh61:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_47
LBB0_44:
Lloh62:
	adrp	x1, l_.str.12@PAGE
Lloh63:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_45:
	ldr	w0, [x21, #96]
	bl	_PQexec
	mov	x19, x0
	bl	_PQresultStatus
Lloh64:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh65:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_53
; %bb.46:
	mov	x0, x19
	bl	_PQclear
LBB0_47:
	ldr	x0, [sp, #16]
	bl	_ClearOrSaveResult
	ldr	x8, [x21, #104]
	cbz	x8, LBB0_49
; %bb.48:
	ldr	d0, [sp, #8]
	bl	_PrintTiming
LBB0_49:
	ldr	x19, [x21, #40]
	ldr	w0, [x21, #96]
	bl	_PQclientEncoding
	cmp	x19, x0
	b.eq	LBB0_52
; %bb.50:
	ldr	w0, [x21, #96]
	bl	_PQclientEncoding
	tbnz	x0, #63, LBB0_52
; %bb.51:
	ldr	w0, [x21, #96]
	bl	_PQclientEncoding
	str	x0, [x21, #40]
	str	x0, [x21, #88]
	ldr	w19, [x21, #80]
	bl	_pg_encoding_to_char
	mov	x2, x0
Lloh67:
	adrp	x1, l_.str.14@PAGE
Lloh68:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_SetVariable
LBB0_52:
	bl	_PrintNotifications
	ldr	x0, [x21, #72]
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_53:
	ldr	w0, [x21, #96]
	bl	_PQerrorMessage
	mov	x1, x0
Lloh69:
	adrp	x0, l_.str.4@PAGE
Lloh70:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pg_log_info
	mov	x0, x19
	bl	_ClearOrSaveResult
	ldr	x0, [sp, #16]
	bl	_PQclear
	b	LBB0_69
LBB0_54:
	ldr	w0, [x21, #96]
Lloh71:
	adrp	x1, l_.str.6@PAGE
Lloh72:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_PQexec
	str	x0, [sp, #16]
	bl	_PQresultStatus
Lloh73:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh74:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh75:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_68
; %bb.55:
	ldr	x0, [sp, #16]
	bl	_ClearOrSaveResult
	mov	w22, #0
	ldr	w8, [x21, #20]
	cbnz	w8, LBB0_27
LBB0_56:
	ldr	x8, [x21, #24]
	cmp	x8, #1
	b.lt	LBB0_61
; %bb.57:
	ldr	w8, [x21, #32]
	cbnz	w8, LBB0_61
; %bb.58:
	ldr	w8, [x21, #36]
	cbnz	w8, LBB0_61
; %bb.59:
	mov	x0, x19
	bl	_is_select_command
	cbz	w0, LBB0_61
; %bb.60:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ExecQueryUsingCursor
	b	LBB0_28
LBB0_61:
	ldr	x8, [x21, #104]
	cbz	x8, LBB0_63
; %bb.62:
	bl	_INSTR_TIME_SET_CURRENT
LBB0_63:
	ldr	w0, [x21, #96]
	mov	x1, x19
	bl	_PQexec
	str	x0, [sp, #16]
	bl	_ResetCancelConn
	add	x0, sp, #16
	bl	_ProcessResult
	mov	x20, x0
	ldr	x8, [x21, #104]
	cbz	x8, LBB0_65
; %bb.64:
	bl	_INSTR_TIME_SET_CURRENT
	bl	_INSTR_TIME_SUBTRACT
	bl	_INSTR_TIME_GET_MILLISEC
	str	d0, [sp, #8]
LBB0_65:
	cbz	w20, LBB0_29
; %bb.66:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_29
; %bb.67:
	bl	_PrintQueryResults
	mov	x20, x0
	b	LBB0_29
LBB0_68:
	ldr	w0, [x21, #96]
	bl	_PQerrorMessage
	mov	x1, x0
Lloh76:
	adrp	x0, l_.str.4@PAGE
Lloh77:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pg_log_info
	ldr	x0, [sp, #16]
	bl	_ClearOrSaveResult
LBB0_69:
	bl	_ResetCancelConn
	b	LBB0_4
LBB0_70:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh76, Lloh77
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_35-LBB0_35)>>2
	.byte	(LBB0_40-LBB0_35)>>2
	.byte	(LBB0_45-LBB0_35)>>2
	.byte	(LBB0_47-LBB0_35)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_SendQuery.on_error_rollback_warning,1,2 ; @SendQuery.on_error_rollback_warning
	.comm	_pset,144,3                     ; @pset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"You are currently not connected to a database."

	.comm	_stderr,8,3                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"***(Single step mode: verify command)*******************************************\n%s\n***(press return to proceed or enter x and return to cancel)********************\n"

	.comm	_stdout,8,3                     ; @stdout
	.comm	_stdin,4,2                      ; @stdin
	.comm	_cancel_pressed,8,3             ; @cancel_pressed
	.comm	_PSQL_ECHO_QUERIES,8,3          ; @PSQL_ECHO_QUERIES
l_.str.2:                               ; @.str.2
	.asciz	"********* QUERY **********\n%s\n**************************\n\n"

l_.str.3:                               ; @.str.3
	.asciz	"BEGIN"

	.comm	_PGRES_COMMAND_OK,8,3           ; @PGRES_COMMAND_OK
l_.str.4:                               ; @.str.4
	.asciz	"%s"

	.comm	_PSQL_ERROR_ROLLBACK_OFF,8,3    ; @PSQL_ERROR_ROLLBACK_OFF
	.comm	_PSQL_ERROR_ROLLBACK_ON,8,3     ; @PSQL_ERROR_ROLLBACK_ON
l_.str.5:                               ; @.str.5
	.asciz	"The server (version %s) does not support savepoints for ON_ERROR_ROLLBACK."

l_.str.6:                               ; @.str.6
	.asciz	"SAVEPOINT pg_psql_temporary_savepoint"

	.comm	_PSQL_ECHO_ERRORS,8,3           ; @PSQL_ECHO_ERRORS
l_.str.7:                               ; @.str.7
	.asciz	"STATEMENT:  %s"

l_.str.8:                               ; @.str.8
	.asciz	"ROLLBACK TO pg_psql_temporary_savepoint"

l_.str.9:                               ; @.str.9
	.asciz	"SAVEPOINT"

l_.str.10:                              ; @.str.10
	.asciz	"RELEASE"

l_.str.11:                              ; @.str.11
	.asciz	"ROLLBACK"

l_.str.12:                              ; @.str.12
	.asciz	"RELEASE pg_psql_temporary_savepoint"

l_.str.13:                              ; @.str.13
	.asciz	"unexpected transaction status (%d)"

l_.str.14:                              ; @.str.14
	.asciz	"ENCODING"

.subsections_via_symbols
