// File: /workspace/github_c_makefile_star2_O3/ArtifexSoftware[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 0x4487
leaq 0x2becf(%rip), %rsi     # 0x3387a
leaq 0x109b5(%rip), %rdx     # 0x18367
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x44f5
leaq 0x2bed1(%rip), %rsi     # 0x33894
leaq 0x109f5(%rip), %rdx     # 0x183bf
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x44f5
leaq 0x2bed2(%rip), %rsi     # 0x338ad
leaq 0x10a35(%rip), %rdx     # 0x18417
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x44f5
leaq 0x2becf(%rip), %rsi     # 0x338c5
leaq 0x10a8d(%rip), %rdx     # 0x1848a
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x44f5
leaq 0x2bed0(%rip), %rsi     # 0x338e1
leaq 0x10ab9(%rip), %rdx     # 0x184d1
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x44f5
leaq 0x2bed0(%rip), %rsi     # 0x338f9
leaq 0x10bf5(%rip), %rdx     # 0x18625
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x44f5
leaq 0x2bece(%rip), %rsi     # 0x33912
leaq 0x10cbc(%rip), %rdx     # 0x18707
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x44f5
leaq 0x2bed0(%rip), %rsi     # 0x3392f
leaq 0x10dc7(%rip), %rdx     # 0x1882d
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x44f5
leaq 0x2bed4(%rip), %rsi     # 0x3394e
leaq 0x10e0a(%rip), %rdx     # 0x1888b
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x44f5
leaq 0x2bed0(%rip), %rsi     # 0x33965
leaq 0x10fd0(%rip), %rdx     # 0x18a6c
movq %rbx, %rdi
movl $0x2, %ecx
callq 0x44f5
leaq 0x2bece(%rip), %rsi     # 0x3397e
leaq 0x10ff9(%rip), %rdx     # 0x18ab0
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x44f5
leaq 0x2becb(%rip), %rsi     # 0x33996
leaq 0x110f1(%rip), %rdx     # 0x18bc3
movq %rbx, %rdi
movl $0x2, %ecx
callq 0x44f5
leaq 0x2bec7(%rip), %rsi     # 0x339ad
leaq 0x111b1(%rip), %rdx     # 0x18c9e
movq %rbx, %rdi
movl $0x2, %ecx
callq 0x44f5
leaq 0x2bec3(%rip), %rsi     # 0x339c4
leaq 0x11657(%rip), %rdx     # 0x1915f
movq %rbx, %rdi
movl $0x2, %ecx
callq 0x44f5
leaq 0x2bec3(%rip), %rsi     # 0x339df
leaq 0x11706(%rip), %r14     # 0x19229
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x44f5
leaq 0x2bec5(%rip), %rsi     # 0x339fc
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x44f5
leaq 0x2bed4(%rip), %rsi     # 0x33a1f
leaq 0x1193d(%rip), %r14     # 0x1948f
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x44f5
leaq 0x2bed6(%rip), %rsi     # 0x33a3c
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x44f5
leaq 0x2bee5(%rip), %rsi     # 0x33a5f
leaq 0x11b6c(%rip), %rdx     # 0x196ed
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x44f5
leaq 0x11bc6(%rip), %rsi     # 0x19758
leaq 0x11c1d(%rip), %rdx     # 0x197b6
leaq 0x2b1f9(%rip), %r14     # 0x32d99
movq %rbx, %rdi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x6162
leaq 0x2bec0(%rip), %rsi     # 0x33a75
leaq 0x11c63(%rip), %rdx     # 0x1981f
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x44f5
movq %rbx, %rdi
movq %r14, %rsi
movl $0x2, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x63d9