	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tok_alloc                      ## -- Begin function tok_alloc
	.p2align	4, 0x90
_tok_alloc:                             ## @tok_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_TOK_HASH_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %esi
	jle	LBB0_3
## %bb.1:
	movl	%r14d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rbx), %esi
	movl	%eax, %edi
	callq	_TOK_HASH_FUNC
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
LBB0_3:
	movq	_TOK_HASH_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	andl	%eax, %ecx
	movq	_hash_ident@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%rdx,%rcx,8), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	(%rdx,%rcx,8), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	cmpl	%r14d, (%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%rbx), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	addq	$8, %rbx
LBB0_9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tok_alloc_new                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TOK_HASH_INIT,4,2              ## @TOK_HASH_INIT
	.comm	_TOK_HASH_SIZE,4,2              ## @TOK_HASH_SIZE
	.comm	_hash_ident,8,3                 ## @hash_ident
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tok_alloc                      ; -- Begin function tok_alloc
	.p2align	2
_tok_alloc:                             ; @tok_alloc
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _TOK_HASH_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TOK_HASH_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, w19
	mov	x22, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w1, [x22], #1
	bl	_TOK_HASH_FUNC
	subs	x21, x21, #1
	b.ne	LBB0_2
LBB0_3:
Lloh3:
	adrp	x8, _TOK_HASH_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TOK_HASH_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w8, #1
	and	w8, w8, w0
Lloh6:
	adrp	x9, _hash_ident@GOTPAGE
Lloh7:
	ldr	x9, [x9, _hash_ident@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, w8, uxtw #3
	ldr	x8, [x0]
	cbnz	x8, LBB0_5
	b	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21, #16]
	mov	x1, x20
	mov	x2, x19
	bl	_memcmp
	cbnz	w0, LBB0_4
; %bb.7:
	mov	x0, x21
	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
LBB0_8:
	add	x0, x21, #8
LBB0_9:
	mov	x1, x20
	mov	x2, x19
	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
	b	_tok_alloc_new
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TOK_HASH_INIT,4,2              ; @TOK_HASH_INIT
	.comm	_TOK_HASH_SIZE,4,2              ; @TOK_HASH_SIZE
	.comm	_hash_ident,8,3                 ; @hash_ident
.subsections_via_symbols
