	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trimFunc
_trimFunc:                              ## @trimFunc
	.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	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rdi
	callq	_sqlite3_value_type
	movq	_SQLITE_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_40
## %bb.1:
	movq	(%rbx), %rdi
	callq	_sqlite3_value_text
	testq	%rax, %rax
	je	LBB0_40
## %bb.2:
	movq	%rax, %r12
	movq	(%rbx), %rdi
	callq	_sqlite3_value_bytes
	movl	%eax, %r13d
	movq	(%rbx), %rdi
	callq	_sqlite3_value_text
	xorl	%edi, %edi
	cmpq	%rax, %r12
	sete	%dil
	callq	_assert
	cmpl	$1, %r14d
	jne	LBB0_6
## %bb.3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	_trimFunc.lenOne(%rip), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	_trimFunc.azOne(%rip), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_4:
	movq	%rbx, %rdi
	callq	_sqlite3_user_data
	movl	%eax, %edi
	callq	_SQLITE_PTR_TO_INT
	testb	$1, %al
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.17:
	movl	%r13d, %edx
	testl	%r13d, %r13d
	jle	LBB0_24
## %bb.18:
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r13d
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=2
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_23
LBB0_20:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax,%rbx), %r14d
	cmpl	%r14d, %edx
	jl	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%edx, %r15d
	movl	%r14d, %edx
	callq	_memcmp
	movl	%r15d, %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_22
## %bb.41:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%r14d, %eax
	addq	%rax, -56(%rbp)                 ## 8-byte Folded Spill
	subl	%r14d, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_19
	jmp	LBB0_36
LBB0_6:
	movq	8(%rbx), %rdi
	callq	_sqlite3_value_text
	testq	%rax, %rax
	je	LBB0_40
## %bb.7:
	movq	%rax, %r15
	cmpb	$0, (%rax)
	je	LBB0_8
## %bb.9:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_SQLITE_SKIP_UTF8
	addq	$8, %r14
	addl	$9, %ebx
	cmpb	$0, (%r15)
	jne	LBB0_10
## %bb.11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_contextMalloc
	testq	%rax, %rax
	je	LBB0_40
## %bb.12:
	cmpb	$0, (%r15)
	je	LBB0_8
## %bb.13:
	movq	%rax, %rbx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	addq	%r14, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, (%rbx,%r12,8)
	movq	%r15, %rdi
	callq	_SQLITE_SKIP_UTF8
	movl	(%rbx,%r12,8), %eax
	movl	%r15d, %ecx
	subl	%eax, %ecx
	leaq	(%rbx,%r12), %rax
	movb	%cl, (%r14,%rax)
	incq	%r12
	cmpb	$0, (%r15)
	jne	LBB0_14
## %bb.15:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_4
## %bb.16:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r13d, %edx
	jmp	LBB0_39
LBB0_40:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	-60(%rbp), %eax                 ## 4-byte Reload
LBB0_24:
	testb	$2, %al
	jne	LBB0_25
	jmp	LBB0_36
LBB0_8:
	movl	%r13d, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_5:
	movl	%r13d, %edx
	testb	$2, %al
	je	LBB0_36
LBB0_25:
	testl	%edx, %edx
	jle	LBB0_36
## %bb.26:
	movl	%r12d, %r14d
	movl	%edx, %r13d
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
	testl	%r12d, %r12d
	je	LBB0_35
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=2
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_32
LBB0_29:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax,%rbx), %edx
	cmpl	%edx, %r13d
	jl	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=2
	movslq	%r13d, %r15
	subq	%rdx, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_31
## %bb.33:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	%r15d, %r13d
	testl	%r15d, %r15d
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	jg	LBB0_27
## %bb.34:
	movl	%r15d, %edx
	jmp	LBB0_35
LBB0_32:
	movl	%r13d, %edx
LBB0_35:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_36:
	testq	%r15, %r15
	je	LBB0_38
## %bb.37:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%edx, %r14d
	callq	_sqlite3_free
	movl	%r14d, %edx
LBB0_38:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_39:
	movq	_SQLITE_TRANSIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_result_text            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NULL,8,3                ## @SQLITE_NULL
	.section	__TEXT,__const
_trimFunc.lenOne:                       ## @trimFunc.lenOne
	.byte	1

	.section	__DATA,__const
	.p2align	3                               ## @trimFunc.azOne
_trimFunc.azOne:
	.quad	L_.str

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" "

	.comm	_SQLITE_TRANSIENT,4,2           ## @SQLITE_TRANSIENT
	.no_dead_strip	_trimFunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trimFunc
_trimFunc:                              ; @trimFunc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x0, [x2]
	bl	_sqlite3_value_type
Lloh0:
	adrp	x8, _SQLITE_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_22
; %bb.1:
	ldr	x0, [x22]
	bl	_sqlite3_value_text
	cbz	x0, LBB0_22
; %bb.2:
	mov	x20, x0
	ldr	x0, [x22]
	bl	_sqlite3_value_bytes
	mov	x21, x0
	ldr	x0, [x22]
	bl	_sqlite3_value_text
	cmp	x20, x0
	cset	w0, eq
	bl	_assert
	cmp	w23, #1
	b.ne	LBB0_12
; %bb.3:
	mov	x22, #0
Lloh3:
	adrp	x8, _trimFunc.lenOne@PAGE
Lloh4:
	add	x8, x8, _trimFunc.lenOne@PAGEOFF
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	w28, #1
Lloh5:
	adrp	x26, _trimFunc.azOne@PAGE
Lloh6:
	add	x26, x26, _trimFunc.azOne@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_sqlite3_user_data
	bl	_SQLITE_PTR_TO_INT
	mov	x25, x0
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	tbz	w0, #0, LBB0_24
; %bb.5:
	cmp	w21, #1
	b.lt	LBB0_24
; %bb.6:
	mov	w23, w28
	stp	x23, x19, [sp]                  ; 16-byte Folded Spill
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x27, [sp, #16]                  ; 8-byte Folded Reload
	mov	x19, x26
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x19, x19, #8
	add	x27, x27, #1
	subs	x23, x23, #1
	b.eq	LBB0_23
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w26, [x27]
	subs	w24, w21, w26
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x1, [x19]
	mov	x0, x20
	mov	x2, x26
	bl	_memcmp
	cbnz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, w26, uxtw
	mov	x21, x24
	cmp	w24, #0
	ldp	x23, x19, [sp]                  ; 16-byte Folded Reload
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	b.gt	LBB0_7
	b	LBB0_36
LBB0_12:
	ldr	x0, [x22, #8]
	bl	_sqlite3_value_text
	cbz	x0, LBB0_22
; %bb.13:
	mov	x22, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_38
; %bb.14:
	mov	w23, #0
	mov	x24, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_SQLITE_SKIP_UTF8
	ldrb	w8, [x22]
	add	x24, x24, #8
	add	w23, w23, #9
	cbnz	w8, LBB0_15
; %bb.16:
	mov	x0, x19
	mov	x1, x23
	bl	_contextMalloc
	cbz	x0, LBB0_22
; %bb.17:
	ldrb	w8, [x22]
	cbz	w8, LBB0_38
; %bb.18:
	mov	x26, x0
	mov	x23, x19
	mov	x28, #0
	add	x8, x0, x24
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	lsl	x19, x28, #3
	str	x22, [x26, x19]
	mov	x0, x22
	bl	_SQLITE_SKIP_UTF8
	ldr	x8, [x26, x19]
	sub	w8, w22, w8
	add	x9, x26, x28
	strb	w8, [x9, x24]
	add	x28, x28, #1
	ldrb	w8, [x22]
	cbnz	w8, LBB0_19
; %bb.20:
	cbz	w28, LBB0_40
; %bb.21:
	mov	x19, x23
	b	LBB0_4
LBB0_22:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_23:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
LBB0_24:
	tbz	w25, #1, LBB0_33
; %bb.25:
	cmp	w21, #1
	b.lt	LBB0_33
; %bb.26:
	mov	w27, w28
	mov	x26, x21
	str	x27, [sp]                       ; 8-byte Folded Spill
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
	cbz	w28, LBB0_33
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldp	x25, x23, [sp, #16]             ; 16-byte Folded Reload
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=2
	add	x23, x23, #8
	add	x25, x25, #1
	subs	x27, x27, #1
	b.eq	LBB0_34
LBB0_30:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w2, [x25]
	cmp	w26, w2
	b.lt	LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	sxtw	x8, w26
	sub	x24, x8, x2
	add	x0, x20, x24
	ldr	x1, [x23]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcmp
	cbnz	x0, LBB0_29
; %bb.32:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x26, x24
	cmp	w24, #0
	ldr	x27, [sp]                       ; 8-byte Folded Reload
	b.gt	LBB0_27
	b	LBB0_35
LBB0_33:
	mov	x24, x21
	b	LBB0_35
LBB0_34:
	mov	x24, x26
LBB0_35:
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
LBB0_36:
	cbz	x22, LBB0_39
; %bb.37:
	mov	x0, x26
	bl	_sqlite3_free
	b	LBB0_39
LBB0_38:
	mov	x24, x21
LBB0_39:
Lloh7:
	adrp	x8, _SQLITE_TRANSIENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SQLITE_TRANSIENT@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_sqlite3_result_text
LBB0_40:
	mov	x24, x21
	mov	x19, x23
	b	LBB0_39
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NULL,8,3                ; @SQLITE_NULL
	.section	__TEXT,__const
_trimFunc.lenOne:                       ; @trimFunc.lenOne
	.byte	1

	.section	__DATA,__const
	.p2align	3                               ; @trimFunc.azOne
_trimFunc.azOne:
	.quad	l_.str

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" "

	.comm	_SQLITE_TRANSIENT,4,2           ; @SQLITE_TRANSIENT
	.no_dead_strip	_trimFunc
.subsections_via_symbols
