	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function string_alloc
_string_alloc:                          ## @string_alloc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	$8, %edi
	callq	_heap_alloc_zero
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	4(%rax), %rdi
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	_String_info@GOTPCREL(%rip), %rdx
	movq	%r13, %rsi
	movq	%rbx, %rcx
	callq	_init_dispex
	jmp	LBB0_5
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movl	(%r13), %ecx
	movq	_StringInst_info@GOTPCREL(%rip), %rdx
	movq	%r13, %rsi
	callq	_init_dispex_from_constr
LBB0_5:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_heap_free
	jmp	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	callq	_jsstr_addref
	movl	%eax, (%r12)
	movq	%r12, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_String_info,4,2                ## @String_info
	.comm	_StringInst_info,4,2            ## @StringInst_info
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_string_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function string_alloc
_string_alloc:                          ; @string_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	mov	w0, #8
	bl	_heap_alloc_zero
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	add	x0, x0, #4
	cbz	x23, LBB0_4
; %bb.2:
Lloh0:
	adrp	x2, _String_info@GOTPAGE
Lloh1:
	ldr	x2, [x2, _String_info@GOTPAGEOFF]
	mov	x1, x22
	mov	x3, x23
	bl	_init_dispex
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	ldr	w3, [x22]
Lloh4:
	adrp	x2, _StringInst_info@GOTPAGE
Lloh5:
	ldr	x2, [x2, _StringInst_info@GOTPAGEOFF]
	mov	x1, x22
	bl	_init_dispex_from_constr
LBB0_5:
	mov	x22, x0
	bl	_FAILED
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_heap_free
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_jsstr_addref
	str	w0, [x21]
	str	x21, [x19]
Lloh6:
	adrp	x8, _S_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_8:
	ldr	w22, [x8]
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_String_info,4,2                ; @String_info
	.comm	_StringInst_info,4,2            ; @StringInst_info
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_string_alloc
.subsections_via_symbols
