	.file	"extr_tscPrepare.c_insertStmtBindParam.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"param %d: type mismatch or invalid"
	.text
	.p2align 4
	.type	insertStmtBindParam, @function
insertStmtBindParam:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR [rdi]
	mov	r13d, DWORD PTR [rax]
	mov	QWORD PTR 24[rsp], rax
	test	r13d, r13d
	jle	.L21
	lea	r12d, 1[r13]
	sar	r13d
	movsx	rax, r13d
	sar	r12d
	mov	QWORD PTR 16[rsp], rax
	movsx	r12, r12d
.L2:
	mov	rax, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR [rax], 0
	je	.L3
	mov	QWORD PTR 8[rsp], 0
.L13:
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR 8[rsp]
	xor	edx, edx
	xor	edi, edi
	mov	r13, QWORD PTR [rax+rcx*8]
	mov	r14, QWORD PTR 0[r13]
	lea	rcx, -8[r14]
	mov	rax, rcx
	div	r12
	mov	rbp, rax
	mov	rax, r12
	imul	rax, rbp
	cmp	rax, rcx
	sete	dil
	call	assert@PLT
	cmp	r12, QWORD PTR 16[rsp]
	je	.L4
	mov	rdi, QWORD PTR 16[r13]
.L5:
	imul	rbp, QWORD PTR 16[rsp]
	xor	r14d, r14d
	cmp	QWORD PTR 24[r13], 0
	lea	rbp, 8[rdi+rbp]
	jne	.L12
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	add	r14, 1
	cmp	QWORD PTR 24[r13], r14
	jbe	.L16
.L12:
	mov	rax, QWORD PTR 32[r13]
	mov	rdi, rbp
	lea	r15, [rax+r14*4]
	movsx	rax, DWORD PTR [r15]
	mov	rsi, r15
	lea	rdx, [rbx+rax*4]
	call	doBindParam@PLT
	cmp	DWORD PTR TSDB_CODE_SUCCESS[rip], eax
	je	.L15
	mov	esi, DWORD PTR [r15]
	lea	rdi, .LC2[rip]
	mov	DWORD PTR 8[rsp], eax
	call	tscTrace@PLT
	mov	r8d, DWORD PTR 8[rsp]
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rsp]
	add	QWORD PTR 8[rsp], 1
	mov	rcx, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR [rax]
	cmp	rdx, rcx
	ja	.L13
	mov	rbx, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	lea	ecx, 1[rbx+rbx]
	mov	DWORD PTR [rsi], ecx
	cmp	r12, rbx
	ja	.L17
	test	rdx, rdx
	je	.L17
	mov	rcx, QWORD PTR 8[rax]
	lea	r8, [rcx+rdx*8]
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, QWORD PTR [rcx]
	xor	edx, edx
	add	rcx, 8
	mov	rdi, QWORD PTR [rsi]
	lea	rax, -8[rdi]
	div	r12
	xor	edx, edx
	add	rax, rdi
	mov	rdi, QWORD PTR 16[rsi]
	mov	QWORD PTR [rsi], rax
	mov	rsi, QWORD PTR [rdi]
	mov	rax, rsi
	div	r12
	add	rax, rsi
	mov	QWORD PTR [rdi], rax
	cmp	r8, rcx
	jne	.L19
.L17:
	mov	r8d, DWORD PTR TSDB_CODE_SUCCESS[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR 16[r13]
	lea	rsi, [r14+rbp]
	cmp	QWORD PTR 8[r13], rsi
	jnb	.L5
	test	rsi, rsi
	js	.L6
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rsi
.L7:
	mulsd	xmm0, QWORD PTR .LC0[rip]
	comisd	xmm0, QWORD PTR .LC1[rip]
	jnb	.L8
	cvttsd2si	r14, xmm0
.L9:
	mov	rsi, r14
	call	realloc@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L30
	mov	QWORD PTR 16[r13], rax
	mov	QWORD PTR 8[r13], r14
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	mov	QWORD PTR 16[rsp], 0
	mov	r12d, 1
	jmp	.L2
.L6:
	mov	rax, rsi
	and	esi, 1
	pxor	xmm0, xmm0
	shr	rax
	or	rax, rsi
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm0
	jmp	.L7
.L8:
	subsd	xmm0, QWORD PTR .LC1[rip]
	movabs	rax, -9223372036854775808
	cvttsd2si	r14, xmm0
	xor	r14, rax
	jmp	.L9
.L3:
	mov	rbx, QWORD PTR 16[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	lea	eax, 1[rbx+rbx]
	mov	DWORD PTR [rcx], eax
	jmp	.L17
.L30:
	mov	r8d, DWORD PTR TSDB_CODE_CLI_OUT_OF_MEMORY[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	insertStmtBindParam, .-insertStmtBindParam
	.comm	TSDB_CODE_SUCCESS,4,4
	.comm	TSDB_CODE_CLI_OUT_OF_MEMORY,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1073217536
	.align 8
.LC1:
	.long	0
	.long	1138753536
	.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_tscPrepare.c_insertStmtBindParam.c"
	.text
	.global	__aeabi_uidiv
	.global	__aeabi_ui2d
	.global	__aeabi_dmul
	.global	__aeabi_d2uiz
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"param %d: type mismatch or invalid\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertStmtBindParam, %function
insertStmtBindParam:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	sub	sp, sp, #12
	ldr	r9, [r3]
	str	r3, [sp, #4]
	cmp	r9, #0
	movle	r3, #0
	asrgt	r3, r9, #1
	strgt	r3, [sp]
	strle	r3, [sp]
	ldr	r3, [sp, #4]
	addgt	r8, r9, #1
	ldr	r3, [r3, #4]
	movle	r8, #1
	ldr	r2, [r3]
	asrgt	r8, r8, #1
	cmp	r2, #0
	mov	r6, r1
	beq	.L3
	mov	r10, #0
	ldr	r7, .L26
.L9:
	ldr	r3, [r3, #4]
	mov	r1, r8
	ldr	r5, [r3, r10, lsl #2]
	ldr	r4, [r5]
	sub	r9, r4, #4
	mov	r0, r9
	bl	__aeabi_uidiv
	mov	fp, r0
	mul	r0, fp, r8
	sub	r0, r0, r9
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [sp]
	cmp	r8, r3
	beq	.L4
	ldr	r4, [r5, #8]
.L5:
	ldr	r3, [sp]
	mla	r3, fp, r3, r4
	mov	fp, r3
	ldr	r3, [r5, #12]
	add	fp, fp, #4
	cmp	r3, #0
	movne	r4, #0
	bne	.L8
	b	.L12
.L11:
	ldr	r3, [r5, #12]
	cmp	r3, r4
	bls	.L12
.L8:
	ldr	r1, [r5, #16]
	mov	r0, fp
	ldr	r2, [r1, r4, lsl #2]
	add	r9, r1, r4, lsl #2
	mov	r1, r9
	add	r2, r6, r2, lsl #2
	bl	doBindParam
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r0
	beq	.L11
	str	r0, [sp]
	ldr	r1, [r9]
	ldr	r0, .L26+4
	bl	tscTrace
	ldr	r3, [sp]
.L1:
	mov	r0, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r3, [sp, #4]
	add	r10, r10, #1
	ldr	r3, [r3, #4]
	ldr	r2, [r3]
	cmp	r2, r10
	bhi	.L9
	ldr	r0, [sp]
	lsl	r1, r0, #1
	cmp	r8, r0
	ldr	r0, [sp, #4]
	add	r1, r1, #1
	str	r1, [r0]
	bhi	.L13
	cmp	r2, #0
	beq	.L13
	ldr	r6, [r3, #4]
	add	r2, r6, r2, lsl #2
	sub	r4, r2, #4
	sub	r6, r6, #4
.L15:
	ldr	r5, [r6, #4]!
	mov	r1, r8
	ldr	r9, [r5]
	sub	r0, r9, #4
	bl	__aeabi_uidiv
	ldr	r7, [r5, #8]
	add	r0, r0, r9
	ldr	r9, [r7]
	mov	r1, r8
	str	r0, [r5]
	mov	r0, r9
	bl	__aeabi_uidiv
	cmp	r4, r6
	add	r0, r0, r9
	str	r0, [r7]
	bne	.L15
.L13:
	ldr	r3, .L26
	ldr	r3, [r3]
	b	.L1
.L4:
	ldr	r3, [r5, #4]
	add	r0, r4, fp
	cmp	r3, r0
	ldr	r4, [r5, #8]
	bcs	.L5
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L26+8
	bl	__aeabi_dmul
	bl	__aeabi_d2uiz
	mov	r9, r0
	mov	r0, r4
	mov	r1, r9
	bl	realloc
	subs	r4, r0, #0
	beq	.L25
	str	r4, [r5, #8]
	str	r9, [r5, #4]
	b	.L5
.L3:
	ldr	r2, [sp]
	lsl	r3, r2, #1
	ldr	r2, [sp, #4]
	add	r3, r3, #1
	str	r3, [r2]
	b	.L13
.L25:
	ldr	r3, .L26+12
	ldr	r3, [r3]
	b	.L1
.L27:
	.align	2
.L26:
	.word	TSDB_CODE_SUCCESS
	.word	.LC0
	.word	1073217536
	.word	TSDB_CODE_CLI_OUT_OF_MEMORY
	.size	insertStmtBindParam, .-insertStmtBindParam
	.comm	TSDB_CODE_SUCCESS,4,4
	.comm	TSDB_CODE_CLI_OUT_OF_MEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
