// File: /workspace/github_cpp_makefile_star2_O1/luisremis[P]SDFS/Membership.cpp
// Function: Membership::isBiggerThanMine(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Membership::isBiggerThanMine(std::string other, std::string mine)
{
	char other_char[4];
	char me_char[4];
	ipString2Char4(other, other_char);
	ipString2Char4(mine, me_char);

	for (int i = 0; i < 4; ++i)
	{
		unsigned int me = (uint8_t) me_char[i];
		unsigned int ot = (uint8_t) other_char[i];
		logFile << ot << " > " << me << std::endl;
		if( ot > me){
			logFile << ot << " > " << me << std::endl;
			return true;
		}
		if( me > ot){
			logFile << ot << " < " << me << std::endl;
			return false;
		}
	}
	
	logFile << "comparing with myself: this code sucks!" << std::endl;
	return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rdi, -0x38(%rbp)
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq -0x88(%rbp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x570a
leaq -0x40(%rbp), %rsi
movq %r15, %rdi
callq 0x1114c
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x978a
callq 0x4360
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %r14
movq %r14, %rdi
callq 0x570a
leaq -0x3c(%rbp), %rsi
movq %r14, %rdi
callq 0x1114c
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x97c2
callq 0x4360
xorl %ebx, %ebx
movq $0x0, -0x48(%rbp)
movl %eax, -0x2c(%rbp)
movzbl -0x3c(%rbp,%rbx), %r12d
movzbl -0x40(%rbp,%rbx), %r13d
movq -0x38(%rbp), %rdi
movq %r13, %rsi
callq 0x4250
movq %rax, %r14
movl $0x3, %edx
movq %rax, %rdi
leaq 0x9feb(%rip), %r15      # 0x137e4
movq %r15, %rsi
callq 0x43f0
movq %r14, %rdi
movq %r12, %rsi
callq 0x4250
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4380
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4260
movq %r15, %r14
cmpb %r12b, %r13b
seta %cl
ja 0x984f
movb $0x1, %al
leaq 0x9f9e(%rip), %r14      # 0x137e8
cmpb %r13b, %r12b
jbe 0x98ae
movq -0x38(%rbp), %rdi
movq %r13, %rsi
movl %ecx, %r13d
callq 0x4250
movq %rax, %r15
movl $0x3, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x43f0
movq %r15, %rdi
movq %r12, %rsi
callq 0x4250
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4380
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4260
xorl %eax, %eax
movl %r13d, %ecx
movl %ecx, -0x2c(%rbp)
testb %al, %al
je 0x98ce
cmpq $0x3, %rbx
leaq 0x1(%rbx), %rax
setae %cl
movq %rcx, -0x48(%rbp)
movq %rax, %rbx
cmpq $0x4, %rax
jne 0x97cf
testb $0x1, -0x48(%rbp)
movl -0x2c(%rbp), %eax
je 0x9918
leaq 0x9f0e(%rip), %rsi      # 0x137ec
movl $0x27, %edx
movq -0x38(%rbp), %rbx
movq %rbx, %rdi
callq 0x43f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4380
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4260
xorl %eax, %eax
andb $0x1, %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
jne 0x9946
jmp 0x994b
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x994b
callq 0x4360
movq %rbx, %rdi
callq 0x4630
nop