// File: /workspace/github_c_makefile_star2_O1/ArtifexSoftware[P]mujs/pp.c
// Function: jsC_dumpfunction
static void jsC_dumpfunction(js_State *J, js_Function *F)
{
	js_Instruction *p = F->code;
	js_Instruction *end = F->code + F->codelen;
	char *s;
	double n;
	int i;

	printf("%s(%d)\n", F->name, F->numparams);
	if (F->strict) printf("\tstrict\n");
	if (F->lightweight) printf("\tlightweight\n");
	if (F->arguments) printf("\targuments\n");
	printf("\tsource %s:%d\n", F->filename, F->line);
	for (i = 0; i < F->funlen; ++i)
		printf("\tfunction %d %s\n", i, F->funtab[i]->name);
	for (i = 0; i < F->varlen; ++i)
		printf("\tlocal %d %s\n", i + 1, F->vartab[i]);

	printf("{\n");
	while (p < end) {
		int ln = *p++;
		int c = *p++;

		printf("%5d(%3d): ", (int)(p - F->code) - 2, ln);
		ps(opname[c]);

		switch (c) {
		case OP_INTEGER:
			printf(" %ld", (long)((*p++) - 32768));
			break;
		case OP_NUMBER:
			memcpy(&n, p, sizeof(n));
			p += sizeof(n) / sizeof(*p);
			printf(" %.9g", n);
			break;
		case OP_STRING:
			memcpy(&s, p, sizeof(s));
			p += sizeof(s) / sizeof(*p);
			pc(' ');
			pstr(s);
			break;
		case OP_NEWREGEXP:
			pc(' ');
			memcpy(&s, p, sizeof(s));
			p += sizeof(s) / sizeof(*p);
			pregexp(s, *p++);
			break;

		case OP_GETVAR:
		case OP_HASVAR:
		case OP_SETVAR:
		case OP_DELVAR:
		case OP_GETPROP_S:
		case OP_SETPROP_S:
		case OP_DELPROP_S:
		case OP_CATCH:
			memcpy(&s, p, sizeof(s));
			p += sizeof(s) / sizeof(*p);
			pc(' ');
			ps(s);
			break;

		case OP_GETLOCAL:
		case OP_SETLOCAL:
		case OP_DELLOCAL:
			printf(" %s", F->vartab[*p++ - 1]);
			break;

		case OP_CLOSURE:
		case OP_CALL:
		case OP_NEW:
		case OP_JUMP:
		case OP_JTRUE:
		case OP_JFALSE:
		case OP_JCASE:
		case OP_TRY:
			printf(" %ld", (long)*p++);
			break;
		}

		putchar('\n');
	}
	printf("}\n");

	for (i = 0; i < F->funlen; ++i) {
		if (F->funtab[i] != F) {
			printf("function %d ", i);
			jsC_dumpfunction(J, F->funtab[i]);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %r12
movslq 0x2c(%rdi), %r13
movq (%rdi), %rsi
movl 0x18(%rdi), %edx
leaq 0x2a11d(%rip), %rdi     # 0x2ea57
xorl %eax, %eax
callq 0x4120
cmpl $0x0, 0x10(%rbx)
je 0x4953
leaq 0x2a28d(%rip), %rdi     # 0x2ebdb
callq 0x40a0
cmpl $0x0, 0xc(%rbx)
je 0x4965
leaq 0x2a283(%rip), %rdi     # 0x2ebe3
callq 0x40a0
cmpl $0x0, 0x14(%rbx)
je 0x4977
leaq 0x2a27e(%rip), %rdi     # 0x2ebf0
callq 0x40a0
movq 0x50(%rbx), %rsi
movl 0x58(%rbx), %edx
leaq 0x2a0da(%rip), %rdi     # 0x2ea5f
xorl %eax, %eax
callq 0x4120
cmpl $0x0, 0x3c(%rbx)
jle 0x49c0
leaq 0x2a0d5(%rip), %r14     # 0x2ea6e
xorl %r15d, %r15d
movq 0x30(%rbx), %rax
movq (%rax,%r15,8), %rax
movq (%rax), %rdx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x4120
incq %r15
movslq 0x3c(%rbx), %rax
cmpq %rax, %r15
jl 0x499c
cmpl $0x0, 0x4c(%rbx)
jle 0x49f1
leaq 0x2a0b2(%rip), %r14     # 0x2ea7f
xorl %r15d, %r15d
movq 0x40(%rbx), %rax
movq (%rax,%r15,8), %rdx
incq %r15
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x4120
movslq 0x4c(%rbx), %rax
cmpq %rax, %r15
jl 0x49d0
leaq 0x34150(%rip), %rdi     # 0x38b48
callq 0x40a0
testl %r13d, %r13d
jle 0x4b6d
leaq (%r12,%r13,2), %r13
leaq 0x295f3(%rip), %r15     # 0x2e004
movzwl (%r12), %edx
leaq 0x4(%r12), %rbp
movzwl 0x2(%r12), %r14d
movq %rbp, %rsi
subq 0x20(%rbx), %rsi
shrq %rsi
addl $-0x2, %esi
leaq 0x2a058(%rip), %rdi     # 0x2ea8d
xorl %eax, %eax
callq 0x4120
leaq 0x3e71d(%rip), %rax     # 0x43160
movq (%rax,%r14,8), %rdi
movq 0x3f58a(%rip), %rax     # 0x43fd8
movq (%rax), %rsi
callq 0x4170
leal -0x6(%r14), %eax
cmpl $0x24, %eax
ja 0x4a8f
movslq (%r15,%rax,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x4(%r12), %rbp
addq $0xc, %r12
movl $0x20, %edi
callq 0x4040
movq 0x3f556(%rip), %rax     # 0x43fd8
movq (%rax), %rsi
movq %rbp, %rdi
callq 0x4170
jmp 0x4ad8
addl $-0x44, %r14d
cmpl $0xf, %r14d
ja 0x4adb
movl $0xe041, %eax           # imm = 0xE041
btl %r14d, %eax
jae 0x4af3
movzwl 0x4(%r12), %esi
addq $0x6, %r12
leaq 0x29fe3(%rip), %rdi     # 0x2ea98
jmp 0x4ad1
movq 0x40(%rbx), %rax
movzwl 0x4(%r12), %ecx
addq $0x6, %r12
movq -0x8(%rax,%rcx,8), %rsi
leaq 0x325c8(%rip), %rdi     # 0x37099
xorl %eax, %eax
callq 0x4120
movq %r12, %rbp
movl $0xa, %edi
callq 0x4040
movq %rbp, %r12
cmpq %r13, %rbp
jb 0x4a11
jmp 0x4b6d
cmpl $0x8, %r14d
je 0x4a68
jmp 0x4adb
movl $0x20, %edi
callq 0x4040
movq 0x4(%r12), %rdi
movzwl 0xc(%r12), %esi
addq $0xe, %r12
callq 0x5e99
jmp 0x4ad8
movq 0x4(%r12), %rbp
addq $0xc, %r12
movl $0x20, %edi
callq 0x4040
movq %rbp, %rdi
callq 0x5d0f
jmp 0x4ad8
movsd 0x4(%r12), %xmm0
addq $0xc, %r12
leaq 0x29b4e(%rip), %rdi     # 0x2e69c
movb $0x1, %al
callq 0x4120
jmp 0x4ad8
movzwl 0x4(%r12), %esi
addq $0x6, %r12
addq $-0x8000, %rsi          # imm = 0x8000
jmp 0x4aae
leaq 0x32ff1(%rip), %rdi     # 0x37b65
callq 0x40a0
cmpl $0x0, 0x3c(%rbx)
jle 0x4bb9
leaq 0x29f17(%rip), %r14     # 0x2ea9d
xorl %r15d, %r15d
movq 0x30(%rbx), %rax
cmpq %rbx, (%rax,%r15,8)
je 0x4bad
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x4120
movq 0x30(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x4917
incq %r15
movslq 0x3c(%rbx), %rax
cmpq %rax, %r15
jl 0x4b89
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq