	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_str_new                ## -- Begin function sqlite3_str_new
	.p2align	4, 0x90
_sqlite3_str_new:                       ## @sqlite3_str_new
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$4, %edi
	callq	_sqlite3_malloc64
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	_SQLITE_LIMIT_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%r14), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_sqlite3OomStr@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
LBB0_3:
	movq	_SQLITE_MAX_LENGTH@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3StrAccumInit
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_LIMIT_LENGTH,8,3        ## @SQLITE_LIMIT_LENGTH
	.comm	_SQLITE_MAX_LENGTH,4,2          ## @SQLITE_MAX_LENGTH
	.comm	_sqlite3OomStr,4,2              ## @sqlite3OomStr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_str_new                ; -- Begin function sqlite3_str_new
	.p2align	2
_sqlite3_str_new:                       ; @sqlite3_str_new
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	mov	w0, #4
	bl	_sqlite3_malloc64
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	cbz	x20, LBB0_4
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SQLITE_LIMIT_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SQLITE_LIMIT_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x19, _sqlite3OomStr@GOTPAGE
Lloh4:
	ldr	x19, [x19, _sqlite3OomStr@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _SQLITE_MAX_LENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_MAX_LENGTH@GOTPAGEOFF]
LBB0_5:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_sqlite3StrAccumInit
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_LIMIT_LENGTH,8,3        ; @SQLITE_LIMIT_LENGTH
	.comm	_SQLITE_MAX_LENGTH,4,2          ; @SQLITE_MAX_LENGTH
	.comm	_sqlite3OomStr,4,2              ; @sqlite3OomStr
.subsections_via_symbols
