// File: /workspace/github_c_makefile_star2_O0/azhai[P]mlite/mlite.c
// Function: new_vec
cell new_vec(cell type, int size) {
	cell	n;
	int	v, wsize;
	char	buf[100];

	wsize = vector_size(size);
	if (Free_vecs + wsize >= Vec_pool_size) {
		gcv();
		while (	Free_vecs + wsize >=
			Vec_pool_size - Vec_pool_size / 2
		) {
			if (	Memory_limit_kn &&
				Vec_pool_size + Vec_segment_size
					> Memory_limit_kn
			) {
				error("hit memory limit", NOEXPR);
				break;
			}
			else {
				new_vec_segment();
				gcv();
				if (Verbose_GC) {
					sprintf(buf,
						"GC: new_vec: new segment,"
						 " cells = %d",
						Vec_pool_size);
					pr(buf); nl();
				}
			}
		}
	}
	if (Free_vecs + wsize >= Vec_pool_size)
		fatal("new_vec: failed to recover from low memory condition");
	v = Free_vecs;
	Free_vecs += wsize;
	n = node3(type, v + RAW_VECTOR_DATA, VECTOR_TAG);
	Vectors[v + RAW_VECTOR_LINK] = n;
	Vectors[v + RAW_VECTOR_INDEX] = 0;
	Vectors[v + RAW_VECTOR_SIZE] = size;
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movslq -0xc(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
shrq $0x3, %rax
addq $0x3, %rax
movl %eax, -0x20(%rbp)
movq 0x23ec8(%rip), %rax     # 0x28688
movslq -0x20(%rbp), %rcx
addq %rcx, %rax
movslq 0x23e32(%rip), %rcx     # 0x28600
cmpq %rcx, %rax
jl 0x48a1
callq 0x4640
movq 0x23ea5(%rip), %rax     # 0x28688
movslq -0x20(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
movl 0x23e09(%rip), %ecx     # 0x28600
movl 0x23e03(%rip), %eax     # 0x28600
movl $0x2, %esi
cltd
idivl %esi
movl %eax, %edx
movq -0x98(%rbp), %rax
subl %edx, %ecx
movslq %ecx, %rcx
cmpq %rcx, %rax
jl 0x489f
cmpq $0x0, 0x23e5c(%rip)     # 0x28680
je 0x4852
movl 0x23dd4(%rip), %eax     # 0x28600
addl 0x23dd2(%rip), %eax     # 0x28604
cltq
cmpq 0x23e45(%rip), %rax     # 0x28680
jle 0x4852
leaq 0x1babe(%rip), %rdi     # 0x20302
movq $-0x8, %rsi
callq 0x34b0
jmp 0x489f
callq 0x3e10
callq 0x4640
cmpl $0x0, 0x2389d(%rip)     # 0x28100
je 0x4898
leaq -0x90(%rbp), %rdi
movl 0x23d8e(%rip), %edx     # 0x28600
leaq 0x1bb18(%rip), %rsi     # 0x20391
movb $0x0, %al
callq 0x3200
leaq -0x90(%rbp), %rdi
callq 0x3ab0
leaq 0x1d140(%rip), %rdi     # 0x219d3
callq 0x3ab0
jmp 0x489a
jmp 0x47dc
jmp 0x48a1
movq 0x23de0(%rip), %rax     # 0x28688
movslq -0x20(%rbp), %rcx
addq %rcx, %rax
movslq 0x23d4a(%rip), %rcx     # 0x28600
cmpq %rcx, %rax
jl 0x48c7
leaq 0x1baf4(%rip), %rdi     # 0x203b6
callq 0x3c70
movq 0x23dba(%rip), %rax     # 0x28688
movl %eax, -0x1c(%rbp)
movslq -0x20(%rbp), %rax
addq 0x23dac(%rip), %rax     # 0x28688
movq %rax, 0x23da5(%rip)     # 0x28688
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %eax
addl $0x3, %eax
movslq %eax, %rsi
movl $0x10, %edx
callq 0x3780
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdx
movq 0x23cef(%rip), %rax     # 0x285f8
movl -0x1c(%rbp), %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x23cdb(%rip), %rax     # 0x285f8
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq $0x0, (%rax,%rcx,8)
movslq -0xc(%rbp), %rdx
movq 0x23cbf(%rip), %rax     # 0x285f8
movl -0x1c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)