LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/awattar.cpp
// Function: Lowprice(std::vector<watt_s, std::allocator<watt_s>>&, int, int, float)
int Lowprice(std::vector<watt_s> &w,int ab,int bis,float preis)    // Anzahle Einträge mit < Preisf
{                                            // l1 = erste position h1 = letzte Position
    int x1 = 0;
    for (int j = ab; j <= bis; j++ )
    {
// Suchen nach Hoch und Tiefs
        if (w[j].pp < preis) x1++;
    }
    return x1;
}

// Assembly:
xorl %eax, %eax
cmpl %edx, %esi
jg 0x24f4f
movq (%rdi), %rax
movslq %esi, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rcx
addq $0x8, %rcx
subl %esi, %edx
incl %edx
xorl %eax, %eax
xorl %esi, %esi
ucomiss (%rcx), %xmm0
seta %sil
addl %esi, %eax
addq $0x18, %rcx
decl %edx
jne 0x24f3c
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/awattar.cpp
// Function: SucheDiff(std::vector<watt_s, std::allocator<watt_s>>&, int, float, float)
bool SucheDiff(std::vector<watt_s> &w,int ab, float aufschlag,float Diff)  // ab = Index bis Diff zwischen high und low erreicht
{
    high = w[ab];
    low = w[ab];
    h1 = ab;
    l1 = ab;
 
    for (int j = ab; (j < w.size()); j++ )
    {
// Suchen nach Hoch und Tiefs
        if (w[j].pp > high.pp) {
            high = w[j];
            h1 = j;
        } else
          if  (w[j].pp < low.pp) {
              low = w[j];
              l1 = j;
          }
        float erg = (low.pp )*(aufschlag-1)+ Diff;
        if ((high.pp - low.pp) > (low.pp)*(aufschlag-1)+ Diff)
        return true;
    }

    return false;
}

// Assembly:
movslq %esi, %rcx
movq (%rdi), %r8
leaq (%rcx,%rcx,2), %r9
movq 0x10(%r8,%r9,8), %rax
movq %rax, 0x20046(%rip)     # 0x45120
movups (%r8,%r9,8), %xmm2
movups %xmm2, 0x2002a(%rip)    # 0x45110
movq 0x10(%r8,%r9,8), %rax
movq %rax, 0x20046(%rip)     # 0x45138
movups (%r8,%r9,8), %xmm2
movups %xmm2, 0x2002a(%rip)    # 0x45128
movl %ecx, 0x2003c(%rip)     # 0x45140
movl %ecx, 0x2003a(%rip)     # 0x45144
movq 0x8(%rdi), %rax
subq %r8, %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
cmpq %rcx, %rdx
seta %al
jbe 0x251cf
addss 0xb2ad(%rip), %xmm0     # 0x303e4
leaq (%r8,%r9,8), %rdi
leaq 0x1fffe(%rip), %r8      # 0x45140
leaq 0x1fffb(%rip), %r9      # 0x45144
movss 0x8(%rdi), %xmm2
ucomiss 0x1ffc3(%rip), %xmm2    # 0x45118
jbe 0x25171
movq 0x10(%rdi), %r10
movq %r10, 0x1ffbe(%rip)     # 0x45120
movups (%rdi), %xmm2
movups %xmm2, 0x1ffa4(%rip)    # 0x45110
movq %r8, %r10
jmp 0x25196
movss 0x1ffb7(%rip), %xmm3    # 0x45130
ucomiss %xmm2, %xmm3
jbe 0x25199
movq 0x10(%rdi), %r10
movq %r10, 0x1ffaf(%rip)     # 0x45138
movups (%rdi), %xmm2
movups %xmm2, 0x1ff95(%rip)    # 0x45128
movq %r9, %r10
movl %esi, (%r10)
movss 0x1ff8f(%rip), %xmm2    # 0x45130
movss 0x1ff6f(%rip), %xmm3    # 0x45118
subss %xmm2, %xmm3
mulss %xmm0, %xmm2
addss %xmm1, %xmm2
ucomiss %xmm2, %xmm3
ja 0x251cf
incq %rcx
incl %esi
addq $0x18, %rdi
cmpq %rcx, %rdx
seta %al
ja 0x25149
andb $0x1, %al
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/awattar.cpp
// Function: SuchePos(std::vector<watt_s, std::allocator<watt_s>>&, int)
int SuchePos(std::vector<watt_s> &w,int bis)  // ab = Index bis zeitangabe in Minuten Suchen nach dem Zeitpunkt oder Sekunden nach 1970
{
    time_t  rawtime;
    struct tm * ptm;
    time(&rawtime);
    ptm = gmtime (&rawtime);
    ptm->tm_hour = bis/60;
    if (bis <= 48*60)
    {
    if (ptm->tm_hour>24) ptm->tm_hour = ptm->tm_hour-24;
    rawtime = mktime(ptm);
    if (bis/60 > 24)
    rawtime = rawtime + 24*3600;
    ptm = gmtime (&rawtime);
    }
    else rawtime = bis;
    int zeit, ret=-1;
    for (int j = 0; ((j < w.size())&&(w[j].hh<rawtime)); j++ )
    {
// Suchen nach Hoch und Tiefs
        zeit = w[j].hh%(24*3600)/60;
        ret = j;
    }
    time(&rawtime);
    ptm = gmtime (&rawtime);
    return ret;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x2250
movq %r14, %rdi
callq 0x2220
movslq %ebp, %rdx
imulq $-0x77777777, %rdx, %rcx # imm = 0x88888889
shrq $0x20, %rcx
addl %ebp, %ecx
movl %ecx, %esi
shrl $0x1f, %esi
sarl $0x5, %ecx
addl %esi, %ecx
movl %ecx, 0x8(%rax)
cmpl $0xb40, %edx            # imm = 0xB40
jg 0x2524f
cmpl $0x5dc, %ebp            # imm = 0x5DC
jl 0x25227
addl $-0x18, %ecx
movl %ecx, 0x8(%rax)
movq %rax, %rdi
callq 0x2180
leaq 0x15180(%rax), %rcx
cmpl $0x5dc, %ebp            # imm = 0x5DC
cmovlq %rax, %rcx
leaq 0x8(%rsp), %rdi
movq %rcx, (%rdi)
callq 0x2220
jmp 0x25256
movl %ebp, %eax
movq %rax, 0x8(%rsp)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
subq %rax, %rcx
je 0x252b4
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rdx
movq 0x8(%rsp), %rcx
cmpq $0x1, %rdx
adcq $0x0, %rdx
cmpq %rcx, (%rax)
jge 0x252b4
leal -0x1(%rdx), %ebx
addq $0x18, %rax
movl $0x1, %esi
subq %rdx, %rsi
xorl %edx, %edx
cmpq %rdx, %rsi
je 0x252b4
decq %rdx
leaq 0x18(%rax), %rdi
cmpq %rcx, (%rax)
movq %rdi, %rax
jl 0x2529c
notl %edx
movl %edx, %ebx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x2250
movq %r14, %rdi
callq 0x2220
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/awattar.cpp
// Function: suchenSolar(std::vector<wetter_s, std::allocator<wetter_s>>&, int, float&)
int suchenSolar(std::vector<wetter_s> &w,int x1,float &Verbrauch)
// Suchen Zeitpunkt für den ersten solaren Überschuss
// -1 = kein Überschuss gefunden
// ansonsten Anzahl der 15min Einträge sowie den aufgelaufenen Verbrauch
{
    
    Verbrauch = 0;
    for (;x1<w.size()&&w[x1].hourly>w[x1].solar;x1++)
    {
        Verbrauch = Verbrauch + w[x1].hourly + w[x1].wpbedarf - w[x1].solar;
    }
    return x1;
}

// Assembly:
movl %esi, %eax
movl $0x0, (%rdx)
movq (%rdi), %r8
movq 0x8(%rdi), %rcx
subq %r8, %rcx
sarq $0x3, %rcx
movabsq $0x6db6db6db6db6db7, %rsi # imm = 0x6DB6DB6DB6DB6DB7
imulq %rcx, %rsi
movslq %eax, %rcx
cmpq %rcx, %rsi
jbe 0x2533c
movss (%rdx), %xmm0
imulq $0x38, %rcx, %rax
addq %r8, %rax
addq $0x24, %rax
movss -0x10(%rax), %xmm2
movss -0x8(%rax), %xmm1
ucomiss %xmm1, %xmm2
jbe 0x2533a
addss %xmm2, %xmm0
addss (%rax), %xmm0
subss %xmm1, %xmm0
movss %xmm0, (%rdx)
incq %rcx
addq $0x38, %rax
cmpq %rcx, %rsi
ja 0x2530f
movl %ecx, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/awattar.cpp
// Function: suchenMaxSoc(std::vector<wetter_s, std::allocator<wetter_s>>&, int, float&)
int suchenMaxSoc(std::vector<wetter_s> &w,int x1,float &Verbrauch)
// Suchen Zeitpunkt für den max SoC
// -1 = kein Überschuss gefunden
// ansonsten Anzahl der 15min Einträge sowie den aufgelaufenen Verbrauch
{
    
    Verbrauch = 0;
    float maxsoc = -1;
    float soc = 0;
    int posmax = 0;
    for (;x1<w.size()&&w[x1].hourly>w[x1].solar;x1++)
    {
        Verbrauch = Verbrauch + w[x1].hourly + w[x1].wpbedarf + w[x1].solar;
        soc = soc + w[x1].hourly + w[x1].wpbedarf + w[x1].solar;
        if (soc <= 0) soc = 0; else
            if (soc > maxsoc)
            {
                maxsoc = soc;
                posmax = x1;
            }
    }
    return posmax;
}

// Assembly:
movl $0x0, (%rdx)
movq (%rdi), %r8
movq 0x8(%rdi), %rax
subq %r8, %rax
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rax, %rcx
movslq %esi, %rsi
xorl %eax, %eax
cmpq %rsi, %rcx
jbe 0x253d6
movss (%rdx), %xmm0
imulq $0x38, %rsi, %rax
leaq (%rax,%r8), %rdi
addq $0x24, %rdi
movss 0xb063(%rip), %xmm1     # 0x303e4
xorps %xmm2, %xmm2
xorl %eax, %eax
movss -0x10(%rdi), %xmm4
movss -0x8(%rdi), %xmm3
ucomiss %xmm3, %xmm4
jbe 0x253d6
addss %xmm4, %xmm0
addss (%rdi), %xmm0
addss %xmm3, %xmm0
movss %xmm0, (%rdx)
addss -0x10(%rdi), %xmm2
addss (%rdi), %xmm2
addss -0x8(%rdi), %xmm2
xorps %xmm3, %xmm3
ucomiss %xmm2, %xmm3
jae 0x253c7
ucomiss %xmm1, %xmm2
jbe 0x253ca
movaps %xmm2, %xmm1
movl %esi, %eax
jmp 0x253ca
xorps %xmm2, %xmm2
incq %rsi
addq $0x38, %rdi
cmpq %rsi, %rcx
ja 0x25386
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_Delete
CJSON_PUBLIC(void) cJSON_Delete(cJSON *item)
{
    cJSON *next = NULL;
    while (item != NULL)
    {
        next = item->next;
        if (!(item->type & cJSON_IsReference) && (item->child != NULL))
        {
            cJSON_Delete(item->child);
        }
        if (!(item->type & cJSON_IsReference) && (item->valuestring != NULL))
        {
            global_hooks.deallocate(item->valuestring);
        }
        if (!(item->type & cJSON_StringIsConst) && (item->string != NULL))
        {
            global_hooks.deallocate(item->string);
        }
        global_hooks.deallocate(item);
        item = next;
    }
}

// Assembly:
testq %rdi, %rdi
je 0x2c23e
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rbx, %r14
movq (%rbx), %rbx
testb $0x1, 0x19(%r14)
jne 0x2c1fd
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x2c1fd
callq 0x2c1d6
testb $0x1, 0x19(%r14)
jne 0x2c213
movq 0x20(%r14), %rdi
testq %rdi, %rdi
je 0x2c213
callq *0xd185(%rip)           # 0x39398
testb $0x2, 0x19(%r14)
jne 0x2c229
movq 0x38(%r14), %rdi
testq %rdi, %rdi
je 0x2c229
callq *0xd16f(%rip)           # 0x39398
movq %r14, %rdi
callq *0xd166(%rip)           # 0x39398
testq %rbx, %rbx
jne 0x2c1e2
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_SetValuestring
CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring)
{
    char *copy = NULL;
    /* if object's type is not cJSON_String or is cJSON_IsReference, it should not set valuestring */
    if (!(object->type & cJSON_String) || (object->type & cJSON_IsReference))
    {
        return NULL;
    }
    if (strlen(valuestring) <= strlen(object->valuestring))
    {
        strcpy(object->valuestring, valuestring);
        return object->valuestring;
    }
    copy = (char*) cJSON_strdup((const unsigned char*)valuestring, &global_hooks);
    if (copy == NULL)
    {
        return NULL;
    }
    if (object->valuestring != NULL)
    {
        cJSON_free(object->valuestring);
    }
    object->valuestring = copy;

    return copy;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl $0x110, %eax            # imm = 0x110
andl 0x18(%rdi), %eax
cmpl $0x10, %eax
jne 0x2c30b
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x2100
movq %rax, %r12
movq 0x20(%rbx), %r14
movq %r14, %rdi
callq 0x2100
cmpq %rax, %r12
jbe 0x2c2dd
testq %r15, %r15
je 0x2c2ee
movq %r15, %rdi
callq 0x2100
movq %rax, %r12
incq %r12
movq %r12, %rdi
callq *0xd0cb(%rip)           # 0x39390
testq %rax, %rax
je 0x2c2ee
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21f0
jmp 0x2c2f1
movq %r14, %rdi
movq %r15, %rsi
callq 0x2260
movq 0x20(%rbx), %r14
jmp 0x2c30e
xorl %r14d, %r14d
testq %r14, %r14
je 0x2c30b
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x2c305
callq *0xd093(%rip)           # 0x39398
movq %r14, 0x20(%rbx)
jmp 0x2c30e
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: buffer_skip_whitespace(parse_buffer*)
static parse_buffer *buffer_skip_whitespace(parse_buffer * const buffer)
{
    if ((buffer == NULL) || (buffer->content == NULL))
    {
        return NULL;
    }

    if (cannot_access_at_index(buffer, 0))
    {
        return buffer;
    }

    while (can_access_at_index(buffer, 0) && (buffer_at_offset(buffer)[0] <= 32))
    {
       buffer->offset++;
    }

    if (buffer->offset == buffer->length)
    {
        buffer->offset--;
    }

    return buffer;
}

// Assembly:
testq %rdi, %rdi
je 0x2c8cf
movq %rdi, %rax
movq (%rdi), %rsi
testq %rsi, %rsi
je 0x2c8cf
movq 0x8(%rax), %rcx
cmpq %rcx, 0x10(%rax)
jae 0x2c8d1
movq 0x10(%rax), %rdx
cmpq %rcx, %rdx
jae 0x2c8c2
cmpb $0x20, (%rsi,%rdx)
ja 0x2c8c2
incq %rdx
movq %rdx, 0x10(%rax)
cmpq %rdx, %rcx
jne 0x2c8ad
movq %rcx, %rdx
cmpq %rcx, %rdx
jne 0x2c8d1
decq %rdx
movq %rdx, 0x10(%rax)
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: print(cJSON const*, int, internal_hooks const*)
static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * const hooks)
{
    static const size_t default_buffer_size = 256;
    printbuffer buffer[1];
    unsigned char *printed = NULL;

    memset(buffer, 0, sizeof(buffer));

    /* create buffer */
    buffer->buffer = (unsigned char*) hooks->allocate(default_buffer_size);
    buffer->length = default_buffer_size;
    buffer->format = format;
    buffer->hooks = *hooks;
    if (buffer->buffer == NULL)
    {
        goto fail;
    }

    /* print the value */
    if (!print_value(item, buffer))
    {
        goto fail;
    }
    update_offset(buffer);

    /* check if reallocate is available */
    if (hooks->reallocate != NULL)
    {
        printed = (unsigned char*) hooks->reallocate(buffer->buffer, buffer->offset + 1);
        if (printed == NULL) {
            goto fail;
        }
        buffer->buffer = NULL;
    }
    else /* otherwise copy the JSON over to a new buffer */
    {
        printed = (unsigned char*) hooks->allocate(buffer->offset + 1);
        if (printed == NULL)
        {
            goto fail;
        }
        memcpy(printed, buffer->buffer, cjson_min(buffer->length, buffer->offset + 1));
        printed[buffer->offset] = '\0'; /* just to be sure */

        /* free the buffer */
        hooks->deallocate(buffer->buffer);
    }

    return printed;

fail:
    if (buffer->buffer != NULL)
    {
        hooks->deallocate(buffer->buffer);
    }

    if (printed != NULL)
    {
        hooks->deallocate(printed);
    }

    return NULL;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %esi, %ebp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl $0x100, %edi            # imm = 0x100
callq *0xca77(%rip)           # 0x39390
movq %rax, (%rsp)
movq $0x100, 0x8(%rsp)       # imm = 0x100
movl %ebp, 0x24(%rsp)
movups 0xca5f(%rip), %xmm0     # 0x39390
movups %xmm0, 0x28(%rsp)
movq 0xca63(%rip), %rcx      # 0x393a0
movq %rcx, 0x38(%rsp)
testq %rax, %rax
je 0x2c9f3
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2caa9
testl %eax, %eax
je 0x2c9f3
movq (%rsp), %rbx
testq %rbx, %rbx
je 0x2c97d
movq 0x10(%rsp), %r14
leaq (%rbx,%r14), %rdi
callq 0x2100
addq %r14, %rax
movq %rax, 0x10(%rsp)
movq 0xca1c(%rip), %rax      # 0x393a0
testq %rax, %rax
je 0x2c9a8
movq 0x10(%rsp), %rsi
incq %rsi
movq %rbx, %rdi
callq *%rax
testq %rax, %rax
je 0x2c9f3
movq %rax, %rbx
movq $0x0, (%rsp)
jmp 0x2ca04
movq 0x10(%rsp), %rdi
incq %rdi
callq *0xc9da(%rip)           # 0x39390
testq %rax, %rax
je 0x2c9f3
movq %rax, %rbx
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rdx
incq %rdx
cmpq %rdx, %rax
cmovbq %rax, %rdx
movq %rbx, %rdi
callq 0x21f0
movq 0x10(%rsp), %rax
movb $0x0, (%rbx,%rax)
movq (%rsp), %rdi
callq *0xc9a7(%rip)           # 0x39398
jmp 0x2ca04
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2ca02
callq *0xc996(%rip)           # 0x39398
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_PrintBuffered
CJSON_PUBLIC(char *) cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt)
{
    printbuffer p = { 0, 0, 0, 0, 0, 0, { 0, 0, 0 } };

    if (prebuffer < 0)
    {
        return NULL;
    }

    p.buffer = (unsigned char*)global_hooks.allocate((size_t)prebuffer);
    if (!p.buffer)
    {
        return NULL;
    }

    p.length = (size_t)prebuffer;
    p.offset = 0;
    p.noalloc = false;
    p.format = fmt;
    p.hooks = global_hooks;

    if (!print_value(item, &p))
    {
        global_hooks.deallocate(p.buffer);
        return NULL;
    }

    return (char*)p.buffer;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
testl %esi, %esi
js 0x2ca9e
movl %edx, %ebp
movq %rdi, %rbx
movl %esi, %r14d
movq %r14, %rdi
callq *0xc946(%rip)           # 0x39390
movq %rax, (%rsp)
testq %rax, %rax
je 0x2ca9e
movq %rsp, %rsi
movq %r14, 0x8(%rsi)
movq $0x0, 0x10(%rsi)
movl $0x0, 0x20(%rsi)
movl %ebp, 0x24(%rsi)
movups 0xc91d(%rip), %xmm0     # 0x39390
movups %xmm0, 0x28(%rsi)
movq 0xc922(%rip), %rax      # 0x393a0
movq %rax, 0x38(%rsi)
movq %rbx, %rdi
callq 0x2caa9
testl %eax, %eax
je 0x2ca94
movq (%rsp), %rax
jmp 0x2caa0
movq (%rsp), %rdi
callq *0xc8fa(%rip)           # 0x39398
xorl %eax, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_PrintPreallocated
CJSON_PUBLIC(cJSON_bool) cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format)
{
    printbuffer p = { 0, 0, 0, 0, 0, 0, { 0, 0, 0 } };

    if ((length < 0) || (buffer == NULL))
    {
        return false;
    }

    p.buffer = (unsigned char*)buffer;
    p.length = (size_t)length;
    p.offset = 0;
    p.noalloc = true;
    p.format = format;
    p.hooks = global_hooks;

    return print_value(item, &p);
}

// Assembly:
subq $0x48, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
testl %edx, %edx
sets %r8b
testq %rsi, %rsi
sete %r9b
xorl %eax, %eax
orb %r8b, %r9b
jne 0x2d051
movq %rsp, %rax
movq %rsi, (%rax)
movl %edx, %edx
movq %rdx, 0x8(%rax)
movq $0x0, 0x10(%rax)
movl $0x1, 0x20(%rax)
movl %ecx, 0x24(%rax)
movups 0xc356(%rip), %xmm0     # 0x39390
movups %xmm0, 0x28(%rax)
movq 0xc35b(%rip), %rcx      # 0x393a0
movq %rcx, 0x38(%rax)
movq %rax, %rsi
callq 0x2caa9
addq $0x48, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: get_object_item(cJSON const*, char const*, int)
static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)
{
    cJSON *current_element = NULL;

    if ((object == NULL) || (name == NULL))
    {
        return NULL;
    }

    current_element = object->child;
    if (case_sensitive)
    {
        while ((current_element != NULL) && (current_element->string != NULL) && (strcmp(name, current_element->string) != 0))
        {
            current_element = current_element->next;
        }
    }
    else
    {
        while ((current_element != NULL) && (case_insensitive_strcmp((const unsigned char*)name, (const unsigned char*)(current_element->string)) != 0))
        {
            current_element = current_element->next;
        }
    }

    if ((current_element == NULL) || (current_element->string == NULL)) {
        return NULL;
    }

    return current_element;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x2d162
movq %rsi, %r14
movq 0x10(%rdi), %rbx
testl %edx, %edx
je 0x2d149
testq %rbx, %rbx
je 0x2d14e
movq 0x38(%rbx), %rsi
testq %rsi, %rsi
je 0x2d150
movq %r14, %rdi
callq 0x2390
testl %eax, %eax
je 0x2d150
movq (%rbx), %rbx
jmp 0x2d0cf
movq 0x38(%rbx), %r15
testq %r15, %r15
je 0x2d146
cmpq %r14, %r15
je 0x2d150
movb (%r14), %r12b
movzbl %r12b, %edi
callq 0x23c0
movl %eax, %ebp
movzbl (%r15), %edi
callq 0x23c0
cmpl %eax, %ebp
jne 0x2d142
movl $0x1, %r13d
testb %r12b, %r12b
je 0x2d150
movb (%r14,%r13), %r12b
movzbl %r12b, %edi
callq 0x23c0
movl %eax, %ebp
movzbl (%r15,%r13), %edi
callq 0x23c0
incq %r13
cmpl %eax, %ebp
je 0x2d11d
cmpl %eax, %ebp
je 0x2d150
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x2d0ee
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x2d162
movq 0x38(%rbx), %rax
testq %rax, %rax
cmoveq %rax, %rbx
jmp 0x2d164
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: add_item_to_object(cJSON*, char const*, cJSON*, internal_hooks const*, int)
static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const item, const internal_hooks * const hooks, const cJSON_bool constant_key)
{
    char *new_key = NULL;
    int new_type = cJSON_Invalid;

    if ((object == NULL) || (string == NULL) || (item == NULL) || (object == item))
    {
        return false;
    }

    if (constant_key)
    {
        new_key = (char*)cast_away_const(string);
        new_type = item->type | cJSON_StringIsConst;
    }
    else
    {
        new_key = (char*)cJSON_strdup((const unsigned char*)string, hooks);
        if (new_key == NULL)
        {
            return false;
        }

        new_type = item->type & ~cJSON_StringIsConst;
    }

    if (!(item->type & cJSON_StringIsConst) && (item->string != NULL))
    {
        hooks->deallocate(item->string);
    }

    item->string = new_key;
    item->type = new_type;

    return add_item_to_array(object, item);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq %rdx, %rdi
je 0x2d2a0
movq %rdi, %r14
testq %rdi, %rdi
je 0x2d2a0
movq %rsi, %r15
testq %rsi, %rsi
je 0x2d2a0
movq %rdx, %rbx
testq %rdx, %rdx
je 0x2d2a0
testl %ecx, %ecx
je 0x2d229
movl $0x200, %ebp            # imm = 0x200
orl 0x18(%rbx), %ebp
jmp 0x2d26b
movq %r15, %rdi
callq 0x2100
movq %rax, %r12
incq %r12
movq %r12, %rdi
callq *0xc150(%rip)           # 0x39390
testq %rax, %rax
je 0x2d25b
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21f0
movq %r13, %r15
jmp 0x2d25e
xorl %r15d, %r15d
testq %r15, %r15
je 0x2d2a0
movl $0xfffffdff, %ebp       # imm = 0xFFFFFDFF
andl 0x18(%rbx), %ebp
testb $0x2, 0x19(%rbx)
jne 0x2d280
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x2d280
callq *0xc118(%rip)           # 0x39398
movq %r15, 0x38(%rbx)
movl %ebp, 0x18(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2d196
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_AddNullToObject
CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
{
    cJSON *null = cJSON_CreateNull();
    if (add_item_to_object(object, name, null, &global_hooks, false))
    {
        return null;
    }

    cJSON_Delete(null);
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x40, %edi
callq *0xbf67(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2d44a
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, (%rbx)
movl $0x4, 0x18(%rbx)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2d1e3
testl %eax, %eax
jne 0x2d468
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateNull
CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_NULL;
    }

    return item;
}

// Assembly:
pushq %rax
movl $0x40, %edi
callq *0xbf13(%rip)           # 0x39390
testq %rax, %rax
je 0x2d49b
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x4, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_AddTrueToObject
CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
{
    cJSON *true_item = cJSON_CreateTrue();
    if (add_item_to_object(object, name, true_item, &global_hooks, false))
    {
        return true_item;
    }

    cJSON_Delete(true_item);
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x40, %edi
callq *0xbedd(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2d4d4
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, (%rbx)
movl $0x2, 0x18(%rbx)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2d1e3
testl %eax, %eax
jne 0x2d4f2
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateTrue
CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_True;
    }

    return item;
}

// Assembly:
pushq %rax
movl $0x40, %edi
callq *0xbe89(%rip)           # 0x39390
testq %rax, %rax
je 0x2d525
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x2, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_AddFalseToObject
CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
{
    cJSON *false_item = cJSON_CreateFalse();
    if (add_item_to_object(object, name, false_item, &global_hooks, false))
    {
        return false_item;
    }

    cJSON_Delete(false_item);
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x40, %edi
callq *0xbe53(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2d55e
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, (%rbx)
movl $0x1, 0x18(%rbx)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2d1e3
testl %eax, %eax
jne 0x2d57c
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateFalse
CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_False;
    }

    return item;
}

// Assembly:
pushq %rax
movl $0x40, %edi
callq *0xbdff(%rip)           # 0x39390
testq %rax, %rax
je 0x2d5af
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x1, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_AddBoolToObject
CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)
{
    cJSON *bool_item = cJSON_CreateBool(boolean);
    if (add_item_to_object(object, name, bool_item, &global_hooks, false))
    {
        return bool_item;
    }

    cJSON_Delete(bool_item);
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movl $0x40, %edi
callq *0xbdc5(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2d5f3
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, (%rbx)
cmpl $0x1, %ebp
movl $0x2, %eax
sbbl $0x0, %eax
movl %eax, 0x18(%rbx)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2d1e3
testl %eax, %eax
jne 0x2d611
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateBool
CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool boolean)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = boolean ? cJSON_True : cJSON_False;
    }

    return item;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
movl $0x40, %edi
callq *0xbd63(%rip)           # 0x39390
testq %rax, %rax
je 0x2d652
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
cmpl $0x1, %ebx
movl $0x2, %ecx
sbbl $0x0, %ecx
movl %ecx, 0x18(%rax)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_AddNumberToObject
CJSON_PUBLIC(cJSON*) cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number)
{
    cJSON *number_item = cJSON_CreateNumber(number);
    if (add_item_to_object(object, name, number_item, &global_hooks, false))
    {
        return number_item;
    }

    cJSON_Delete(number_item);
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %r15
movl $0x40, %edi
callq *0xbd1c(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2d6ce
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rbx)
movupd %xmm0, 0x30(%rbx)
movupd %xmm0, 0x20(%rbx)
movupd %xmm0, (%rbx)
movl $0x8, 0x18(%rbx)
movsd 0x8(%rsp), %xmm1
movsd %xmm1, 0x30(%rbx)
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
ucomisd 0x53c6(%rip), %xmm1     # 0x32a78
jae 0x2d6cb
movl $0x80000000, %eax       # imm = 0x80000000
movsd 0x53bf(%rip), %xmm0     # 0x32a80
ucomisd %xmm1, %xmm0
jae 0x2d6cb
cvttsd2si %xmm1, %eax
movl %eax, 0x28(%rbx)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2d1e3
testl %eax, %eax
jne 0x2d6ec
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateNumber
CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_Number;
        item->valuedouble = num;

        /* use saturation in case of overflow */
        if (num >= INT_MAX)
        {
            item->valueint = INT_MAX;
        }
        else if (num <= (double)INT_MIN)
        {
            item->valueint = INT_MIN;
        }
        else
        {
            item->valueint = (int)num;
        }
    }

    return item;
}

// Assembly:
pushq %rax
movsd %xmm0, (%rsp)
movl $0x40, %edi
callq *0xbc86(%rip)           # 0x39390
testq %rax, %rax
je 0x2d760
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rax)
movupd %xmm0, 0x30(%rax)
movupd %xmm0, 0x20(%rax)
movupd %xmm0, (%rax)
movl $0x8, 0x18(%rax)
movsd (%rsp), %xmm1
movsd %xmm1, 0x30(%rax)
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
ucomisd 0x5334(%rip), %xmm1     # 0x32a78
jae 0x2d75d
movl $0x80000000, %ecx       # imm = 0x80000000
movsd 0x532d(%rip), %xmm0     # 0x32a80
ucomisd %xmm1, %xmm0
jae 0x2d75d
cvttsd2si %xmm1, %ecx
movl %ecx, 0x28(%rax)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateString
CJSON_PUBLIC(cJSON *) cJSON_CreateString(const char *string)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_String;
        item->valuestring = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks);
        if(!item->valuestring)
        {
            cJSON_Delete(item);
            return NULL;
        }
    }

    return item;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x40, %edi
callq *0xbbdb(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2d820
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, (%rbx)
movl $0x10, 0x18(%rbx)
testq %r14, %r14
je 0x2d80a
movq %r14, %rdi
callq 0x2100
movq %rax, %r12
incq %r12
movq %r12, %rdi
callq *0xbb9e(%rip)           # 0x39390
testq %rax, %rax
je 0x2d80a
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x21f0
jmp 0x2d80d
xorl %r15d, %r15d
movq %r15, 0x20(%rbx)
testq %r15, %r15
jne 0x2d820
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateRaw
CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_Raw;
        item->valuestring = (char*)cJSON_strdup((const unsigned char*)raw, &global_hooks);
        if(!item->valuestring)
        {
            cJSON_Delete(item);
            return NULL;
        }
    }

    return item;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x40, %edi
callq *0xbb0e(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2d8ed
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, (%rbx)
movl $0x80, 0x18(%rbx)
testq %r14, %r14
je 0x2d8d7
movq %r14, %rdi
callq 0x2100
movq %rax, %r12
incq %r12
movq %r12, %rdi
callq *0xbad1(%rip)           # 0x39390
testq %rax, %rax
je 0x2d8d7
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x21f0
jmp 0x2d8da
xorl %r15d, %r15d
movq %r15, 0x20(%rbx)
testq %r15, %r15
jne 0x2d8ed
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_AddObjectToObject
CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name)
{
    cJSON *object_item = cJSON_CreateObject();
    if (add_item_to_object(object, name, object_item, &global_hooks, false))
    {
        return object_item;
    }

    cJSON_Delete(object_item);
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x40, %edi
callq *0xba7e(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2d933
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, (%rbx)
movl $0x40, 0x18(%rbx)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2d1e3
testl %eax, %eax
jne 0x2d951
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateObject
CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if (item)
    {
        item->type = cJSON_Object;
    }

    return item;
}

// Assembly:
pushq %rax
movl $0x40, %edi
callq *0xba2a(%rip)           # 0x39390
testq %rax, %rax
je 0x2d984
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x40, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_AddArrayToObject
CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)
{
    cJSON *array = cJSON_CreateArray();
    if (add_item_to_object(object, name, array, &global_hooks, false))
    {
        return array;
    }

    cJSON_Delete(array);
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x40, %edi
callq *0xb9f4(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2d9bd
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, (%rbx)
movl $0x20, 0x18(%rbx)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2d1e3
testl %eax, %eax
jne 0x2d9db
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateArray
CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type=cJSON_Array;
    }

    return item;
}

// Assembly:
pushq %rax
movl $0x40, %edi
callq *0xb9a0(%rip)           # 0x39390
testq %rax, %rax
je 0x2da0e
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x20, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_InsertItemInArray
CJSON_PUBLIC(cJSON_bool) cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)
{
    cJSON *after_inserted = NULL;

    if (which < 0)
    {
        return false;
    }

    after_inserted = get_array_item(array, (size_t)which);
    if (after_inserted == NULL)
    {
        return add_item_to_array(array, newitem);
    }

    newitem->next = after_inserted;
    newitem->prev = after_inserted->prev;
    after_inserted->prev = newitem;
    if (after_inserted == array->child)
    {
        array->child = newitem;
    }
    else
    {
        newitem->prev->next = newitem;
    }
    return true;
}

// Assembly:
testl %esi, %esi
js 0x2db44
testq %rdi, %rdi
je 0x2db47
movl %esi, %ecx
leaq 0x10(%rdi), %rax
movq (%rax), %rax
addq $-0x1, %rcx
setb %sil
testq %rax, %rax
je 0x2db49
testb %sil, %sil
jne 0x2db2d
jmp 0x2db49
xorl %eax, %eax
retq
xorl %eax, %eax
testq %rax, %rax
je 0x2db6c
movq %rax, (%rdx)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq %rdx, 0x8(%rax)
cmpq 0x10(%rdi), %rax
je 0x2db74
movq 0x8(%rdx), %rax
movq %rdx, (%rax)
jmp 0x2db78
movq %rdx, %rsi
jmp 0x2d196
movq %rdx, 0x10(%rdi)
movl $0x1, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: replace_item_in_object(cJSON*, char const*, cJSON*, int)
static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)
{
    if ((replacement == NULL) || (string == NULL))
    {
        return false;
    }

    /* replace the name in the replacement */
    if (!(replacement->type & cJSON_StringIsConst) && (replacement->string != NULL))
    {
        cJSON_free(replacement->string);
    }
    replacement->string = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks);
    if (replacement->string == NULL)
    {
        return false;
    }

    replacement->type &= ~cJSON_StringIsConst;

    return cJSON_ReplaceItemViaPointer(object, get_object_item(object, string, case_sensitive), replacement);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x2dcdd
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testb $0x2, 0x19(%rdx)
jne 0x2dc75
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x2dc75
callq *0xb723(%rip)           # 0x39398
movq %r15, %rdi
callq 0x2100
movq %rax, %r13
incq %r13
movq %r13, %rdi
callq *0xb704(%rip)           # 0x39390
testq %rax, %rax
je 0x2dca4
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x21f0
jmp 0x2dca7
xorl %r12d, %r12d
movq %r12, 0x38(%rbx)
testq %r12, %r12
je 0x2dcdd
andb $-0x3, 0x19(%rbx)
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x2d0a5
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2db7e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateStringReference
CJSON_PUBLIC(cJSON *) cJSON_CreateStringReference(const char *string)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if (item != NULL)
    {
        item->type = cJSON_String | cJSON_IsReference;
        item->valuestring = (char*)cast_away_const(string);
    }

    return item;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x40, %edi
callq *0xb689(%rip)           # 0x39390
testq %rax, %rax
je 0x2dd29
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, (%rax)
movl $0x110, 0x18(%rax)      # imm = 0x110
movq %rbx, 0x20(%rax)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateObjectReference
CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if (item != NULL) {
        item->type = cJSON_Object | cJSON_IsReference;
        item->child = (cJSON*)cast_away_const(child);
    }

    return item;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x40, %edi
callq *0xb656(%rip)           # 0x39390
testq %rax, %rax
je 0x2dd5c
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x140, 0x18(%rax)      # imm = 0x140
movq %rbx, 0x10(%rax)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateArrayReference
CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {
    cJSON *item = cJSON_New_Item(&global_hooks);
    if (item != NULL) {
        item->type = cJSON_Array | cJSON_IsReference;
        item->child = (cJSON*)cast_away_const(child);
    }

    return item;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x40, %edi
callq *0xb623(%rip)           # 0x39390
testq %rax, %rax
je 0x2dd8f
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x120, 0x18(%rax)      # imm = 0x120
movq %rbx, 0x10(%rax)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateIntArray
CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count)
{
    size_t i = 0;
    cJSON *n = NULL;
    cJSON *p = NULL;
    cJSON *a = NULL;

    if ((count < 0) || (numbers == NULL))
    {
        return NULL;
    }

    a = cJSON_CreateArray();

    for(i = 0; a && (i < (size_t)count); i++)
    {
        n = cJSON_CreateNumber(numbers[i]);
        if (!n)
        {
            cJSON_Delete(a);
            return NULL;
        }
        if(!i)
        {
            a->child = n;
        }
        else
        {
            suffix_object(p, n);
        }
        p = n;
    }

    if (a && a->child) {
        a->child->prev = n;
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
sets %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x2de86
movl %esi, %ebp
movq %rdi, %r14
movl $0x40, %edi
callq *0xb5d1(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2dde5
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rbx)
movupd %xmm0, 0x30(%rbx)
movupd %xmm0, 0x20(%rbx)
movupd %xmm0, (%rbx)
movl $0x20, 0x18(%rbx)
testq %rbx, %rbx
sete %al
testl %ebp, %ebp
sete %cl
orb %al, %cl
jne 0x2de68
movl %ebp, %r15d
movl $0x1, %r12d
xorl %r13d, %r13d
movl -0x4(%r14,%r12,4), %ebp
movl $0x40, %edi
callq *0xb580(%rip)           # 0x39390
testq %rax, %rax
je 0x2de7e
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
xorps %xmm1, %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm1, 0x30(%rax)
movups %xmm1, 0x20(%rax)
movups %xmm1, (%rax)
movl $0x8, 0x18(%rax)
movsd %xmm0, 0x30(%rax)
movl %ebp, 0x28(%rax)
cmpq $0x1, %r12
jne 0x2de49
movq %rax, 0x10(%rbx)
jmp 0x2de51
movq %rax, (%r13)
movq %r13, 0x8(%rax)
testq %rbx, %rbx
je 0x2de6a
leaq 0x1(%r12), %rcx
movq %rax, %r13
cmpq %r15, %r12
movq %rcx, %r12
jb 0x2de00
jmp 0x2de6a
xorl %eax, %eax
testq %rbx, %rbx
je 0x2de88
movq 0x10(%rbx), %rcx
testq %rcx, %rcx
je 0x2de88
movq %rax, 0x8(%rcx)
jmp 0x2de88
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateFloatArray
CJSON_PUBLIC(cJSON *) cJSON_CreateFloatArray(const float *numbers, int count)
{
    size_t i = 0;
    cJSON *n = NULL;
    cJSON *p = NULL;
    cJSON *a = NULL;

    if ((count < 0) || (numbers == NULL))
    {
        return NULL;
    }

    a = cJSON_CreateArray();

    for(i = 0; a && (i < (size_t)count); i++)
    {
        n = cJSON_CreateNumber((double)numbers[i]);
        if(!n)
        {
            cJSON_Delete(a);
            return NULL;
        }
        if(!i)
        {
            a->child = n;
        }
        else
        {
            suffix_object(p, n);
        }
        p = n;
    }

    if (a && a->child) {
        a->child->prev = n;
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
sets %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x2dfce
movl %esi, %ebp
movq %rdi, %r14
movl $0x40, %edi
callq *0xb4c8(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2dee9
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, (%rbx)
movl $0x20, 0x18(%rbx)
testq %rbx, %rbx
sete %al
testl %ebp, %ebp
sete %cl
orb %al, %cl
jne 0x2dfb0
movl %ebp, %r15d
movl $0x1, %r12d
xorl %r13d, %r13d
movss -0x4(%r14,%r12,4), %xmm0
movss %xmm0, 0x4(%rsp)
movl $0x40, %edi
callq *0xb470(%rip)           # 0x39390
testq %rax, %rax
je 0x2dfc6
movss 0x4(%rsp), %xmm2
xorps %xmm0, %xmm0
cvtss2sd %xmm2, %xmm0
xorps %xmm1, %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm1, 0x30(%rax)
movups %xmm1, 0x20(%rax)
movups %xmm1, (%rax)
movl $0x8, 0x18(%rax)
movsd %xmm0, 0x30(%rax)
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
ucomisd 0x4b17(%rip), %xmm0     # 0x32a78
jae 0x2df79
movl $0x80000000, %ecx       # imm = 0x80000000
movss 0x4b88(%rip), %xmm0     # 0x32af8
ucomiss %xmm2, %xmm0
jae 0x2df79
cvttss2si %xmm2, %ecx
movl %ecx, 0x28(%rax)
testq %rax, %rax
je 0x2dfc6
cmpq $0x1, %r12
jne 0x2df8d
movq %rax, 0x10(%rbx)
jmp 0x2df95
movq %rax, (%r13)
movq %r13, 0x8(%rax)
testq %rbx, %rbx
je 0x2dfb2
leaq 0x1(%r12), %rcx
movq %rax, %r13
cmpq %r15, %r12
movq %rcx, %r12
jb 0x2df08
jmp 0x2dfb2
xorl %eax, %eax
testq %rbx, %rbx
je 0x2dfd0
movq 0x10(%rbx), %rcx
testq %rcx, %rcx
je 0x2dfd0
movq %rax, 0x8(%rcx)
jmp 0x2dfd0
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/cJSON.c
// Function: cJSON_CreateStringArray
CJSON_PUBLIC(cJSON *) cJSON_CreateStringArray(const char *const *strings, int count)
{
    size_t i = 0;
    cJSON *n = NULL;
    cJSON *p = NULL;
    cJSON *a = NULL;

    if ((count < 0) || (strings == NULL))
    {
        return NULL;
    }

    a = cJSON_CreateArray();

    for (i = 0; a && (i < (size_t)count); i++)
    {
        n = cJSON_CreateString(strings[i]);
        if(!n)
        {
            cJSON_Delete(a);
            return NULL;
        }
        if(!i)
        {
            a->child = n;
        }
        else
        {
            suffix_object(p,n);
        }
        p = n;
    }

    if (a && a->child) {
        a->child->prev = n;
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
sets %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x2e1ee
movl %esi, %ebp
movq %rdi, %r14
movl $0x40, %edi
callq *0xb236(%rip)           # 0x39390
movq %rax, %rbx
testq %rax, %rax
je 0x2e17b
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, (%rbx)
movl $0x20, 0x18(%rbx)
testq %rbx, %rbx
sete %al
testl %ebp, %ebp
sete %cl
orb %al, %cl
jne 0x2e1d0
movl %ebp, %r15d
movl $0x1, %r12d
xorl %r13d, %r13d
movq -0x8(%r14,%r12,8), %rdi
callq 0x2d79f
testq %rax, %rax
je 0x2e1e6
cmpq $0x1, %r12
jne 0x2e1b1
movq %rax, 0x10(%rbx)
jmp 0x2e1b9
movq %rax, (%r13)
movq %r13, 0x8(%rax)
testq %rbx, %rbx
je 0x2e1d2
leaq 0x1(%r12), %rcx
movq %rax, %r13
cmpq %r15, %r12
movq %rcx, %r12
jb 0x2e196
jmp 0x2e1d2
xorl %eax, %eax
testq %rbx, %rbx
je 0x2e1f0
movq 0x10(%rbx), %rcx
testq %rcx, %rcx
je 0x2e1f0
movq %rax, 0x8(%rcx)
jmp 0x2e1f0
movq %rbx, %rdi
callq 0x2c1d6
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq