// File: /workspace/github_cpp_makefile_star2_O1/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), %r15
movq %r15, -0x10(%r15)
leaq 0x493ce(%rip), %rsi     # 0x798d7
leaq 0x493cd(%rip), %rdx     # 0x798dd
leaq 0xb0(%rsp), %rdi
callq 0xdf6a
leaq 0xb0(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1c806
movl %eax, %ebp
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x30544
callq 0xa2b0
testb %bpl, %bpl
jne 0x30701
leaq 0x68f0c(%rip), %rax     # 0x99460
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x3057f
movq 0x68a37(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x3057b
incl 0x8(%rax)
jmp 0x3057f
lock
incl 0x8(%rax)
leaq 0x90(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %rbx, %rsi
callq 0x1a7f4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x305a3
callq 0xdcba
leaq 0x80(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x49320(%rip), %rsi     # 0x798d7
leaq 0x4931f(%rip), %rdx     # 0x798dd
leaq 0x70(%rsp), %rdi
callq 0xdf6a
leaq 0x49843(%rip), %rdx     # 0x79e12
leaq 0x90(%rsp), %rsi
movq %r14, %r15
movq %r14, %rdi
callq 0x4e466
leaq 0xf0(%rsp), %r15
leaq 0x48dca(%rip), %rdx     # 0x793bb
leaq 0x90(%rsp), %rsi
movq %r15, %rdi
callq 0x4e466
leaq 0x18(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x2, %edx
callq 0x4e2a2
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x466a3(%rip), %rsi     # 0x76cd0
leaq 0x466a0(%rip), %rdx     # 0x76cd4
leaq 0x50(%rsp), %rdi
callq 0xdf6a
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x49290(%rip), %rsi     # 0x798de
leaq 0x49312(%rip), %rdx     # 0x79967
leaq 0x30(%rsp), %rdi
callq 0xdf6a
leaq 0x70(%rsp), %rsi
leaq 0x18(%rsp), %rdx
leaq 0x50(%rsp), %rcx
leaq 0x30(%rsp), %r8
movq %rbx, %rdi
callq 0x1c826
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x3068a
callq 0xa2b0
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x30699
callq 0xa2b0
leaq 0x18(%rsp), %rdi
callq 0x4e2e4
movq $-0x80, %rbx
leaq 0x120(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x306c0
callq 0xa2b0
movq -0x30(%r14), %rdi
leaq -0x20(%r14), %rax
cmpq %rdi, %rax
je 0x306d2
callq 0xa2b0
addq $-0x40, %r14
addq $0x40, %rbx
jne 0x306b2
movq 0x70(%rsp), %rdi
cmpq %r12, %rdi
je 0x306eb
callq 0xa2b0
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30701
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 %r15, %rdi
je 0x30728
callq 0xa2b0
jmp 0x30728
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x3073c
callq 0xa2b0
jmp 0x3073c
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4e2e4
jmp 0x3074b
movq %rax, %rbx
movl $0x40, %r14d
leaq (%rsp,%r14), %rdi
addq $0xb0, %rdi
callq 0x4e278
addq $-0x40, %r14
cmpq $-0x40, %r14
jne 0x30751
jmp 0x307a7
movq %rax, %rbx
jmp 0x307b6
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x307e3
callq 0xdcba
jmp 0x307e3
movq %rax, %rbx
cmpq %r15, %r14
je 0x307a7
leaq 0xb0(%rsp), %r14
addq $-0x40, %r15
movq %r15, %rdi
callq 0x4e278
cmpq %r14, %r15
jne 0x30796
movq 0x70(%rsp), %rdi
cmpq %r12, %rdi
je 0x307b6
callq 0xa2b0
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x307d9
jmp 0x307e3
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x307e3
callq 0xa2b0
jmp 0x307e3
movq %rax, %rbx
movq %rbx, %rdi
callq 0xa510