// File: /workspace/github_c_makefile_star2_O3/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 0x29104(%rip), %rdi     # 0x2da4e
xorl %eax, %eax
callq 0x4120
cmpl $0x0, 0x10(%rbx)
je 0x4963
leaq 0x29274(%rip), %rdi     # 0x2dbd2
callq 0x40a0
cmpl $0x0, 0xc(%rbx)
je 0x4975
leaq 0x2926a(%rip), %rdi     # 0x2dbda
callq 0x40a0
cmpl $0x0, 0x14(%rbx)
je 0x4987
leaq 0x29265(%rip), %rdi     # 0x2dbe7
callq 0x40a0
movq 0x50(%rbx), %rsi
movl 0x58(%rbx), %edx
leaq 0x290c1(%rip), %rdi     # 0x2da56
xorl %eax, %eax
callq 0x4120
cmpl $0x0, 0x3c(%rbx)
jle 0x49d0
leaq 0x290bc(%rip), %r14     # 0x2da65
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 0x49ac
cmpl $0x0, 0x4c(%rbx)
jle 0x4a01
leaq 0x29099(%rip), %r14     # 0x2da76
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 0x49e0
leaq 0x33170(%rip), %rdi     # 0x37b78
callq 0x40a0
testl %r13d, %r13d
jle 0x4b7d
leaq (%r12,%r13,2), %r13
leaq 0x285e3(%rip), %r15     # 0x2d004
movzwl (%r12), %edx
leaq 0x4(%r12), %rbp
movzwl 0x2(%r12), %r14d
movq %rbp, %rsi
subq 0x20(%rbx), %rsi
shrq %rsi
addl $-0x2, %esi
leaq 0x2903f(%rip), %rdi     # 0x2da84
xorl %eax, %eax
callq 0x4120
leaq 0x3d70d(%rip), %rax     # 0x42160
movq (%rax,%r14,8), %rdi
movq 0x3e57a(%rip), %rax     # 0x42fd8
movq (%rax), %rsi
callq 0x4170
leal -0x6(%r14), %eax
cmpl $0x24, %eax
ja 0x4a9f
movslq (%r15,%rax,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x4(%r12), %rbp
addq $0xc, %r12
movl $0x20, %edi
callq 0x4040
movq 0x3e546(%rip), %rax     # 0x42fd8
movq (%rax), %rsi
movq %rbp, %rdi
callq 0x4170
jmp 0x4ae8
addl $-0x44, %r14d
cmpl $0xf, %r14d
ja 0x4aeb
movl $0xe041, %eax           # imm = 0xE041
btl %r14d, %eax
jae 0x4b03
movzwl 0x4(%r12), %esi
addq $0x6, %r12
leaq 0x28fca(%rip), %rdi     # 0x2da8f
jmp 0x4ae1
movq 0x40(%rbx), %rax
movzwl 0x4(%r12), %ecx
addq $0x6, %r12
movq -0x8(%rax,%rcx,8), %rsi
leaq 0x315e8(%rip), %rdi     # 0x360c9
xorl %eax, %eax
callq 0x4120
movq %r12, %rbp
movl $0xa, %edi
callq 0x4040
movq %rbp, %r12
cmpq %r13, %rbp
jb 0x4a21
jmp 0x4b7d
cmpl $0x8, %r14d
je 0x4a78
jmp 0x4aeb
movl $0x20, %edi
callq 0x4040
movq 0x4(%r12), %rdi
movzwl 0xc(%r12), %esi
addq $0xe, %r12
callq 0x5ec0
jmp 0x4ae8
movq 0x4(%r12), %rbp
addq $0xc, %r12
movl $0x20, %edi
callq 0x4040
movq %rbp, %rdi
callq 0x5d36
jmp 0x4ae8
movsd 0x4(%r12), %xmm0
addq $0xc, %r12
leaq 0x28b35(%rip), %rdi     # 0x2d693
movb $0x1, %al
callq 0x4120
jmp 0x4ae8
movzwl 0x4(%r12), %esi
addq $0x6, %r12
addq $-0x8000, %rsi          # imm = 0x8000
jmp 0x4abe
leaq 0x32011(%rip), %rdi     # 0x36b95
callq 0x40a0
movl 0x3c(%rbx), %eax
testl %eax, %eax
jle 0x4bcc
leaq 0x28efd(%rip), %r14     # 0x2da94
xorl %r15d, %r15d
movq 0x30(%rbx), %rcx
cmpq %rbx, (%rcx,%r15,8)
je 0x4bc1
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x4120
movq 0x30(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x4927
movl 0x3c(%rbx), %eax
incq %r15
movslq %eax, %rcx
cmpq %rcx, %r15
jl 0x4b9a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq