	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tok_alloc_new
_tok_alloc_new:                         ## @tok_alloc_new
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_tok_ident@GOTPCREL(%rip), %r14
	movq	(%r14), %r13
	movq	_SYM_FIRST_ANOM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_tcc_error
	movq	(%r14), %r13
LBB0_2:
	movq	_TOK_IDENT@GOTPCREL(%rip), %rax
	subq	(%rax), %r13
	movq	_TOK_ALLOC_INCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	jne	LBB0_4
## %bb.3:
	movq	_table_ident@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addl	%r13d, %esi
	shll	$3, %esi
	callq	_realloc
	movq	%rax, (%rbx)
LBB0_4:
	movslq	%r12d, %r12
	leal	64(%r12), %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	_table_ident@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r13d, %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	(%r14), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r14)
	movq	%rax, 56(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movl	%r12d, (%rbx)
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movb	$0, (%rax,%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tok_ident,8,3                  ## @tok_ident
	.comm	_SYM_FIRST_ANOM,8,3             ## @SYM_FIRST_ANOM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memory full"

	.comm	_TOK_IDENT,8,3                  ## @TOK_IDENT
	.comm	_TOK_ALLOC_INCR,4,2             ## @TOK_ALLOC_INCR
	.comm	_table_ident,8,3                ## @table_ident
	.no_dead_strip	_tok_alloc_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tok_alloc_new
_tok_alloc_new:                         ; @tok_alloc_new
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _tok_ident@GOTPAGE
Lloh1:
	ldr	x23, [x23, _tok_ident@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _SYM_FIRST_ANOM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SYM_FIRST_ANOM@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tcc_error
	ldr	x8, [x23]
LBB0_2:
Lloh7:
	adrp	x9, _TOK_IDENT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TOK_IDENT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _TOK_ALLOC_INCR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _TOK_ALLOC_INCR@GOTPAGEOFF]
	sub	x24, x8, x9
Lloh12:
	ldr	w8, [x10]
	sdiv	w9, w24, w8
	msub	w9, w9, w8, w24
Lloh13:
	adrp	x25, _table_ident@GOTPAGE
Lloh14:
	ldr	x25, [x25, _table_ident@GOTPAGEOFF]
	cbnz	w9, LBB0_4
; %bb.3:
	ldr	x0, [x25]
	add	w8, w8, w24
	lsl	w1, w8, #3
	bl	_realloc
	str	x0, [x25]
LBB0_4:
	add	w0, w19, #64
	bl	_malloc
	mov	x22, x0
	ldr	x8, [x25]
	sbfiz	x9, x24, #3, #32
	str	x0, [x8, x9]
	ldr	x8, [x23]
	add	x9, x8, #1
	str	x9, [x23]
	str	x8, [x0, #56]
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #24]
	stur	q0, [x0, #40]
	str	w19, [x0]
	str	xzr, [x0, #16]
	ldr	x0, [x0, #8]
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [x22, #8]
	strb	wzr, [x8, w19, sxtw]
	str	x22, [x20]
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_tok_ident,8,3                  ; @tok_ident
	.comm	_SYM_FIRST_ANOM,8,3             ; @SYM_FIRST_ANOM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memory full"

	.comm	_TOK_IDENT,8,3                  ; @TOK_IDENT
	.comm	_TOK_ALLOC_INCR,4,2             ; @TOK_ALLOC_INCR
	.comm	_table_ident,8,3                ; @table_ident
	.no_dead_strip	_tok_alloc_new
.subsections_via_symbols
