	.file	"extr_vnodeQueryImpl.c_setScanLimitationByResultBuffer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setScanLimitationByResultBuffer, @function
setScanLimitationByResultBuffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	isTopBottomQuery@PLT
	test	rax, rax
	je	.L2
.L4:
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR [rbx], 0
	mov	DWORD PTR 20[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 32[rbx]
	call	isGroupbyNormalCol@PLT
	test	rax, rax
	jne	.L4
	xor	ebp, ebp
	cmp	QWORD PTR 8[rbx], 0
	je	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR [rdx+rbp*8]
	cmp	rdx, QWORD PTR TSDB_FUNC_TS[rip]
	je	.L7
	cmp	rdx, QWORD PTR TSDB_FUNC_TS_DUMMY[rip]
	je	.L7
	mov	rax, QWORD PTR aAggs[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	IS_MULTIOUTPUT@PLT
	test	eax, eax
	je	.L8
.L7:
	add	rbp, 1
	cmp	QWORD PTR 8[rbx], rbp
	ja	.L5
	test	eax, eax
	setne	al
	movzx	eax, al
	mov	DWORD PTR [rbx], eax
.L17:
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR 20[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	eax, eax
	mov	DWORD PTR [rbx], eax
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	setScanLimitationByResultBuffer, .-setScanLimitationByResultBuffer
	.comm	aAggs,8,8
	.comm	TSDB_FUNC_TS_DUMMY,8,8
	.comm	TSDB_FUNC_TS,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_vnodeQueryImpl.c_setScanLimitationByResultBuffer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setScanLimitationByResultBuffer, %function
setScanLimitationByResultBuffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	bl	isTopBottomQuery
	cmp	r0, #0
	beq	.L2
.L4:
	mov	r3, #0
	str	r3, [r4]
.L3:
	ldr	r3, [r4, #8]
	str	r3, [r4, #12]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r0, [r4, #20]
	bl	isGroupbyNormalCol
	subs	r6, r0, #0
	bne	.L4
	ldr	r1, [r4, #4]
	cmp	r1, #0
	beq	.L6
	mov	r0, r6
	mov	r5, r6
	ldr	r7, .L16
	ldr	r8, .L16+4
	ldr	r9, .L16+8
.L5:
	ldr	r3, [r4, #16]
	ldr	r2, [r7]
	ldr	r3, [r3, r5, lsl #2]
	add	r5, r5, #1
	cmp	r3, r2
	beq	.L7
	ldr	r2, [r8]
	cmp	r3, r2
	beq	.L7
	ldr	r2, [r9]
	ldr	r0, [r2, r3, lsl #2]
	bl	IS_MULTIOUTPUT
	cmp	r0, #0
	beq	.L6
	ldr	r1, [r4, #4]
.L7:
	cmp	r1, r5
	bhi	.L5
	subs	r6, r0, #0
	movne	r6, #1
.L6:
	str	r6, [r4]
	b	.L3
.L17:
	.align	2
.L16:
	.word	TSDB_FUNC_TS
	.word	TSDB_FUNC_TS_DUMMY
	.word	aAggs
	.size	setScanLimitationByResultBuffer, .-setScanLimitationByResultBuffer
	.comm	aAggs,4,4
	.comm	TSDB_FUNC_TS_DUMMY,4,4
	.comm	TSDB_FUNC_TS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
