	.file	"extr_taosdump.c_taosDumpTableData.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"select * from %s where _c0 >= %ld and _c0 <= %ld order by _c0 asc"
	.align 8
.LC1:
	.string	"failed to run command %s, reason: %s\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"failed to use result\n"
.LC3:
	.string	"No enough memory\n"
.LC4:
	.string	"INSERT INTO %s VALUES ("
.LC5:
	.string	"%d"
.LC6:
	.string	"%ld"
.LC7:
	.string	"%f"
.LC8:
	.string	"'%s'"
.LC9:
	.string	"\\\n"
	.text
	.p2align 4
	.globl	taosDumpTableData
	.type	taosDumpTableData, @function
taosDumpTableData:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	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, 72
	.cfi_def_cfa_offset 128
	cmp	QWORD PTR 16[rdx], 0
	mov	QWORD PTR 8[rsp], rdi
	mov	QWORD PTR 56[rsp], rsi
	mov	QWORD PTR 24[rsp], rdx
	je	.L33
.L1:
	add	rsp, 72
	.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
.L33:
	.cfi_restore_state
	mov	ecx, DWORD PTR 8[rdx]
	mov	r8d, DWORD PTR 4[rdx]
	xor	eax, eax
	mov	rdx, rsi
	mov	rdi, QWORD PTR command[rip]
	lea	rsi, .LC0[rip]
	call	sprintf@PLT
	mov	edi, DWORD PTR taos[rip]
	mov	rsi, QWORD PTR command[rip]
	call	taos_query@PLT
	mov	edi, DWORD PTR taos[rip]
	test	rax, rax
	jne	.L34
	call	taos_use_result@PLT
	mov	QWORD PTR result[rip], rax
	test	rax, rax
	je	.L35
	mov	edi, DWORD PTR taos[rip]
	call	taos_field_count@PLT
	xor	edi, edi
	test	eax, eax
	mov	DWORD PTR 36[rsp], eax
	mov	ebx, eax
	setg	dil
	call	assert@PLT
	mov	rdi, QWORD PTR result[rip]
	call	taos_fetch_fields@PLT
	mov	edi, DWORD PTR COMMAND_SIZE[rip]
	mov	QWORD PTR 40[rsp], rax
	call	malloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L5
	lea	eax, -1[rbx]
	mov	DWORD PTR 32[rsp], 0
	lea	rbx, .L14[rip]
	lea	rax, 8[0+rax*8]
	mov	QWORD PTR 48[rsp], rax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR result[rip]
	call	taos_fetch_row@PLT
	mov	r12, rax
	test	rax, rax
	je	.L36
	mov	edi, DWORD PTR 32[rsp]
	mov	rbp, QWORD PTR buffer[rip]
	test	edi, edi
	jne	.L7
	mov	rdx, QWORD PTR 56[rsp]
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	sprintf@PLT
	cdqe
	add	rbp, rax
.L10:
	mov	esi, DWORD PTR 36[rsp]
	test	esi, esi
	jle	.L8
	mov	rax, QWORD PTR 40[rsp]
	mov	r15, r12
	mov	rdi, QWORD PTR [r15]
	lea	r14, 4[rax]
	mov	rax, QWORD PTR 48[rsp]
	lea	r12, [r12+rax]
	test	rdi, rdi
	je	.L37
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR -4[r14]
	add	eax, -128
	cmp	eax, 9
	ja	.L12
	movsx	rax, DWORD PTR [rbx+rax*4]
	add	rax, rbx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L14:
	.long	.L23-.L14
	.long	.L22-.L14
	.long	.L21-.L14
	.long	.L20-.L14
	.long	.L19-.L14
	.long	.L18-.L14
	.long	.L17-.L14
	.long	.L16-.L14
	.long	.L15-.L14
	.long	.L22-.L14
	.text
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edx, DWORD PTR [rdi]
	lea	rsi, .LC6[rip]
.L30:
	mov	rdi, rbp
	xor	eax, eax
	call	sprintf@PLT
	cdqe
	add	rbp, rax
.L12:
	add	r15, 8
	add	r14, 8
	cmp	r15, r12
	je	.L8
.L24:
	mov	edx, 8236
	mov	BYTE PTR 2[rbp], 0
	add	rbp, 2
	mov	WORD PTR -2[rbp], dx
	mov	rdi, QWORD PTR [r15]
	test	rdi, rdi
	jne	.L11
.L37:
	add	r15, 8
	mov	BYTE PTR 4[rbp], 0
	add	r14, 8
	add	rbp, 4
	mov	DWORD PTR -4[rbp], 1280070990
	cmp	r15, r12
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, 41
	mov	r15, QWORD PTR 8[rsp]
	add	DWORD PTR 32[rsp], 1
	mov	WORD PTR 0[rbp], ax
	mov	rdi, QWORD PTR buffer[rip]
	mov	rsi, r15
	mov	r14d, DWORD PTR 32[rsp]
	call	fputs@PLT
	mov	rcx, QWORD PTR 24[rsp]
	cmp	DWORD PTR [rcx], r14d
	jg	.L25
	mov	rsi, r15
	mov	edi, 10
	call	fputc@PLT
	mov	DWORD PTR 32[rsp], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	movsx	edx, BYTE PTR [rdi]
	lea	rsi, .LC5[rip]
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L15:
	mov	BYTE PTR 0[rbp], 39
	mov	esi, DWORD PTR [r14]
	lea	r8, 1[rbp]
	mov	rdx, r13
	mov	ecx, DWORD PTR COMMAND_SIZE[rip]
	mov	rdi, QWORD PTR [r15]
	mov	QWORD PTR 16[rsp], r8
	call	converStringToReadable@PLT
	mov	r8, QWORD PTR 16[rsp]
	mov	rsi, r13
	mov	rdi, r8
	call	stpcpy@PLT
	mov	BYTE PTR [rax], 39
	lea	rbp, 1[rax]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	xor	edx, edx
	cmp	BYTE PTR [rdi], 1
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	sete	dl
	xor	eax, eax
	add	rbp, 1
	call	sprintf@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L17:
	movsd	xmm0, QWORD PTR [rdi]
.L31:
	mov	rdi, rbp
	lea	rsi, .LC7[rip]
	mov	eax, 1
	call	sprintf@PLT
	cdqe
	add	rbp, rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L18:
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR [rdi]
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, DWORD PTR [rdi]
	lea	rsi, .LC5[rip]
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L20:
	mov	ecx, DWORD PTR COMMAND_SIZE[rip]
	mov	esi, DWORD PTR [r14]
	mov	rdx, r13
	call	convertNCharToReadable@PLT
	mov	rdi, rbp
	mov	rdx, r13
	xor	eax, eax
	lea	rsi, .LC8[rip]
	call	sprintf@PLT
	cdqe
	add	rbp, rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L21:
	movsx	edx, WORD PTR [rdi]
	lea	rsi, .LC5[rip]
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rcx, QWORD PTR 8[rsp]
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, 40
	add	rbp, 1
	mov	WORD PTR -1[rbp], cx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, 10
	call	fputc@PLT
	mov	rdi, r13
	call	free@PLT
	mov	rdi, QWORD PTR result[rip]
	call	taos_free_result@PLT
	xor	eax, eax
	mov	QWORD PTR result[rip], 0
	add	rsp, 72
	.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
.L34:
	.cfi_restore_state
	call	taos_errstr@PLT
	mov	rdx, QWORD PTR command[rip]
	mov	rdi, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rcx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L1
.L35:
	mov	rcx, QWORD PTR stderr[rip]
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L1
.L5:
	mov	rcx, QWORD PTR stderr[rip]
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	taosDumpTableData, .-taosDumpTableData
	.comm	taos,4,4
	.comm	stderr,8,8
	.comm	result,8,8
	.comm	command,8,8
	.comm	buffer,8,8
	.comm	COMMAND_SIZE,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_taosdump.c_taosDumpTableData.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"select * from %s where _c0 >= %ld and _c0 <= %ld or"
	.ascii	"der by _c0 asc\000"
	.align	2
.LC1:
	.ascii	"failed to run command %s, reason: %s\012\000"
	.align	2
.LC2:
	.ascii	"failed to use result\012\000"
	.align	2
.LC3:
	.ascii	"No enough memory\012\000"
	.align	2
.LC4:
	.ascii	"INSERT INTO %s VALUES (\000"
	.align	2
.LC5:
	.ascii	"(\000"
	.align	2
.LC6:
	.ascii	", \000"
	.align	2
.LC7:
	.ascii	"NULL\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"%ld\000"
	.global	__aeabi_f2d
	.align	2
.LC10:
	.ascii	"%f\000"
	.align	2
.LC11:
	.ascii	"'%s'\000"
	.align	2
.LC12:
	.ascii	")\000"
	.align	2
.LC13:
	.ascii	"\\\012\000"
	.text
	.align	2
	.global	taosDumpTableData
	.syntax unified
	.arm
	.fpu softvfp
	.type	taosDumpTableData, %function
taosDumpTableData:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r2, #12]
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r3, #0
	movne	r3, #0
	sub	sp, sp, #44
	str	r2, [sp, #16]
	str	r0, [sp, #8]
	str	r1, [sp, #32]
	strne	r3, [sp, #36]
	beq	.L31
.L1:
	ldr	r0, [sp, #36]
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	ldr	r3, [r2, #4]
	ldr	r5, .L37
	ldr	r4, .L37+4
	ldr	r0, [r5]
	str	r3, [sp]
	ldr	r3, [r2, #8]
	mov	r2, r1
	ldr	r1, .L37+8
	bl	sprintf
	ldr	r1, [r5]
	ldr	r0, [r4]
	bl	taos_query
	subs	r3, r0, #0
	str	r3, [sp, #36]
	bne	.L32
	ldr	r0, [r4]
	bl	taos_use_result
	ldr	r3, .L37+12
	cmp	r0, #0
	str	r0, [r3]
	beq	.L33
	ldr	r0, [r4]
	bl	taos_field_count
	mov	r3, r0
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	mov	r4, r3
	str	r3, [sp, #20]
	bl	assert
	ldr	r3, .L37+12
	ldr	r0, [r3]
	bl	taos_fetch_fields
	ldr	r3, .L37+16
	str	r0, [sp, #24]
	ldr	r0, [r3]
	bl	malloc
	subs	r10, r0, #0
	beq	.L5
	lsl	r3, r4, #2
	ldr	fp, [sp, #36]
	str	r3, [sp, #28]
.L6:
	ldr	r3, .L37+12
	ldr	r0, [r3]
	bl	taos_fetch_row
	subs	r5, r0, #0
	beq	.L34
	ldr	r3, .L37+20
	cmp	fp, #0
	ldr	r4, [r3]
	bne	.L7
	mov	r0, r4
	ldr	r2, [sp, #32]
	ldr	r1, .L37+24
	bl	sprintf
	add	r4, r4, r0
.L10:
	ldr	r3, [sp, #20]
	cmp	r3, #0
	ble	.L8
	ldr	r3, [sp, #28]
	ldr	r9, .L37+28
	sub	r7, r3, #4
	add	r7, r5, r7
	sub	r5, r5, #4
	ldr	r0, [r5, #4]!
	ldr	r3, [sp, #24]
	cmp	r0, #0
	ldr	r8, .L37+32
	add	r6, r3, #4
	str	fp, [sp, #12]
	beq	.L35
.L11:
	ldr	r3, [r6, #-4]
	sub	r3, r3, #128
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L12
.L14:
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L22
.L22:
	ldr	r2, [r0]
	ldr	r1, .L37+36
	mov	r0, r4
	bl	sprintf
	add	r4, r4, r0
.L12:
	cmp	r5, r7
	add	r6, r6, #8
	beq	.L36
.L24:
	mov	r0, r4
	mov	r2, #3
	mov	r1, r8
	bl	memcpy
	ldr	r0, [r5, #4]!
	add	r4, r4, #2
	cmp	r0, #0
	bne	.L11
.L35:
	mov	r0, r4
	mov	r2, #5
	ldr	r1, .L37+40
	bl	memcpy
	cmp	r5, r7
	add	r4, r4, #4
	add	r6, r6, #8
	bne	.L24
.L36:
	ldr	fp, [sp, #12]
.L8:
	mov	r0, r4
	mov	r2, #2
	ldr	r1, .L37+44
	bl	memcpy
	ldr	r3, .L37+20
	ldr	r4, [sp, #8]
	ldr	r0, [r3]
	mov	r1, r4
	bl	fputs
	ldr	r3, [sp, #16]
	add	fp, fp, #1
	ldr	r3, [r3]
	cmp	r3, fp
	bgt	.L25
	mov	r1, r4
	mov	r0, #10
	bl	fputc
	mov	fp, #0
	b	.L6
.L23:
	ldrb	r2, [r0]	@ zero_extendqisi2
	mov	r1, r9
	mov	r0, r4
	bl	sprintf
	add	r4, r4, r0
	b	.L12
.L15:
	mov	fp, #39
	ldr	r3, .L37+16
	strb	fp, [r4], #1
	mov	r2, r10
	ldr	r3, [r3]
	ldr	r1, [r6]
	ldr	r0, [r5]
	bl	converStringToReadable
	mov	r0, r4
	mov	r1, r10
	bl	stpcpy
	mov	r4, r0
	strb	fp, [r4], #1
	b	.L12
.L16:
	ldrb	r2, [r0]	@ zero_extendqisi2
	mov	r1, r9
	sub	r2, r2, #1
	clz	r2, r2
	mov	r0, r4
	lsr	r2, r2, #5
	bl	sprintf
	add	r4, r4, #1
	b	.L12
.L17:
	ldmia	r0, {r2-r3}
	ldr	r1, .L37+48
	mov	r0, r4
	bl	sprintf
	add	r4, r4, r0
	b	.L12
.L18:
	ldr	r0, [r0]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	ldr	r1, .L37+48
	bl	sprintf
	add	r4, r4, r0
	b	.L12
.L19:
	ldr	r2, [r0]
	mov	r1, r9
	mov	r0, r4
	bl	sprintf
	add	r4, r4, r0
	b	.L12
.L20:
	ldr	r3, .L37+16
	mov	r2, r10
	ldr	r3, [r3]
	ldr	r1, [r6]
	bl	convertNCharToReadable
	mov	r0, r4
	mov	r2, r10
	ldr	r1, .L37+52
	bl	sprintf
	add	r4, r4, r0
	b	.L12
.L21:
	ldrsh	r2, [r0]
	mov	r1, r9
	mov	r0, r4
	bl	sprintf
	add	r4, r4, r0
	b	.L12
.L25:
	mov	r2, #2
	mov	r1, #1
	ldr	r3, [sp, #8]
	ldr	r0, .L37+56
	bl	fwrite
	b	.L6
.L7:
	mov	r0, r4
	mov	r2, #2
	ldr	r1, .L37+60
	bl	memcpy
	add	r4, r4, #1
	b	.L10
.L34:
	ldr	r1, [sp, #8]
	mov	r0, #10
	bl	fputc
	mov	r0, r10
	bl	free
	ldr	r3, .L37+12
	ldr	r0, [r3]
	mov	r4, r3
	bl	taos_free_result
	ldr	r0, [sp, #36]
	str	r5, [r4]
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L32:
	ldr	r3, .L37+64
	ldr	r0, [r4]
	ldr	r6, [r5]
	ldr	r5, [r3]
	bl	taos_errstr
	mov	r2, r6
	mov	r3, r0
	ldr	r1, .L37+68
	mov	r0, r5
	bl	fprintf
	mvn	r3, #0
	str	r3, [sp, #36]
	b	.L1
.L33:
	ldr	r3, .L37+64
	mov	r2, #21
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r0, .L37+72
	bl	fwrite
	mvn	r3, #0
	str	r3, [sp, #36]
	b	.L1
.L5:
	ldr	r3, .L37+64
	mov	r2, #17
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r0, .L37+76
	bl	fwrite
	mvn	r3, #0
	str	r3, [sp, #36]
	b	.L1
.L38:
	.align	2
.L37:
	.word	command
	.word	taos
	.word	.LC0
	.word	result
	.word	COMMAND_SIZE
	.word	buffer
	.word	.LC4
	.word	.LC8
	.word	.LC6
	.word	.LC9
	.word	.LC7
	.word	.LC12
	.word	.LC10
	.word	.LC11
	.word	.LC13
	.word	.LC5
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	taosDumpTableData, .-taosDumpTableData
	.comm	taos,4,4
	.comm	stderr,4,4
	.comm	result,4,4
	.comm	command,4,4
	.comm	buffer,4,4
	.comm	COMMAND_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
