	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function renameParentFunc
_renameParentFunc:                      ## @renameParentFunc
	.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	$72, %rsp
	.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
	callq	_sqlite3_context_db_handle
	movq	%rax, %r13
	movq	(%r14), %rdi
	callq	_sqlite3_value_text
	movq	%rax, %r12
	movq	8(%r14), %rdi
	callq	_sqlite3_value_text
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	16(%r14), %rdi
	callq	_sqlite3_value_text
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_UNUSED_PARAMETER
	cmpb	$0, (%r12)
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	leaq	-52(%rbp), %r14
	movq	_TK_SPACE@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_sqlite3DbFree
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r12d, %rax
	cmpb	$0, (%r15,%rax)
	leaq	(%r15,%rax), %r15
	je	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_sqlite3GetToken
	movl	%eax, %r12d
	movl	-52(%rbp), %eax
	movq	_TK_REFERENCES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r12d, %rax
	addq	%rax, %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_sqlite3GetToken
	movl	%eax, %r12d
	movl	-52(%rbp), %eax
	cmpl	(%r13), %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_sqlite3DbStrNDup
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_sqlite3Dequote
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_sqlite3StrICmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %rdx
	movq	%r15, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	subq	%r8, %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_sqlite3MPrintf
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_sqlite3DbFree
	movq	%rbx, %rdi
	movslq	%r12d, %rax
	addq	%r15, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	leaq	L_.str.1(%rip), %rdx
	cmovneq	%rbx, %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_sqlite3MPrintf
	movq	_SQLITE_DYNAMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movl	$-1, %edx
	callq	_sqlite3_result_text
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sqlite3DbFree
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TK_REFERENCES,4,2              ## @TK_REFERENCES
	.comm	_TK_SPACE,4,2                   ## @TK_SPACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%.*s\"%w\""

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"%s%s"

	.comm	_SQLITE_DYNAMIC,4,2             ## @SQLITE_DYNAMIC
	.no_dead_strip	_renameParentFunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function renameParentFunc
_renameParentFunc:                      ; @renameParentFunc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x2
	mov	x25, x1
	mov	x20, x0
	bl	_sqlite3_context_db_handle
	mov	x19, x0
	ldr	x0, [x21]
	bl	_sqlite3_value_text
	mov	x22, x0
	ldr	x0, [x21, #8]
	bl	_sqlite3_value_text
	mov	x23, x0
	ldr	x0, [x21, #16]
	bl	_sqlite3_value_text
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	mov	x0, x25
	bl	_UNUSED_PARAMETER
	ldrb	w8, [x22]
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	mov	x26, #0
	cbz	w8, LBB0_9
; %bb.1:
Lloh0:
	adrp	x20, _TK_REFERENCES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TK_REFERENCES@GOTPAGEOFF]
Lloh2:
	adrp	x24, _TK_SPACE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TK_SPACE@GOTPAGEOFF]
	mov	x25, x22
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x28
	bl	_sqlite3DbFree
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, w27, sxtw
	ldrb	w8, [x25]
	cbz	w8, LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x1, sp, #44
	mov	x0, x25
	bl	_sqlite3GetToken
	mov	x27, x0
	ldr	w8, [sp, #44]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x25, x25, w27, sxtw
	add	x1, sp, #44
	mov	x0, x25
	bl	_sqlite3GetToken
	mov	x27, x0
	ldr	w8, [sp, #44]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x25
	mov	x2, x27
	bl	_sqlite3DbStrNDup
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
	bl	_sqlite3Dequote
	mov	x0, x23
	mov	x1, x28
	bl	_sqlite3StrICmp
	cbnz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x26, #0
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
	csel	x2, x8, x26, eq
	sub	x8, x25, x22
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	stp	x22, x9, [sp, #8]
	str	x8, [sp]
	mov	x0, x19
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sqlite3MPrintf
	mov	x21, x0
	mov	x0, x19
	mov	x1, x26
	bl	_sqlite3DbFree
	add	x22, x25, w27, sxtw
	mov	x26, x21
	b	LBB0_2
LBB0_9:
	cmp	x26, #0
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	csel	x2, x8, x26, eq
	str	x22, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_sqlite3MPrintf
	mov	x1, x0
Lloh12:
	adrp	x8, _SQLITE_DYNAMIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SQLITE_DYNAMIC@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #-1
	bl	_sqlite3_result_text
	mov	x0, x19
	mov	x1, x26
	bl	_sqlite3DbFree
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TK_REFERENCES,4,2              ; @TK_REFERENCES
	.comm	_TK_SPACE,4,2                   ; @TK_SPACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%.*s\"%w\""

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"%s%s"

	.comm	_SQLITE_DYNAMIC,4,2             ; @SQLITE_DYNAMIC
	.no_dead_strip	_renameParentFunc
.subsections_via_symbols
