	.file	"extr_fts3.c_fts3PrefixParameter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fts3PrefixParameter, @function
fts3PrefixParameter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L2
	movzx	eax, BYTE PTR [rdi]
	mov	rbp, rdi
	test	al, al
	jne	.L36
	mov	edi, 4
	call	sqlite3_malloc64@PLT
	mov	QWORD PTR [r12], rax
	test	rax, rax
	jne	.L37
.L13:
	mov	eax, DWORD PTR SQLITE_NOMEM[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L38
	add	rsp, 40
	.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
.L36:
	.cfi_restore_state
	mov	rcx, rdi
	mov	ebx, 2
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	al, 44
	sete	al
	add	rcx, 1
	movzx	eax, al
	add	ebx, eax
	movzx	eax, BYTE PTR [rcx]
	test	al, al
	jne	.L5
	lea	r13d, 0[0+rbx*4]
	mov	edi, r13d
	call	sqlite3_malloc64@PLT
	mov	QWORD PTR [r12], rax
	mov	r14, rax
	test	rax, rax
	je	.L13
	mov	edx, r13d
	xor	esi, esi
	lea	r13, 12[rsp]
	mov	rdi, r14
	call	memset@PLT
	lea	r12, 16[rsp]
	mov	QWORD PTR 16[rsp], rbp
	mov	ebp, 1
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L40:
	sub	ebx, 1
	add	QWORD PTR 16[rsp], 1
	cmp	ebx, ebp
	jle	.L12
.L11:
	mov	rsi, r13
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], 0
	call	fts3GobbleInt@PLT
	test	rax, rax
	jne	.L39
	mov	edi, DWORD PTR 12[rsp]
	not	edi
	shr	edi, 31
	call	assert@PLT
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L40
	movsx	rdx, ebp
	add	ebp, 1
	mov	DWORD PTR [r14+rdx*4], eax
	add	QWORD PTR 16[rsp], 1
	cmp	ebx, ebp
	jg	.L11
.L12:
	mov	DWORD PTR [r15], ebx
	mov	eax, DWORD PTR SQLITE_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, 4
	call	sqlite3_malloc64@PLT
	mov	QWORD PTR [r12], rax
	mov	rdi, rax
	test	rax, rax
	je	.L13
	mov	edx, 4
	xor	esi, esi
	mov	ebx, 1
	call	memset@PLT
	mov	DWORD PTR [r15], ebx
	mov	eax, DWORD PTR SQLITE_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	mov	eax, DWORD PTR SQLITE_ERROR[rip]
	jmp	.L1
.L37:
	mov	edx, 4
	xor	esi, esi
	mov	rdi, rax
	mov	ebx, 1
	call	memset@PLT
	jmp	.L12
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fts3PrefixParameter, .-fts3PrefixParameter
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM,4,4
	.comm	SQLITE_ERROR,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_fts3.c_fts3PrefixParameter.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fts3PrefixParameter, %function
fts3PrefixParameter:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L39
	sub	sp, sp, #16
	subs	r6, r0, #0
	mov	r8, r1
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L2
	ldrb	r4, [r6]	@ zero_extendqisi2
	cmp	r4, #0
	bne	.L36
	mov	r0, #4
	bl	sqlite3_malloc64
	cmp	r0, #0
	str	r0, [r9]
	bne	.L37
.L13:
	ldr	r3, .L39+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L38
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L36:
	mov	r3, r6
	mov	r5, #2
.L5:
	cmp	r4, #44
	ldrb	r4, [r3, #1]!	@ zero_extendqisi2
	addeq	r5, r5, #1
	cmp	r4, #0
	bne	.L5
	lsl	r10, r5, #2
	mov	r0, r10
	bl	sqlite3_malloc64
	cmp	r0, #0
	mov	r7, r0
	str	r0, [r9]
	beq	.L13
	mov	r2, r10
	mov	r1, r4
	bl	memset
	str	r6, [sp, #4]
	mov	r6, #1
	b	.L11
.L8:
	ldr	r0, [sp, #8]
	mvn	r0, r0
	lsr	r0, r0, #31
	bl	assert
	ldr	r3, [sp, #8]
	cmp	r3, #0
	strne	r3, [r7, r6, lsl #2]
	ldr	r3, [sp, #4]
	subeq	r5, r5, #1
	addne	r6, r6, #1
	add	r3, r3, #1
	cmp	r5, r6
	str	r3, [sp, #4]
	ble	.L12
.L11:
	add	r1, sp, #8
	add	r0, sp, #4
	str	r4, [sp, #8]
	bl	fts3GobbleInt
	cmp	r0, #0
	beq	.L8
	ldr	r3, .L39+8
	ldr	r0, [r3]
	b	.L1
.L2:
	mov	r0, #4
	bl	sqlite3_malloc64
	cmp	r0, #0
	str	r0, [r9]
	beq	.L13
	mov	r5, #1
	strb	r6, [r0]
	strb	r6, [r0, #1]
	strb	r6, [r0, #2]
	strb	r6, [r0, #3]
.L12:
	ldr	r3, .L39+12
	str	r5, [r8]
	ldr	r0, [r3]
	b	.L1
.L37:
	mov	r5, #1
	strb	r4, [r0]
	strb	r4, [r0, #1]
	strb	r4, [r0, #2]
	strb	r4, [r0, #3]
	b	.L12
.L38:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	SQLITE_NOMEM
	.word	SQLITE_ERROR
	.word	SQLITE_OK
	.size	fts3PrefixParameter, .-fts3PrefixParameter
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM,4,4
	.comm	SQLITE_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
