// File: /workspace/github_c_makefile_star2_O2/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), %r14
movq (%rdi), %rsi
movl 0x18(%rdi), %edx
leaq 0x1e178(%rip), %rdi     # 0x22a4e
xorl %eax, %eax
callq 0x4120
cmpl $0x0, 0x10(%rbx)
je 0x48ef
leaq 0x1e2e8(%rip), %rdi     # 0x22bd2
callq 0x40a0
cmpl $0x0, 0xc(%rbx)
je 0x4901
leaq 0x1e2de(%rip), %rdi     # 0x22bda
callq 0x40a0
cmpl $0x0, 0x14(%rbx)
je 0x4913
leaq 0x1e2d9(%rip), %rdi     # 0x22be7
callq 0x40a0
leaq (%r12,%r14,2), %rbp
movq 0x50(%rbx), %rsi
movl 0x58(%rbx), %edx
leaq 0x1e131(%rip), %rdi     # 0x22a56
xorl %eax, %eax
callq 0x4120
leaq 0x1e132(%rip), %r14     # 0x22a65
xorl %r15d, %r15d
movslq 0x3c(%rbx), %rax
cmpq %rax, %r15
jge 0x495c
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
jmp 0x4936
leaq 0x1e113(%rip), %r14     # 0x22a76
xorl %r15d, %r15d
movslq 0x4c(%rbx), %rax
cmpq %rax, %r15
jge 0x4989
movq 0x40(%rbx), %rax
movq (%rax,%r15,8), %rdx
incq %r15
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x4120
jmp 0x4966
leaq 0x281b3(%rip), %rdi     # 0x2cb43
callq 0x40a0
leaq 0x1d668(%rip), %r14     # 0x22004
cmpq %rbp, %r12
jae 0x4adb
movzwl (%r12), %edx
leaq 0x4(%r12), %r13
movzwl 0x2(%r12), %r15d
movq %r13, %rsi
subq 0x20(%rbx), %rsi
shrq %rsi
addl $-0x2, %esi
leaq 0x1e0bb(%rip), %rdi     # 0x22a84
xorl %eax, %eax
callq 0x4120
leaq 0x34789(%rip), %rax     # 0x39160
movq (%rax,%r15,8), %rdi
callq 0x5115
leal -0x6(%r15), %eax
cmpl $0x24, %eax
ja 0x4a0d
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
movq 0x4(%r12), %r13
addq $0xc, %r12
pushq $0x20
popq %rdi
callq 0x4040
movq %r13, %rdi
callq 0x5115
jmp 0x4a56
addl $-0x44, %r15d
cmpl $0xf, %r15d
ja 0x4a59
movl $0xe041, %eax           # imm = 0xE041
btl %r15d, %eax
jae 0x4a69
movzwl 0x4(%r12), %esi
addq $0x6, %r12
leaq 0x1e05c(%rip), %rdi     # 0x22a8f
jmp 0x4a4f
movq 0x40(%rbx), %rax
movzwl 0x4(%r12), %ecx
addq $0x6, %r12
movq -0x8(%rax,%rcx,8), %rsi
leaq 0x2663a(%rip), %rdi     # 0x2b089
xorl %eax, %eax
callq 0x4120
movq %r12, %r13
pushq $0xa
popq %rdi
callq 0x4040
movq %r13, %r12
jmp 0x499c
cmpl $0x8, %r15d
je 0x49f2
jmp 0x4a59
pushq $0x20
popq %rdi
callq 0x4040
movq 0x4(%r12), %rdi
movzwl 0xc(%r12), %esi
addq $0xe, %r12
callq 0x5b67
jmp 0x4a56
movq 0x4(%r12), %r13
addq $0xc, %r12
pushq $0x20
popq %rdi
callq 0x4040
movq %r13, %rdi
callq 0x59c8
jmp 0x4a56
movsd 0x4(%r12), %xmm0
addq $0xc, %r12
leaq 0x1dbd7(%rip), %rdi     # 0x22693
movb $0x1, %al
callq 0x4120
jmp 0x4a56
movzwl 0x4(%r12), %esi
addq $0x6, %r12
addq $-0x8000, %rsi          # imm = 0x8000
jmp 0x4a2c
leaq 0x2707e(%rip), %rdi     # 0x2bb60
callq 0x40a0
leaq 0x1dfa6(%rip), %r14     # 0x22a94
xorl %r15d, %r15d
movslq 0x3c(%rbx), %rax
cmpq %rax, %r15
jge 0x4b23
movq 0x30(%rbx), %rax
cmpq %rbx, (%rax,%r15,8)
je 0x4b1e
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x4120
movq 0x30(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x48b3
incq %r15
jmp 0x4af1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq