	.file	"extr_mgmtSupertableQuery.c_mgmtRetrieveMetersFromMetric.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"metric:%s len:%d, metric query condition:%s"
	.align 8
.LC1:
	.string	"metric:%s rel:%d, len:%d, table name cond:%s"
	.align 8
.LC2:
	.string	"metric:%s retrieve all meter, no query condition"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"metric:%s numOfRes:%d"
	.text
	.p2align 4
	.globl	mgmtRetrieveMetersFromMetric
	.type	mgmtRetrieveMetersFromMetric, @function
mgmtRetrieveMetersFromMetric:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	movsx	rbx, DWORD PTR [rax+rsi*4]
	add	rbx, rdi
	mov	edi, DWORD PTR 28[rbx]
	call	mgmtGetMeter@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L2
	cmp	QWORD PTR [rax], 0
	je	.L2
	mov	r9, QWORD PTR 8[rbx]
	xor	r14d, r14d
	test	r9, r9
	jne	.L33
	mov	edx, DWORD PTR 20[rbx]
	xor	r13d, r13d
	test	edx, edx
	jg	.L34
.L6:
	test	r9, r9
	je	.L35
	mov	rcx, rbp
	mov	rsi, r13
	mov	rdi, r12
	mov	QWORD PTR [rsp], r9
	call	mgmtFilterByTableNameCond@PLT
	cmp	QWORD PTR [r12], 0
	mov	r9, QWORD PTR [rsp]
	je	.L36
.L18:
	pxor	xmm0, xmm0
	lea	rsi, 16[rsp]
	mov	rcx, r9
	mov	rdx, r14
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rsi
	movaps	XMMWORD PTR 16[rsp], xmm0
	call	mgmtFilterMeterByIndex@PLT
	mov	r15, rax
	movsx	rax, DWORD PTR TSDB_CODE_SUCCESS[rip]
	cmp	rax, r15
	jne	.L37
	mov	eax, DWORD PTR 24[rbx]
	cmp	eax, DWORD PTR TSDB_RELATION_AND[rip]
	mov	edi, 1
	je	.L13
	xor	edi, edi
	cmp	DWORD PTR TSDB_RELATION_OR[rip], eax
	sete	dil
.L13:
	call	assert@PLT
	mov	eax, DWORD PTR TSDB_RELATION_AND[rip]
	cmp	DWORD PTR 24[rbx], eax
	jne	.L14
	cmp	QWORD PTR 16[rsp], 0
	je	.L15
	cmp	QWORD PTR [r12], 0
	jne	.L16
.L15:
	mov	rdi, r12
	call	tQueryResultClean@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L34:
	mov	eax, DWORD PTR 16[rbx]
	lea	esi, 1[rdx]
	mov	edi, 1
	mov	QWORD PTR 8[rsp], r9
	mov	DWORD PTR [rsp], eax
	call	calloc@PLT
	movsx	rsi, DWORD PTR [rsp]
	mov	edx, DWORD PTR 20[rbx]
	mov	rdi, rax
	mov	r13, rax
	add	rsi, r15
	call	strncpy@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	ecx, DWORD PTR 20[rbx]
	xor	eax, eax
	mov	esi, DWORD PTR 8[rbp]
	mov	r8, r13
	lea	rdi, .LC1[rip]
	call	mTrace@PLT
	mov	edx, DWORD PTR 20[rbx]
	mov	r9, QWORD PTR 8[rsp]
	test	edx, edx
	jle	.L6
	mov	rcx, rbp
	mov	rsi, r13
	mov	rdi, r12
	mov	QWORD PTR [rsp], r9
	call	mgmtFilterByTableNameCond@PLT
	cmp	QWORD PTR [r12], 0
	mov	r9, QWORD PTR [rsp]
	je	.L38
.L10:
	test	r9, r9
	jne	.L18
.L11:
	mov	rdi, r14
	call	tfree@PLT
	mov	rdi, r13
	call	tfree@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	rdx, QWORD PTR [r12]
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	mTrace@PLT
	mov	eax, DWORD PTR TSDB_CODE_SUCCESS[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L39
	add	rsp, 56
	.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
.L2:
	.cfi_restore_state
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], 0
	sete	dil
	call	assert@PLT
	mov	eax, DWORD PTR TSDB_CODE_SUCCESS[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rsi, 1[r9]
	mov	edi, 1
	mov	r13d, DWORD PTR [rbx]
	mov	QWORD PTR [rsp], r9
	imul	esi, DWORD PTR TSDB_NCHAR_SIZE[rip]
	call	calloc@PLT
	mov	r9, QWORD PTR [rsp]
	mov	rsi, QWORD PTR TSDB_NCHAR_SIZE[rip]
	movsx	rdi, r13d
	mov	r14, rax
	mov	rdx, rax
	add	rdi, r15
	xor	r13d, r13d
	imul	rsi, r9
	call	taosUcs4ToMbs@PLT
	mov	rdi, r14
	call	strlen@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	rcx, r14
	lea	rdi, .LC0[rip]
	lea	r9d, 1[rax]
	xor	eax, eax
	movsx	r9, r9d
	mov	rdx, r9
	mov	QWORD PTR [rsp], r9
	call	mTrace@PLT
	mov	edx, DWORD PTR 20[rbx]
	mov	r9, QWORD PTR [rsp]
	test	edx, edx
	jle	.L6
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L38:
	mov	eax, DWORD PTR TSDB_RELATION_AND[rip]
	cmp	DWORD PTR 24[rbx], eax
	jne	.L10
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L36:
	mov	eax, DWORD PTR TSDB_RELATION_AND[rip]
	cmp	DWORD PTR 24[rbx], eax
	je	.L11
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L35:
	mov	esi, DWORD PTR 8[rbp]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	mTrace@PLT
	mov	rdi, QWORD PTR 16[rbp]
	lea	rsi, 8[r12]
	xor	ecx, ecx
	xor	edx, edx
	call	tSkipListIterateList@PLT
	mov	rdi, r12
	mov	QWORD PTR [r12], rax
	call	tansformQueryResult@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdi, r14
	call	tfree@PLT
	mov	rdi, r13
	call	tfree@PLT
	mov	eax, r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r12
	call	queryResultUnion@PLT
.L17:
	mov	rdi, QWORD PTR [rsp]
	call	tQueryResultClean@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r12
	call	queryResultIntersect@PLT
	jmp	.L17
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mgmtRetrieveMetersFromMetric, .-mgmtRetrieveMetersFromMetric
	.comm	TSDB_RELATION_OR,4,4
	.comm	TSDB_RELATION_AND,4,4
	.comm	TSDB_NCHAR_SIZE,8,8
	.comm	TSDB_CODE_SUCCESS,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_mgmtSupertableQuery.c_mgmtRetrieveMetersFromMetric.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"metric:%s len:%d, metric query condition:%s\000"
	.align	2
.LC1:
	.ascii	"metric:%s rel:%d, len:%d, table name cond:%s\000"
	.align	2
.LC2:
	.ascii	"metric:%s retrieve all meter, no query condition\000"
	.align	2
.LC3:
	.ascii	"metric:%s numOfRes:%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mgmtRetrieveMetersFromMetric
	.syntax unified
	.arm
	.fpu softvfp
	.type	mgmtRetrieveMetersFromMetric, %function
mgmtRetrieveMetersFromMetric:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	sub	sp, sp, #36
	ldr	r9, [r3, r1, lsl #2]
	ldr	r3, .L41
	add	r7, r0, r9
	mov	r5, r0
	ldr	r0, [r7, #20]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r6, r2
	bl	mgmtGetMeter
	ldr	r3, [r0, #8]
	mov	r4, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r8, [r7, #4]
	cmp	r8, #0
	bne	.L36
	ldr	r9, [r7, #12]
	cmp	r9, #0
	movle	r10, r8
	movle	fp, r10
	ble	.L8
	mov	fp, r8
.L18:
	ldr	r3, [r7, #8]
	add	r1, r9, #1
	mov	r0, #1
	str	r3, [sp, #12]
	bl	calloc
	mov	r10, r0
	ldr	r3, [sp, #12]
	mov	r2, r9
	add	r1, r5, r3
	bl	strncpy
	ldr	r1, [r4, #4]
	str	r10, [sp]
	mov	r3, r9
	ldr	r2, [r7, #16]
	ldr	r0, .L41+4
	bl	mTrace
	ldr	r9, [r7, #12]
	cmp	r9, #0
	ble	.L37
	mov	r3, r4
	mov	r2, r9
	mov	r1, r10
	mov	r0, r6
	bl	mgmtFilterByTableNameCond
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L38
.L9:
	cmp	r8, #0
	bne	.L17
.L34:
	ldr	r8, .L41+8
.L10:
	mov	r0, fp
	bl	tfree
	mov	r0, r10
	bl	tfree
	ldr	r2, [r6]
	ldr	r1, [r4, #4]
	ldr	r0, .L41+12
	bl	mTrace
	ldr	r0, [r8]
.L1:
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L39
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r0, [r4]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, .L41+8
	ldr	r0, [r3]
	b	.L1
.L36:
	ldr	r3, .L41+16
	add	r8, r8, #1
	ldr	r10, [r3]
	mov	r0, #1
	mul	r8, r10, r8
	mov	r1, r8
	ldr	r9, [r5, r9]
	bl	calloc
	mov	fp, r0
	sub	r1, r8, r10
	mov	r2, fp
	add	r0, r5, r9
	bl	taosUcs4ToMbs
	mov	r0, fp
	bl	strlen
	add	r8, r0, #1
	mov	r3, fp
	mov	r2, r8
	ldr	r1, [r4, #4]
	ldr	r0, .L41+20
	bl	mTrace
	ldr	r9, [r7, #12]
	cmp	r9, #0
	movle	r10, #0
	bgt	.L18
.L6:
	mov	r3, r4
	mov	r2, r9
	mov	r1, r10
	mov	r0, r6
	bl	mgmtFilterByTableNameCond
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L41+24
	ldr	r2, [r7, #16]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L34
.L17:
	mov	ip, #0
	mov	r3, r8
	mov	r2, fp
	mov	r0, r4
	add	r1, sp, #16
	str	ip, [sp, #16]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	bl	mgmtFilterMeterByIndex
	ldr	r8, .L41+8
	mov	r5, r0
	ldr	r3, [r8]
	cmp	r3, r0
	bne	.L40
	ldr	r5, .L41+24
	ldr	r3, [r7, #16]
	ldr	r2, [r5]
	cmp	r3, r2
	ldrne	r2, .L41+28
	moveq	r0, #1
	ldrne	r0, [r2]
	subne	r0, r0, r3
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	assert
	ldr	r2, [r7, #16]
	ldr	r3, [r5]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L15
.L14:
	mov	r0, r6
	bl	tQueryResultClean
	b	.L16
.L38:
	ldr	r3, .L41+24
	ldr	r2, [r7, #16]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L9
	b	.L34
.L37:
	cmp	r8, #0
	bne	.L6
.L8:
	ldr	r1, [r4, #4]
	ldr	r0, .L41+32
	bl	mTrace
	mov	r3, #0
	ldr	r0, [r4, #8]
	mov	r2, r3
	add	r1, r6, #4
	bl	tSkipListIterateList
	mov	r3, r0
	mov	r0, r6
	str	r3, [r6]
	bl	tansformQueryResult
	b	.L34
.L40:
	mov	r0, fp
	bl	tfree
	mov	r0, r10
	bl	tfree
	mov	r0, r5
	b	.L1
.L13:
	mov	r0, r6
	add	r1, sp, #16
	bl	queryResultUnion
.L16:
	add	r0, sp, #16
	bl	tQueryResultClean
	b	.L10
.L15:
	mov	r0, r6
	add	r1, sp, #16
	bl	queryResultIntersect
	b	.L16
.L39:
	bl	__stack_chk_fail
.L42:
	.align	2
.L41:
	.word	.LC4
	.word	.LC1
	.word	TSDB_CODE_SUCCESS
	.word	.LC3
	.word	TSDB_NCHAR_SIZE
	.word	.LC0
	.word	TSDB_RELATION_AND
	.word	TSDB_RELATION_OR
	.word	.LC2
	.size	mgmtRetrieveMetersFromMetric, .-mgmtRetrieveMetersFromMetric
	.comm	TSDB_RELATION_OR,4,4
	.comm	TSDB_RELATION_AND,4,4
	.comm	TSDB_NCHAR_SIZE,4,4
	.comm	TSDB_CODE_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
