	.file	"extr_sqlite3.c_computeLimitRegisters.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"LIMIT counter"
.LC1:
	.string	"OFFSET counter"
.LC2:
	.string	"LIMIT+OFFSET"
	.text
	.p2align 4
	.type	computeLimitRegisters, @function
computeLimitRegisters:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	jne	.L1
	mov	rbp, QWORD PTR 24[rsi]
	mov	rbx, rsi
	test	rbp, rbp
	je	.L1
	mov	r12, rdi
	mov	rax, QWORD PTR TK_LIMIT[rip]
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], rax
	sete	dil
	mov	r13d, edx
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 8[rbp], 0
	setne	dil
	call	assert@PLT
	mov	eax, DWORD PTR [r12]
	mov	rdi, r12
	lea	r15d, 1[rax]
	mov	DWORD PTR [r12], r15d
	mov	DWORD PTR [rbx], r15d
	call	sqlite3GetVdbe@PLT
	xor	edi, edi
	test	rax, rax
	mov	r14, rax
	setne	dil
	call	assert@PLT
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, 4[rsp]
	call	sqlite3ExprIsInteger@PLT
	test	rax, rax
	jne	.L17
	mov	rsi, QWORD PTR 8[rbp]
	mov	edx, r15d
	mov	rdi, r12
	call	sqlite3ExprCode@PLT
	mov	esi, DWORD PTR OP_MustBeInt[rip]
	mov	edx, r15d
	mov	rdi, r14
	call	sqlite3VdbeAddOp1@PLT
	mov	rdi, r14
	call	VdbeCoverage@PLT
	lea	rdi, .LC0[rip]
	call	VdbeComment@PLT
	mov	rdi, r14
	mov	ecx, r13d
	mov	edx, r15d
	mov	esi, DWORD PTR OP_IfNot[rip]
	call	sqlite3VdbeAddOp2@PLT
	mov	rdi, r14
	call	VdbeCoverage@PLT
.L7:
	mov	rsi, QWORD PTR 16[rbp]
	test	rsi, rsi
	je	.L1
	mov	r13d, DWORD PTR [r12]
	mov	rdi, r12
	lea	ebp, 1[r13]
	add	r13d, 2
	mov	DWORD PTR 16[rbx], ebp
	mov	edx, ebp
	mov	DWORD PTR [r12], r13d
	call	sqlite3ExprCode@PLT
	mov	esi, DWORD PTR OP_MustBeInt[rip]
	mov	edx, ebp
	mov	rdi, r14
	call	sqlite3VdbeAddOp1@PLT
	mov	rdi, r14
	call	VdbeCoverage@PLT
	lea	rdi, .LC1[rip]
	call	VdbeComment@PLT
	mov	rdi, r14
	mov	r8d, ebp
	mov	ecx, r13d
	mov	esi, DWORD PTR OP_OffsetLimit[rip]
	mov	edx, r15d
	call	sqlite3VdbeAddOp3@PLT
	lea	rdi, .LC2[rip]
	call	VdbeComment@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 24
	.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
.L17:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR OP_Integer[rip]
	mov	ecx, r15d
	mov	rdi, r14
	call	sqlite3VdbeAddOp2@PLT
	lea	rdi, .LC0[rip]
	call	VdbeComment@PLT
	mov	edi, DWORD PTR 4[rsp]
	test	edi, edi
	je	.L19
	js	.L7
	mov	r13, QWORD PTR 8[rbx]
	call	sqlite3LogEst@PLT
	cmp	r13, rax
	jle	.L7
	mov	edi, DWORD PTR 4[rsp]
	call	sqlite3LogEst@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR SF_FixedLimit[rip]
	or	DWORD PTR 20[rbx], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, r13d
	mov	rdi, r14
	call	sqlite3VdbeGoto@PLT
	jmp	.L7
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	computeLimitRegisters, .-computeLimitRegisters
	.comm	TK_LIMIT,8,8
	.comm	SF_FixedLimit,4,4
	.comm	OP_OffsetLimit,4,4
	.comm	OP_MustBeInt,4,4
	.comm	OP_Integer,4,4
	.comm	OP_IfNot,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_sqlite3.c_computeLimitRegisters.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LIMIT counter\000"
	.align	2
.LC1:
	.ascii	"OFFSET counter\000"
	.align	2
.LC2:
	.ascii	"LIMIT+OFFSET\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	computeLimitRegisters, %function
computeLimitRegisters:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r1]
	sub	sp, sp, #20
	cmp	r3, #0
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bne	.L1
	ldr	r6, [r1, #16]
	mov	r4, r1
	cmp	r6, #0
	beq	.L1
	ldr	r3, .L20+4
	mov	r5, r0
	ldr	r3, [r3]
	ldr	r0, [r6]
	mov	r8, r2
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r6, #4]
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r9, [r5]
	mov	r0, r5
	add	r9, r9, #1
	str	r9, [r5]
	str	r9, [r4]
	bl	sqlite3GetVdbe
	mov	r7, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r0, [r6, #4]
	add	r1, sp, #8
	bl	sqlite3ExprIsInteger
	cmp	r0, #0
	bne	.L17
	mov	r2, r9
	ldr	r1, [r6, #4]
	mov	r0, r5
	bl	sqlite3ExprCode
	ldr	r3, .L20+8
	mov	r2, r9
	ldr	r1, [r3]
	mov	r0, r7
	bl	sqlite3VdbeAddOp1
	mov	r0, r7
	bl	VdbeCoverage
	ldr	r0, .L20+12
	bl	VdbeComment
	ldr	r2, .L20+16
	mov	r3, r8
	ldr	r1, [r2]
	mov	r0, r7
	mov	r2, r9
	bl	sqlite3VdbeAddOp2
	mov	r0, r7
	bl	VdbeCoverage
.L7:
	ldr	r1, [r6, #8]
	cmp	r1, #0
	beq	.L1
	ldr	r6, [r5]
	mov	r0, r5
	add	r8, r6, #1
	add	r6, r6, #2
	mov	r2, r8
	str	r8, [r4, #8]
	str	r6, [r5]
	bl	sqlite3ExprCode
	ldr	r3, .L20+8
	mov	r2, r8
	ldr	r1, [r3]
	mov	r0, r7
	bl	sqlite3VdbeAddOp1
	mov	r0, r7
	bl	VdbeCoverage
	ldr	r0, .L20+20
	bl	VdbeComment
	ldr	r1, .L20+24
	str	r8, [sp]
	mov	r3, r6
	mov	r2, r9
	mov	r0, r7
	ldr	r1, [r1]
	bl	sqlite3VdbeAddOp3
	ldr	r0, .L20+28
	bl	VdbeComment
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L17:
	ldr	r2, .L20+32
	mov	r3, r9
	ldr	r1, [r2]
	mov	r0, r7
	ldr	r2, [sp, #8]
	bl	sqlite3VdbeAddOp2
	ldr	r0, .L20+12
	bl	VdbeComment
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L19
	blt	.L7
	ldr	r8, [r4, #4]
	bl	sqlite3LogEst
	cmp	r8, r0
	ble	.L7
	ldr	r0, [sp, #8]
	bl	sqlite3LogEst
	ldr	r2, .L20+36
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	str	r0, [r4, #4]
	orr	r3, r3, r2
	str	r3, [r4, #12]
	b	.L7
.L19:
	mov	r1, r8
	mov	r0, r7
	bl	sqlite3VdbeGoto
	b	.L7
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC3
	.word	TK_LIMIT
	.word	OP_MustBeInt
	.word	.LC0
	.word	OP_IfNot
	.word	.LC1
	.word	OP_OffsetLimit
	.word	.LC2
	.word	OP_Integer
	.word	SF_FixedLimit
	.size	computeLimitRegisters, .-computeLimitRegisters
	.comm	TK_LIMIT,4,4
	.comm	SF_FixedLimit,4,4
	.comm	OP_OffsetLimit,4,4
	.comm	OP_MustBeInt,4,4
	.comm	OP_Integer,4,4
	.comm	OP_IfNot,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
