// File: /workspace/github_cpp_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x130, %rsp            # imm = 0x130
movq %rdi, %rbx
leaq 0xc0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x4a0c7(%rip), %rsi     # 0x7a897
leaq 0x4a0c6(%rip), %rdx     # 0x7a89d
leaq 0xb0(%rsp), %rdi
callq 0xdfa8
leaq 0xb0(%rsp), %rsi
movq %rbx, %rdi
callq 0x1cb42
movl %eax, %ebp
movq 0xb0(%rsp), %rdi
cmpq %r14, %rdi
je 0x30808
callq 0xa2b0
testb %bpl, %bpl
jne 0x309c4
leaq 0x69c48(%rip), %rax     # 0x9a460
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x30843
movq 0x69773(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x3083f
incl 0x8(%rax)
jmp 0x30843
lock
incl 0x8(%rax)
leaq 0x90(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %rbx, %rsi
callq 0x1aab2
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x30867
callq 0xdce4
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x4a01d(%rip), %rsi     # 0x7a897
leaq 0x4a01c(%rip), %rdx     # 0x7a89d
leaq 0x70(%rsp), %rdi
callq 0xdfa8
leaq 0x4a540(%rip), %rdx     # 0x7add2
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x4f22e
leaq 0xf0(%rsp), %rdi
leaq 0x49ac5(%rip), %rdx     # 0x7a37b
leaq 0x90(%rsp), %rsi
callq 0x4f22e
leaq 0x18(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x2, %edx
callq 0x4f06a
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x473e1(%rip), %rsi     # 0x77cd0
leaq 0x473de(%rip), %rdx     # 0x77cd4
leaq 0x50(%rsp), %rdi
callq 0xdfa8
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x49f8d(%rip), %rsi     # 0x7a89e
leaq 0x4a00f(%rip), %rdx     # 0x7a927
leaq 0x30(%rsp), %rdi
callq 0xdfa8
leaq 0x70(%rsp), %rsi
leaq 0x18(%rsp), %rdx
leaq 0x50(%rsp), %rcx
leaq 0x30(%rsp), %r8
movq %rbx, %rdi
callq 0x1cb62
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x3094d
callq 0xa2b0
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x3095c
callq 0xa2b0
leaq 0x18(%rsp), %rdi
callq 0x4f0ac
movq $-0x80, %rbx
leaq 0x120(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x30983
callq 0xa2b0
movq -0x30(%r15), %rdi
leaq -0x20(%r15), %rax
cmpq %rdi, %rax
je 0x30995
callq 0xa2b0
addq $-0x40, %r15
addq $0x40, %rbx
jne 0x30975
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x309ae
callq 0xa2b0
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x309c4
callq 0xa2b0
addq $0x130, %rsp            # imm = 0x130
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x309eb
callq 0xa2b0
jmp 0x309eb
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x309ff
callq 0xa2b0
jmp 0x309ff
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4f0ac
jmp 0x30a0e
movq %rax, %rbx
movl $0x40, %r15d
leaq (%rsp,%r15), %rdi
addq $0xb0, %rdi
callq 0x4f040
addq $-0x40, %r15
cmpq $-0x40, %r15
jne 0x30a14
jmp 0x30a45
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x4f040
jmp 0x30a45
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x30a59
callq 0xa2b0
jmp 0x30a59
movq %rax, %rbx
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x30a90
jmp 0x30a9a
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x30a9a
callq 0xdce4
jmp 0x30a9a
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r14, %rdi
je 0x30a9a
callq 0xa2b0
jmp 0x30a9a
movq %rax, %rbx
movq %rbx, %rdi
callq 0xa510