	.file	"917336.c"
	.intel_syntax noprefix
	.text
	.globl	sqlite3_exec_stmt
	.type	sqlite3_exec_stmt, @function
sqlite3_exec_stmt:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -96[rbp], rcx
	mov	DWORD PTR -64[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	cmp	QWORD PTR -72[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	sqlite3_db_handle@PLT
	mov	QWORD PTR -32[rbp], rax
	jmp	.L4
.L15:
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	sqlite3_column_count@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, eax
	cdqe
	sal	rax, 3
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L17
.L5:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	mov	DWORD PTR -64[rbp], eax
	cmp	QWORD PTR -80[rbp], 0
	je	.L7
	cmp	DWORD PTR -64[rbp], 100
	je	.L8
	cmp	DWORD PTR -64[rbp], 101
	jne	.L7
	cmp	DWORD PTR -56[rbp], 0
	jne	.L7
.L8:
	cmp	DWORD PTR -56[rbp], 0
	jne	.L9
	mov	DWORD PTR -52[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	lea	rbx, [rdx+rax]
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sqlite3_column_name@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -52[rbp], 1
.L10:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L11
	add	DWORD PTR -56[rbp], 1
.L9:
	cmp	DWORD PTR -64[rbp], 100
	jne	.L7
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	lea	rbx, [rdx+rax]
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -52[rbp], 1
.L12:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L13
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	r8, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	r8
	test	eax, eax
	je	.L7
	mov	DWORD PTR -64[rbp], 4
	jmp	.L6
.L7:
	cmp	DWORD PTR -64[rbp], 100
	je	.L5
.L4:
	cmp	DWORD PTR -64[rbp], 0
	je	.L15
	cmp	DWORD PTR -64[rbp], 17
	jne	.L18
	add	DWORD PTR -60[rbp], 1
	cmp	DWORD PTR -60[rbp], 1
	jle	.L15
	jmp	.L18
.L17:
	nop
	jmp	.L6
.L18:
	nop
.L6:
	cmp	QWORD PTR -40[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
.L16:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	sqlite3_reset@PLT
	mov	eax, DWORD PTR -64[rbp]
.L3:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sqlite3_exec_stmt, .-sqlite3_exec_stmt
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"917336.c"
	.text
	.align	2
	.global	sqlite3_exec_stmt
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3_exec_stmt, %function
sqlite3_exec_stmt:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r0, [fp, #-56]
	bl	sqlite3_db_handle
	str	r0, [fp, #-28]
	b	.L4
.L15:
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-56]
	bl	sqlite3_column_count
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L17
.L5:
	ldr	r0, [fp, #-56]
	bl	sqlite3_step
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-48]
	cmp	r3, #100
	beq	.L8
	ldr	r3, [fp, #-48]
	cmp	r3, #101
	bne	.L7
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L7
.L8:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L10
.L11:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r4, r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-56]
	bl	sqlite3_column_name
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L10:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L9:
	ldr	r3, [fp, #-48]
	cmp	r3, #100
	bne	.L7
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L12
.L13:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-56]
	bl	sqlite3_column_text
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L12:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L13
	ldr	r4, [fp, #-60]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-64]
	blx	r4
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	mov	r3, #4
	str	r3, [fp, #-48]
	b	.L6
.L7:
	ldr	r3, [fp, #-48]
	cmp	r3, #100
	beq	.L5
.L4:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-48]
	cmp	r3, #17
	bne	.L18
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	ble	.L15
	b	.L18
.L17:
	nop
	b	.L6
.L18:
	nop
.L6:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L16
	ldr	r0, [fp, #-44]
	bl	free
.L16:
	ldr	r0, [fp, #-56]
	bl	sqlite3_reset
	ldr	r3, [fp, #-48]
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	sqlite3_exec_stmt, .-sqlite3_exec_stmt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
