	.file	"extr_test_func.c_test_extract.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	test_extract, @function
test_extract:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	QWORD PTR 24[rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	sqlite3_context_db_handle@PLT
	xor	edi, edi
	cmp	ebp, 2
	sete	dil
	mov	r12, rax
	call	assert@PLT
	mov	rdi, QWORD PTR [rbx]
	call	sqlite3_value_blob@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	rbp, rax
	call	sqlite3_value_int@PLT
	lea	rsi, 32[rsp]
	mov	rdi, rbp
	mov	r13d, eax
	call	sqlite3GetVarint@PLT
	cdqe
	lea	rbx, 0[rbp+rax*4]
	mov	rax, QWORD PTR 32[rsp]
	lea	rax, 0[rbp+rax*4]
	mov	QWORD PTR 16[rsp], rax
	cmp	rbx, rax
	jnb	.L1
	test	r13d, r13d
	js	.L1
	mov	rbp, rax
	lea	rax, 40[rsp]
	lea	r14, 48[rsp]
	xor	r15d, r15d
	mov	QWORD PTR 8[rsp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	add	r15d, 1
	cmp	QWORD PTR 16[rsp], rbx
	jbe	.L1
	cmp	r13d, r15d
	jl	.L1
.L7:
	mov	edx, 32
	xor	esi, esi
	mov	rdi, r14
	call	memset@PLT
	mov	rdi, r12
	mov	QWORD PTR 72[rsp], r12
	call	ENC@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbx
	mov	DWORD PTR 64[rsp], eax
	call	sqlite3GetVarint@PLT
	mov	esi, DWORD PTR 40[rsp]
	mov	rdi, rbp
	mov	rdx, r14
	cdqe
	lea	rbx, [rbx+rax*4]
	call	sqlite3VdbeSerialGet@PLT
	cdqe
	lea	rbp, 0[rbp+rax*4]
	cmp	r13d, r15d
	je	.L20
	cmp	QWORD PTR 56[rsp], 0
	je	.L5
.L6:
	mov	esi, DWORD PTR 48[rsp]
	mov	rdi, r12
	call	sqlite3DbFree@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r14
	call	sqlite3_result_value@PLT
	cmp	QWORD PTR 56[rsp], 0
	jne	.L6
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 104
	.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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_extract, .-test_extract
	.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_test_func.c_test_extract.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_extract, %function
test_extract:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L21
	sub	sp, sp, #36
	mov	r4, r2
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	fp, r0
	bl	sqlite3_context_db_handle
	mov	r8, r0
	sub	r0, r5, #2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4]
	bl	sqlite3_value_blob
	mov	r10, r0
	ldr	r0, [r4, #4]
	bl	sqlite3_value_int
	add	r1, sp, #4
	mov	r9, r0
	mov	r0, r10
	bl	sqlite3GetVarint
	ldr	r3, [sp, #4]
	add	r4, r10, r0, lsl #2
	add	r10, r10, r3, lsl #2
	cmp	r4, r10
	movcs	r3, #0
	movcc	r3, #1
	cmp	r9, #0
	movlt	r3, #0
	cmp	r3, #0
	beq	.L1
	mov	r5, #0
	mov	r7, r10
	mov	r6, r5
	b	.L7
.L5:
	cmp	r10, r4
	add	r5, r5, #1
	movls	r3, #0
	movhi	r3, #1
	cmp	r9, r5
	movlt	r3, #0
	cmp	r3, #0
	beq	.L1
.L7:
	mov	r0, r8
	str	r6, [sp, #12]
	str	r6, [sp, #16]
	str	r6, [sp, #20]
	str	r8, [sp, #24]
	bl	ENC
	mov	r3, r0
	add	r1, sp, #8
	mov	r0, r4
	str	r3, [sp, #20]
	bl	sqlite3GetVarint
	mov	r3, r0
	ldr	r1, [sp, #8]
	mov	r0, r7
	add	r2, sp, #12
	add	r4, r4, r3, lsl #2
	bl	sqlite3VdbeSerialGet
	cmp	r9, r5
	add	r7, r7, r0, lsl #2
	beq	.L19
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L5
.L6:
	mov	r0, r8
	ldr	r1, [sp, #12]
	bl	sqlite3DbFree
	b	.L5
.L19:
	mov	r0, fp
	add	r1, sp, #12
	bl	sqlite3_result_value
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L6
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.size	test_extract, .-test_extract
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
