	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_String_Alloc                   ## -- Begin function String_Alloc
	.p2align	4, 0x90
_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
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r13
	cmpb	$0, (%rdi)
	je	LBB0_10
## %bb.2:
	movq	%r13, %rdi
	callq	_hashForString
	movq	%rax, %r14
	movq	_strHandle@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_5:
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r12d
	movq	_strPoolIndex@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %r15
	leal	(%r12,%r15), %eax
	incl	%eax
	movq	_STRING_POOL_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_9
## %bb.6:
	incl	%r12d
	movq	_strPool@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r15, %rdi
	movq	%r13, %rsi
	callq	_strcpy
	addl	%r12d, (%rbx)
	movq	_strHandle@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %rcx
	movq	_strPool@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	%rcx, %rax
	movq	8(%rcx), %rdx
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	jne	LBB0_8
	jmp	LBB0_14
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_10:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_15
LBB0_12:
	movq	(%rbx), %r15
	jmp	LBB0_15
LBB0_13:
	xorl	%ebx, %ebx
	movq	_strPool@GOTPCREL(%rip), %r13
LBB0_14:
	movl	$16, %edi
	callq	_UI_Alloc
	movq	$0, 8(%rax)
	movq	(%r13), %rcx
	addq	%r15, %rcx
	movq	%rcx, (%rax)
	shlq	$3, %r14
	addq	(%r12), %r14
	leaq	8(%rbx), %rcx
	testq	%rbx, %rbx
	cmoveq	%r14, %rcx
	movq	%rax, (%rcx)
	addq	(%r13), %r15
LBB0_15:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_strHandle,8,3                  ## @strHandle
	.comm	_strPoolIndex,4,2               ## @strPoolIndex
	.comm	_STRING_POOL_SIZE,4,2           ## @STRING_POOL_SIZE
	.comm	_strPool,8,3                    ## @strPool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_String_Alloc                   ; -- Begin function String_Alloc
	.p2align	2
_String_Alloc:                          ; @String_Alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x0, x20
	bl	_hashForString
	mov	x19, x0
Lloh0:
	adrp	x21, _strHandle@GOTPAGE
Lloh1:
	ldr	x21, [x21, _strHandle@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x22, [x8, x0, lsl #3]
	cbz	x22, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22]
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x22, #8]
	cbnz	x22, LBB0_3
LBB0_5:
	mov	x0, x20
	bl	_strlen
Lloh2:
	adrp	x24, _strPoolIndex@GOTPAGE
Lloh3:
	ldr	x24, [x24, _strPoolIndex@GOTPAGEOFF]
	ldrsw	x22, [x24]
	add	w25, w0, #1
Lloh4:
	adrp	x8, _STRING_POOL_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STRING_POOL_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	add	w9, w25, w22
	cmp	w9, w8
	b.ge	LBB0_10
; %bb.6:
Lloh7:
	adrp	x23, _strPool@GOTPAGE
Lloh8:
	ldr	x23, [x23, _strPool@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, x22
	mov	x1, x20
	bl	_strcpy
	ldr	w8, [x24]
	add	w8, w25, w8
	str	w8, [x24]
	ldr	x8, [x21]
	ldr	x8, [x8, x19, lsl #3]
	cbz	x8, LBB0_12
; %bb.7:
	mov	x9, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	ldr	x10, [x9, #8]
	mov	x8, x9
	mov	x9, x10
	cbnz	x10, LBB0_8
	b	LBB0_13
LBB0_9:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_10:
	mov	x0, #0
	b	LBB0_14
LBB0_11:
	ldr	x0, [x22]
	b	LBB0_14
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	w0, #16
	bl	_UI_Alloc
	ldr	x8, [x23]
	add	x8, x8, x22
	stp	x8, xzr, [x0]
	ldr	x8, [x21]
	add	x8, x8, x19, lsl #3
	add	x9, x20, #8
	cmp	x20, #0
	csel	x8, x8, x9, eq
	str	x0, [x8]
	ldr	x8, [x23]
	add	x0, x8, x22
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_strHandle,8,3                  ; @strHandle
	.comm	_strPoolIndex,4,2               ; @strPoolIndex
	.comm	_STRING_POOL_SIZE,4,2           ; @STRING_POOL_SIZE
	.comm	_strPool,8,3                    ; @strPool
.subsections_via_symbols
