	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function general_allocate_string
_general_allocate_string:               ## @general_allocate_string
	.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
	callq	_general_allocate_prompt
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_allocate_string_stack
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	32(%rbp), %rax
	movl	24(%rbp), %ecx
	movl	16(%rbp), %edx
	movl	%edx, (%rbx)
	movl	%ecx, 4(%rbx)
	movq	%rax, 8(%rbx)
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_sk_UI_STRING_push
	movl	%eax, %r14d
	testl	%eax, %eax
	jg	LBB0_7
## %bb.5:
	decl	%r14d
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_7
LBB0_3:
	movl	$-1, %r14d
LBB0_6:
	movq	%rbx, %rdi
	callq	_free_string
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_general_allocate_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function general_allocate_string
_general_allocate_string:               ; @general_allocate_string
	.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, x7
	mov	x21, x6
	mov	x22, x0
	bl	_general_allocate_prompt
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x22
	bl	_allocate_string_stack
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldr	x8, [x29, #16]
	stp	w21, w20, [x19]
	str	x8, [x19, #8]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_sk_UI_STRING_push
	mov	x20, x0
	cmp	w0, #0
	b.gt	LBB0_7
; %bb.3:
	sub	w20, w20, #1
	b	LBB0_6
LBB0_4:
	mov	w20, #-1
	b	LBB0_7
LBB0_5:
	mov	w20, #-1
LBB0_6:
	mov	x0, x19
	bl	_free_string
LBB0_7:
	mov	x0, x20
	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
	.no_dead_strip	_general_allocate_string
.subsections_via_symbols
