	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bind_prepared_stmt
_bind_prepared_stmt:                    ## @bind_prepared_stmt
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -88(%rbp)
	movq	%rsi, %rdi
	callq	_sqlite3_bind_parameter_count
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_sqlite3_table_column_metadata
	addq	$32, %rsp
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-88(%rbp), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	movq	-88(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.4:
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.5:
	negl	%r14d
	movl	$1, %ebx
	movq	_SQLITE_STATIC@GOTPCREL(%rip), %r13
	movq	_SQLITE_ROW@GOTPCREL(%rip), %r15
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_sqlite3_bind_null
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-88(%rbp), %rdi
	callq	_sqlite3_reset
	leal	(%r14,%rbx), %eax
	incl	%eax
	movl	%ebx, %ecx
	incl	%ecx
	movl	%ecx, %ebx
	cmpl	$1, %eax
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_sqlite3_bind_parameter_name
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$30, %edi
	movq	%r14, %r12
	movq	%r15, %r14
	movq	%r13, %r15
	leaq	-80(%rbp), %r13
	movq	%r13, %rsi
	leaq	L_.str.4(%rip), %rdx
	movl	%ebx, %ecx
	callq	_sqlite3_snprintf
	movq	%r13, %rax
	movq	%r15, %r13
	movq	%r14, %r15
	movq	%r12, %r14
	movq	-96(%rbp), %r12                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-88(%rbp), %rdi
	movl	(%r13), %r8d
	movl	$1, %esi
	movq	%rax, %rdx
	movl	$-1, %ecx
	callq	_sqlite3_bind_text
	movq	-88(%rbp), %rdi
	callq	_sqlite3_step
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-88(%rbp), %rdi
	xorl	%esi, %esi
	callq	_sqlite3_column_value
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_sqlite3_bind_value
	jmp	LBB0_11
LBB0_12:
	movq	-88(%rbp), %rdi
LBB0_13:
	callq	_sqlite3_finalize
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TEMP"

L_.str.1:                               ## @.str.1
	.asciz	"sqlite_parameters"

L_.str.2:                               ## @.str.2
	.asciz	"key"

	.comm	_SQLITE_OK,8,3                  ## @SQLITE_OK
L_.str.3:                               ## @.str.3
	.asciz	"SELECT value FROM temp.sqlite_parameters WHERE key=?1"

L_.str.4:                               ## @.str.4
	.asciz	"?%d"

	.comm	_SQLITE_STATIC,4,2              ## @SQLITE_STATIC
	.comm	_SQLITE_ROW,8,3                 ## @SQLITE_ROW
	.no_dead_strip	_bind_prepared_stmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bind_prepared_stmt
_bind_prepared_stmt:                    ; @bind_prepared_stmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	xzr, [sp, #16]
	mov	x0, x1
	bl	_sqlite3_bind_parameter_count
	cbz	w0, LBB0_14
; %bb.1:
	mov	x20, x0
	ldr	w0, [x21]
	str	wzr, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh7:
	adrp	x3, l_.str.2@PAGE
Lloh8:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_sqlite3_table_column_metadata
Lloh9:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.2:
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x3, sp, #16
	mov	w2, #-1
	mov	w4, #0
	bl	_sqlite3_prepare_v2
	cbnz	w0, LBB0_14
; %bb.3:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_14
; %bb.4:
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.5:
	mov	w24, #0
Lloh14:
	adrp	x25, _SQLITE_STATIC@GOTPAGE
Lloh15:
	ldr	x25, [x25, _SQLITE_STATIC@GOTPAGEOFF]
Lloh16:
	adrp	x26, _SQLITE_ROW@GOTPAGE
Lloh17:
	ldr	x26, [x26, _SQLITE_ROW@GOTPAGEOFF]
Lloh18:
	adrp	x21, l_.str.4@PAGE
Lloh19:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_sqlite3_bind_null
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #16]
	bl	_sqlite3_reset
	add	w24, w24, #1
	cmp	w20, w24
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w24, #1
	mov	x0, x19
	mov	x1, x22
	bl	_sqlite3_bind_parameter_name
	mov	x23, x0
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, sp, #26
	add	x1, sp, #26
	mov	w0, #30
	mov	x2, x21
	mov	x3, x22
	bl	_sqlite3_snprintf
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #16]
	ldr	w4, [x25]
	mov	w1, #1
	mov	x2, x23
	mov	w3, #-1
	bl	_sqlite3_bind_text
	ldr	x0, [sp, #16]
	bl	_sqlite3_step
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #16]
	mov	w1, #0
	bl	_sqlite3_column_value
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_sqlite3_bind_value
	b	LBB0_7
LBB0_12:
	ldr	x0, [sp, #16]
LBB0_13:
	bl	_sqlite3_finalize
LBB0_14:
	ldr	x8, [sp, #56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TEMP"

l_.str.1:                               ; @.str.1
	.asciz	"sqlite_parameters"

l_.str.2:                               ; @.str.2
	.asciz	"key"

	.comm	_SQLITE_OK,8,3                  ; @SQLITE_OK
l_.str.3:                               ; @.str.3
	.asciz	"SELECT value FROM temp.sqlite_parameters WHERE key=?1"

l_.str.4:                               ; @.str.4
	.asciz	"?%d"

	.comm	_SQLITE_STATIC,4,2              ; @SQLITE_STATIC
	.comm	_SQLITE_ROW,8,3                 ; @SQLITE_ROW
	.no_dead_strip	_bind_prepared_stmt
.subsections_via_symbols
