	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compiler_alloc_string_len      ## -- Begin function compiler_alloc_string_len
	.p2align	4, 0x90
_compiler_alloc_string_len:             ## @compiler_alloc_string_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	cmpl	4(%rax), %esi
	jne	LBB0_6
## %bb.2:
	movq	8(%rax), %rdi
	shll	$4, %esi
	callq	_heap_realloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	shll	(%rcx)
	jmp	LBB0_6
LBB0_4:
	movl	$64, %edi
	callq	_heap_alloc
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	$8, (%rcx)
LBB0_6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_jsstr_alloc_len
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	(%rbx), %rcx
	movq	8(%rcx), %rdx
	movslq	4(%rcx), %rsi
	leal	1(%rsi), %edi
	movl	%edi, 4(%rcx)
	movq	%rax, (%rdx,%rsi,8)
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compiler_alloc_string_len      ; -- Begin function compiler_alloc_string_len
	.p2align	2
_compiler_alloc_string_len:             ; @compiler_alloc_string_len
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
	cbz	w9, LBB0_4
; %bb.1:
	ldr	w10, [x8, #4]
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.2:
	ldr	x0, [x8, #8]
	lsl	w1, w9, #4
	bl	_heap_realloc
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	w9, [x8]
	lsl	w9, w9, #1
	b	LBB0_6
LBB0_4:
	mov	w0, #64
	bl	_heap_alloc
	ldr	x8, [x19]
	str	x0, [x8, #8]
	cbz	x0, LBB0_9
; %bb.5:
	mov	w9, #8
LBB0_6:
	str	w9, [x8]
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_jsstr_alloc_len
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldrsw	x10, [x8, #4]
	add	w11, w10, #1
	str	w11, [x8, #4]
	str	x0, [x9, x10, lsl #3]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
