	.file	"extr_mgmtMeter.c_mgmtMeterDropTagByCol.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to drop tag column: %d from table: %s"
	.align 8
.LC1:
	.string	"Succeed to drop tag column: %d from table: %s"
	.text
	.p2align 4
	.globl	mgmtMeterDropTagByCol
	.type	mgmtMeterDropTagByCol, @function
mgmtMeterDropTagByCol:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L11
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mgmtIsMetric@PLT
	test	ebp, ebp
	jle	.L9
	test	eax, eax
	je	.L9
	cmp	DWORD PTR [rbx], ebp
	jg	.L12
.L9:
	mov	rax, QWORD PTR TSDB_CODE_APP_ERROR[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	rax, QWORD PTR TSDB_CODE_APP_ERROR[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	edi, 40
	call	malloc@PLT
	mov	edx, 40
	xor	esi, esi
	mov	r12, rax
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR TSDB_METER_ID_LEN[rip]
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 20[r12]
	call	memcpy@PLT
	mov	eax, DWORD PTR SDB_TYPE_DELETE[rip]
	mov	esi, ebp
	mov	rdi, rbx
	mov	DWORD PTR [r12], 1
	mov	DWORD PTR 16[r12], eax
	mov	rax, QWORD PTR 8[r12]
	mov	DWORD PTR [rax], ebp
	call	mgmtGetTagsLength@PLT
	mov	rdx, QWORD PTR 8[r12]
	mov	rcx, QWORD PTR 16[rbx]
	mov	rsi, r12
	add	rax, QWORD PTR TSDB_METER_ID_LEN[rip]
	mov	edi, DWORD PTR meterSdb[rip]
	mov	QWORD PTR 8[rdx], rax
	mov	eax, DWORD PTR 4[rbx]
	add	eax, ebp
	cdqe
	mov	eax, DWORD PTR [rcx+rax*4]
	mov	DWORD PTR 4[rdx], eax
	mov	edx, 40
	call	sdbBatchUpdateRow@PLT
	mov	rdi, r12
	mov	r13, rax
	call	tfree@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, ebp
	test	r13, r13
	js	.L13
	lea	rdi, .LC1[rip]
	call	mTrace@PLT
	mov	rax, QWORD PTR TSDB_CODE_SUCCESS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	mError@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	mgmtMeterDropTagByCol, .-mgmtMeterDropTagByCol
	.comm	meterSdb,4,4
	.comm	TSDB_METER_ID_LEN,8,8
	.comm	TSDB_CODE_SUCCESS,8,8
	.comm	TSDB_CODE_APP_ERROR,8,8
	.comm	SDB_TYPE_DELETE,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_mgmtMeter.c_mgmtMeterDropTagByCol.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to drop tag column: %d from table: %s\000"
	.align	2
.LC1:
	.ascii	"Succeed to drop tag column: %d from table: %s\000"
	.text
	.align	2
	.global	mgmtMeterDropTagByCol
	.syntax unified
	.arm
	.fpu softvfp
	.type	mgmtMeterDropTagByCol, %function
mgmtMeterDropTagByCol:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r7, r0, #0
	beq	.L7
	mov	r4, r1
	bl	mgmtIsMetric
	cmp	r0, #0
	cmpne	r4, #0
	movle	r5, #1
	movgt	r5, #0
	bgt	.L9
.L7:
	ldr	r3, .L11
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, [r7]
	cmp	r3, r4
	ble	.L7
	mov	r0, #28
	bl	malloc
	mov	r6, r0
	ldr	r8, .L11+4
	mov	r0, r5
	ldr	r2, [r8]
	ldr	r1, [r7, #8]
	str	r5, [r6]
	str	r5, [r6, #4]
	str	r5, [r6, #8]
	str	r5, [r6, #12]
	str	r5, [r6, #16]
	str	r5, [r6, #20]
	str	r5, [r6, #24]
	bl	memcpy
	mov	r1, #1
	ldr	r2, .L11+8
	ldr	r3, [r6, #4]
	ldr	r2, [r2]
	str	r1, [r6]
	str	r2, [r6, #8]
	mov	r1, r4
	str	r4, [r3]
	mov	r0, r7
	bl	mgmtGetTagsLength
	ldr	r2, [r7, #4]
	ldr	r1, [r7, #12]
	ldr	r3, [r8]
	add	r2, r4, r2
	ldr	r1, [r1, r2, lsl #2]
	ldr	ip, .L11+12
	ldr	r2, [r6, #4]
	add	r3, r3, r0
	stmib	r2, {r1, r3}
	ldr	r0, [ip]
	mov	r1, r6
	mov	r2, #28
	bl	sdbBatchUpdateRow
	mov	r5, r0
	mov	r0, r6
	bl	tfree
	cmp	r5, #0
	mov	r1, r4
	ldr	r2, [r7, #8]
	blt	.L10
	ldr	r0, .L11+16
	bl	mTrace
	ldr	r3, .L11+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r0, .L11+24
	bl	mError
	b	.L7
.L12:
	.align	2
.L11:
	.word	TSDB_CODE_APP_ERROR
	.word	TSDB_METER_ID_LEN
	.word	SDB_TYPE_DELETE
	.word	meterSdb
	.word	.LC1
	.word	TSDB_CODE_SUCCESS
	.word	.LC0
	.size	mgmtMeterDropTagByCol, .-mgmtMeterDropTagByCol
	.comm	meterSdb,4,4
	.comm	TSDB_METER_ID_LEN,4,4
	.comm	TSDB_CODE_SUCCESS,4,4
	.comm	TSDB_CODE_APP_ERROR,4,4
	.comm	SDB_TYPE_DELETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
