// File: /workspace/github_c_makefile_star2_O1/ccxvii[P]mujs/./jserror.c
// Function: jsB_initerror
void jsB_initerror(js_State *J)
{
	js_pushobject(J, J->Error_prototype);
	{
			jsB_props(J, "name", "Error");
			jsB_propf(J, "Error.prototype.toString", Ep_toString, 0);
	}
	js_newcconstructor(J, jsB_Error, jsB_Error, "Error", 1);
	js_defglobal(J, "Error", JS_DONTENUM);

	#define IERROR(NAME) \
		js_pushobject(J, J->NAME##_prototype); \
		jsB_props(J, "name", Q(NAME)); \
		js_newcconstructor(J, jsB_##NAME, jsB_##NAME, Q(NAME), 1); \
		js_defglobal(J, Q(NAME), JS_DONTENUM);

	IERROR(EvalError);
	IERROR(RangeError);
	IERROR(ReferenceError);
	IERROR(SyntaxError);
	IERROR(TypeError);
	IERROR(URIError);

	#undef IERROR
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0xd0(%rdi), %rsi
callq 0x44e7
leaq 0x2af5b(%rip), %r15     # 0x33195
movq %rbx, %rdi
movq %r15, %rsi
callq 0x67c1
leaq 0x2aeee(%rip), %r14     # 0x3313a
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
movl $0x2, %ecx
callq 0x66df
leaq 0x2aed7(%rip), %rsi     # 0x3313f
leaq 0x4be4(%rip), %rdx      # 0xce53
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x4555
leaq 0x4d94(%rip), %rdx      # 0xd014
movq %rbx, %rdi
movq %rdx, %rsi
movq %r15, %rcx
movl $0x1, %r8d
callq 0x6211
movq %rbx, %rdi
movq %r15, %rsi
movl $0x2, %edx
callq 0x648e
movq 0xd8(%rbx), %rsi
movq %rbx, %rdi
callq 0x44e7
leaq 0x2ae9e(%rip), %r15     # 0x33158
movq %rbx, %rdi
movq %r15, %rsi
callq 0x67c1
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
movl $0x2, %ecx
callq 0x66df
leaq 0x4d3f(%rip), %rdx      # 0xd020
movq %rbx, %rdi
movq %rdx, %rsi
movq %r15, %rcx
movl $0x1, %r8d
callq 0x6211
movq %rbx, %rdi
movq %r15, %rsi
movl $0x2, %edx
callq 0x648e
movq 0xe0(%rbx), %rsi
movq %rbx, %rdi
callq 0x44e7
leaq 0x2ae47(%rip), %r15     # 0x33162
movq %rbx, %rdi
movq %r15, %rsi
callq 0x67c1
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
movl $0x2, %ecx
callq 0x66df
leaq 0x4cea(%rip), %rdx      # 0xd02c
movq %rbx, %rdi
movq %rdx, %rsi
movq %r15, %rcx
movl $0x1, %r8d
callq 0x6211
movq %rbx, %rdi
movq %r15, %rsi
movl $0x2, %edx
callq 0x648e
movq 0xe8(%rbx), %rsi
movq %rbx, %rdi
callq 0x44e7
leaq 0x2adf1(%rip), %r15     # 0x3316d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x67c1
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
movl $0x2, %ecx
callq 0x66df
leaq 0x4c95(%rip), %rdx      # 0xd038
movq %rbx, %rdi
movq %rdx, %rsi
movq %r15, %rcx
movl $0x1, %r8d
callq 0x6211
movq %rbx, %rdi
movq %r15, %rsi
movl $0x2, %edx
callq 0x648e
movq 0xf0(%rbx), %rsi
movq %rbx, %rdi
callq 0x44e7
leaq 0x2ad9f(%rip), %r15     # 0x3317c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x67c1
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
movl $0x2, %ecx
callq 0x66df
leaq 0x4c40(%rip), %rdx      # 0xd044
movq %rbx, %rdi
movq %rdx, %rsi
movq %r15, %rcx
movl $0x1, %r8d
callq 0x6211
movq %rbx, %rdi
movq %r15, %rsi
movl $0x2, %edx
callq 0x648e
movq 0xf8(%rbx), %rsi
movq %rbx, %rdi
callq 0x44e7
leaq 0x2ad4a(%rip), %r15     # 0x33188
movq %rbx, %rdi
movq %r15, %rsi
callq 0x67c1
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
movl $0x2, %ecx
callq 0x66df
leaq 0x4beb(%rip), %rdx      # 0xd050
movq %rbx, %rdi
movq %rdx, %rsi
movq %r15, %rcx
movl $0x1, %r8d
callq 0x6211
movq %rbx, %rdi
movq %r15, %rsi
movl $0x2, %edx
callq 0x648e
movq 0x100(%rbx), %rsi
movq %rbx, %rdi
callq 0x44e7
leaq 0x2acf3(%rip), %r15     # 0x33192
movq %rbx, %rdi
movq %r15, %rsi
callq 0x67c1
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
movl $0x2, %ecx
callq 0x66df
leaq 0x4b96(%rip), %rdx      # 0xd05c
movq %rbx, %rdi
movq %rdx, %rsi
movq %r15, %rcx
movl $0x1, %r8d
callq 0x6211
movq %rbx, %rdi
movq %r15, %rsi
movl $0x2, %edx
popq %rbx
popq %r14
popq %r15
jmp 0x648e