	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sqlite3Prepare16
_sqlite3Prepare16:                      ## @sqlite3Prepare16
	.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	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	$0, -56(%rbp)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	$0, (%r8)
	callq	_sqlite3SafetyCheckOk
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	testl	%r14d, %r14d
	js	LBB0_11
## %bb.4:
	je	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	$2, %rax
	cmpl	%r14d, %eax
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx,%rax)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$0, 1(%rbx,%rax)
	jne	LBB0_9
LBB0_10:
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_2:
	movq	_SQLITE_MISUSE_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_5:
	xorl	%r14d, %r14d
LBB0_11:
	movl	(%r15), %edi
	callq	_sqlite3_mutex_enter
	movq	_SQLITE_UTF16NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_sqlite3Utf16to8
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$-1, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	movq	%r13, %r9
	callq	_sqlite3LockAndPrepare
	movl	%eax, %r12d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_15
## %bb.13:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.14:
	subl	%r14d, %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_sqlite3Utf8CharLen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sqlite3Utf16ByteLen
	cltq
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, (%r13)
LBB0_15:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_sqlite3DbFree
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_sqlite3ApiExit
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_sqlite3_mutex_leave
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_MISUSE_BKPT,4,2         ## @SQLITE_MISUSE_BKPT
	.comm	_SQLITE_UTF16NATIVE,4,2         ## @SQLITE_UTF16NATIVE
	.no_dead_strip	_sqlite3Prepare16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sqlite3Prepare16
_sqlite3Prepare16:                      ; @sqlite3Prepare16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x22, x1
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	str	xzr, [x4]
	bl	_sqlite3SafetyCheckOk
	cbz	x22, LBB0_14
; %bb.1:
	cbz	w0, LBB0_14
; %bb.2:
	tbnz	w25, #31, LBB0_9
; %bb.3:
	cbz	w25, LBB0_9
; %bb.4:
	mov	x8, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #2
	cmp	w8, w25
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x22, x8]
	cbnz	w9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x22, x8
	ldrb	w9, [x9, #1]
	cbnz	w9, LBB0_5
LBB0_8:
	mov	x25, x8
LBB0_9:
	ldr	w0, [x19]
	bl	_sqlite3_mutex_enter
Lloh3:
	adrp	x8, _SQLITE_UTF16NATIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_UTF16NATIVE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x25
	bl	_sqlite3Utf16to8
	mov	x25, x0
	cbz	x0, LBB0_13
; %bb.10:
	add	x6, sp, #8
	mov	x0, x19
	mov	x1, x25
	mov	w2, #-1
	mov	x3, x24
	mov	w4, #0
	mov	x5, x23
	bl	_sqlite3LockAndPrepare
	mov	x21, x0
	cbz	x20, LBB0_13
; %bb.11:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_13
; %bb.12:
	sub	w1, w8, w25
	mov	x0, x25
	bl	_sqlite3Utf8CharLen
	mov	x1, x0
	mov	x0, x22
	bl	_sqlite3Utf16ByteLen
	add	x8, x22, w0, sxtw #2
	str	x8, [x20]
LBB0_13:
	mov	x0, x19
	mov	x1, x25
	bl	_sqlite3DbFree
	mov	x0, x19
	mov	x1, x21
	bl	_sqlite3ApiExit
	mov	x20, x0
	ldr	w0, [x19]
	bl	_sqlite3_mutex_leave
	b	LBB0_15
LBB0_14:
Lloh6:
	adrp	x8, _SQLITE_MISUSE_BKPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_MISUSE_BKPT@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_MISUSE_BKPT,4,2         ; @SQLITE_MISUSE_BKPT
	.comm	_SQLITE_UTF16NATIVE,4,2         ; @SQLITE_UTF16NATIVE
	.no_dead_strip	_sqlite3Prepare16
.subsections_via_symbols
