	.file	"extr_tscSQLParser.c_isTopBottomQuery.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	isTopBottomQuery, @function
isTopBottomQuery:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], 0
	jle	.L9
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	QWORD PTR TSDB_FUNC_BOTTOM[rip], rax
	je	.L6
	add	rbx, 1
	cmp	QWORD PTR 0[rbp], rbx
	jle	.L13
.L4:
	mov	rsi, rbx
	mov	rdi, rbp
	call	tscSqlExprGet@PLT
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR TSDB_FUNC_TOP[rip], rax
	jne	.L14
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore 3
	.cfi_restore 6
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	isTopBottomQuery, .-isTopBottomQuery
	.comm	TSDB_FUNC_TOP,8,8
	.comm	TSDB_FUNC_BOTTOM,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_tscSQLParser.c_isTopBottomQuery.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isTopBottomQuery, %function
isTopBottomQuery:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L9
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r4, #0
	ldr	r6, .L15
	ldr	r7, .L15+4
	b	.L4
.L14:
	ldr	r2, [r7]
	cmp	r2, r3
	beq	.L6
	ldr	r3, [r5]
	cmp	r3, r4
	ble	.L13
.L4:
	mov	r1, r4
	mov	r0, r5
	bl	tscSqlExprGet
	ldr	r2, [r6]
	ldr	r3, [r0]
	add	r4, r4, #1
	cmp	r2, r3
	bne	.L14
.L6:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r0, #0
	bx	lr
.L16:
	.align	2
.L15:
	.word	TSDB_FUNC_TOP
	.word	TSDB_FUNC_BOTTOM
	.size	isTopBottomQuery, .-isTopBottomQuery
	.comm	TSDB_FUNC_TOP,4,4
	.comm	TSDB_FUNC_BOTTOM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
