	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function codeAttach
_codeAttach:                            ## @codeAttach
	.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	%r9, %r12
	movq	%r8, %r14
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %rbx
	movq	8(%rdi), %r15
	cmpq	$0, (%rdi)
	jne	LBB0_13
## %bb.1:
	movq	%rdi, %r13
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r13, -72(%rbp)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_resolveAttachExpr
	cmpl	%eax, %r12d
	movq	%r14, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	16(%rbp), %rbx
	jne	LBB0_13
## %bb.2:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-72(%rbp), %rdi
	movq	%r12, %rsi
	callq	_resolveAttachExpr
	cmpl	%eax, %r14d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_13
## %bb.3:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_resolveAttachExpr
	cmpl	%eax, %r14d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_13
## %bb.4:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.5:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	_TK_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	8(%rdx), %rdx
	jmp	LBB0_8
LBB0_6:
	xorl	%edx, %edx
LBB0_8:
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sqlite3AuthCheck
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
LBB0_9:
	movq	%r13, %rdi
	callq	_sqlite3GetVdbe
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_sqlite3GetTempRange
	movq	%r14, %rsi
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_sqlite3ExprCode
	leal	1(%r14), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_sqlite3ExprCode
	leal	2(%r14), %edx
	movq	%r13, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_sqlite3ExprCode
	testq	%r13, %r13
	je	LBB0_10
## %bb.11:
	movl	$1, %edi
	callq	_assert
	movq	_OP_Function0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$3, %r14d
	movl	%r14d, %ecx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	subl	(%rbx), %ecx
	movq	_P4_FUNCDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	xorl	%edx, %edx
	movl	%r14d, %r8d
	movq	%rbx, %r9
	callq	_sqlite3VdbeAddOp4
	movl	(%rbx), %eax
	incl	%eax
	xorl	%edi, %edi
	cmpl	$257, %eax                      ## imm = 0x101
	setb	%dil
	callq	_assert
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_sqlite3VdbeChangeP5
	movq	_OP_Expire@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SQLITE_ATTACH@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	sete	%dl
	movq	%r13, %rdi
	callq	_sqlite3VdbeAddOp1
	jmp	LBB0_12
LBB0_10:
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	callq	_assert
LBB0_12:
	movq	16(%rbp), %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_sqlite3ExprDelete
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sqlite3ExprDelete
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_sqlite3ExprDelete
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_TK_STRING,8,3                  ## @TK_STRING
	.comm	_OP_Function0,4,2               ## @OP_Function0
	.comm	_P4_FUNCDEF,4,2                 ## @P4_FUNCDEF
	.comm	_OP_Expire,4,2                  ## @OP_Expire
	.comm	_SQLITE_ATTACH,4,2              ## @SQLITE_ATTACH
	.no_dead_strip	_codeAttach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function codeAttach
_codeAttach:                            ; @codeAttach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x6
	mov	x20, x5
	mov	x22, x4
	ldp	x8, x21, [x0]
	cbnz	x8, LBB0_12
; %bb.1:
	mov	x26, x3
	mov	x24, x2
	mov	x23, x1
	mov	x25, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x25, [sp, #8]
Lloh0:
	adrp	x27, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SQLITE_OK@GOTPAGEOFF]
	ldr	w28, [x27]
	add	x0, sp, #8
	mov	x1, x22
	bl	_resolveAttachExpr
	cmp	w28, w0
	b.ne	LBB0_12
; %bb.2:
	ldr	w28, [x27]
	add	x0, sp, #8
	mov	x1, x20
	bl	_resolveAttachExpr
	cmp	w28, w0
	b.ne	LBB0_12
; %bb.3:
	ldr	w28, [x27]
	add	x0, sp, #8
	mov	x1, x19
	bl	_resolveAttachExpr
	cmp	w28, w0
	b.ne	LBB0_12
; %bb.4:
	cbz	x26, LBB0_9
; %bb.5:
	ldr	x8, [x26]
Lloh2:
	adrp	x9, _TK_STRING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TK_STRING@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x2, [x26, #8]
	b	LBB0_8
LBB0_7:
	mov	x2, #0
LBB0_8:
	mov	x0, x25
	mov	x1, x23
	mov	w3, #0
	mov	w4, #0
	bl	_sqlite3AuthCheck
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_12
LBB0_9:
	mov	x0, x25
	bl	_sqlite3GetVdbe
	mov	x26, x0
	mov	x0, x25
	mov	w1, #4
	bl	_sqlite3GetTempRange
	mov	x27, x0
	mov	x0, x25
	mov	x1, x22
	mov	x2, x27
	bl	_sqlite3ExprCode
	add	w2, w27, #1
	mov	x0, x25
	mov	x1, x20
	bl	_sqlite3ExprCode
	add	w2, w27, #2
	mov	x0, x25
	mov	x1, x19
	bl	_sqlite3ExprCode
	cbz	x26, LBB0_11
; %bb.10:
	mov	w0, #1
	bl	_assert
Lloh5:
	adrp	x8, _OP_Function0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OP_Function0@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	w4, w27, #3
	ldr	w8, [x24]
	sub	w3, w4, w8
Lloh8:
	adrp	x8, _P4_FUNCDEF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _P4_FUNCDEF@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
	mov	x0, x26
	mov	w2, #0
	mov	x5, x24
	bl	_sqlite3VdbeAddOp4
	ldr	w8, [x24]
	add	w8, w8, #1
	cmp	w8, #257
	cset	w0, lo
	bl	_assert
	ldr	w1, [x24]
	mov	x0, x26
	bl	_sqlite3VdbeChangeP5
Lloh11:
	adrp	x8, _OP_Expire@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OP_Expire@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _SQLITE_ATTACH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SQLITE_ATTACH@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w23
	cset	w2, eq
	mov	x0, x26
	bl	_sqlite3VdbeAddOp1
	b	LBB0_12
LBB0_11:
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
LBB0_12:
	mov	x0, x21
	mov	x1, x22
	bl	_sqlite3ExprDelete
	mov	x0, x21
	mov	x1, x20
	bl	_sqlite3ExprDelete
	mov	x0, x21
	mov	x1, x19
	bl	_sqlite3ExprDelete
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_TK_STRING,8,3                  ; @TK_STRING
	.comm	_OP_Function0,4,2               ; @OP_Function0
	.comm	_P4_FUNCDEF,4,2                 ; @P4_FUNCDEF
	.comm	_OP_Expire,4,2                  ; @OP_Expire
	.comm	_SQLITE_ATTACH,4,2              ; @SQLITE_ATTACH
	.no_dead_strip	_codeAttach
.subsections_via_symbols
