// File: /workspace/github_c_makefile_star2_O0/ccxvii[P]mujs/./jscompile.c
// Function: addlocal
static int addlocal(JF, js_Ast *ident, int reuse)
{
	const char *name = ident->string;
	if (F->strict) {
		if (!strcmp(name, "arguments"))
			jsC_error(J, ident, "redefining 'arguments' is not allowed in strict mode");
		if (!strcmp(name, "eval"))
			jsC_error(J, ident, "redefining 'eval' is not allowed in strict mode");
	} else {
		if (!strcmp(name, "eval"))
			js_evalerror(J, "%s:%d: invalid use of 'eval'", J->filename, ident->line);
	}
	if (reuse || F->strict) {
		int i;
		for (i = 0; i < F->varlen; ++i) {
			if (!strcmp(F->vartab[i], name)) {
				if (reuse)
					return i+1;
				if (F->strict)
					jsC_error(J, ident, "duplicate formal parameter '%s'", name);
			}
		}
	}
	if (F->varlen >= F->varcap) {
		F->varcap = F->varcap ? F->varcap * 2 : 16;
		F->vartab = js_realloc(J, F->vartab, F->varcap * sizeof *F->vartab);
	}
	F->vartab[F->varlen] = name;
	return ++F->varlen;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x1f085
movq -0x30(%rbp), %rdi
leaq 0x1d507(%rip), %rsi     # 0x3c53f
callq 0x32d0
cmpl $0x0, %eax
jne 0x1f058
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq 0x1d4f8(%rip), %rdx     # 0x3c549
movb $0x0, %al
callq 0x8b80
movq -0x30(%rbp), %rdi
leaq 0x1d51b(%rip), %rsi     # 0x3c57e
callq 0x32d0
cmpl $0x0, %eax
jne 0x1f083
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq 0x1d507(%rip), %rdx     # 0x3c583
movb $0x0, %al
callq 0x8b80
jmp 0x1f0bd
movq -0x30(%rbp), %rdi
leaq 0x1d4ee(%rip), %rsi     # 0x3c57e
callq 0x32d0
cmpl $0x0, %eax
jne 0x1f0bb
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdx
movq -0x20(%rbp), %rax
movl 0x4(%rax), %ecx
leaq 0x1d4ff(%rip), %rsi     # 0x3c5b3
movb $0x0, %al
callq 0xbc10
jmp 0x1f0bd
cmpl $0x0, -0x24(%rbp)
jne 0x1f0cd
movq -0x18(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x1f147
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0x4c(%rcx), %eax
jge 0x1f145
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x30(%rbp), %rsi
callq 0x32d0
cmpl $0x0, %eax
jne 0x1f138
cmpl $0x0, -0x24(%rbp)
je 0x1f112
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x1f1d5
movq -0x18(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x1f136
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x30(%rbp), %rcx
leaq 0x1d4a1(%rip), %rdx     # 0x3c5d0
movb $0x0, %al
callq 0x8b80
jmp 0x1f138
jmp 0x1f13a
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x1f0d4
jmp 0x1f147
movq -0x18(%rbp), %rax
movl 0x4c(%rax), %eax
movq -0x18(%rbp), %rcx
cmpl 0x48(%rcx), %eax
jl 0x1f1ad
movq -0x18(%rbp), %rax
cmpl $0x0, 0x48(%rax)
je 0x1f16f
movq -0x18(%rbp), %rax
movl 0x48(%rax), %eax
shll %eax
movl %eax, -0x38(%rbp)
jmp 0x1f179
movl $0x10, %eax
movl %eax, -0x38(%rbp)
jmp 0x1f179
movl -0x38(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x48(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rsi
movq -0x18(%rbp), %rax
movslq 0x48(%rax), %rax
shlq $0x3, %rax
movl %eax, %edx
callq 0xda20
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x30(%rbp), %rdx
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rcx
movslq 0x4c(%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rcx
movl 0x4c(%rcx), %eax
addl $0x1, %eax
movl %eax, 0x4c(%rcx)
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nop