// File: /workspace/github_c_makefile_star2_O1/ccxvii[P]mujs/./jsstring.c
// Function: jsB_initstring
void jsB_initstring(js_State *J)
{
	J->String_prototype->u.s.shrstr[0] = 0;
	J->String_prototype->u.s.string = J->String_prototype->u.s.shrstr;
	J->String_prototype->u.s.length = 0;

	js_pushobject(J, J->String_prototype);
	{
		jsB_propf(J, "String.prototype.toString", Sp_toString, 0);
		jsB_propf(J, "String.prototype.valueOf", Sp_valueOf, 0);
		jsB_propf(J, "String.prototype.charAt", Sp_charAt, 1);
		jsB_propf(J, "String.prototype.charCodeAt", Sp_charCodeAt, 1);
		jsB_propf(J, "String.prototype.concat", Sp_concat, 0); /* 1 */
		jsB_propf(J, "String.prototype.indexOf", Sp_indexOf, 1);
		jsB_propf(J, "String.prototype.lastIndexOf", Sp_lastIndexOf, 1);
		jsB_propf(J, "String.prototype.localeCompare", Sp_localeCompare, 1);
		jsB_propf(J, "String.prototype.match", Sp_match, 1);
		jsB_propf(J, "String.prototype.replace", Sp_replace, 2);
		jsB_propf(J, "String.prototype.search", Sp_search, 1);
		jsB_propf(J, "String.prototype.slice", Sp_slice, 2);
		jsB_propf(J, "String.prototype.split", Sp_split, 2);
		jsB_propf(J, "String.prototype.substring", Sp_substring, 2);
		jsB_propf(J, "String.prototype.toLowerCase", Sp_toLowerCase, 0);
		jsB_propf(J, "String.prototype.toLocaleLowerCase", Sp_toLowerCase, 0);
		jsB_propf(J, "String.prototype.toUpperCase", Sp_toUpperCase, 0);
		jsB_propf(J, "String.prototype.toLocaleUpperCase", Sp_toUpperCase, 0);

		/* ES5 */
		jsB_propf(J, "String.prototype.trim", Sp_trim, 0);
	}
	js_newcconstructor(J, jsB_String, jsB_new_String, "String", 0); /* 1 */
	{
		jsB_propf(J, "String.fromCharCode", S_fromCharCode, 0); /* 1 */
	}
	js_defglobal(J, "String", JS_DONTENUM);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xb8(%rdi), %rax
movb $0x0, 0x30(%rax)
movq 0xb8(%rdi), %rax
leaq 0x30(%rax), %rcx
movq %rcx, 0x28(%rax)
movq 0xb8(%rdi), %rax
movl $0x0, 0x20(%rax)
movq 0xb8(%rdi), %rsi
callq 0x44e7
leaq 0x2bdda(%rip), %rsi     # 0x3384a
leaq 0x10e18(%rip), %rdx     # 0x1888f
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x4555
leaq 0x2bddc(%rip), %rsi     # 0x33864
leaq 0x10e58(%rip), %rdx     # 0x188e7
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x4555
leaq 0x2bddd(%rip), %rsi     # 0x3387d
leaq 0x10e98(%rip), %rdx     # 0x1893f
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x4555
leaq 0x2bdda(%rip), %rsi     # 0x33895
leaq 0x10ef0(%rip), %rdx     # 0x189b2
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x4555
leaq 0x2bddb(%rip), %rsi     # 0x338b1
leaq 0x10f1c(%rip), %rdx     # 0x189f9
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x4555
leaq 0x2bddb(%rip), %rsi     # 0x338c9
leaq 0x11058(%rip), %rdx     # 0x18b4d
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x4555
leaq 0x2bdd9(%rip), %rsi     # 0x338e2
leaq 0x1111f(%rip), %rdx     # 0x18c2f
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x4555
leaq 0x2bddb(%rip), %rsi     # 0x338ff
leaq 0x1122a(%rip), %rdx     # 0x18d55
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x4555
leaq 0x2bddf(%rip), %rsi     # 0x3391e
leaq 0x1126d(%rip), %rdx     # 0x18db3
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x4555
leaq 0x2bddb(%rip), %rsi     # 0x33935
leaq 0x1145f(%rip), %rdx     # 0x18fc0
movq %rbx, %rdi
movl $0x2, %ecx
callq 0x4555
leaq 0x2bdd9(%rip), %rsi     # 0x3394e
leaq 0x11488(%rip), %rdx     # 0x19004
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x4555
leaq 0x2bdd6(%rip), %rsi     # 0x33966
leaq 0x11587(%rip), %rdx     # 0x1911e
movq %rbx, %rdi
movl $0x2, %ecx
callq 0x4555
leaq 0x2bdd2(%rip), %rsi     # 0x3397d
leaq 0x11647(%rip), %rdx     # 0x191f9
movq %rbx, %rdi
movl $0x2, %ecx
callq 0x4555
leaq 0x2bdce(%rip), %rsi     # 0x33994
leaq 0x11ae6(%rip), %rdx     # 0x196b3
movq %rbx, %rdi
movl $0x2, %ecx
callq 0x4555
leaq 0x2bdce(%rip), %rsi     # 0x339af
leaq 0x11b95(%rip), %r14     # 0x1977d
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x4555
leaq 0x2bdd0(%rip), %rsi     # 0x339cc
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x4555
leaq 0x2bddf(%rip), %rsi     # 0x339ef
leaq 0x11d68(%rip), %r14     # 0x1997f
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x4555
leaq 0x2bde1(%rip), %rsi     # 0x33a0c
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x4555
leaq 0x2bdf0(%rip), %rsi     # 0x33a2f
leaq 0x11f3b(%rip), %rdx     # 0x19b81
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x4555
leaq 0x11f95(%rip), %rsi     # 0x19bec
leaq 0x11fec(%rip), %rdx     # 0x19c4a
leaq 0x2b104(%rip), %r14     # 0x32d69
movq %rbx, %rdi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x6211
leaq 0x2bdcb(%rip), %rsi     # 0x33a45
leaq 0x12032(%rip), %rdx     # 0x19cb3
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x4555
movq %rbx, %rdi
movq %r14, %rsi
movl $0x2, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x648e