	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mysql_handle_preparer
_mysql_handle_preparer:                 ## @mysql_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, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movl	$1, %edi
	movl	$56, %esi
	callq	_ecalloc
	movq	%rax, %r12
	movq	$0, -48(%rbp)
	movq	$0, -64(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_PDO_DBG_ENTER
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movq	%r15, %r13
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_PDO_DBG_INF_FMT
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_PDO_DBG_INF_FMT
	movq	%r14, 48(%r12)
	movq	%r12, 16(%r15)
	movq	_mysql_stmt_methods@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	cmpq	$0, 8(%r14)
	jne	LBB0_22
## %bb.1:
	movl	(%r14), %edi
	callq	_mysql_get_server_version
	cmpl	$40100, %eax                    ## imm = 0x9CA4
	jl	LBB0_22
## %bb.2:
	movq	_PDO_PLACEHOLDER_POSITIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	leaq	-48(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_pdo_parse_params
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:
	movq	-48(%rbp), %r13
	movq	-64(%rbp), %rbx
	jmp	LBB0_6
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movl	4(%r15), %esi
	callq	_strcpy
	xorl	%edi, %edi
	callq	_PDO_DBG_RETURN
LBB0_6:
	movl	(%r14), %edi
	callq	_mysql_stmt_init
	movl	%eax, 40(%r12)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pdo_mysql_error
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_efree
LBB0_9:
	xorl	%edi, %edi
	callq	_PDO_DBG_RETURN
	movl	40(%r12), %eax
LBB0_10:
	movl	%eax, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_mysql_stmt_prepare
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movl	(%r14), %edi
	callq	_mysql_errno
	cmpl	$1295, %eax                     ## imm = 0x50F
	jne	LBB0_14
## %bb.12:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.13:
	callq	_efree
	jmp	LBB0_22
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pdo_mysql_error
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_efree
LBB0_16:
	xorl	%edi, %edi
	callq	_PDO_DBG_RETURN
LBB0_17:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_efree
LBB0_19:
	movl	40(%r12), %edi
	callq	_mysql_stmt_param_count
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	$0, 32(%r12)
	movl	%eax, %edi
	movl	$4, %esi
	callq	_ecalloc
	movq	%rax, 24(%r12)
	movl	(%r12), %edi
	movl	$4, %esi
	callq	_ecalloc
	movq	%rax, 16(%r12)
	movl	(%r12), %edi
	movl	$4, %esi
	callq	_ecalloc
	movq	%rax, 8(%r12)
LBB0_21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	_PDO_ATTR_MAX_COLUMN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_pdo_attr_lval
	movl	%eax, 4(%r12)
	movl	$1, %edi
	callq	_PDO_DBG_RETURN
LBB0_22:
	movq	_PDO_PLACEHOLDER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	$1, %edi
	callq	_PDO_DBG_RETURN
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mysql_handle_preparer"

L_.str.1:                               ## @.str.1
	.asciz	"dbh=%p"

L_.str.2:                               ## @.str.2
	.asciz	"sql=%.*s"

	.comm	_mysql_stmt_methods,4,2         ## @mysql_stmt_methods
	.comm	_PDO_PLACEHOLDER_POSITIONAL,4,2 ## @PDO_PLACEHOLDER_POSITIONAL
	.comm	_PDO_ATTR_MAX_COLUMN_LEN,4,2    ## @PDO_ATTR_MAX_COLUMN_LEN
	.comm	_PDO_PLACEHOLDER_NONE,4,2       ## @PDO_PLACEHOLDER_NONE
	.no_dead_strip	_mysql_handle_preparer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mysql_handle_preparer
_mysql_handle_preparer:                 ; @mysql_handle_preparer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x4
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x25, [x0, #8]
	mov	w0, #1
	mov	w1, #56
	bl	_ecalloc
	mov	x21, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PDO_DBG_ENTER
	str	x22, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_PDO_DBG_INF_FMT
	stp	x23, x24, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_PDO_DBG_INF_FMT
	str	x25, [x21, #48]
Lloh6:
	adrp	x8, _mysql_stmt_methods@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mysql_stmt_methods@GOTPAGEOFF]
	stp	x8, x21, [x19, #8]
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_22
; %bb.1:
	ldr	w0, [x25]
	bl	_mysql_get_server_version
	mov	w8, #40100
	cmp	w0, w8
	b.lt	LBB0_22
; %bb.2:
Lloh8:
	adrp	x8, _PDO_PLACEHOLDER_POSITIONAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PDO_PLACEHOLDER_POSITIONAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	add	x3, sp, #24
	add	x4, sp, #16
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_pdo_parse_params
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.4:
	ldp	x23, x24, [sp, #16]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x22, #4]
	ldr	w1, [x19, #4]
	bl	_strcpy
	mov	w0, #0
	bl	_PDO_DBG_RETURN
LBB0_6:
	ldr	w0, [x25]
	bl	_mysql_stmt_init
	str	w0, [x21, #40]
	cbnz	w0, LBB0_10
; %bb.7:
	mov	x0, x22
	bl	_pdo_mysql_error
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_efree
LBB0_9:
	mov	w0, #0
	bl	_PDO_DBG_RETURN
	ldr	w0, [x21, #40]
LBB0_10:
	mov	x1, x24
	mov	x2, x23
	bl	_mysql_stmt_prepare
	cbz	x0, LBB0_17
; %bb.11:
	ldr	w0, [x25]
	bl	_mysql_errno
	cmp	w0, #1295
	b.ne	LBB0_14
; %bb.12:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_22
; %bb.13:
	bl	_efree
	b	LBB0_22
LBB0_14:
	mov	x0, x22
	bl	_pdo_mysql_error
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_efree
LBB0_16:
	mov	w0, #0
	bl	_PDO_DBG_RETURN
LBB0_17:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_efree
LBB0_19:
	ldr	w0, [x21, #40]
	bl	_mysql_stmt_param_count
	str	w0, [x21]
	cbz	w0, LBB0_21
; %bb.20:
	str	xzr, [x21, #32]
	mov	w1, #4
	bl	_ecalloc
	str	x0, [x21, #24]
	ldr	w0, [x21]
	mov	w1, #4
	bl	_ecalloc
	str	x0, [x21, #16]
	ldr	w0, [x21]
	mov	w1, #4
	bl	_ecalloc
	str	x0, [x21, #8]
LBB0_21:
	mov	w8, #1
	str	w8, [x22]
Lloh11:
	adrp	x8, _PDO_ATTR_MAX_COLUMN_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PDO_ATTR_MAX_COLUMN_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_pdo_attr_lval
	str	w0, [x21, #4]
	mov	w0, #1
	bl	_PDO_DBG_RETURN
LBB0_22:
Lloh14:
	adrp	x8, _PDO_PLACEHOLDER_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PDO_PLACEHOLDER_NONE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #1
	bl	_PDO_DBG_RETURN
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mysql_handle_preparer"

l_.str.1:                               ; @.str.1
	.asciz	"dbh=%p"

l_.str.2:                               ; @.str.2
	.asciz	"sql=%.*s"

	.comm	_mysql_stmt_methods,4,2         ; @mysql_stmt_methods
	.comm	_PDO_PLACEHOLDER_POSITIONAL,4,2 ; @PDO_PLACEHOLDER_POSITIONAL
	.comm	_PDO_ATTR_MAX_COLUMN_LEN,4,2    ; @PDO_ATTR_MAX_COLUMN_LEN
	.comm	_PDO_PLACEHOLDER_NONE,4,2       ; @PDO_PLACEHOLDER_NONE
	.no_dead_strip	_mysql_handle_preparer
.subsections_via_symbols
