	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQsendPrepare                  ## -- Begin function PQsendPrepare
	.p2align	4, 0x90
_PQsendPrepare:                         ## @PQsendPrepare
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_PQsendQueryStart
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_27
## %bb.1:
	testq	%r15, %r15
	je	LBB0_2
## %bb.4:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_5
## %bb.6:
	cmpl	$65536, %r13d                   ## imm = 0x10000
	jb	LBB0_8
## %bb.7:
	addq	$20, %rbx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	addq	$20, %rbx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	addq	$20, %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	movl	24(%rbx), %edi
	callq	_PG_PROTOCOL_MAJOR
	cmpl	$2, %eax
	jg	LBB0_10
## %bb.9:
	addq	$20, %rbx
	leaq	L_.str.3(%rip), %rdi
LBB0_3:
	callq	_libpq_gettext
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
LBB0_27:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r14d, %r14d
	movl	$80, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_pqPutMsgStart
	testq	%rax, %rax
	js	LBB0_27
## %bb.11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pqPuts
	testq	%rax, %rax
	js	LBB0_27
## %bb.12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_pqPuts
	testq	%rax, %rax
	js	LBB0_27
## %bb.13:
	testl	%r13d, %r13d
	je	LBB0_19
## %bb.14:
	testq	%r12, %r12
	je	LBB0_19
## %bb.15:
	movl	%r13d, %edi
	movl	$2, %esi
	movq	%rbx, %rdx
	callq	_pqPutInt
	testq	%rax, %rax
	js	LBB0_27
## %bb.16:
	movl	%r13d, %r15d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r13,4), %edi
	movl	$4, %esi
	movq	%rbx, %rdx
	callq	_pqPutInt
	testq	%rax, %rax
	js	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%r13
	cmpq	%r13, %r15
	jne	LBB0_18
	jmp	LBB0_20
LBB0_19:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movl	$2, %esi
	movq	%rbx, %rdx
	callq	_pqPutInt
	testq	%rax, %rax
	js	LBB0_27
LBB0_20:
	movq	%rbx, %rdi
	callq	_pqPutMsgEnd
	movl	$0, %r14d
	testq	%rax, %rax
	js	LBB0_27
## %bb.21:
	xorl	%r14d, %r14d
	movl	$83, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_pqPutMsgStart
	testq	%rax, %rax
	js	LBB0_27
## %bb.22:
	movq	%rbx, %rdi
	callq	_pqPutMsgEnd
	testq	%rax, %rax
	js	LBB0_27
## %bb.23:
	movq	_PGQUERY_PREPARE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_free
LBB0_25:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strdup
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_pqFlush
	testq	%rax, %rax
	js	LBB0_27
## %bb.26:
	movq	_PGASYNC_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	$1, %r14d
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"statement name is a null pointer\n"

L_.str.1:                               ## @.str.1
	.asciz	"command string is a null pointer\n"

L_.str.2:                               ## @.str.2
	.asciz	"number of parameters must be between 0 and 65535\n"

L_.str.3:                               ## @.str.3
	.asciz	"function requires at least protocol version 3.0\n"

	.comm	_PGQUERY_PREPARE,4,2            ## @PGQUERY_PREPARE
	.comm	_PGASYNC_BUSY,4,2               ## @PGASYNC_BUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQsendPrepare                  ; -- Begin function PQsendPrepare
	.p2align	2
_PQsendPrepare:                         ; @PQsendPrepare
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	bl	_PQsendQueryStart
	cbz	w0, LBB0_11
; %bb.1:
	cbz	x23, LBB0_5
; %bb.2:
	cbz	x20, LBB0_6
; %bb.3:
	cmp	w22, #16, lsl #12               ; =65536
	b.lo	LBB0_7
; %bb.4:
	add	x19, x19, #20
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_5:
	add	x19, x19, #20
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
	add	x19, x19, #20
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #24]
	bl	_PG_PROTOCOL_MAJOR
	cmp	w0, #2
	b.gt	LBB0_12
; %bb.8:
	add	x19, x19, #20
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_printfPQExpBuffer
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #80
	mov	w1, #0
	mov	x2, x19
	bl	_pqPutMsgStart
	tbnz	x0, #63, LBB0_10
; %bb.13:
	mov	x0, x23
	mov	x1, x19
	bl	_pqPuts
	tbnz	x0, #63, LBB0_10
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	bl	_pqPuts
	tbnz	x0, #63, LBB0_10
; %bb.15:
	cbz	w22, LBB0_21
; %bb.16:
	cbz	x21, LBB0_21
; %bb.17:
	mov	x0, x22
	mov	w1, #2
	mov	x2, x19
	bl	_pqPutInt
	tbnz	x0, #63, LBB0_10
; %bb.18:
	mov	w22, w22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	w1, #4
	mov	x2, x19
	bl	_pqPutInt
	tbnz	x0, #63, LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x21, x21, #4
	subs	x22, x22, #1
	b.ne	LBB0_19
	b	LBB0_22
LBB0_21:
	mov	w0, #0
	mov	w1, #2
	mov	x2, x19
	bl	_pqPutInt
	tbnz	x0, #63, LBB0_10
LBB0_22:
	mov	x0, x19
	bl	_pqPutMsgEnd
	tbnz	x0, #63, LBB0_10
; %bb.23:
	mov	w0, #83
	mov	w1, #0
	mov	x2, x19
	bl	_pqPutMsgStart
	tbnz	x0, #63, LBB0_10
; %bb.24:
	mov	x0, x19
	bl	_pqPutMsgEnd
	tbnz	x0, #63, LBB0_10
; %bb.25:
Lloh8:
	adrp	x8, _PGQUERY_PREPARE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PGQUERY_PREPARE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_27
; %bb.26:
	bl	_free
LBB0_27:
	mov	x0, x20
	bl	_strdup
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_pqFlush
	tbnz	x0, #63, LBB0_10
; %bb.28:
Lloh11:
	adrp	x8, _PGASYNC_BUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PGASYNC_BUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"statement name is a null pointer\n"

l_.str.1:                               ; @.str.1
	.asciz	"command string is a null pointer\n"

l_.str.2:                               ; @.str.2
	.asciz	"number of parameters must be between 0 and 65535\n"

l_.str.3:                               ; @.str.3
	.asciz	"function requires at least protocol version 3.0\n"

	.comm	_PGQUERY_PREPARE,4,2            ; @PGQUERY_PREPARE
	.comm	_PGASYNC_BUSY,4,2               ; @PGASYNC_BUSY
.subsections_via_symbols
