	.file	"extr_fts5_expr.c_sqlite3Fts5ExprNew.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sqlite3Fts5ExprNew
	.type	sqlite3Fts5ExprNew, @function
sqlite3Fts5ExprNew:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	DWORD PTR 12[rsp], esi
	lea	rbp, 48[rsp]
	xor	esi, esi
	mov	QWORD PTR 24[rsp], rcx
	mov	rdi, rbp
	mov	QWORD PTR 16[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rcx], 0
	mov	QWORD PTR [r8], 0
	mov	QWORD PTR 40[rsp], rdx
	mov	edx, 48
	call	memset@PLT
	mov	edi, DWORD PTR fts5ParseAlloc[rip]
	call	sqlite3Fts5ParserAlloc@PLT
	test	rax, rax
	je	.L25
	mov	QWORD PTR 88[rsp], r14
	mov	r12, rax
	lea	r13, 36[rsp]
	lea	rbx, 40[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	cmp	DWORD PTR FTS5_EOF[rip], r15d
	je	.L4
.L5:
	mov	rdx, r13
	mov	rsi, rbx
	mov	rdi, rbp
	call	fts5ExprGetToken@PLT
	mov	edx, DWORD PTR 36[rsp]
	mov	rcx, rbp
	mov	rdi, r12
	mov	esi, eax
	mov	r15d, eax
	call	sqlite3Fts5Parser@PLT
	mov	rax, QWORD PTR SQLITE_OK[rip]
	cmp	QWORD PTR 48[rsp], rax
	je	.L26
.L4:
	mov	esi, DWORD PTR fts5ParseFree[rip]
	mov	rdi, r12
	call	sqlite3Fts5ParserFree@PLT
	mov	eax, DWORD PTR 12[rsp]
	cmp	DWORD PTR [r14], eax
	mov	rdx, QWORD PTR 48[rsp]
	mov	rax, QWORD PTR SQLITE_OK[rip]
	jle	.L7
	cmp	QWORD PTR 72[rsp], 0
	je	.L7
	cmp	rax, rdx
	je	.L8
.L11:
	mov	edi, 1
.L9:
	call	assert@PLT
	mov	rax, QWORD PTR SQLITE_OK[rip]
	cmp	QWORD PTR 48[rsp], rax
	je	.L27
	mov	rdi, QWORD PTR 72[rsp]
	call	sqlite3Fts5ParseNodeFree@PLT
	mov	rdi, QWORD PTR 64[rsp]
.L14:
	call	sqlite3_free@PLT
	mov	rax, QWORD PTR 56[rsp]
	mov	rbx, QWORD PTR 16[rsp]
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR 48[rsp]
.L1:
	mov	rbx, QWORD PTR 104[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L28
	add	rsp, 120
	.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
.L8:
	.cfi_restore_state
	mov	esi, 16
	mov	rdi, rbp
	call	sqlite3Fts5MallocZero@PLT
	test	rax, rax
	je	.L23
	mov	rdx, QWORD PTR 8[rax]
	mov	ebx, DWORD PTR 12[rsp]
	mov	DWORD PTR [rax], 1
	mov	rdi, rbp
	mov	rsi, QWORD PTR 72[rsp]
	mov	DWORD PTR [rdx], ebx
	mov	rdx, rax
	call	sqlite3Fts5ParseSetColset@PLT
.L23:
	mov	rdx, QWORD PTR 48[rsp]
	mov	rax, QWORD PTR SQLITE_OK[rip]
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	rdx, rax
	jne	.L11
	xor	edi, edi
	cmp	QWORD PTR 56[rsp], 0
	sete	dil
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, 40
	call	sqlite3_malloc@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR [rax], rbx
	test	rbx, rbx
	je	.L29
	mov	rax, QWORD PTR 72[rsp]
	test	rax, rax
	je	.L30
	mov	QWORD PTR 32[rbx], rax
.L16:
	mov	rax, QWORD PTR 64[rsp]
	mov	QWORD PTR 16[rbx], r14
	xor	edi, edi
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR 80[rsp]
	mov	DWORD PTR [rbx], eax
	mov	QWORD PTR 64[rsp], 0
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L25:
	mov	eax, DWORD PTR SQLITE_NOMEM[rip]
	jmp	.L1
.L30:
	mov	esi, 4
	mov	rdi, rbp
	call	sqlite3Fts5MallocZero@PLT
	mov	QWORD PTR 32[rbx], rax
	test	rax, rax
	je	.L16
	mov	DWORD PTR [rax], 1
	jmp	.L16
.L29:
	movsx	rax, DWORD PTR SQLITE_NOMEM[rip]
	mov	rdi, QWORD PTR 72[rsp]
	mov	QWORD PTR 48[rsp], rax
	call	sqlite3Fts5ParseNodeFree@PLT
	mov	rdi, QWORD PTR 64[rsp]
	jmp	.L14
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sqlite3Fts5ExprNew, .-sqlite3Fts5ExprNew
	.comm	fts5ParseFree,4,4
	.comm	fts5ParseAlloc,4,4
	.comm	SQLITE_OK,8,8
	.comm	SQLITE_NOMEM,4,4
	.comm	FTS5_EOF,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_fts5_expr.c_sqlite3Fts5ExprNew.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sqlite3Fts5ExprNew
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3Fts5ExprNew, %function
sqlite3Fts5ExprNew:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	ip, #0
	mov	r9, r3
	sub	sp, sp, #44
	ldr	fp, [sp, #80]
	ldr	r3, .L35
	mov	r8, r0
	ldr	r0, .L35+4
	mov	r10, r1
	ldr	r0, [r0]
	str	r0, [sp, #36]
	mov	r0,#0
	ldr	r0, [r3]
	str	ip, [r9]
	str	ip, [fp]
	str	r2, [sp, #8]
	str	ip, [sp, #12]
	str	ip, [sp, #16]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	str	ip, [sp, #28]
	str	ip, [sp, #32]
	bl	sqlite3Fts5ParserAlloc
	subs	r5, r0, #0
	beq	.L28
	ldr	r6, .L35+8
	ldr	r7, .L35+12
	str	r8, [sp, #32]
	b	.L5
.L29:
	ldr	r3, [r7]
	cmp	r3, r4
	beq	.L4
.L5:
	add	r2, sp, #4
	add	r1, sp, #8
	add	r0, sp, #12
	bl	fts5ExprGetToken
	ldr	r2, [sp, #4]
	mov	r1, r0
	add	r3, sp, #12
	mov	r4, r0
	mov	r0, r5
	bl	sqlite3Fts5Parser
	ldr	r2, [sp, #12]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L29
.L4:
	ldr	r3, .L35+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	sqlite3Fts5ParserFree
	ldr	r3, [r8]
	cmp	r3, r10
	bgt	.L6
.L26:
	ldr	r2, [sp, #12]
	ldr	r3, [r6]
.L7:
	cmp	r2, r3
	beq	.L30
.L11:
	mov	r0, #1
.L9:
	bl	assert
	ldr	r3, [r6]
	ldr	r2, [sp, #12]
	cmp	r2, r3
	beq	.L31
	ldr	r0, [sp, #24]
	bl	sqlite3Fts5ParseNodeFree
	ldr	r0, [sp, #20]
.L14:
	bl	sqlite3_free
	ldr	r3, [sp, #16]
	ldr	r0, [sp, #12]
	str	r3, [fp]
.L1:
	ldr	r3, .L35+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #12]
	cmp	r3, #0
	ldr	r3, [r6]
	beq	.L7
	cmp	r3, r2
	bne	.L11
	mov	r1, #8
	add	r0, sp, #12
	bl	sqlite3Fts5MallocZero
	subs	r2, r0, #0
	beq	.L26
	mov	r1, #1
	ldr	r3, [r2, #4]
	str	r1, [r2]
	add	r0, sp, #12
	ldr	r1, [sp, #24]
	str	r10, [r3]
	bl	sqlite3Fts5ParseSetColset
	b	.L26
.L31:
	mov	r0, #20
	bl	sqlite3_malloc
	cmp	r0, #0
	mov	r4, r0
	str	r0, [r9]
	beq	.L33
	ldr	r3, [sp, #24]
	cmp	r3, #0
	strne	r3, [r0, #16]
	beq	.L34
.L16:
	mov	r0, #0
	ldr	r2, [sp, #20]
	ldr	r3, [sp, #28]
	stmib	r4, {r2, r8}
	str	r3, [r4]
	str	r0, [r4, #12]
	str	r0, [sp, #20]
	b	.L14
.L30:
	ldr	r0, [sp, #16]
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L9
.L28:
	ldr	r3, .L35+20
	ldr	r0, [r3]
	b	.L1
.L34:
	mov	r1, #4
	add	r0, sp, #12
	bl	sqlite3Fts5MallocZero
	cmp	r0, #0
	movne	r3, #1
	str	r0, [r4, #16]
	strne	r3, [r0]
	b	.L16
.L33:
	ldr	r3, .L35+20
	ldr	r0, [sp, #24]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	bl	sqlite3Fts5ParseNodeFree
	ldr	r0, [sp, #20]
	b	.L14
.L32:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	fts5ParseAlloc
	.word	.LC0
	.word	SQLITE_OK
	.word	FTS5_EOF
	.word	fts5ParseFree
	.word	SQLITE_NOMEM
	.size	sqlite3Fts5ExprNew, .-sqlite3Fts5ExprNew
	.comm	fts5ParseFree,4,4
	.comm	fts5ParseAlloc,4,4
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM,4,4
	.comm	FTS5_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
