	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgsql_handle_preparer
_pgsql_handle_preparer:                 ## @pgsql_handle_preparer
	.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	%r8, %r13
	movq	%rcx, %r15
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movl	$1, %edi
	movl	$32, %esi
	callq	_ecalloc
	movq	%rax, %r14
	movq	$0, -56(%rbp)
	movq	$0, -80(%rbp)
	movq	%r12, 24(%rax)
	movq	%rax, 24(%r15)
	movq	_pgsql_stmt_methods@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_PDO_ATTR_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PDO_CURSOR_FWDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_pdo_attr_lval
	movq	_PDO_CURSOR_SCROLL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.1:
	leaq	16(%r14), %r13
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_efree
LBB0_3:
	movl	8(%r12), %ecx
	incl	%ecx
	movl	%ecx, 8(%r12)
	leaq	L_.str(%rip), %rdx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_spprintf
	movq	%rbx, %r13
	jmp	LBB0_10
LBB0_4:
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	movq	_PDO_ATTR_EMULATE_PREPARES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_pdo_attr_lval
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_PDO_PGSQL_ATTR_DISABLE_PREPARES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %edx
	movq	%r13, %rdi
	callq	_pdo_attr_lval
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sete	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	movq	%rbx, %r13
	je	LBB0_10
LBB0_9:
	movl	12(%r12), %edi
	callq	_PQprotocolVersion
	cmpl	$2, %eax
	jle	LBB0_10
## %bb.11:
	movq	_PDO_PLACEHOLDER_NAMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_6:
	cmpq	$0, 16(%r12)
	je	LBB0_8
## %bb.7:
	movl	4(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r13
	jmp	LBB0_10
LBB0_8:
	cmpl	$0, (%r12)
	movl	4(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r13
	je	LBB0_9
LBB0_10:
	movq	_PDO_PLACEHOLDER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movb	$1, %bl
LBB0_12:
	leaq	-56(%rbp), %rcx
	leaq	-80(%rbp), %r8
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_pdo_parse_params
	cmpl	$1, %eax
	je	LBB0_15
## %bb.13:
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.14:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	_strcpy
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_15:
	movq	-56(%rbp), %rax
	jmp	LBB0_17
LBB0_16:
	movq	%r13, %rdi
	callq	_estrdup
LBB0_17:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%rax, (%r14)
	testl	%ecx, %ecx
	setne	%al
	orb	%al, %bl
	movl	$1, %ebx
	jne	LBB0_19
## %bb.18:
	addq	$8, %r14
	movl	8(%r12), %ecx
	incl	%ecx
	movl	%ecx, 8(%r12)
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_spprintf
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pgsql_stmt_methods,4,2         ## @pgsql_stmt_methods
	.comm	_PDO_ATTR_CURSOR,4,2            ## @PDO_ATTR_CURSOR
	.comm	_PDO_CURSOR_FWDONLY,4,2         ## @PDO_CURSOR_FWDONLY
	.comm	_PDO_CURSOR_SCROLL,4,2          ## @PDO_CURSOR_SCROLL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pdo_crsr_%08x"

	.comm	_PDO_ATTR_EMULATE_PREPARES,4,2  ## @PDO_ATTR_EMULATE_PREPARES
	.comm	_PDO_PGSQL_ATTR_DISABLE_PREPARES,4,2 ## @PDO_PGSQL_ATTR_DISABLE_PREPARES
	.comm	_PDO_PLACEHOLDER_NONE,4,2       ## @PDO_PLACEHOLDER_NONE
	.comm	_PDO_PLACEHOLDER_NAMED,4,2      ## @PDO_PLACEHOLDER_NAMED
L_.str.1:                               ## @.str.1
	.asciz	"$%d"

L_.str.2:                               ## @.str.2
	.asciz	"pdo_stmt_%08x"

	.no_dead_strip	_pgsql_handle_preparer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgsql_handle_preparer
_pgsql_handle_preparer:                 ; @pgsql_handle_preparer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x26, [x0, #8]
	mov	w0, #1
	mov	w1, #32
	bl	_ecalloc
	mov	x19, x0
	stp	xzr, xzr, [sp]
	str	x26, [x0, #24]
Lloh0:
	adrp	x8, _pgsql_stmt_methods@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pgsql_stmt_methods@GOTPAGEOFF]
	stp	x8, x0, [x20, #16]
Lloh2:
	adrp	x8, _PDO_ATTR_CURSOR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PDO_ATTR_CURSOR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _PDO_CURSOR_FWDONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PDO_CURSOR_FWDONLY@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x24
	bl	_pdo_attr_lval
Lloh8:
	adrp	x8, _PDO_CURSOR_SCROLL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PDO_CURSOR_SCROLL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
	mov	x24, x19
	ldr	x0, [x24, #16]!
	cbz	x0, LBB0_3
; %bb.2:
	bl	_efree
LBB0_3:
	ldr	w8, [x26, #8]
	add	w3, w8, #1
	str	w3, [x26, #8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	w1, #0
	bl	_spprintf
	mov	w24, #0
	b	LBB0_11
LBB0_4:
	cbz	x24, LBB0_8
; %bb.5:
Lloh13:
	adrp	x8, _PDO_ATTR_EMULATE_PREPARES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PDO_ATTR_EMULATE_PREPARES@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x26]
	mov	x0, x24
	bl	_pdo_attr_lval
	mov	x25, x0
Lloh16:
	adrp	x8, _PDO_PGSQL_ATTR_DISABLE_PREPARES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PDO_PGSQL_ATTR_DISABLE_PREPARES@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x26, #4]
	mov	x0, x24
	bl	_pdo_attr_lval
	cmp	w0, #1
	cset	w24, eq
	cmp	w25, #1
	b.eq	LBB0_11
LBB0_6:
	ldr	w0, [x26, #12]
	bl	_PQprotocolVersion
	cmp	w0, #2
	b.le	LBB0_11
; %bb.7:
	mov	w25, #0
Lloh19:
	adrp	x8, _PDO_PLACEHOLDER_NAMED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PDO_PLACEHOLDER_NAMED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20, #12]
Lloh22:
	adrp	x8, l_.str.1@PAGE
Lloh23:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x20]
	b	LBB0_12
LBB0_8:
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w24, [x26, #4]
	b	LBB0_11
LBB0_10:
	ldp	w8, w24, [x26]
	cbz	w8, LBB0_6
LBB0_11:
Lloh24:
	adrp	x8, _PDO_PLACEHOLDER_NONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PDO_PLACEHOLDER_NONE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	mov	w25, #1
LBB0_12:
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_pdo_parse_params
	cmp	w0, #1
	b.eq	LBB0_15
; %bb.13:
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.14:
	ldr	w0, [x22]
	ldr	w1, [x20, #8]
	bl	_strcpy
	mov	w0, #0
	b	LBB0_20
LBB0_15:
	ldr	x0, [sp, #8]
	b	LBB0_17
LBB0_16:
	mov	x0, x21
	bl	_estrdup
LBB0_17:
	str	x0, [x19]
	cmp	w24, #0
	cset	w8, ne
	orr	w8, w25, w8
	tbnz	w8, #0, LBB0_19
; %bb.18:
	add	x0, x19, #8
	ldr	w8, [x26, #8]
	add	w3, w8, #1
	str	w3, [x26, #8]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #0
	bl	_spprintf
LBB0_19:
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_pgsql_stmt_methods,4,2         ; @pgsql_stmt_methods
	.comm	_PDO_ATTR_CURSOR,4,2            ; @PDO_ATTR_CURSOR
	.comm	_PDO_CURSOR_FWDONLY,4,2         ; @PDO_CURSOR_FWDONLY
	.comm	_PDO_CURSOR_SCROLL,4,2          ; @PDO_CURSOR_SCROLL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pdo_crsr_%08x"

	.comm	_PDO_ATTR_EMULATE_PREPARES,4,2  ; @PDO_ATTR_EMULATE_PREPARES
	.comm	_PDO_PGSQL_ATTR_DISABLE_PREPARES,4,2 ; @PDO_PGSQL_ATTR_DISABLE_PREPARES
	.comm	_PDO_PLACEHOLDER_NONE,4,2       ; @PDO_PLACEHOLDER_NONE
	.comm	_PDO_PLACEHOLDER_NAMED,4,2      ; @PDO_PLACEHOLDER_NAMED
l_.str.1:                               ; @.str.1
	.asciz	"$%d"

l_.str.2:                               ; @.str.2
	.asciz	"pdo_stmt_%08x"

	.no_dead_strip	_pgsql_handle_preparer
.subsections_via_symbols
