// File: /workspace/github_cpp_makefile_star2_O3/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 0x11b6(%rip), %rsi      # 0x438c
leaq 0x11b6(%rip), %rdx      # 0x4393
leaq 0x8(%rsp), %rdi
callq 0x38a0
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x125d(%rip), %rsi      # 0x4454
leaq 0x125d(%rip), %rdx      # 0x445b
leaq 0x28(%rsp), %rdi
callq 0x38a0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0x2270
cmpl $-0x1, %eax
je 0x329e
movl $0x1, (%rbp)
movslq %eax, %rdx
movq 0x10(%rsp), %rbp
addq %rdx, %rbp
movq (%r14), %rax
cmpb $0x21, (%rax,%rbp)
jne 0x3246
movb 0x1(%rax,%rbp), %al
movb %al, (%r13)
jmp 0x329e
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 0x329e
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 0x333f
movl $0x1, (%r12)
movslq %eax, %rdx
movq 0x30(%rsp), %r12
addq %rdx, %r12
movq (%r14), %rax
cmpb $0x21, (%rax,%r12)
jne 0x32e9
movq 0x10(%rsp), %rcx
addq %rdx, %rax
movb 0x1(%rcx,%rax), %al
movb %al, (%r15)
jmp 0x333f
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 0x333f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2160
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x335b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2160
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3377
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 0x3388
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x33ac
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2160
jmp 0x33ac
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x33c8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
movq %rbx, %rdi
callq 0x2280