// File: /workspace/github_c_makefile_star2_O0/schroeder-lvb[P]sissm/src/api.c
// Function: apiSyntheticObjDispatch
int _apiSyntheticObjDispatch(char *activeObjectRaw )   
{
    char strOut[API_LINE_STRING_MAX], *w;
    int i, errCode = 0;

    // Repackage the log line into something we can use -
    // a space delimited parameters that we can parse easily
    //
    strlcpy( strOut, "~SYNTHOBJ~", API_LINE_STRING_MAX ); 
    for (i=0; i<5; i++) {
        w = getWord( activeObjectRaw, i, " =\"\'.:" );
        if  ( w != NULL )  {
            strlcat( strOut, " ", API_LINE_STRING_MAX );
            strlcat( strOut, w,   API_LINE_STRING_MAX );
        }
        else  {
            errCode = 1;
            break;
        }
    }

    // Update some internal variables and finally call a Synthetic 
    // dispatcher to signal the plugins // something has updated.
    //
    if ( !errCode ) {
        // Update the database with ActiveObject content just decoded.
        // 
        rosterSetMapName( getWord( strOut, 3, " " ));
        rosterSetObjective( getWord( strOut, 5, " " ), getWord( strOut, 1, " " ));
        logPrintf( LOG_LEVEL_DEBUG, "api", "Updating DB with ActiveObject ::%s::%s::%s::", 
            getWord( strOut, 3, " " ), getWord( strOut, 5, " " ), getWord( strOut, 1, " " ) );

        // Generate a Synthetic event signalling change in ActiveObject content
        // 
        eventsDispatch( strOut );                        // dispatch subscribed plugin Callbacks 
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
movl $0x0, -0x120(%rbp)
leaq -0x110(%rbp), %rdi
leaq 0xfc5e(%rip), %rsi      # 0x249f5
movl $0x100, %edx            # imm = 0x100
callq 0x11bc0
movl $0x0, -0x11c(%rbp)
cmpl $0x5, -0x11c(%rbp)
jge 0x14e2f
movq -0x8(%rbp), %rdi
movl -0x11c(%rbp), %esi
leaq 0x110cb(%rip), %rdx     # 0x25e90
callq 0x122d0
movq %rax, -0x118(%rbp)
cmpq $0x0, -0x118(%rbp)
je 0x14e0d
leaq -0x110(%rbp), %rdi
leaq 0xf36f(%rip), %rsi      # 0x24158
movl $0x100, %edx            # imm = 0x100
callq 0x11aa0
leaq -0x110(%rbp), %rdi
movq -0x118(%rbp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x11aa0
jmp 0x14e19
movl $0x1, -0x120(%rbp)
jmp 0x14e2f
jmp 0x14e1b
movl -0x11c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x11c(%rbp)
jmp 0x14dab
cmpl $0x0, -0x120(%rbp)
jne 0x14f2f
leaq -0x110(%rbp), %rdi
movl $0x3, %esi
leaq 0xf309(%rip), %rdx      # 0x24158
callq 0x122d0
movq %rax, %rdi
callq 0x193e0
leaq -0x110(%rbp), %rdi
movl $0x5, %esi
leaq 0xf2e9(%rip), %rdx      # 0x24158
callq 0x122d0
movq %rax, -0x138(%rbp)
leaq -0x110(%rbp), %rdi
movl $0x1, %esi
leaq 0xf2ca(%rip), %rdx      # 0x24158
callq 0x122d0
movq -0x138(%rbp), %rdi
movq %rax, %rsi
callq 0x19380
leaq -0x110(%rbp), %rdi
movl $0x3, %esi
leaq 0xf2a3(%rip), %rdx      # 0x24158
callq 0x122d0
movq %rax, -0x130(%rbp)
leaq -0x110(%rbp), %rdi
movl $0x5, %esi
leaq 0xf284(%rip), %rdx      # 0x24158
callq 0x122d0
movq %rax, -0x128(%rbp)
leaq -0x110(%rbp), %rdi
movl $0x1, %esi
leaq 0xf265(%rip), %rdx      # 0x24158
callq 0x122d0
movq -0x130(%rbp), %rcx
movq -0x128(%rbp), %r8
movq %rax, %r9
movl $0x3, %edi
leaq 0x10f82(%rip), %rsi     # 0x25e97
leaq 0x10f7f(%rip), %rdx     # 0x25e9b
movb $0x0, %al
callq 0x21bf0
leaq -0x110(%rbp), %rdi
callq 0xf070
xorl %eax, %eax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopw (%rax,%rax)