	.file	"extr_vdbemem.c_sqlite3VdbeMemClearAndResize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sqlite3VdbeMemClearAndResize
	.type	sqlite3VdbeMemClearAndResize, @function
sqlite3VdbeMemClearAndResize:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR CORRUPT_DB[rip], 0
	setne	dil
	test	esi, esi
	setg	al
	or	edi, eax
	movzx	edi, dil
	call	assert@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	edi, 1
	test	DWORD PTR MEM_Dyn[rip], eax
	je	.L2
	mov	eax, DWORD PTR 4[rbp]
	xor	edi, edi
	test	eax, eax
	sete	dil
.L2:
	call	assert@PLT
	cmp	DWORD PTR 4[rbp], r12d
	jl	.L9
	mov	eax, DWORD PTR 0[rbp]
	xor	edi, edi
	test	DWORD PTR MEM_Dyn[rip], eax
	sete	dil
	call	assert@PLT
	mov	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR MEM_Null[rip]
	or	eax, DWORD PTR MEM_Int[rip]
	or	eax, DWORD PTR MEM_Real[rip]
	and	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR SQLITE_OK[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	esi, r12d
	mov	rdi, rbp
	xor	edx, edx
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	sqlite3VdbeMemGrow@PLT
	.cfi_endproc
.LFE0:
	.size	sqlite3VdbeMemClearAndResize, .-sqlite3VdbeMemClearAndResize
	.comm	SQLITE_OK,4,4
	.comm	MEM_Real,4,4
	.comm	MEM_Null,4,4
	.comm	MEM_Int,4,4
	.comm	MEM_Dyn,4,4
	.comm	CORRUPT_DB,8,8
	.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_vdbemem.c_sqlite3VdbeMemClearAndResize.c"
	.text
	.align	2
	.global	sqlite3VdbeMemClearAndResize
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3VdbeMemClearAndResize, %function
sqlite3VdbeMemClearAndResize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	movle	r3, #0
	movgt	r3, #1
	ldr	r2, .L8
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r2]
	mov	r5, r1
	cmp	r0, #0
	moveq	r0, r3
	movne	r0, #1
	bl	assert
	ldr	r6, .L8+4
	ldr	r2, [r4]
	ldr	r3, [r6]
	tst	r2, r3
	ldrne	r0, [r4, #4]
	moveq	r0, #1
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	assert
	ldr	r3, [r4, #4]
	cmp	r3, r5
	blt	.L7
	ldr	r3, [r6]
	ldr	r2, [r4]
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
	bl	assert
	ldr	r3, .L8+8
	ldr	r2, .L8+12
	ldr	r1, .L8+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, [r4]
	ldr	r0, [r4, #8]
	orr	r3, r3, r1
	ldr	r1, .L8+20
	and	r3, r3, r2
	str	r0, [r4, #12]
	str	r3, [r4]
	ldr	r0, [r1]
	pop	{r4, r5, r6, pc}
.L7:
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	mov	r2, #0
	b	sqlite3VdbeMemGrow
.L9:
	.align	2
.L8:
	.word	CORRUPT_DB
	.word	MEM_Dyn
	.word	MEM_Null
	.word	MEM_Int
	.word	MEM_Real
	.word	SQLITE_OK
	.size	sqlite3VdbeMemClearAndResize, .-sqlite3VdbeMemClearAndResize
	.comm	SQLITE_OK,4,4
	.comm	MEM_Real,4,4
	.comm	MEM_Null,4,4
	.comm	MEM_Int,4,4
	.comm	MEM_Dyn,4,4
	.comm	CORRUPT_DB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
