	.file	"extr_sqlite3.c_codeAttach.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	codeAttach, @function
codeAttach:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r13, QWORD PTR 8[rdi]
	mov	DWORD PTR 20[rsp], esi
	lea	rbx, 32[rsp]
	xor	esi, esi
	mov	r15, QWORD PTR 112[rsp]
	mov	QWORD PTR 24[rsp], rdx
	mov	rdi, rbx
	mov	edx, 8
	mov	QWORD PTR 8[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	memset@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	QWORD PTR 32[rsp], r14
	call	resolveAttachExpr@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	je	.L2
.L4:
	add	DWORD PTR [r14], 1
.L3:
	mov	rsi, rbp
	mov	rdi, r13
	call	sqlite3ExprDelete@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	sqlite3ExprDelete@PLT
	mov	rsi, r15
	mov	rdi, r13
	call	sqlite3ExprDelete@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbx
	call	resolveAttachExpr@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	jne	.L4
	mov	rsi, r15
	mov	rdi, rbx
	call	resolveAttachExpr@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	jne	.L4
	cmp	QWORD PTR 8[rsp], 0
	je	.L9
	mov	rax, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR TK_STRING[rip]
	xor	edx, edx
	cmp	QWORD PTR [rax], rcx
	jne	.L8
	mov	rdx, QWORD PTR 8[rax]
.L8:
	mov	esi, DWORD PTR 20[rsp]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rdi, r14
	call	sqlite3AuthCheck@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	jne	.L3
.L9:
	mov	rdi, r14
	call	sqlite3GetVdbe@PLT
	mov	esi, 4
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	sqlite3GetTempRange@PLT
	mov	rsi, rbp
	mov	rdi, r14
	mov	ebx, eax
	mov	edx, eax
	call	sqlite3ExprCode@PLT
	lea	edx, 1[rbx]
	mov	rsi, r12
	mov	rdi, r14
	call	sqlite3ExprCode@PLT
	lea	edx, 2[rbx]
	mov	rsi, r15
	mov	rdi, r14
	call	sqlite3ExprCode@PLT
	cmp	QWORD PTR 8[rsp], 0
	je	.L22
	mov	edi, 1
	call	assert@PLT
	lea	r8d, 3[rbx]
	mov	rbx, QWORD PTR 24[rsp]
	xor	edx, edx
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR OP_Function[rip]
	mov	ecx, r8d
	sub	ecx, DWORD PTR [rbx]
	call	sqlite3VdbeAddOp3@PLT
	mov	eax, DWORD PTR [rbx]
	mov	edi, 1
	cmp	eax, -1
	je	.L10
	xor	edi, edi
	test	eax, -256
	sete	dil
.L10:
	call	assert@PLT
	mov	r14, QWORD PTR 24[rsp]
	mov	rbx, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR [r14]
	mov	rdi, rbx
	call	sqlite3VdbeChangeP5@PLT
	mov	rdx, r14
	mov	rdi, rbx
	mov	esi, -1
	mov	ecx, DWORD PTR P4_FUNCDEF[rip]
	call	sqlite3VdbeChangeP4@PLT
	mov	eax, DWORD PTR 20[rsp]
	xor	edx, edx
	mov	rdi, rbx
	cmp	DWORD PTR SQLITE_ATTACH[rip], eax
	mov	esi, DWORD PTR OP_Expire[rip]
	sete	dl
	call	sqlite3VdbeAddOp1@PLT
	jmp	.L3
.L22:
	xor	edi, edi
	cmp	QWORD PTR 0[r13], 0
	setne	dil
	call	assert@PLT
	jmp	.L3
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	codeAttach, .-codeAttach
	.comm	TK_STRING,8,8
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_ATTACH,4,4
	.comm	P4_FUNCDEF,4,4
	.comm	OP_Function,4,4
	.comm	OP_Expire,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sqlite3.c_codeAttach.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	codeAttach, %function
codeAttach:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #28
	ldr	r8, [sp, #64]
	mov	r6, r3
	ldr	r3, .L23
	str	r4, [sp, #16]
	str	r2, [sp, #12]
	mov	r7, r1
	add	r0, sp, #16
	mov	r1, r8
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r5, [r4, #4]
	ldr	r10, [sp, #68]
	ldr	fp, [sp, #72]
	bl	resolveAttachExpr
	ldr	r9, .L23+4
	ldr	r3, [r9]
	cmp	r3, r0
	beq	.L2
.L4:
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
.L3:
	mov	r1, r8
	mov	r0, r5
	bl	sqlite3ExprDelete
	mov	r1, r10
	mov	r0, r5
	bl	sqlite3ExprDelete
	mov	r1, fp
	mov	r0, r5
	bl	sqlite3ExprDelete
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r1, r10
	add	r0, sp, #16
	bl	resolveAttachExpr
	ldr	r3, [r9]
	cmp	r3, r0
	bne	.L4
	mov	r1, fp
	add	r0, sp, #16
	bl	resolveAttachExpr
	ldr	r3, [r9]
	cmp	r3, r0
	bne	.L4
	cmp	r6, #0
	beq	.L9
	ldr	r3, .L23+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	mov	r1, r7
	cmp	r2, r3
	mov	r3, #0
	ldreq	r2, [r6, #4]
	movne	r2, #0
	str	r3, [sp]
	mov	r0, r4
	bl	sqlite3AuthCheck
	ldr	r3, [r9]
	cmp	r3, r0
	bne	.L3
.L9:
	mov	r0, r4
	bl	sqlite3GetVdbe
	mov	r1, #4
	mov	r9, r0
	mov	r0, r4
	bl	sqlite3GetTempRange
	mov	r6, r0
	mov	r2, r0
	mov	r1, r8
	mov	r0, r4
	bl	sqlite3ExprCode
	mov	r1, r10
	add	r2, r6, #1
	mov	r0, r4
	bl	sqlite3ExprCode
	mov	r0, r4
	mov	r1, fp
	add	r2, r6, #2
	bl	sqlite3ExprCode
	cmp	r9, #0
	beq	.L21
	mov	r0, #1
	bl	assert
	ldr	r4, [sp, #12]
	ldr	r2, .L23+12
	ldr	r3, [r4]
	add	r6, r6, #3
	str	r6, [sp]
	ldr	r1, [r2]
	sub	r3, r6, r3
	mov	r2, #0
	mov	r0, r9
	bl	sqlite3VdbeAddOp3
	ldr	r3, [r4]
	cmn	r3, #1
	beq	.L22
	bics	r3, r3, #255
	moveq	r0, #1
	movne	r0, #0
.L10:
	bl	assert
	ldr	r4, [sp, #12]
	mov	r0, r9
	ldr	r1, [r4]
	bl	sqlite3VdbeChangeP5
	ldr	r3, .L23+16
	mov	r2, r4
	mvn	r1, #0
	mov	r0, r9
	ldr	r3, [r3]
	bl	sqlite3VdbeChangeP4
	ldr	r2, .L23+20
	ldr	r3, .L23+24
	ldr	r2, [r2]
	mov	r0, r9
	sub	r2, r2, r7
	clz	r2, r2
	ldr	r1, [r3]
	lsr	r2, r2, #5
	bl	sqlite3VdbeAddOp1
	b	.L3
.L21:
	ldr	r0, [r5]
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	b	.L3
.L22:
	mov	r0, #1
	b	.L10
.L20:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	SQLITE_OK
	.word	TK_STRING
	.word	OP_Function
	.word	P4_FUNCDEF
	.word	SQLITE_ATTACH
	.word	OP_Expire
	.size	codeAttach, .-codeAttach
	.comm	TK_STRING,4,4
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_ATTACH,4,4
	.comm	P4_FUNCDEF,4,4
	.comm	OP_Function,4,4
	.comm	OP_Expire,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
