	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocstr
_allocstr:                              ## @allocstr
	.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	%rdi, %r14
	callq	_strlen
	incl	%eax
	movslq	%eax, %r15
	movq	_internal_stringsz@GOTPCREL(%rip), %r13
	movq	_internal_string@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	cmpq	%r15, (%r13)
	jae	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, (%r13)
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	%rbx, (%r12)
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_internal_stringsz,8,3          ## @internal_stringsz
	.comm	_internal_string,8,3            ## @internal_string
	.no_dead_strip	_allocstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocstr
_allocstr:                              ; @allocstr
	.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	x19, x0
	bl	_strlen
	add	w8, w0, #1
Lloh0:
	adrp	x22, _internal_stringsz@GOTPAGE
Lloh1:
	ldr	x22, [x22, _internal_stringsz@GOTPAGEOFF]
	sxtw	x20, w8
	ldr	x8, [x22]
Lloh2:
	adrp	x21, _internal_string@GOTPAGE
Lloh3:
	ldr	x21, [x21, _internal_string@GOTPAGEOFF]
	ldr	x0, [x21]
	cmp	x8, x20
	b.hs	LBB0_3
; %bb.1:
	mov	x1, x20
	bl	_realloc
	cbz	x0, LBB0_4
; %bb.2:
	str	x20, [x22]
	mov	x1, x19
	bl	_strcpy
	str	x0, [x21]
	b	LBB0_4
LBB0_3:
	mov	x1, x19
	bl	_strcpy
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_internal_stringsz,8,3          ; @internal_stringsz
	.comm	_internal_string,8,3            ; @internal_string
	.no_dead_strip	_allocstr
.subsections_via_symbols
