	.file	"extr_sqlite3.c_mkFullPathname.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"getcwd"
.LC1:
	.string	"%s"
	.text
	.p2align 4
	.type	mkFullPathname, @function
mkFullPathname:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	sqlite3Strlen30@PLT
	xor	edx, edx
	cmp	BYTE PTR [r12], 47
	mov	r13d, eax
	jne	.L10
.L2:
	cmp	ebx, r13d
	jg	.L4
	mov	BYTE PTR 0[rbp], 0
	mov	eax, DWORD PTR SQLITE_CANTOPEN_BKPT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	sub	ebx, edx
	mov	rcx, r12
	lea	rdx, .LC1[rip]
	mov	rsi, rbp
	mov	edi, ebx
	call	sqlite3_snprintf@PLT
	mov	eax, DWORD PTR SQLITE_OK[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	esi, -2[rbx]
	mov	rdi, rbp
	call	osGetcwd@PLT
	test	rax, rax
	je	.L11
	mov	rdi, rbp
	call	sqlite3Strlen30@PLT
	lea	edx, 1[rax]
	cdqe
	mov	BYTE PTR 0[rbp+rax], 47
	movsx	rax, edx
	add	r13d, edx
	add	rbp, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR SQLITE_CANTOPEN_BKPT[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	unixLogError@PLT
	.cfi_endproc
.LFE0:
	.size	mkFullPathname, .-mkFullPathname
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_CANTOPEN_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_mkFullPathname.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"getcwd\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mkFullPathname, %function
mkFullPathname:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r5, r2
	mov	r4, r1
	bl	sqlite3Strlen30
	ldrb	r3, [r7]	@ zero_extendqisi2
	mov	r6, r0
	cmp	r3, #47
	moveq	r2, #0
	bne	.L9
.L2:
	cmp	r5, r6
	bgt	.L4
	mov	r2, #0
	ldr	r3, .L11
	strb	r2, [r4]
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r3, r7
	sub	r0, r5, r2
	mov	r1, r4
	ldr	r2, .L11+4
	bl	sqlite3_snprintf
	ldr	r3, .L11+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r0, r4
	sub	r1, r5, #2
	bl	osGetcwd
	cmp	r0, #0
	beq	.L10
	mov	r0, r4
	bl	sqlite3Strlen30
	mov	r3, #47
	add	r2, r0, #1
	strb	r3, [r4, r0]
	add	r6, r6, r2
	add	r4, r4, r2
	b	.L2
.L10:
	ldr	r3, .L11
	mov	r2, r7
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	ldr	r1, .L11+12
	b	unixLogError
.L12:
	.align	2
.L11:
	.word	SQLITE_CANTOPEN_BKPT
	.word	.LC1
	.word	SQLITE_OK
	.word	.LC0
	.size	mkFullPathname, .-mkFullPathname
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_CANTOPEN_BKPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
