	.file	"extr_build.c_sqlite3CollapseDatabaseArray.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sqlite3CollapseDatabaseArray
	.type	sqlite3CollapseDatabaseArray, @function
sqlite3CollapseDatabaseArray:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	DWORD PTR [rdi], 2
	jle	.L2
	mov	r12d, 32
	mov	ebp, 2
	mov	ebx, 2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	ebp, ebx
	jge	.L5
	movdqu	xmm0, XMMWORD PTR [r14]
	movsx	rdx, ebp
	sal	rdx, 4
	movups	XMMWORD PTR [rax+rdx], xmm0
.L5:
	add	ebp, 1
	add	ebx, 1
	add	r12, 16
	cmp	DWORD PTR 0[r13], ebx
	jle	.L18
.L6:
	mov	rax, QWORD PTR 16[r13]
	lea	r14, [rax+r12]
	cmp	QWORD PTR [r14], 0
	jne	.L3
	mov	rsi, QWORD PTR 8[r14]
	mov	rdi, r13
	add	ebx, 1
	add	r12, 16
	call	sqlite3DbFree@PLT
	mov	QWORD PTR 8[r14], 0
	cmp	DWORD PTR 0[r13], ebx
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	DWORD PTR 0[r13], ebp
	cmp	ebp, 2
	je	.L8
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	DWORD PTR [rdi], 2
.L8:
	mov	rsi, QWORD PTR 16[r13]
	mov	rdi, QWORD PTR 8[r13]
	cmp	rsi, rdi
	je	.L1
	mov	edx, 32
	call	memcpy@PLT
	mov	rsi, QWORD PTR 16[r13]
	mov	rdi, r13
	call	sqlite3DbFree@PLT
	mov	rax, QWORD PTR 8[r13]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	QWORD PTR 16[r13], rax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sqlite3CollapseDatabaseArray, .-sqlite3CollapseDatabaseArray
	.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_build.c_sqlite3CollapseDatabaseArray.c"
	.text
	.align	2
	.global	sqlite3CollapseDatabaseArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3CollapseDatabaseArray, %function
sqlite3CollapseDatabaseArray:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r2, #2
	mov	r6, r0
	ble	.L2
	mov	r5, #2
	mov	r4, r5
	b	.L6
.L3:
	cmp	r5, r4
	addlt	r3, r3, r5, lsl #3
	add	r4, r4, #1
	ldmlt	r8, {r0, r1}
	stmlt	r3, {r0, r1}
	cmp	r2, r4
	add	r5, r5, #1
	ble	.L18
.L6:
	ldr	r3, [r6, #8]
	ldr	r7, [r3, r4, lsl #3]
	add	r8, r3, r4, lsl #3
	cmp	r7, #0
	bne	.L3
	mov	r0, r6
	ldr	r1, [r8, #4]
	bl	sqlite3DbFree
	ldr	r2, [r6]
	add	r4, r4, #1
	cmp	r2, r4
	str	r7, [r8, #4]
	bgt	.L6
.L18:
	cmp	r5, #2
	str	r5, [r6]
	popne	{r4, r5, r6, r7, r8, pc}
.L8:
	ldmib	r6, {r0, r1}
	cmp	r1, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r2, #16
	bl	memcpy
	mov	r0, r6
	ldr	r1, [r6, #8]
	bl	sqlite3DbFree
	ldr	r3, [r6, #4]
	str	r3, [r6, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r3, #2
	str	r3, [r0]
	b	.L8
	.size	sqlite3CollapseDatabaseArray, .-sqlite3CollapseDatabaseArray
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
