	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function renameTableTest
_renameTableTest:                       ## @renameTableTest
	.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, %rbx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_sqlite3_context_db_handle
	movq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_sqlite3_value_text
	movq	%rax, %r14
	movq	8(%rbx), %rdi
	callq	_sqlite3_value_text
	movq	%rax, %r13
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rdi
	callq	_sqlite3_value_int
	movl	%eax, %ebx
	movq	_SQLITE_LegacyAlter@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	(%r15), %r12d
	movq	8(%r15), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	$0, 8(%r15)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_UNUSED_PARAMETER
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_17
## %bb.1:
	testq	%r13, %r13
	je	LBB0_17
## %bb.2:
	leaq	-88(%rbp), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	movq	%r15, %rcx
	movq	%r13, %r8
	movl	%ebx, %r9d
	callq	_renameParseSql
	movl	%eax, %r13d
	movq	_SQLITE_OK@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_13
## %bb.3:
	testl	%r12d, %r12d
	jne	LBB0_8
## %bb.4:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-88(%rbp), %rdi
	movq	%rdi, -112(%rbp)
	movq	-64(%rbp), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdx
	callq	_sqlite3SelectPrep
	cmpq	$0, -72(%rbp)
	je	LBB0_13
## %bb.7:
	movl	-88(%rbp), %r13d
	jmp	LBB0_13
LBB0_8:
	cmpq	$0, -80(%rbp)
	je	LBB0_13
## %bb.9:
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.10:
	xorl	%esi, %esi
	testl	%ebx, %ebx
	cmoveq	-48(%rbp), %rsi                 ## 8-byte Folded Reload
	leaq	-88(%rbp), %rdi
	callq	_renameResolveTrigger
	movl	(%r14), %r13d
	cmpl	%r13d, %eax
	jne	LBB0_14
LBB0_11:
	movq	-80(%rbp), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sqlite3SchemaToIndex
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_sqlite3FindDbName
	cmpl	%eax, %ebx
	jne	LBB0_13
## %bb.12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_sqlite3_result_int
LBB0_13:
	movl	%r13d, %eax
LBB0_14:
	cmpl	(%r14), %eax
	je	LBB0_16
## %bb.15:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdx
	movq	24(%rax), %rcx
	leaq	-88(%rbp), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_renameColumnParseError
LBB0_16:
	leaq	-88(%rbp), %rdi
	callq	_renameParseCleanup
LBB0_17:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 8(%r15)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_LegacyAlter,4,2         ## @SQLITE_LegacyAlter
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_renameTableTest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function renameTableTest
_renameTableTest:                       ; @renameTableTest
	.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, #32]
	bl	_sqlite3_value_int
	mov	x24, x0
	ldr	w27, [x19]
Lloh0:
	adrp	x8, _SQLITE_LegacyAlter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_LegacyAlter@GOTPAGEOFF]
Lloh2:
	ldr	w28, [x8]
	ldr	x26, [x19, #8]
	str	xzr, [x19, #8]
	mov	x0, x25
	bl	_UNUSED_PARAMETER
	cmp	x22, #0
	ccmp	x23, #0, #4, ne
	b.eq	LBB0_14
; %bb.1:
	add	x0, sp, #16
	mov	x1, x22
	mov	w2, #1
	mov	x3, x19
	mov	x4, x23
	mov	x5, x24
	bl	_renameParseSql
	mov	x23, x0
Lloh3:
	adrp	x25, _SQLITE_OK@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.2:
	and	w8, w28, w27
	ldr	x9, [sp, #40]
	cmp	w8, #0
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x9]
	cbz	x9, LBB0_5
; %bb.4:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x8, sp, #16
	str	x8, [sp, #8]
	ldr	x8, [sp, #40]
	ldr	x1, [x8]
	add	x0, sp, #16
	add	x2, sp, #8
	bl	_sqlite3SelectPrep
	ldr	x8, [sp, #32]
	ldr	w9, [sp, #16]
	cmp	x8, #0
	csel	w0, w23, w9, eq
	b	LBB0_11
LBB0_5:
	ldr	x9, [sp, #24]
	cbz	x9, LBB0_10
; %bb.6:
	cbnz	w8, LBB0_8
; %bb.7:
	cmp	w24, #0
	csel	x1, x22, xzr, eq
	add	x0, sp, #16
	bl	_renameResolveTrigger
	ldr	w23, [x25]
	cmp	w0, w23
	b.ne	LBB0_11
LBB0_8:
	ldr	x8, [sp, #24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3SchemaToIndex
	mov	x24, x0
	mov	x0, x19
	mov	x1, x22
	bl	_sqlite3FindDbName
	cmp	w24, w0
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	mov	w1, #1
	bl	_sqlite3_result_int
LBB0_10:
	mov	x0, x23
LBB0_11:
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.12:
	ldp	x2, x3, [x21, #16]
	add	x4, sp, #16
	mov	x0, x20
	mov	w1, #1
	bl	_renameColumnParseError
LBB0_13:
	add	x0, sp, #16
	bl	_renameParseCleanup
LBB0_14:
	str	x26, [x19, #8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_LegacyAlter,4,2         ; @SQLITE_LegacyAlter
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_renameTableTest
.subsections_via_symbols
