	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgsql_stmt_execute
_pgsql_stmt_execute:                    ## @pgsql_stmt_execute
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	48(%rdi), %r12
	movq	16(%r12), %rdi
	movq	72(%r12), %r15
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_PQclear
	movq	$0, 16(%r12)
LBB0_2:
	movq	$0, 64(%r12)
	movq	56(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:
	movq	$0, -160(%rbp)
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdx
	leaq	-160(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_spprintf
	movl	4(%r15), %edi
	movq	-160(%rbp), %rsi
	callq	_PQexec
	movq	%rax, %rdi
	callq	_PQclear
	movq	-160(%rbp), %rdi
	callq	_efree
	movq	56(%r12), %rcx
LBB0_5:
	movq	(%r13), %r8
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	leaq	-160(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_spprintf
	movl	4(%r15), %edi
	movq	-160(%rbp), %rsi
	callq	_PQexec
	movq	%rax, 16(%r12)
	movq	-160(%rbp), %rdi
	callq	_efree
	movq	16(%r12), %rdi
	callq	_PQresultStatus
	movl	%eax, %ebx
	andl	$-2, %eax
	movq	16(%r12), %rdi
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.6:
	callq	_PQclear
	movl	$1, (%r12)
	movq	56(%r12), %rcx
	leaq	L_.str.2(%rip), %rdx
	leaq	-160(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_spprintf
	movl	4(%r15), %edi
	movq	-160(%rbp), %rsi
	callq	_PQexec
	movq	%rax, 16(%r12)
	movq	-160(%rbp), %rdi
	callq	_efree
	movq	16(%r12), %rdi
	jmp	LBB0_34
LBB0_7:
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.8:
	cmpl	$0, (%r12)
	je	LBB0_15
LBB0_9:
	movl	4(%r15), %r14d
	movq	40(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.10:
	callq	_zend_hash_num_elements
	movl	%eax, %edx
	jmp	LBB0_27
LBB0_11:
	callq	_pdo_pgsql_sqlstate
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_pdo_pgsql_error_stmt
	jmp	LBB0_45
LBB0_12:
	movq	8(%r13), %rax
	movq	_PDO_PLACEHOLDER_NAMED@GOTPCREL(%rip), %rcx
	movl	4(%r15), %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.13:
	movl	52(%r12), %r14d
	movq	40(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.14:
	callq	_zend_hash_num_elements
	movl	%eax, %edx
	jmp	LBB0_31
LBB0_15:
	movq	%r13, -168(%rbp)                ## 8-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%r12), %rbx
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r13
	movl	4(%r15), %r14d
	movl	52(%r12), %r15d
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movq	40(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	callq	_zend_hash_num_elements
	movl	%eax, %ecx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%ecx, %ecx
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	48(%r12), %r8d
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_PQprepare
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_PQresultStatus
	movl	%eax, %r14d
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_29
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	16(%r12), %rdi
	callq	_pdo_pgsql_sqlstate
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %r15
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%r12), %rcx
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$100, %esi
	leaq	L_.str.4(%rip), %rdx
	callq	_snprintf
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	callq	_PQexec
	testq	%rax, %rax
	je	LBB0_16
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %rdi
	callq	_PQclear
	jmp	LBB0_16
LBB0_25:
	movq	(%r13), %rsi
	movl	%ebx, %edi
	callq	_PQexec
	jmp	LBB0_33
LBB0_26:
	xorl	%edx, %edx
LBB0_27:
	movq	40(%r12), %rcx
	movl	32(%r12), %r9d
	movl	36(%r12), %r8d
	subq	$8, %rsp
	movl	%r14d, %edi
	movq	%rbx, %rsi
	pushq	$0
	callq	_PQexecPrepared
	jmp	LBB0_32
LBB0_28:
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rbx, %rdx
	jmp	LBB0_42
LBB0_29:
	movl	$1, (%r12)
	movq	16(%r12), %rdi
	callq	_PQclear
	movq	8(%r12), %rbx
	movq	%r13, %r15
	movq	-168(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_9
LBB0_30:
	xorl	%edx, %edx
LBB0_31:
	movl	48(%r12), %ecx
	movq	40(%r12), %r8
	movl	32(%r12), %eax
	movl	36(%r12), %r9d
	movl	%ebx, %edi
	movl	%r14d, %esi
	pushq	$0
	pushq	%rax
	callq	_PQexecParams
LBB0_32:
	addq	$16, %rsp
LBB0_33:
	movq	%rax, %rdi
	movq	%rax, 16(%r12)
LBB0_34:
	callq	_PQresultStatus
	movl	%eax, %ebx
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_41
## %bb.35:
	cmpl	$0, 32(%r13)
	jne	LBB0_39
## %bb.36:
	cmpl	$0, 16(%r13)
	je	LBB0_38
## %bb.37:
	cmpq	$0, 24(%r12)
	jne	LBB0_39
LBB0_38:
	movq	16(%r12), %rdi
	callq	_PQnfields
	movl	%eax, 16(%r13)
	movl	%eax, %edi
	movl	$4, %esi
	callq	_ecalloc
	movq	%rax, 24(%r12)
LBB0_39:
	cmpl	$129, %ebx
	jne	LBB0_43
## %bb.40:
	movq	24(%r13), %rbx
	movq	16(%r12), %rdi
	callq	_PQcmdTuples
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ZEND_ATOL
	movq	16(%r12), %rdi
	callq	_PQoidValue
	movl	%eax, (%r15)
	jmp	LBB0_44
LBB0_41:
	movq	16(%r12), %rdi
	callq	_pdo_pgsql_sqlstate
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
LBB0_42:
	callq	_pdo_pgsql_error_stmt
	xorl	%r14d, %r14d
	jmp	LBB0_45
LBB0_43:
	movq	16(%r12), %rdi
	callq	_PQntuples
	movq	%rax, 24(%r13)
LBB0_44:
	movl	$1, %r14d
LBB0_45:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_47
## %bb.46:
	movl	%r14d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CLOSE %s"

L_.str.1:                               ## @.str.1
	.asciz	"DECLARE %s SCROLL CURSOR WITH HOLD FOR %s"

L_.str.2:                               ## @.str.2
	.asciz	"FETCH FORWARD 0 FROM %s"

L_.str.3:                               ## @.str.3
	.asciz	"42P05"

L_.str.4:                               ## @.str.4
	.asciz	"DEALLOCATE %s"

	.comm	_PDO_PLACEHOLDER_NAMED,8,3      ## @PDO_PLACEHOLDER_NAMED
	.no_dead_strip	_pgsql_stmt_execute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgsql_stmt_execute
_pgsql_stmt_execute:                    ; @pgsql_stmt_execute
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x26, [x0, #48]
	ldr	x25, [x26, #72]
	ldr	x0, [x26, #16]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_PQclear
	str	xzr, [x26, #16]
LBB0_2:
	str	xzr, [x26, #64]
	ldr	x3, [x26, #56]
	cbz	x3, LBB0_7
; %bb.3:
	str	xzr, [sp, #16]
	ldr	w8, [x26]
	cbz	w8, LBB0_5
; %bb.4:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #16
	mov	w1, #0
	bl	_spprintf
	ldr	w0, [x25, #4]
	ldr	x1, [sp, #16]
	bl	_PQexec
	bl	_PQclear
	ldr	x0, [sp, #16]
	bl	_efree
	ldr	x3, [x26, #56]
LBB0_5:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #16
	mov	w1, #0
	bl	_spprintf
	ldr	w0, [x25, #4]
	ldr	x1, [sp, #16]
	bl	_PQexec
	str	x0, [x26, #16]
	ldr	x0, [sp, #16]
	bl	_efree
	ldr	x0, [x26, #16]
	bl	_PQresultStatus
	mov	x20, x0
	and	w8, w0, #0xfffffffe
	ldr	x0, [x26, #16]
	cmp	w8, #128
	b.ne	LBB0_40
; %bb.6:
	bl	_PQclear
	mov	w8, #1
	str	w8, [x26]
	ldr	x3, [x26, #56]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #16
	mov	w1, #0
	bl	_spprintf
	ldr	w0, [x25, #4]
	ldr	x1, [sp, #16]
	bl	_PQexec
	str	x0, [x26, #16]
	ldr	x0, [sp, #16]
	bl	_efree
	ldr	x0, [x26, #16]
	b	LBB0_32
LBB0_7:
	ldr	x22, [x26, #8]
	cbz	x22, LBB0_11
; %bb.8:
	ldr	w8, [x26]
	cbz	w8, LBB0_14
LBB0_9:
	ldr	w20, [x25, #4]
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_25
; %bb.10:
	bl	_zend_hash_num_elements
	mov	x2, x0
	b	LBB0_26
LBB0_11:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _PDO_PLACEHOLDER_NAMED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PDO_PLACEHOLDER_NAMED@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w20, [x25, #4]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.12:
	ldr	w21, [x26, #52]
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_29
; %bb.13:
	bl	_zend_hash_num_elements
	mov	x2, x0
	b	LBB0_30
LBB0_14:
Lloh12:
	adrp	x20, l_.str.3@PAGE
Lloh13:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh14:
	adrp	x21, l_.str.4@PAGE
Lloh15:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x22, [x26, #8]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x25, #4]
	ldr	w23, [x26, #52]
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	bl	_zend_hash_num_elements
	mov	x3, x0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w3, #0
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w4, [x26, #48]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	bl	_PQprepare
	str	x0, [x26, #16]
	bl	_PQresultStatus
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x22, x0
	ldr	x0, [x26, #16]
	bl	_pdo_pgsql_sqlstate
	mov	x23, x0
	cbz	x0, LBB0_27
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x23
	mov	x1, x20
	bl	_strcmp
	cbnz	w0, LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x3, [x26, #8]
	add	x0, sp, #16
	mov	w1, #100
	mov	x2, x21
	bl	_snprintf
	ldr	w0, [x25, #4]
	add	x1, sp, #16
	bl	_PQexec
	cbz	x0, LBB0_15
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	bl	_PQclear
	b	LBB0_15
LBB0_24:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_PQexec
	b	LBB0_31
LBB0_25:
	mov	w2, #0
LBB0_26:
	ldr	x3, [x26, #40]
	ldp	w5, w4, [x26, #32]
	mov	x0, x20
	mov	x1, x22
	mov	w6, #0
	bl	_PQexecPrepared
	b	LBB0_31
LBB0_27:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	b	LBB0_41
LBB0_28:
	mov	w8, #1
	str	w8, [x26]
	ldr	x0, [x26, #16]
	bl	_PQclear
	ldr	x22, [x26, #8]
	b	LBB0_9
LBB0_29:
	mov	w2, #0
LBB0_30:
	ldr	w3, [x26, #48]
	ldr	x4, [x26, #40]
	ldp	w6, w5, [x26, #32]
	mov	x0, x20
	mov	x1, x21
	mov	w7, #0
	bl	_PQexecParams
LBB0_31:
	str	x0, [x26, #16]
LBB0_32:
	bl	_PQresultStatus
	mov	x20, x0
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_39
; %bb.33:
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_37
; %bb.34:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_36
; %bb.35:
	ldr	x8, [x26, #24]
	cbnz	x8, LBB0_37
LBB0_36:
	ldr	x0, [x26, #16]
	bl	_PQnfields
	str	w0, [x19, #16]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #4
	bl	_ecalloc
	str	x0, [x26, #24]
LBB0_37:
	cmp	w20, #129
	b.ne	LBB0_42
; %bb.38:
	ldr	x19, [x19, #24]
	ldr	x0, [x26, #16]
	bl	_PQcmdTuples
	mov	x1, x0
	mov	x0, x19
	bl	_ZEND_ATOL
	ldr	x0, [x26, #16]
	bl	_PQoidValue
	str	w0, [x25]
	b	LBB0_43
LBB0_39:
	ldr	x0, [x26, #16]
LBB0_40:
	bl	_pdo_pgsql_sqlstate
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
LBB0_41:
	bl	_pdo_pgsql_error_stmt
	mov	w0, #0
	b	LBB0_44
LBB0_42:
	ldr	x0, [x26, #16]
	bl	_PQntuples
	str	x0, [x19, #24]
LBB0_43:
	mov	w0, #1
LBB0_44:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_46
; %bb.45:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_46:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CLOSE %s"

l_.str.1:                               ; @.str.1
	.asciz	"DECLARE %s SCROLL CURSOR WITH HOLD FOR %s"

l_.str.2:                               ; @.str.2
	.asciz	"FETCH FORWARD 0 FROM %s"

l_.str.3:                               ; @.str.3
	.asciz	"42P05"

l_.str.4:                               ; @.str.4
	.asciz	"DEALLOCATE %s"

	.comm	_PDO_PLACEHOLDER_NAMED,8,3      ; @PDO_PLACEHOLDER_NAMED
	.no_dead_strip	_pgsql_stmt_execute
.subsections_via_symbols
