	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function charFunc
_charFunc:                              ## @charFunc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leal	1(,%r13,4), %edi
	callq	_sqlite3_malloc64
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	testl	%r13d, %r13d
	jle	LBB0_11
## %bb.2:
	movl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$65533, %r15d                   ## imm = 0xFFFD
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	%cl, (%rbx)
	incq	%rbx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rdi
	callq	_sqlite3_value_int64
	movl	%eax, %ecx
	andl	$2097151, %ecx                  ## imm = 0x1FFFFF
	cmpl	$1114112, %eax                  ## imm = 0x110000
	cmovael	%r15d, %ecx
	cmpl	$127, %ecx
	jbe	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %eax
	cmpl	$2047, %ecx                     ## imm = 0x7FF
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	shrl	$6, %eax
	addb	$-64, %al
	movb	%al, (%rbx)
	andb	$63, %cl
	orb	$-128, %cl
	movb	%cl, 1(%rbx)
	addq	$2, %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	shrl	$12, %eax
	addb	$-32, %al
	movb	%al, (%rbx)
	movl	%ecx, %eax
	shrl	$6, %eax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 1(%rbx)
	andb	$63, %cl
	orb	$-128, %cl
	movb	%cl, 2(%rbx)
	addq	$3, %rbx
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	shrl	$18, %eax
	orb	$-16, %al
	movb	%al, (%rbx)
	movl	%ecx, %eax
	shrl	$12, %eax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 1(%rbx)
	movl	%ecx, %eax
	shrl	$6, %eax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 2(%rbx)
	andb	$63, %cl
	orb	$-128, %cl
	movb	%cl, 3(%rbx)
	addq	$4, %rbx
	jmp	LBB0_10
LBB0_11:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	subl	%esi, %ebx
	movq	_sqlite3_free@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SQLITE_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_result_text64          ## TAILCALL
LBB0_12:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_result_error_nomem     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sqlite3_free,4,2               ## @sqlite3_free
	.comm	_SQLITE_UTF8,4,2                ## @SQLITE_UTF8
	.no_dead_strip	_charFunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function charFunc
_charFunc:                              ; @charFunc
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w0, #1
	bfi	w0, w1, #2, #30
	bl	_sqlite3_malloc64
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	mov	x23, x0
	cmp	w22, #1
	b.lt	LBB0_11
; %bb.2:
	mov	w22, w22
	mov	w24, #65533
	mov	x23, x20
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w9, [x23], #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #8
	subs	x22, x22, #1
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	bl	_sqlite3_value_int64
	and	w8, w0, #0x1fffff
	lsr	w9, w0, #16
	cmp	w9, #16
	csel	w9, w24, w8, hi
	cmp	w9, #127
	b.ls	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #2047
	b.hi	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	lsr	w8, w9, #6
	add	w8, w8, #192
	strb	w8, [x23]
	mov	w8, #128
	bfxil	w8, w9, #0, #6
	strb	w8, [x23, #1]
	add	x23, x23, #2
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsr	w11, w9, #16
	mov	w10, #128
	bfxil	w10, w9, #6, #6
	mov	w8, #128
	bfxil	w8, w9, #0, #6
	cbnz	w11, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	lsr	w9, w9, #12
	add	w9, w9, #224
	strb	w9, [x23]
	strb	w10, [x23, #1]
	strb	w8, [x23, #2]
	add	x23, x23, #3
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	lsr	w11, w9, #18
	orr	w11, w11, #0xf0
	strb	w11, [x23]
	mov	w11, #128
	bfxil	w11, w9, #12, #6
	strb	w11, [x23, #1]
	strb	w10, [x23, #2]
	strb	w8, [x23, #3]
	add	x23, x23, #4
	b	LBB0_4
LBB0_11:
	sub	w2, w23, w20
Lloh0:
	adrp	x8, _sqlite3_free@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sqlite3_free@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _SQLITE_UTF8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_UTF8@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x20
	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	_sqlite3_result_text64
LBB0_12:
	mov	x0, x19
	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	_sqlite3_result_error_nomem
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_sqlite3_free,4,2               ; @sqlite3_free
	.comm	_SQLITE_UTF8,4,2                ; @SQLITE_UTF8
	.no_dead_strip	_charFunc
.subsections_via_symbols
