	.file	"extr_sqlite3.c_sqlite3_str_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sqlite3_str_new
	.type	sqlite3_str_new, @function
sqlite3_str_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, sqlite3OomStr[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	edi, 4
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	sqlite3_malloc64@PLT
	test	rax, rax
	je	.L1
	mov	r8d, DWORD PTR SQLITE_MAX_LENGTH[rip]
	mov	r12, rax
	test	rbx, rbx
	je	.L4
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR SQLITE_LIMIT_LENGTH[rip]
	mov	r8d, DWORD PTR [rax+rdx*4]
.L4:
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	call	sqlite3StrAccumInit@PLT
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sqlite3_str_new, .-sqlite3_str_new
	.comm	sqlite3OomStr,4,4
	.comm	SQLITE_MAX_LENGTH,4,4
	.comm	SQLITE_LIMIT_LENGTH,8,8
	.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_str_new.c"
	.text
	.align	2
	.global	sqlite3_str_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3_str_new, %function
sqlite3_str_new:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, r0
	sub	sp, sp, #12
	mov	r0, #4
	bl	sqlite3_malloc64
	subs	r4, r0, #0
	beq	.L5
	cmp	r5, #0
	ldrne	r2, .L8
	ldrne	r3, [r5]
	ldrne	r2, [r2]
	ldreq	r3, .L8+4
	ldrne	r2, [r3, r2, lsl #2]
	ldreq	r2, [r3]
	mov	r3, #0
	str	r2, [sp]
	mov	r1, r3
	mov	r2, r3
	mov	r0, r4
	bl	sqlite3StrAccumInit
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	ldr	r4, .L8+8
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	.align	2
.L8:
	.word	SQLITE_LIMIT_LENGTH
	.word	SQLITE_MAX_LENGTH
	.word	sqlite3OomStr
	.size	sqlite3_str_new, .-sqlite3_str_new
	.comm	sqlite3OomStr,4,4
	.comm	SQLITE_MAX_LENGTH,4,4
	.comm	SQLITE_LIMIT_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
