	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lengthFunc
_lengthFunc:                            ## @lengthFunc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpl	$1, %esi
	sete	%dil
	callq	_assert
	movl	%ebx, %edi
	callq	_UNUSED_PARAMETER
	movq	(%r15), %rdi
	callq	_sqlite3_value_type
                                        ## kill: def $eax killed $eax def $rax
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_1
## %bb.12:
	movq	(%r15), %rdi
	callq	_sqlite3_value_bytes
	movq	%r14, %rdi
	movl	%eax, %esi
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_result_int             ## TAILCALL
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.2:
	movq	(%r15), %rdi
	callq	_sqlite3_value_text
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movb	(%rax), %bl
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testb	%bl, %bl
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edx
	movb	1(%rax), %bl
	incq	%rax
	cmpb	$-64, %dl
	jb	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edx
	andb	$-64, %dl
	cmpb	$-128, %dl
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rcx
	movzbl	1(%rax), %ebx
	incq	%rax
	jmp	LBB0_7
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_result_null            ## TAILCALL
LBB0_8:
	subl	%ecx, %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	jmp	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lengthFunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lengthFunc
_lengthFunc:                            ; @lengthFunc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	w1, #1
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	bl	_UNUSED_PARAMETER
	ldr	x0, [x20]
	bl	_sqlite3_value_type
	sub	w8, w0, #129
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.1:
	ldr	x0, [x20]
	bl	_sqlite3_value_bytes
	mov	x1, x0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sqlite3_result_int
LBB0_3:
	cmp	w0, #128
	b.ne	LBB0_11
; %bb.4:
	ldr	x0, [x20]
	bl	_sqlite3_value_text
	cbz	x0, LBB0_12
; %bb.5:
	ldrb	w9, [x0]
	cbz	w9, LBB0_13
; %bb.6:
	mov	x8, x0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	w9, LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x10, x9
	ldrb	w9, [x0, #1]!
	cmp	w10, #192
	b.lo	LBB0_7
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w10, w9, #0xc0
	cmp	w10, #128
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldrb	w9, [x0, #1]!
	add	x8, x8, #1
	b	LBB0_9
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sqlite3_result_null
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x8, x0
LBB0_14:
	sub	w1, w0, w8
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lengthFunc
.subsections_via_symbols
