	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecuteSqlCommandBuf           ## -- Begin function ExecuteSqlCommandBuf
	.p2align	4, 0x90
_ExecuteSqlCommandBuf:                  ## @ExecuteSqlCommandBuf
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_OUTPUT_COPYDATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.2:
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_PQputCopyData
	testq	%rax, %rax
	jg	LBB0_9
## %bb.3:
	movl	8(%rbx), %edi
	callq	_PQerrorMessage
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_fatal
	jmp	LBB0_9
LBB0_4:
	movq	_OUTPUT_OTHERDATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ExecuteSimpleCommands
	jmp	LBB0_9
LBB0_6:
	cmpb	$0, (%r15,%r14)
	je	LBB0_7
## %bb.8:
	leaq	1(%r14), %rdi
	callq	_pg_malloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movb	$0, (%r12,%r14)
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ExecuteSqlCommand
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ExecuteSqlCommand
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OUTPUT_COPYDATA,8,3            ## @OUTPUT_COPYDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error returned by PQputCopyData: %s"

	.comm	_OUTPUT_OTHERDATA,8,3           ## @OUTPUT_OTHERDATA
L_.str.1:                               ## @.str.1
	.asciz	"could not execute query"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecuteSqlCommandBuf           ; -- Begin function ExecuteSqlCommandBuf
	.p2align	2
_ExecuteSqlCommandBuf:                  ; @ExecuteSqlCommandBuf
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _OUTPUT_COPYDATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OUTPUT_COPYDATA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w0, [x20, #8]
	mov	x1, x21
	mov	x2, x19
	bl	_PQputCopyData
	cmp	x0, #0
	b.gt	LBB0_9
; %bb.3:
	ldr	w0, [x20, #8]
	bl	_PQerrorMessage
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
	b	LBB0_9
LBB0_4:
Lloh5:
	adrp	x9, _OUTPUT_OTHERDATA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OUTPUT_OTHERDATA@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_ExecuteSimpleCommands
	b	LBB0_9
LBB0_6:
	ldrb	w8, [x21, x19]
	cbz	w8, LBB0_8
; %bb.7:
	add	x0, x19, #1
	bl	_pg_malloc
	mov	x22, x0
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	strb	wzr, [x22, x19]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_ExecuteSqlCommand
	mov	x0, x22
	bl	_free
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_ExecuteSqlCommand
LBB0_9:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_OUTPUT_COPYDATA,8,3            ; @OUTPUT_COPYDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error returned by PQputCopyData: %s"

	.comm	_OUTPUT_OTHERDATA,8,3           ; @OUTPUT_OTHERDATA
l_.str.1:                               ; @.str.1
	.asciz	"could not execute query"

.subsections_via_symbols
