	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function callCollNeeded
_callCollNeeded:                        ## @callCollNeeded
	.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
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_assert
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sqlite3DbStrDup
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r12
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	%rax, %rcx
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_sqlite3DbFree
LBB0_6:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_sqlite3ValueNew
	movq	%rax, %r15
	movq	_SQLITE_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SQLITE_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	$-1, %esi
	movq	%r14, %rdx
	callq	_sqlite3ValueSetStr
	movq	_SQLITE_UTF16NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sqlite3ValueText
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %r14
	movq	8(%rbx), %r13
	movl	(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_ENC
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	*%r13
LBB0_9:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3ValueFree               ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_UTF8,4,2                ## @SQLITE_UTF8
	.comm	_SQLITE_STATIC,4,2              ## @SQLITE_STATIC
	.comm	_SQLITE_UTF16NATIVE,4,2         ## @SQLITE_UTF16NATIVE
	.no_dead_strip	_callCollNeeded
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function callCollNeeded
_callCollNeeded:                        ; @callCollNeeded
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_assert
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3DbStrDup
	cbz	x0, LBB0_10
; %bb.5:
	mov	x22, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x19]
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	blr	x8
	mov	x0, x19
	mov	x1, x22
	bl	_sqlite3DbFree
LBB0_6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_sqlite3ValueNew
	mov	x21, x0
Lloh0:
	adrp	x8, _SQLITE_UTF8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_UTF8@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _SQLITE_STATIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_STATIC@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	w1, #-1
	mov	x2, x20
	bl	_sqlite3ValueSetStr
Lloh6:
	adrp	x8, _SQLITE_UTF16NATIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_UTF16NATIVE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sqlite3ValueText
	cbz	x0, LBB0_9
; %bb.8:
	mov	x20, x0
	ldr	x23, [x19, #8]
	ldr	w22, [x19]
	mov	x0, x19
	bl	_ENC
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x20
	blr	x23
LBB0_9:
	mov	x0, x21
	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
	b	_sqlite3ValueFree
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_UTF8,4,2                ; @SQLITE_UTF8
	.comm	_SQLITE_STATIC,4,2              ; @SQLITE_STATIC
	.comm	_SQLITE_UTF16NATIVE,4,2         ; @SQLITE_UTF16NATIVE
	.no_dead_strip	_callCollNeeded
.subsections_via_symbols
