	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdo_sqlite_stmt_param_hook
_pdo_sqlite_stmt_param_hook:            ## @pdo_sqlite_stmt_param_hook
	.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
	movl	$1, %ebx
	cmpl	$133, %edx
	jne	LBB0_29
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	cmpl	$0, 4(%rdi)
	je	LBB0_4
## %bb.2:
	cmpl	$0, (%r13)
	jne	LBB0_4
## %bb.3:
	movl	4(%r13), %edi
	callq	_sqlite3_reset
	movl	$1, (%r13)
LBB0_4:
	cmpl	$0, 16(%r15)
	je	LBB0_29
## %bb.5:
	cmpl	$-1, (%r15)
	jne	LBB0_7
## %bb.6:
	movl	4(%r13), %ebx
	movl	12(%r15), %edi
	callq	_ZSTR_VAL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_sqlite3_bind_parameter_index
	decl	%eax
	movl	%eax, (%r15)
LBB0_7:
	movl	8(%r15), %edi
	callq	_PDO_PARAM_TYPE
                                        ## kill: def $eax killed $eax def $rax
	addl	$-129, %eax
	cmpl	$5, %eax
	ja	LBB0_20
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	xorl	%ebx, %ebx
	jmpq	*%rax
LBB0_9:
	leaq	4(%r15), %rbx
	movl	4(%r15), %edi
	callq	_Z_ISREF
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	(%rbx), %edi
	callq	_Z_REFVAL
	movq	%rax, %rbx
LBB0_11:
	movq	%rbx, %rdi
	callq	_Z_TYPE_P
	movq	_IS_NULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_23
## %bb.12:
	movq	%rbx, %rdi
	callq	_convert_to_long
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %r12d
	movl	(%r15), %r15d
	incl	%r15d
	movq	%rbx, %rdi
	callq	_Z_LVAL_P
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_sqlite3_bind_int
	jmp	LBB0_26
LBB0_13:
	leaq	4(%r15), %r12
	movl	4(%r15), %edi
	callq	_Z_ISREF
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	(%r12), %edi
	callq	_Z_REFVAL
	movq	%rax, %r12
LBB0_15:
	movq	%r12, %rdi
	callq	_Z_TYPE_P
	movq	_IS_RESOURCE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.16:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_php_stream_from_zval_no_verify
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rsi
	callq	_pdo_raise_impl_error
	jmp	LBB0_29
LBB0_20:
	leaq	4(%r15), %rbx
	movl	4(%r15), %edi
	callq	_Z_ISREF
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	(%rbx), %edi
	callq	_Z_REFVAL
	movq	%rax, %rbx
LBB0_22:
	movq	%rbx, %rdi
	callq	_Z_TYPE_P
	movq	_IS_NULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_23
## %bb.24:
	movq	%rbx, %rdi
	callq	_try_convert_to_string
	testl	%eax, %eax
	je	LBB0_28
## %bb.25:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %r12d
	movl	(%r15), %r15d
	incl	%r15d
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	movq	_SQLITE_STATIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_sqlite3_bind_text
LBB0_26:
	movl	$1, %ebx
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_27
	jmp	LBB0_29
LBB0_17:
	movq	%r12, %rdi
	callq	_Z_TYPE_P
	movq	_IS_NULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
LBB0_23:
	movl	4(%r13), %edi
	movl	(%r15), %esi
	incl	%esi
	callq	_sqlite3_bind_null
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpl	(%rcx), %eax
	je	LBB0_29
LBB0_27:
	movq	%r14, %rdi
	callq	_pdo_sqlite_error_stmt
LBB0_28:
	xorl	%ebx, %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r12, %rdi
	callq	_try_convert_to_string
	movl	$0, %ebx
	testl	%eax, %eax
	je	LBB0_29
## %bb.19:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %r14d
	movl	(%r15), %ebx
	incl	%ebx
	movq	%r12, %rdi
	callq	_Z_STRVAL_P
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_Z_STRLEN_P
	movq	_SQLITE_STATIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_sqlite3_bind_blob
	xorl	%ebx, %ebx
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	sete	%bl
	jmp	LBB0_29
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_29
	.long	L0_0_set_23
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_20
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_IS_NULL,4,2                    ## @IS_NULL
	.comm	_IS_RESOURCE,4,2                ## @IS_RESOURCE
	.comm	_PHP_STREAM_COPY_ALL,4,2        ## @PHP_STREAM_COPY_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HY105"

L_.str.1:                               ## @.str.1
	.asciz	"Expected a stream resource"

	.comm	_SQLITE_STATIC,4,2              ## @SQLITE_STATIC
	.no_dead_strip	_pdo_sqlite_stmt_param_hook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdo_sqlite_stmt_param_hook
_pdo_sqlite_stmt_param_hook:            ; @pdo_sqlite_stmt_param_hook
	.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
	cmp	w2, #133
	b.ne	LBB0_26
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x22]
	cbz	w8, LBB0_12
LBB0_3:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_26
LBB0_4:
	ldr	w8, [x20]
	cmn	w8, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	w21, [x22, #4]
	ldr	w0, [x20, #12]
	bl	_ZSTR_VAL
	mov	x1, x0
	mov	x0, x21
	bl	_sqlite3_bind_parameter_index
	sub	w8, w0, #1
	str	w8, [x20]
LBB0_6:
	ldr	w0, [x20, #8]
	bl	_PDO_PARAM_TYPE
	sub	w8, w0, #129
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.7:
	mov	w0, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	mov	x21, x20
	ldr	w0, [x21, #4]!
	bl	_Z_ISREF
	cbz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x21]
	bl	_Z_REFVAL
	mov	x21, x0
LBB0_10:
	mov	x0, x21
	bl	_Z_TYPE_P
Lloh2:
	adrp	x8, _IS_NULL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IS_NULL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_25
; %bb.11:
	mov	x0, x21
	bl	_convert_to_long
Lloh5:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	ldr	w22, [x22, #4]
	ldr	w8, [x20]
	add	w20, w8, #1
	mov	x0, x21
	bl	_Z_LVAL_P
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_sqlite3_bind_int
	cmp	w23, w0
	b.eq	LBB0_26
	b	LBB0_18
LBB0_12:
	ldr	w0, [x22, #4]
	bl	_sqlite3_reset
	mov	w8, #1
	str	w8, [x22]
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_4
	b	LBB0_26
LBB0_13:
	mov	x21, x20
	ldr	w0, [x21, #4]!
	bl	_Z_ISREF
	cbz	w0, LBB0_15
; %bb.14:
	ldr	w0, [x21]
	bl	_Z_REFVAL
	mov	x21, x0
LBB0_15:
	mov	x0, x21
	bl	_Z_TYPE_P
Lloh8:
	adrp	x8, _IS_NULL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IS_NULL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_25
; %bb.16:
	mov	x0, x21
	bl	_try_convert_to_string
	cbz	w0, LBB0_27
; %bb.17:
Lloh11:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
	ldr	w22, [x22, #4]
	ldr	w8, [x20]
	add	w20, w8, #1
	mov	x0, x21
	bl	_Z_STRVAL_P
	mov	x23, x0
	mov	x0, x21
	bl	_Z_STRLEN_P
	mov	x3, x0
Lloh14:
	adrp	x8, _SQLITE_STATIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SQLITE_STATIC@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_sqlite3_bind_text
	cmp	w24, w0
	b.eq	LBB0_26
LBB0_18:
	mov	x0, x19
	bl	_pdo_sqlite_error_stmt
LBB0_19:
	mov	w0, #0
	b	LBB0_27
LBB0_20:
	mov	x21, x20
	ldr	w0, [x21, #4]!
	bl	_Z_ISREF
	cbz	w0, LBB0_22
; %bb.21:
	ldr	w0, [x21]
	bl	_Z_REFVAL
	mov	x21, x0
LBB0_22:
	mov	x0, x21
	bl	_Z_TYPE_P
Lloh17:
	adrp	x8, _IS_RESOURCE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IS_RESOURCE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.23:
	mov	x0, #0
	mov	x1, x21
	bl	_php_stream_from_zval_no_verify
	ldr	w0, [x19]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
Lloh22:
	adrp	x3, l_.str.1@PAGE
Lloh23:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pdo_raise_impl_error
	b	LBB0_19
LBB0_24:
	mov	x0, x21
	bl	_Z_TYPE_P
Lloh24:
	adrp	x8, _IS_NULL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IS_NULL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_28
LBB0_25:
	ldr	w0, [x22, #4]
	ldr	w8, [x20]
	add	w1, w8, #1
	bl	_sqlite3_bind_null
Lloh27:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_18
LBB0_26:
	mov	w0, #1
LBB0_27:
	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_28:
	mov	x0, x21
	bl	_try_convert_to_string
	cbz	w0, LBB0_27
; %bb.29:
Lloh30:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh32:
	ldr	w23, [x8]
	ldr	w19, [x22, #4]
	ldr	w8, [x20]
	add	w20, w8, #1
	mov	x0, x21
	bl	_Z_STRVAL_P
	mov	x22, x0
	mov	x0, x21
	bl	_Z_STRLEN_P
	mov	x3, x0
Lloh33:
	adrp	x8, _SQLITE_STATIC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SQLITE_STATIC@GOTPAGEOFF]
Lloh35:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_sqlite3_bind_blob
	cmp	w23, w0
	cset	w0, eq
	b	LBB0_27
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_27-LBB0_8)>>2
	.byte	(LBB0_25-LBB0_8)>>2
	.byte	(LBB0_20-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_IS_NULL,4,2                    ; @IS_NULL
	.comm	_IS_RESOURCE,4,2                ; @IS_RESOURCE
	.comm	_PHP_STREAM_COPY_ALL,4,2        ; @PHP_STREAM_COPY_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HY105"

l_.str.1:                               ; @.str.1
	.asciz	"Expected a stream resource"

	.comm	_SQLITE_STATIC,4,2              ; @SQLITE_STATIC
	.no_dead_strip	_pdo_sqlite_stmt_param_hook
.subsections_via_symbols
