	.file	"extr_sqlite3.c_sqlite3_get_table.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
	.text
	.p2align 4
	.globl	sqlite3_get_table
	.type	sqlite3_get_table, @function
sqlite3_get_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r9
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	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
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rdx], 0
	test	r8, r8
	je	.L2
	mov	DWORD PTR [r8], 0
.L2:
	test	rbx, rbx
	je	.L3
	mov	DWORD PTR [rbx], 0
.L3:
	test	r14, r14
	je	.L4
	mov	QWORD PTR [r14], 0
.L4:
	movabs	rax, 85899345921
	mov	edi, 160
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 32[rsp], rax
	mov	eax, DWORD PTR SQLITE_OK[rip]
	mov	QWORD PTR 24[rsp], 0
	mov	DWORD PTR 40[rsp], eax
	call	sqlite3_malloc64@PLT
	mov	QWORD PTR 48[rsp], rax
	test	rax, rax
	je	.L36
	mov	QWORD PTR [rax], 0
	mov	rsi, r15
	mov	r8, r14
	mov	rdi, r13
	mov	edx, DWORD PTR sqlite3_get_table_cb[rip]
	lea	rcx, 16[rsp]
	call	sqlite3_exec@PLT
	mov	edi, 1
	mov	r15d, eax
	call	assert@PLT
	mov	rdx, QWORD PTR 48[rsp]
	mov	edi, DWORD PTR 32[rsp]
	mov	QWORD PTR 8[rsp], rdx
	call	SQLITE_INT_TO_PTR@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rdx], rax
	movzx	eax, r15b
	cmp	eax, DWORD PTR SQLITE_ABORT[rip]
	je	.L38
	mov	rdi, QWORD PTR 16[rsp]
	call	sqlite3_free@PLT
	cmp	DWORD PTR SQLITE_OK[rip], r15d
	jne	.L39
	mov	esi, DWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 48[rsp]
	cmp	DWORD PTR 36[rsp], esi
	jg	.L40
.L11:
	add	rdi, 8
	mov	QWORD PTR [r12], rdi
	test	rbp, rbp
	je	.L12
	mov	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR 0[rbp], eax
.L12:
	test	rbx, rbx
	je	.L1
	mov	eax, DWORD PTR 24[rsp]
	mov	DWORD PTR [rbx], eax
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L41
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L40:
	.cfi_restore_state
	sal	esi, 3
	call	sqlite3_realloc64@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR 48[rsp]
	lea	rdi, 8[rax]
	call	sqlite3_free_table@PLT
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rax, QWORD PTR SQLITE_NOMEM[rip]
	mov	DWORD PTR 0[r13], eax
	mov	r15d, DWORD PTR SQLITE_NOMEM_BKPT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rax, QWORD PTR 48[rsp]
	lea	rdi, 8[rax]
	call	sqlite3_free_table@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rax, QWORD PTR 48[rsp]
	lea	rdi, 8[rax]
	call	sqlite3_free_table@PLT
	mov	rdi, QWORD PTR 16[rsp]
	test	rdi, rdi
	je	.L8
	test	r14, r14
	je	.L9
	mov	rdi, QWORD PTR [r14]
	call	sqlite3_free@PLT
	mov	rsi, QWORD PTR 16[rsp]
	lea	rdi, .LC0[rip]
	call	sqlite3_mprintf@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	QWORD PTR [r14], rax
.L9:
	call	sqlite3_free@PLT
.L8:
	mov	r15d, DWORD PTR 40[rsp]
	mov	DWORD PTR 0[r13], r15d
	jmp	.L1
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sqlite3_get_table, .-sqlite3_get_table
	.comm	sqlite3_get_table_cb,4,4
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM_BKPT,4,4
	.comm	SQLITE_NOMEM,8,8
	.comm	SQLITE_MISUSE_BKPT,4,4
	.comm	SQLITE_ABORT,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_sqlite3.c_sqlite3_get_table.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sqlite3_get_table
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3_get_table, %function
sqlite3_get_table:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	mov	r2, #0
	mov	r4, r3
	sub	sp, sp, #52
	ldr	r8, [sp, #88]
	ldr	r3, .L42
	cmp	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	str	r2, [r5]
	strne	r2, [r8]
	cmp	r4, #0
	movne	r3, #0
	ldr	r7, [sp, #92]
	strne	r3, [r4]
	cmp	r7, #0
	movne	r3, #0
	mov	fp, #0
	strne	r3, [r7]
	mov	r9, #1
	mov	r3, #20
	ldr	r10, .L42+4
	mov	r6, r0
	ldr	r2, [r10]
	mov	r0, #80
	str	r1, [sp, #12]
	str	fp, [sp, #16]
	str	fp, [sp, #20]
	str	r2, [sp, #36]
	str	fp, [sp, #24]
	str	r9, [sp, #28]
	str	r3, [sp, #32]
	bl	sqlite3_malloc64
	cmp	r0, fp
	ldr	r1, [sp, #12]
	str	r0, [sp, #40]
	beq	.L36
	ldr	r3, .L42+8
	str	fp, [r0]
	str	r7, [sp]
	ldr	r2, [r3]
	mov	r0, r6
	add	r3, sp, #16
	bl	sqlite3_exec
	mov	r3, r0
	mov	r0, r9
	mov	r9, r3
	bl	assert
	ldr	r0, [sp, #28]
	ldr	fp, [sp, #40]
	bl	SQLITE_INT_TO_PTR
	ldr	r3, .L42+12
	and	r2, r9, #255
	ldr	r3, [r3]
	str	r0, [fp]
	cmp	r2, r3
	beq	.L38
	ldr	r0, [sp, #16]
	bl	sqlite3_free
	ldr	r3, [r10]
	cmp	r3, r9
	bne	.L39
	ldr	r1, [sp, #28]
	ldr	r3, [sp, #32]
	ldr	r0, [sp, #40]
	cmp	r3, r1
	bgt	.L40
.L11:
	cmp	r8, #0
	ldrne	r3, [sp, #24]
	add	r0, r0, #4
	str	r0, [r5]
	strne	r3, [r8]
	cmp	r4, #0
	ldrne	r3, [sp, #20]
	strne	r3, [r4]
.L1:
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	mov	r0, r9
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L40:
	lsl	r1, r1, #2
	bl	sqlite3_realloc64
	cmp	r0, #0
	bne	.L11
	ldr	r0, [sp, #40]
	add	r0, r0, #4
	bl	sqlite3_free_table
.L36:
	ldr	r2, .L42+16
	ldr	r3, .L42+20
	ldr	r2, [r2]
	str	r2, [r6]
	ldr	r9, [r3]
	b	.L1
.L39:
	ldr	r0, [sp, #40]
	add	r0, r0, #4
	bl	sqlite3_free_table
	b	.L1
.L38:
	ldr	r0, [sp, #40]
	add	r0, r0, #4
	bl	sqlite3_free_table
	ldr	r0, [sp, #16]
	cmp	r0, #0
	beq	.L8
	cmp	r7, #0
	beq	.L9
	ldr	r0, [r7]
	bl	sqlite3_free
	ldr	r1, [sp, #16]
	ldr	r0, .L42+24
	bl	sqlite3_mprintf
	mov	r3, r0
	ldr	r0, [sp, #16]
	str	r3, [r7]
.L9:
	bl	sqlite3_free
.L8:
	ldr	r9, [sp, #36]
	str	r9, [r6]
	b	.L1
.L41:
	bl	__stack_chk_fail
.L43:
	.align	2
.L42:
	.word	.LC1
	.word	SQLITE_OK
	.word	sqlite3_get_table_cb
	.word	SQLITE_ABORT
	.word	SQLITE_NOMEM
	.word	SQLITE_NOMEM_BKPT
	.word	.LC0
	.size	sqlite3_get_table, .-sqlite3_get_table
	.comm	sqlite3_get_table_cb,4,4
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM_BKPT,4,4
	.comm	SQLITE_NOMEM,4,4
	.comm	SQLITE_MISUSE_BKPT,4,4
	.comm	SQLITE_ABORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
