// File: menhits[P]phplus/src/PhplusStdLib.cpp
// Function: addToProgEqStr(CppProgram*)
void addToProgEqStr(CppProgram * prog)
{
	if (!prog->hasFunc("$eqStr"))
	{
		string strType=prog->getTypeCode(String);
		
		prog->addFunc("$eqStr", {{strType, "a"}, {strType, "b"}}, "bool",
			"if (a._size != b._size)\n"
			"	return false;\n"
			"for (int i = 0; i < a._size; i++)\n"
			"{\n"
			"	if (a._data[i] != b._data[i])\n"
			"		return false;\n"
			"}\n"
			"return true;\n"
		);
	}
}

// Assembly:
subq $0x238, %rsp            # imm = 0x238
movq %rdi, 0x230(%rsp)
movq 0x230(%rsp), %rax
movq %rax, 0x88(%rsp)
leaq 0x20f(%rsp), %rdi
movq %rdi, 0x90(%rsp)
callq 0xb690
movq 0x90(%rsp), %rdx
leaq 0x827c0(%rip), %rsi     # 0xd51c3
leaq 0x210(%rsp), %rdi
callq 0xb4c0
jmp 0x52a12
movq 0x88(%rsp), %rdi
leaq 0x210(%rsp), %rsi
callq 0x2a8a0
movb %al, 0x87(%rsp)
jmp 0x52a30
movb 0x87(%rsp), %al
xorb $-0x1, %al
movb %al, 0x86(%rsp)
leaq 0x210(%rsp), %rdi
callq 0xb6e8
leaq 0x20f(%rsp), %rdi
callq 0xb3f0
movb 0x86(%rsp), %al
testb $0x1, %al
jne 0x52a6a
jmp 0x52ec3
movq 0x230(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0xc5a8a(%rip), %rsi     # 0x118508
leaq 0x1c8(%rsp), %rdi
movq %rdi, 0x78(%rsp)
callq 0x1a920
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
leaq 0x1d8(%rsp), %rdi
callq 0x285b0
jmp 0x52aa9
leaq 0x1c8(%rsp), %rdi
callq 0x1a950
movq 0x230(%rsp), %rax
movq %rax, 0x60(%rsp)
leaq 0x1a7(%rsp), %rdi
movq %rdi, 0x68(%rsp)
callq 0xb690
movq 0x68(%rsp), %rdx
leaq 0x826e2(%rip), %rsi     # 0xd51c3
leaq 0x1a8(%rsp), %rdi
callq 0xb4c0
jmp 0x52af0
leaq 0xf8(%rsp), %rdi
movq %rdi, 0xf0(%rsp)
leaq 0x82c09(%rip), %rdx     # 0xd5710
leaq 0x1d8(%rsp), %rsi
callq 0x96390
jmp 0x52b16
leaq 0x138(%rsp), %rdi
movq %rdi, 0xf0(%rsp)
leaq 0x8217a(%rip), %rdx     # 0xd4ca7
leaq 0x1d8(%rsp), %rsi
callq 0x96390
jmp 0x52b3c
leaq 0xf8(%rsp), %rax
movq %rax, 0x178(%rsp)
movq $0x2, 0x180(%rsp)
leaq 0xef(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x2f150
movq 0x58(%rsp), %rcx
movq 0x178(%rsp), %rsi
movq 0x180(%rsp), %rdx
leaq 0x188(%rsp), %rdi
callq 0x96080
jmp 0x52b8e
leaq 0xc7(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0xb690
movq 0x50(%rsp), %rdx
leaq 0x7f0f4(%rip), %rsi     # 0xd1ca0
leaq 0xc8(%rsp), %rdi
callq 0xb4c0
jmp 0x52bbb
leaq 0x9f(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0xb690
movq 0x48(%rsp), %rdx
leaq 0x825f1(%rip), %rsi     # 0xd51ca
leaq 0xa0(%rsp), %rdi
callq 0xb4c0
jmp 0x52be8
movq 0x60(%rsp), %rdi
leaq 0x1a8(%rsp), %rsi
leaq 0x188(%rsp), %rdx
leaq 0xc8(%rsp), %rcx
leaq 0xa0(%rsp), %r8
callq 0x2a900
jmp 0x52c14
leaq 0xa0(%rsp), %rdi
callq 0xb6e8
leaq 0x9f(%rsp), %rdi
callq 0xb3f0
leaq 0xc8(%rsp), %rdi
callq 0xb6e8
leaq 0xc7(%rsp), %rdi
callq 0xb3f0
leaq 0x188(%rsp), %rdi
callq 0x2e540
leaq 0xef(%rsp), %rdi
callq 0x33c90
leaq 0xf8(%rsp), %rax
movq %rax, 0x38(%rsp)
addq $0x80, %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
addq $-0x40, %rdi
movq %rdi, 0x30(%rsp)
callq 0x2e470
movq 0x38(%rsp), %rcx
movq 0x30(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x40(%rsp)
jne 0x52c7a
leaq 0x1a8(%rsp), %rdi
callq 0xb6e8
leaq 0x1a7(%rsp), %rdi
callq 0xb3f0
leaq 0x1d8(%rsp), %rdi
callq 0xb6e8
jmp 0x52ec3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x200(%rsp)
movl %eax, 0x1fc(%rsp)
jmp 0x52d04
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x200(%rsp)
movl %eax, 0x1fc(%rsp)
leaq 0x210(%rsp), %rdi
callq 0xb6e8
leaq 0x20f(%rsp), %rdi
callq 0xb3f0
jmp 0x52ecb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x200(%rsp)
movl %eax, 0x1fc(%rsp)
leaq 0x1c8(%rsp), %rdi
callq 0x1a950
jmp 0x52ecb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x200(%rsp)
movl %eax, 0x1fc(%rsp)
jmp 0x52ea7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x200(%rsp)
movl %eax, 0x1fc(%rsp)
movq 0xf0(%rsp), %rax
leaq 0xf8(%rsp), %rcx
cmpq %rax, %rcx
movq %rax, 0x28(%rsp)
je 0x52dad
movq 0x28(%rsp), %rdi
addq $-0x40, %rdi
movq %rdi, 0x20(%rsp)
callq 0x2e470
movq 0x20(%rsp), %rax
leaq 0xf8(%rsp), %rcx
cmpq %rcx, %rax
movq %rax, 0x28(%rsp)
jne 0x52d83
jmp 0x52e9a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x200(%rsp)
movl %eax, 0x1fc(%rsp)
jmp 0x52e4c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x200(%rsp)
movl %eax, 0x1fc(%rsp)
jmp 0x52e32
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x200(%rsp)
movl %eax, 0x1fc(%rsp)
jmp 0x52e18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x200(%rsp)
movl %eax, 0x1fc(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0xb6e8
leaq 0x9f(%rsp), %rdi
callq 0xb3f0
leaq 0xc8(%rsp), %rdi
callq 0xb6e8
leaq 0xc7(%rsp), %rdi
callq 0xb3f0
leaq 0x188(%rsp), %rdi
callq 0x2e540
leaq 0xef(%rsp), %rdi
callq 0x33c90
leaq 0xf8(%rsp), %rax
movq %rax, 0x10(%rsp)
addq $0x80, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
addq $-0x40, %rdi
movq %rdi, 0x8(%rsp)
callq 0x2e470
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x18(%rsp)
jne 0x52e71
jmp 0x52e9a
leaq 0x1a8(%rsp), %rdi
callq 0xb6e8
leaq 0x1a7(%rsp), %rdi
callq 0xb3f0
leaq 0x1d8(%rsp), %rdi
callq 0xb6e8
jmp 0x52ecb
addq $0x238, %rsp            # imm = 0x238
retq
movq 0x200(%rsp), %rdi
callq 0xb680
nopl (%rax,%rax)