// File: /workspace/github_cpp_makefile_star2_O1/LiGaCu[P]Distributed_System_to_Compute_the_Shortest_Path/aws.cpp
// Function: interpUDPmsg(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, int*, int*, char*, char*)
void interpUDPmsg(std::string &mapbuff, std::string &mapinfo, int *receivedA, int *receivedB, char *msgA, char *msgB)
{
    int pos;
    std::string markA("serverA");
    std::string markB("serverB");

    pos = mapbuff.find(markA);
    if( pos != -1 )
    {
        *receivedA = 1;
        if ( mapbuff[pos+markA.length()] != '!')
        {
            *msgA = 'y';
            mapinfo = mapbuff.substr(pos+markA.length()+1,mapbuff.find(markB,pos));
        }
        else
            *msgA = mapbuff[pos+markA.length()+1];
    }
    
    pos = mapbuff.find(markB);
    if( pos != -1 )
    {
        *receivedB= 1;
        if ( mapbuff[pos+markB.length()] != '!')
        {
            *msgB = 'y';
            mapinfo = mapbuff.substr(pos+markB.length()+1,mapbuff.find(markA,pos));
        }
        else
            *msgB = mapbuff[pos+markA.length()+1];
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r9, %r15
movq %r8, %r13
movq %rcx, %r12
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1194(%rip), %rsi      # 0x438c
leaq 0x1194(%rip), %rdx      # 0x4393
leaq 0x8(%rsp), %rdi
callq 0x38c2
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x123b(%rip), %rsi      # 0x4454
leaq 0x123b(%rip), %rdx      # 0x445b
leaq 0x28(%rsp), %rdi
callq 0x38c2
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0x2270
cmpl $-0x1, %eax
je 0x32c0
movl $0x1, (%rbp)
movslq %eax, %rdx
movq 0x10(%rsp), %rbp
addq %rdx, %rbp
movq (%r14), %rax
cmpb $0x21, (%rax,%rbp)
jne 0x3268
movb 0x1(%rax,%rbp), %al
movb %al, (%r13)
jmp 0x32c0
movb $0x79, (%r13)
incq %rbp
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rcx
movq %r14, %rdi
callq 0x2270
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq 0x2170
leaq 0x48(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x21c0
movq (%r13), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x32c0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2160
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0x2270
cmpl $-0x1, %eax
je 0x3361
movl $0x1, (%r12)
movslq %eax, %rdx
movq 0x30(%rsp), %r12
addq %rdx, %r12
movq (%r14), %rax
cmpb $0x21, (%rax,%r12)
jne 0x330b
movq 0x10(%rsp), %rcx
addq %rdx, %rax
movb 0x1(%rcx,%rax), %al
movb %al, (%r15)
jmp 0x3361
movb $0x79, (%r15)
incq %r12
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %r14, %rdi
callq 0x2270
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rax, %rcx
callq 0x2170
leaq 0x48(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21c0
movq (%r14), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x3361
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2160
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x337d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2160
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3399
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x33aa
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x33ce
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2160
jmp 0x33ce
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x33ea
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
movq %rbx, %rdi
callq 0x2280