	.file	"extr_lsmtest_tdb4.c_btVfsOpen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	btVfsOpen, @function
btVfsOpen:
.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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR [rsi]
	mov	r12d, DWORD PTR SQLITE4_IOERR[rip]
	cmp	QWORD PTR 24[r15], 0
	je	.L15
.L1:
	add	rsp, 24
	.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
.L15:
	.cfi_restore_state
	mov	r14, rdi
	mov	edi, 24
	mov	QWORD PTR 8[rsp], rdx
	mov	rbp, rsi
	mov	r12d, ecx
	mov	rbx, r8
	call	testMalloc@PLT
	mov	rdx, QWORD PTR 8[rsp]
	test	rax, rax
	mov	r13, rax
	je	.L16
	mov	r9, rax
	test	DWORD PTR BT_OPEN_DATABASE[rip], r12d
	jne	.L17
	test	DWORD PTR BT_OPEN_LOG[rip], r12d
	je	.L6
	mov	rax, QWORD PTR 16[r15]
	mov	QWORD PTR 8[rax], r13
.L6:
	test	DWORD PTR BT_OPEN_SHARED[rip], r12d
	jne	.L7
	mov	QWORD PTR 16[r13], r15
.L7:
	mov	rax, QWORD PTR 8[r15]
	mov	QWORD PTR 8[rsp], r9
	mov	ecx, r12d
	mov	r8, r13
	mov	rsi, rbp
	mov	rdi, r14
	mov	QWORD PTR 8[r13], rax
	call	[QWORD PTR [rax]]
	cmp	DWORD PTR SQLITE4_OK[rip], eax
	mov	r9, QWORD PTR 8[rsp]
	mov	r12d, eax
	je	.L8
	mov	rdi, r13
	call	testFree@PLT
	xor	r9d, r9d
.L9:
	mov	QWORD PTR [rbx], r9
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR 16[r15]
	mov	QWORD PTR [rax], r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r12d, DWORD PTR SQLITE4_NOMEM[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	add	DWORD PTR [r15], 1
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	btVfsOpen, .-btVfsOpen
	.comm	SQLITE4_OK,4,4
	.comm	SQLITE4_NOMEM,4,4
	.comm	SQLITE4_IOERR,4,4
	.comm	BT_OPEN_SHARED,4,4
	.comm	BT_OPEN_LOG,4,4
	.comm	BT_OPEN_DATABASE,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_lsmtest_tdb4.c_btVfsOpen.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btVfsOpen, %function
btVfsOpen:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, [r1]
	mov	r4, r1
	ldr	r1, [r8, #12]
	sub	sp, sp, #8
	cmp	r1, #0
	beq	.L2
	ldr	r3, .L17
	ldr	r4, [r3]
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r7, r0
	mov	r0, #12
	mov	r10, r2
	mov	r5, r3
	bl	testMalloc
	subs	r6, r0, #0
	beq	.L15
	ldr	r3, .L17+4
	mov	r9, r6
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L16
	ldr	r3, .L17+8
	ldr	r3, [r3]
	tst	r5, r3
	ldrne	r3, [r8, #8]
	strne	r6, [r3, #4]
.L6:
	ldr	r3, .L17+12
	ldr	ip, [r8, #4]
	ldr	r3, [r3]
	str	ip, [r6, #4]
	tst	r5, r3
	streq	r8, [r6, #8]
	str	r6, [sp]
	mov	r3, r5
	mov	r1, r4
	mov	r2, r10
	ldr	r4, [ip]
	mov	r0, r7
	blx	r4
	ldr	r3, .L17+16
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L8
	mov	r0, r6
	bl	testFree
	mov	r9, #0
.L9:
	mov	r0, r4
	ldr	r3, [sp, #40]
	str	r9, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r3, [r8, #8]
	str	r6, [r3]
	b	.L6
.L15:
	ldr	r3, .L17+20
	ldr	r4, [r3]
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r3, [r8]
	add	r3, r3, #1
	str	r3, [r8]
	b	.L9
.L18:
	.align	2
.L17:
	.word	SQLITE4_IOERR
	.word	BT_OPEN_DATABASE
	.word	BT_OPEN_LOG
	.word	BT_OPEN_SHARED
	.word	SQLITE4_OK
	.word	SQLITE4_NOMEM
	.size	btVfsOpen, .-btVfsOpen
	.comm	SQLITE4_OK,4,4
	.comm	SQLITE4_NOMEM,4,4
	.comm	SQLITE4_IOERR,4,4
	.comm	BT_OPEN_SHARED,4,4
	.comm	BT_OPEN_LOG,4,4
	.comm	BT_OPEN_DATABASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
