	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function firebird_handle_preparer
_firebird_handle_preparer:              ## @firebird_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	movq	_PDO_FIREBIRD_HANDLE_INITIALIZER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_PDO_FB_SQLDA_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)
	movl	$1, -144(%rbp)
	callq	_ALLOC_HASHTABLE
	movl	$8, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_zend_hash_init
	leaq	-144(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_firebird_alloc_prepare_stmt
	movl	$0, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	-140(%rbp), %edi
	callq	_XSQLDA_LENGTH
	movl	$1, %edi
	movl	%eax, %esi
	callq	_ecalloc
	movq	%rax, %rbx
	movq	%r15, 72(%rax)
	movl	-60(%rbp), %eax
	movl	%eax, 64(%rbx)
	movl	-140(%rbp), %esi
	shll	$3, %esi
	movl	$1, %edi
	callq	_ecalloc
	movq	%rax, 56(%rbx)
	movq	_PDO_FB_SQLDA_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movl	-140(%rbp), %eax
	movl	%eax, (%r14)
	movl	%eax, 32(%rbx)
	movl	(%r15), %r13d
	leaq	_firebird_handle_preparer.info(%rip), %rdi
	callq	_const_cast
	leaq	-60(%rbp), %rsi
	leaq	-56(%rbp), %r9
	movl	%r13d, %edi
	movl	$1, %edx
	movl	%eax, %ecx
	movl	$8, %r8d
	callq	_isc_dsql_sql_info
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rcx
	addq	$32, %rcx
	movb	-53(%rbp), %al
	movb	%al, 8(%rbx)
	movl	(%r15), %edi
	movq	_PDO_FB_SQLDA_VERSION@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	leaq	-60(%rbp), %rsi
	callq	_isc_dsql_describe
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%r12, %rdi
	callq	_RECORD_ERROR
	jmp	LBB0_4
LBB0_9:
	movl	(%r15), %edi
	movq	(%r13), %rdx
	leaq	-60(%rbp), %rsi
	leaq	-144(%rbp), %rcx
	callq	_isc_dsql_describe_bind
	testq	%rax, %rax
	je	LBB0_10
LBB0_4:
	movq	%r12, %rdi
	callq	_RECORD_ERROR
	callq	_zend_hash_destroy
	callq	_FREE_HASHTABLE
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_efree
LBB0_7:
	movq	%rbx, %rdi
	callq	_efree
LBB0_8:
	xorl	%eax, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	-140(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_12
## %bb.11:
	callq	_XSQLDA_LENGTH
	movl	$1, %edi
	movl	%eax, %esi
	callq	_ecalloc
	movq	%rax, 16(%rbx)
	movq	(%r13), %rdx
	movq	%rdx, 24(%rax)
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax)
	movl	(%r15), %edi
	leaq	-60(%rbp), %rsi
	movq	%rax, %rcx
	callq	_isc_dsql_describe_bind
	testq	%rax, %rax
	jne	LBB0_4
LBB0_12:
	movq	%rbx, 16(%r14)
	movq	_firebird_stmt_methods@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_PDO_PLACEHOLDER_POSITIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	$1, %eax
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PDO_FIREBIRD_HANDLE_INITIALIZER,4,2 ## @PDO_FIREBIRD_HANDLE_INITIALIZER
	.section	__TEXT,__const
_firebird_handle_preparer.info:         ## @firebird_handle_preparer.info
	.byte	128

	.comm	_PDO_FB_SQLDA_VERSION,8,3       ## @PDO_FB_SQLDA_VERSION
	.comm	_firebird_stmt_methods,4,2      ## @firebird_stmt_methods
	.comm	_PDO_PLACEHOLDER_POSITIONAL,4,2 ## @PDO_PLACEHOLDER_POSITIONAL
	.no_dead_strip	_firebird_handle_preparer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function firebird_handle_preparer
_firebird_handle_preparer:              ; @firebird_handle_preparer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	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	x24, [x0]
Lloh3:
	adrp	x8, _PDO_FIREBIRD_HANDLE_INITIALIZER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PDO_FIREBIRD_HANDLE_INITIALIZER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stur	w8, [x29, #-84]
Lloh6:
	adrp	x25, _PDO_FB_SQLDA_VERSION@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PDO_FB_SQLDA_VERSION@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [sp, #32]
	mov	w8, #1
	str	w8, [sp, #8]
	bl	_ALLOC_HASHTABLE
	mov	w1, #8
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_zend_hash_init
	add	x3, sp, #8
	sub	x4, x29, #84
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_firebird_alloc_prepare_stmt
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_XSQLDA_LENGTH
	mov	x1, x0
	mov	w0, #1
	bl	_ecalloc
	mov	x21, x0
	str	x24, [x0, #72]
	ldur	w8, [x29, #-84]
	str	w8, [x0, #64]
	ldr	w8, [sp, #12]
	lsl	w1, w8, #3
	mov	w0, #1
	bl	_ecalloc
	str	x0, [x21, #56]
	ldr	x8, [x25]
	ldr	w9, [sp, #12]
	mov	x22, x21
	str	w9, [x22, #32]!
	str	x8, [x21, #40]
	str	w9, [x20]
	ldr	w23, [x24]
Lloh8:
	adrp	x0, _firebird_handle_preparer.info@PAGE
Lloh9:
	add	x0, x0, _firebird_handle_preparer.info@PAGEOFF
	bl	_const_cast
	mov	x3, x0
	sub	x1, x29, #84
	sub	x5, x29, #80
	mov	x0, x23
	mov	w2, #1
	mov	w4, #8
	bl	_isc_dsql_sql_info
	cbnz	x0, LBB0_5
; %bb.2:
	ldurb	w8, [x29, #-77]
	strb	w8, [x21, #8]
	ldr	w0, [x24]
	ldr	x2, [x25]
	sub	x1, x29, #84
	mov	x3, x22
	bl	_isc_dsql_describe
	cbz	x0, LBB0_12
; %bb.3:
	mov	x0, x19
	bl	_RECORD_ERROR
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
	mov	x0, x19
	bl	_RECORD_ERROR
	bl	_zend_hash_destroy
	bl	_FREE_HASHTABLE
	cbz	x21, LBB0_9
; %bb.6:
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_efree
LBB0_8:
	mov	x0, x21
	bl	_efree
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.11:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_12:
	ldr	w0, [x24]
	ldr	x2, [x25]
	sub	x1, x29, #84
	add	x3, sp, #8
	bl	_isc_dsql_describe_bind
	cbnz	x0, LBB0_5
; %bb.13:
	ldr	w0, [sp, #12]
	cbz	w0, LBB0_15
; %bb.14:
	bl	_XSQLDA_LENGTH
	mov	x1, x0
	mov	w0, #1
	bl	_ecalloc
	mov	x3, x0
	str	x0, [x21, #16]
	ldr	x2, [x25]
	str	x2, [x0, #24]
	ldr	w8, [sp, #12]
	str	w8, [x0]
	ldr	w0, [x24]
	sub	x1, x29, #84
	bl	_isc_dsql_describe_bind
	cbnz	x0, LBB0_5
LBB0_15:
Lloh13:
	adrp	x8, _firebird_stmt_methods@GOTPAGE
Lloh14:
	ldr	x8, [x8, _firebird_stmt_methods@GOTPAGEOFF]
	stp	x8, x21, [x20, #8]
Lloh15:
	adrp	x8, _PDO_PLACEHOLDER_POSITIONAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PDO_PLACEHOLDER_POSITIONAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	mov	w0, #1
	b	LBB0_10
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PDO_FIREBIRD_HANDLE_INITIALIZER,4,2 ; @PDO_FIREBIRD_HANDLE_INITIALIZER
	.section	__TEXT,__const
_firebird_handle_preparer.info:         ; @firebird_handle_preparer.info
	.byte	128

	.comm	_PDO_FB_SQLDA_VERSION,8,3       ; @PDO_FB_SQLDA_VERSION
	.comm	_firebird_stmt_methods,4,2      ; @firebird_stmt_methods
	.comm	_PDO_PLACEHOLDER_POSITIONAL,4,2 ; @PDO_PLACEHOLDER_POSITIONAL
	.no_dead_strip	_firebird_handle_preparer
.subsections_via_symbols
