	.file	"extr_sqlite3.c_createModule.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	createModule, @function
createModule:
.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
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	lea	r15, 8[rbx]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR 4[rdi]
	mov	r12d, DWORD PTR SQLITE_OK[rip]
	mov	QWORD PTR 8[rsp], rdx
	mov	QWORD PTR [rsp], rcx
	call	sqlite3_mutex_enter@PLT
	mov	rdi, rbp
	call	sqlite3Strlen30@PLT
	mov	rsi, rbp
	mov	rdi, r15
	mov	edx, eax
	mov	r14d, eax
	call	sqlite3HashFind@PLT
	test	rax, rax
	je	.L2
	mov	r12d, DWORD PTR SQLITE_MISUSE_BKPT[rip]
.L3:
	mov	esi, r12d
	mov	rdi, rbx
	call	sqlite3ApiExit@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r12d, eax
	je	.L4
	test	r13, r13
	je	.L4
	mov	rdi, QWORD PTR [rsp]
	call	r13
.L4:
	mov	edi, DWORD PTR 4[rbx]
	call	sqlite3_mutex_leave@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	lea	esi, 33[r14]
	mov	rdi, rbx
	call	sqlite3DbMallocRaw@PLT
	test	rax, rax
	je	.L3
	lea	r10, 32[rax]
	mov	rsi, rbp
	lea	edx, 1[r14]
	mov	QWORD PTR 24[rsp], rax
	mov	rdi, r10
	mov	QWORD PTR 16[rsp], r10
	call	memcpy@PLT
	mov	rcx, QWORD PTR 24[rsp]
	mov	rdi, r15
	mov	edx, r14d
	mov	rax, QWORD PTR 8[rsp]
	mov	r10, QWORD PTR 16[rsp]
	mov	QWORD PTR 8[rcx], r13
	mov	QWORD PTR 24[rcx], rax
	mov	rax, QWORD PTR [rsp]
	mov	rsi, r10
	mov	QWORD PTR [rcx], r10
	mov	QWORD PTR 16[rcx], rax
	mov	QWORD PTR 8[rsp], rcx
	call	sqlite3HashInsert@PLT
	mov	rcx, QWORD PTR 8[rsp]
	test	rax, rax
	mov	rbp, rax
	sete	dil
	cmp	rcx, rax
	sete	al
	or	edi, eax
	movzx	edi, dil
	call	assert@PLT
	test	rbp, rbp
	je	.L3
	mov	DWORD PTR [rbx], 1
	mov	rsi, rbp
	mov	rdi, rbx
	call	sqlite3DbFree@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	createModule, .-createModule
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_MISUSE_BKPT,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_createModule.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	createModule, %function
createModule:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	ldr	r8, .L16
	sub	sp, sp, #12
	mov	r4, r0
	ldr	r0, [r0, #4]
	mov	r7, r3
	str	r2, [sp, #4]
	ldr	r9, [r8]
	bl	sqlite3_mutex_enter
	mov	r0, r5
	bl	sqlite3Strlen30
	mov	r6, r0
	add	fp, r4, #8
	mov	r0, fp
	mov	r2, r6
	mov	r1, r5
	bl	sqlite3HashFind
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L16+4
	ldr	r9, [r3]
.L3:
	mov	r1, r9
	mov	r0, r4
	bl	sqlite3ApiExit
	ldr	r3, [r8]
	ldr	r2, [sp, #48]
	mov	r5, r0
	cmp	r3, r0
	cmpne	r2, #0
	beq	.L4
	mov	r0, r7
	blx	r2
.L4:
	ldr	r0, [r4, #4]
	bl	sqlite3_mutex_leave
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, r4
	add	r1, r6, #17
	bl	sqlite3DbMallocRaw
	subs	r10, r0, #0
	beq	.L3
	add	r3, r10, #16
	mov	r1, r5
	mov	r0, r3
	add	r2, r6, #1
	bl	memcpy
	ldr	r3, [sp, #4]
	mov	r1, r0
	str	r3, [r10, #12]
	ldr	r3, [sp, #48]
	str	r0, [r10]
	str	r3, [r10, #4]
	mov	r2, r6
	mov	r3, r10
	str	r7, [r10, #8]
	mov	r0, fp
	bl	sqlite3HashInsert
	sub	r10, r10, r0
	clz	r10, r10
	mov	r5, r0
	cmp	r0, #0
	lsr	r10, r10, #5
	movne	r0, r10
	moveq	r0, #1
	bl	assert
	cmp	r5, #0
	beq	.L3
	mov	r3, #1
	mov	r1, r5
	mov	r0, r4
	str	r3, [r4]
	bl	sqlite3DbFree
	b	.L3
.L17:
	.align	2
.L16:
	.word	SQLITE_OK
	.word	SQLITE_MISUSE_BKPT
	.size	createModule, .-createModule
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_MISUSE_BKPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
