// File: /workspace/github_c_makefile_star2_O0/ccxvii[P]mujs/./jscompile.c
// Function: cfunbody
static void cfunbody(JF, js_Ast *name, js_Ast *params, js_Ast *body, int is_fun_exp)
{
	F->lightweight = 1;
	F->arguments = 0;

	if (F->script)
		F->lightweight = 0;

	/* Check if first statement is 'use strict': */
	if (body && body->type == AST_LIST && body->a && body->a->type == EXP_STRING)
		if (!strcmp(body->a->string, "use strict"))
			F->strict = 1;

	F->lastline = F->line;

	cparams(J, F, params, name);

	if (body) {
		cvardecs(J, F, body);
		cfundecs(J, F, body);
	}

	if (name) {
		checkfutureword(J, F, name);
		if (is_fun_exp) {
			if (findlocal(J, F, name->string) < 0) {
				/* TODO: make this binding immutable! */
				emit(J, F, OP_CURRENT);
				emit(J, F, OP_SETLOCAL);
				emitarg(J, F, addlocal(J, F, name, 1));
				emit(J, F, OP_POP);
			}
		}
	}

	if (F->script) {
		emit(J, F, OP_UNDEF);
		cstmlist(J, F, body);
		emit(J, F, OP_RETURN);
	} else {
		cstmlist(J, F, body);
		emit(J, F, OP_UNDEF);
		emit(J, F, OP_RETURN);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movl $0x1, 0xc(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x14(%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0x1e9cb
movq -0x10(%rbp), %rax
movl $0x0, 0xc(%rax)
cmpq $0x0, -0x28(%rbp)
je 0x1ea1d
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x1ea1d
movq -0x28(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x1ea1d
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
cmpl $0x5, (%rax)
jne 0x1ea1d
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x38(%rax), %rdi
leaq 0x1da4f(%rip), %rsi     # 0x3c455
callq 0x32d0
cmpl $0x0, %eax
jne 0x1ea1b
movq -0x10(%rbp), %rax
movl $0x1, 0x10(%rax)
jmp 0x1ea1d
movq -0x10(%rbp), %rax
movl 0x58(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x5c(%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rcx
callq 0x1eba0
cmpq $0x0, -0x28(%rbp)
je 0x1ea69
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x1ec20
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x1ed50
cmpq $0x0, -0x18(%rbp)
je 0x1eb15
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x1ee80
cmpl $0x0, -0x2c(%rbp)
je 0x1eb13
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdx
callq 0x1ef20
cmpl $0x0, %eax
jge 0x1eb11
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x12, %edx
callq 0x1ef90
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x14, %edx
callq 0x1ef90
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl $0x1, %ecx
callq 0x1f000
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl %eax, %edx
callq 0x1efd0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
xorl %edx, %edx
callq 0x1ef90
jmp 0x1eb13
jmp 0x1eb15
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0x1eb56
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0xd, %edx
callq 0x1ef90
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x1f1e0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x54, %edx
callq 0x1ef90
jmp 0x1eb8b
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x1f1e0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0xd, %edx
callq 0x1ef90
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x54, %edx
callq 0x1ef90
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)