LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/sparkline.c
// Function: sparklineRender
sds sparklineRender(sds output, struct sequence *seq, int columns, int rows, int flags) {
    int j;

    for (j = 0; j < seq->length; j += columns) {
        int sublen = (seq->length-j) < columns ? (seq->length-j) : columns;

        if (j != 0) output = sdscatlen(output,"\n",1);
        output = sparklineRenderRange(output, seq, rows, j, sublen, flags);
    }
    return output;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, 0x4(%rsp)
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rax
xorl %ebx, %ebx
xorl %r12d, %r12d
movl (%r15), %r13d
cmpl %r13d, %r12d
jge 0x7304d
addl %ebx, %r13d
cmpl %r14d, %r13d
cmovgel %r14d, %r13d
testl %ebx, %ebx
je 0x7302d
movq %rax, %rdi
leaq 0x3dd94(%rip), %rsi     # 0xb0db9
pushq $0x1
popq %rdx
callq 0x31758
movq %rax, %rdi
movq %r15, %rsi
movl %ebp, %edx
movl %r12d, %ecx
movl %r13d, %r8d
movl 0x4(%rsp), %r9d
callq 0x72d96
addl %r14d, %r12d
subl %r14d, %ebx
jmp 0x73005
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/redis-check-rdb.c
// Function: rdbCheckError
void rdbCheckError(const char *fmt, ...) {
    char msg[1024];
    va_list ap;

    va_start(ap, fmt);
    vsnprintf(msg, sizeof(msg), fmt, ap);
    va_end(ap);

    printf("--- RDB ERROR DETECTED ---\n");
    printf("[offset %llu] %s\n",
        (unsigned long long) (rdbstate.rio ?
            rdbstate.rio->processed_bytes : 0), msg);
    printf("[additional info] While doing: %s\n",
        rdb_check_doing_string[rdbstate.doing]);
    if (rdbstate.key)
        printf("[additional info] Reading key '%s'\n",
            (char*)rdbstate.key->ptr);
    if (rdbstate.key_type != -1)
        printf("[additional info] Reading type %d (%s)\n",
            rdbstate.key_type,
            ((unsigned)rdbstate.key_type <
             sizeof(rdb_type_string)/sizeof(char*)) ?
                rdb_type_string[rdbstate.key_type] : "unknown");
    rdbShowGenericInfo();
}

// Assembly:
subq $0x4d8, %rsp            # imm = 0x4D8
movq %rdi, %r10
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x730fb
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rcx
movq %rdi, 0x10(%rcx)
leaq 0x4e0(%rsp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rcx)
leaq 0xd0(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %r10, %rdx
callq 0x26810
leaq 0x4cfe4(%rip), %rdi     # 0xc011b
callq 0x26250
movq 0x9b855(%rip), %rax     # 0x10e998
testq %rax, %rax
je 0x7314e
movq 0x30(%rax), %rsi
jmp 0x73150
xorl %esi, %esi
leaq 0x4ce84(%rip), %rdi     # 0xbffdb
leaq 0xd0(%rsp), %rdx
xorl %eax, %eax
callq 0x260a0
movslq 0x9b85b(%rip), %rax     # 0x10e9c8
leaq 0x8653c(%rip), %rcx     # 0xf96b0
movq (%rcx,%rax,8), %rsi
leaq 0x4ce6e(%rip), %rdi     # 0xbffed
xorl %eax, %eax
callq 0x260a0
movq 0x9b813(%rip), %rax     # 0x10e9a0
testq %rax, %rax
je 0x731a4
movq 0x8(%rax), %rsi
leaq 0x4ce73(%rip), %rdi     # 0xc0010
xorl %eax, %eax
callq 0x260a0
movl 0x9b7fe(%rip), %esi     # 0x10e9a8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %rsi
je 0x731db
cmpl $0xe, %esi
ja 0x731c6
leaq 0x86530(%rip), %rax     # 0xf96f0
movq (%rax,%rsi,8), %rdx
jmp 0x731cd
leaq 0x3f4ee(%rip), %rdx     # 0xb26bb
leaq 0x4ce60(%rip), %rdi     # 0xc0034
xorl %eax, %eax
callq 0x260a0
callq 0x7305c
addq $0x4d8, %rsp            # imm = 0x4D8
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/redis-check-rdb.c
// Function: rdbCheckInfo
void rdbCheckInfo(const char *fmt, ...) {
    char msg[1024];
    va_list ap;

    va_start(ap, fmt);
    vsnprintf(msg, sizeof(msg), fmt, ap);
    va_end(ap);

    printf("[offset %llu] %s\n",
        (unsigned long long) (rdbstate.rio ?
            rdbstate.rio->processed_bytes : 0), msg);
}

// Assembly:
subq $0x4d8, %rsp            # imm = 0x4D8
movq %rdi, %r10
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x73246
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rcx
movq %rdi, 0x10(%rcx)
leaq 0x4e0(%rsp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rcx)
leaq 0xd0(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %r10, %rdx
callq 0x26810
movq 0x9b716(%rip), %rax     # 0x10e998
testq %rax, %rax
je 0x7328d
movq 0x30(%rax), %rsi
jmp 0x7328f
xorl %esi, %esi
leaq 0x4cd45(%rip), %rdi     # 0xbffdb
leaq 0xd0(%rsp), %rdx
xorl %eax, %eax
callq 0x260a0
addq $0x4d8, %rsp            # imm = 0x4D8
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/redis-check-rdb.c
// Function: rdbCheckSetError
void rdbCheckSetError(const char *fmt, ...) {
    va_list ap;

    va_start(ap, fmt);
    vsnprintf(rdbstate.error, sizeof(rdbstate.error), fmt, ap);
    va_end(ap);
    rdbstate.error_set = 1;
}

// Assembly:
subq $0xd8, %rsp
movq %rdi, %r10
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x7330b
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rcx
movq %rdi, 0x10(%rcx)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rcx)
leaq 0x9b69e(%rip), %rdi     # 0x10e9d0
movl $0x400, %esi            # imm = 0x400
movq %r10, %rdx
callq 0x26810
movl $0x1, 0x9b683(%rip)     # 0x10e9cc
addq $0xd8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/redis-check-rdb.c
// Function: rdbCheckSetupSignals
void rdbCheckSetupSignals(void) {
    struct sigaction act;

    sigemptyset(&act.sa_mask);
    act.sa_flags = SA_NODEFER | SA_RESETHAND | SA_SIGINFO;
    act.sa_sigaction = rdbCheckHandleCrash;
    sigaction(SIGSEGV, &act, NULL);
    sigaction(SIGBUS, &act, NULL);
    sigaction(SIGFPE, &act, NULL);
    sigaction(SIGILL, &act, NULL);
}

// Assembly:
pushq %rbx
subq $0xa0, %rsp
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x26ac0
movl $0xc0000004, 0x80(%rbx) # imm = 0xC0000004
leaq -0x3d(%rip), %rax       # 0x73351
movq %rax, -0x8(%rbx)
pushq $0xb
popq %rdi
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x266c0
pushq $0x7
popq %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x266c0
pushq $0x8
popq %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x266c0
pushq $0x4
popq %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x266c0
addq $0xa0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/redis-check-rdb.c
// Function: redis_check_rdb_main
int redis_check_rdb_main(int argc, char **argv) {
    if (argc != 2) {
        fprintf(stderr, "Usage: %s <rdb-file-name>\n", argv[0]);
        exit(1);
    }
    createSharedObjects(); /* Needed for loading. */
    server.loading_process_events_interval_bytes = 0;
    rdbCheckMode = 1;
    rdbCheckInfo("Checking RDB file %s", argv[1]);
    rdbCheckSetupSignals();
    int retval = redis_check_rdb(argv[1]);
    if (retval == 0) {
        rdbCheckInfo("\\o/ RDB looks OK! \\o/");
        rdbShowGenericInfo();
    }
    exit(retval);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
cmpl $0x2, %edi
jne 0x7389e
callq 0x2c897
leaq 0x8605c(%rip), %rax     # 0xf98a8
andq $0x0, 0x338(%rax)
movl $0x1, 0x9b132(%rip)     # 0x10e990
movq 0x8(%rbx), %rsi
leaq 0x4c887(%rip), %rdi     # 0xc00f0
xorl %eax, %eax
callq 0x731e8
callq 0x73368
movq 0x8(%rbx), %rdi
callq 0x733d4
movl %eax, %ebx
testl %eax, %eax
jne 0x73897
leaq 0x4c87a(%rip), %rdi     # 0xc0105
xorl %eax, %eax
callq 0x731e8
callq 0x7305c
movl %ebx, %edi
callq 0x262c0
movq 0x81723(%rip), %rax     # 0xf4fc8
movq (%rax), %rdi
movq (%rbx), %rdx
leaq 0x4c823(%rip), %rsi     # 0xc00d5
xorl %eax, %eax
callq 0x26b90
pushq $0x1
popq %rdi
callq 0x262c0
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/geo.c
// Function: geoArrayCreate
geoArray *geoArrayCreate(void) {
    geoArray *ga = zmalloc(sizeof(*ga));
    /* It gets allocated on first geoArrayAppend() call. */
    ga->array = NULL;
    ga->buckets = 0;
    ga->used = 0;
    return ga;
}

// Assembly:
pushq %rax
pushq $0x18
popq %rdi
callq 0x327b9
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/geo.c
// Function: geoArrayAppend
geoPoint *geoArrayAppend(geoArray *ga) {
    if (ga->used == ga->buckets) {
        ga->buckets = (ga->buckets == 0) ? 8 : ga->buckets*2;
        ga->array = zrealloc(ga->array,sizeof(geoPoint)*ga->buckets);
    }
    geoPoint *gp = ga->array+ga->used;
    ga->used++;
    return gp;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x10(%rdi), %rdx
cmpq 0x8(%rdi), %rdx
jne 0x73910
leaq (%rdx,%rdx), %rcx
testq %rdx, %rdx
pushq $0x8
popq %rdx
cmovneq %rcx, %rdx
movq %rdx, 0x8(%rbx)
imulq $0x28, %rdx, %rsi
movq %rax, %rdi
callq 0x32863
movq %rax, (%rbx)
movq 0x10(%rbx), %rdx
imulq $0x28, %rdx, %rcx
addq %rax, %rcx
incq %rdx
movq %rdx, 0x10(%rbx)
movq %rcx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/geo.c
// Function: geoArrayFree
void geoArrayFree(geoArray *ga) {
    size_t i;
    for (i = 0; i < ga->used; i++) sdsfree(ga->array[i].member);
    zfree(ga->array);
    zfree(ga);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x20
popq %r14
xorl %r15d, %r15d
movq (%rbx), %rdi
cmpq 0x10(%rbx), %r15
jae 0x7394d
movq (%rdi,%r14), %rdi
callq 0x311c8
incq %r15
addq $0x28, %r14
jmp 0x73932
callq 0x328f9
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x328f9
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/geo.c
// Function: extractLongLatOrReply
int extractLongLatOrReply(client *c, robj **argv, double *xy) {
    int i;
    for (i = 0; i < 2; i++) {
        if (getDoubleFromObjectOrReply(c, argv[i], xy + i, NULL) !=
            C_OK) {
            return C_ERR;
        }
    }
    if (xy[0] < GEO_LONG_MIN || xy[0] > GEO_LONG_MAX ||
        xy[1] < GEO_LAT_MIN  || xy[1] > GEO_LAT_MAX) {
        addReplySds(c, sdscatprintf(sdsempty(),
            "-ERR invalid longitude,latitude pair %f,%f\r\n",xy[0],xy[1]));
        return C_ERR;
    }
    return C_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorl %r12d, %r12d
pushq $-0x1
popq %rbp
cmpq $0x10, %r12
je 0x739c2
movq (%r15,%r12), %rsi
leaq (%r14,%r12), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x3a8ae
addq $0x8, %r12
testl %eax, %eax
je 0x739a0
jmp 0x73a1f
movsd (%r14), %xmm0
andpd 0x4c7a1(%rip), %xmm0    # 0xc0170
ucomisd 0x4c761(%rip), %xmm0    # 0xc0138
ja 0x739f3
movsd 0x8(%r14), %xmm0
andpd 0x4c789(%rip), %xmm0    # 0xc0170
xorl %eax, %eax
ucomisd 0x4c74f(%rip), %xmm0    # 0xc0140
jbe 0x73a21
callq 0x3114c
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
leaq 0x4c7aa(%rip), %rsi     # 0xc01b4
movq %rax, %rdi
movb $0x2, %al
callq 0x31a38
movq %rbx, %rdi
movq %rax, %rsi
callq 0x36a9d
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/geo.c
// Function: longLatFromMember
int longLatFromMember(robj *zobj, robj *member, double *xy) {
    double score = 0;

    if (zsetScore(zobj, member, &score) == C_ERR) return C_ERR;
    if (!decodeGeohash(score, xy)) return C_ERR;
    return C_OK;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
leaq 0x8(%rsp), %rdx
andq $0x0, (%rdx)
callq 0x49447
cmpl $-0x1, %eax
je 0x73a5e
movsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x7395f
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x1, %ecx
sbbl %eax, %eax
jmp 0x73a61
pushq $-0x1
popq %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/geo.c
// Function: extractUnitOrReply
double extractUnitOrReply(client *c, robj *unit) {
    char *u = unit->ptr;

    if (!strcmp(u, "m")) {
        return 1;
    } else if (!strcmp(u, "km")) {
        return 1000;
    } else if (!strcmp(u, "ft")) {
        return 0.3048;
    } else if (!strcmp(u, "mi")) {
        return 1609.34;
    } else {
        addReplyError(c,
            "unsupported unit provided. please use m, km, ft, mi");
        return -1;
    }
}

// Assembly:
movq 0x8(%rsi), %rax
movzbl (%rax), %ecx
cmpl $0x66, %ecx
je 0x73aad
cmpl $0x6b, %ecx
je 0x73a98
cmpl $0x6d, %ecx
jne 0x73ab9
cmpb $0x0, 0x1(%rax)
je 0x73ad3
cmpb $0x69, 0x1(%rax)
jne 0x73ab9
cmpb $0x0, 0x2(%rax)
jne 0x73ab9
movsd 0x4c6c1(%rip), %xmm0    # 0xc0158
retq
cmpb $0x6d, 0x1(%rax)
jne 0x73ab9
cmpb $0x0, 0x2(%rax)
jne 0x73ab9
movsd 0x4c6a4(%rip), %xmm0    # 0xc0150
retq
cmpb $0x74, 0x1(%rax)
jne 0x73ab9
cmpb $0x0, 0x2(%rax)
je 0x73adc
pushq %rax
leaq 0x4c720(%rip), %rsi     # 0xc01e1
callq 0x36b6f
movsd 0x4c692(%rip), %xmm0    # 0xc0160
addq $0x8, %rsp
retq
movsd 0x3e8e5(%rip), %xmm0    # 0xb23c0
retq
movsd 0x4c664(%rip), %xmm0    # 0xc0148
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/geo.c
// Function: extractDistanceOrReply
double extractDistanceOrReply(client *c, robj **argv,
                                     double *conversion) {
    double distance;
    if (getDoubleFromObjectOrReply(c, argv[0], &distance,
                                   "need numeric radius") != C_OK) {
        return -1;
    }

    if (distance < 0) {
        addReplyError(c,"radius cannot be negative");
        return -1;
    }
    
    double to_meters = extractUnitOrReply(c,argv[1]);
    if (to_meters < 0) {
        return -1;
    }

    if (conversion) *conversion = to_meters;
    return distance * to_meters;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rsi), %rsi
leaq 0x4c714(%rip), %rcx     # 0xc0215
leaq 0x8(%rsp), %rdx
callq 0x3a8ae
movsd 0x4c64d(%rip), %xmm1    # 0xc0160
testl %eax, %eax
jne 0x73b6d
xorpd %xmm0, %xmm0
ucomisd 0x8(%rsp), %xmm0
jbe 0x73b3c
leaq 0x4c6ff(%rip), %rsi     # 0xc0229
movq %r14, %rdi
callq 0x36b6f
movsd 0x4c626(%rip), %xmm1    # 0xc0160
jmp 0x73b6d
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0x73a67
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
movsd 0x4c608(%rip), %xmm1    # 0xc0160
ja 0x73b6d
testq %rbx, %rbx
je 0x73b63
movsd %xmm0, (%rbx)
mulsd 0x8(%rsp), %xmm0
movapd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/geo.c
// Function: geoAppendIfWithinRadius
int geoAppendIfWithinRadius(geoArray *ga, double lon, double lat, double radius, double score, sds member) {
    double distance, xy[2];

    if (!decodeGeohash(score,xy)) return C_ERR; /* Can't decode. */
    /* Note that geohashGetDistanceIfInRadiusWGS84() takes arguments in
     * reverse order: longitude first, latitude later. */
    if (!geohashGetDistanceIfInRadiusWGS84(lon,lat, xy[0], xy[1],
                                           radius, &distance))
    {
        return C_ERR;
    }

    /* Append the new element. */
    geoPoint *gp = geoArrayAppend(ga);
    gp->longitude = xy[0];
    gp->latitude = xy[1];
    gp->dist = distance;
    gp->member = member;
    gp->score = score;
    return C_OK;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %rbx
movsd %xmm2, 0x30(%rsp)
movsd %xmm1, 0x28(%rsp)
movsd %xmm0, 0x20(%rsp)
movq %rdi, %r14
movq %rsp, %rdi
movsd %xmm3, 0x18(%rsp)
movaps %xmm3, %xmm0
callq 0x7395f
pushq $-0x1
popq %rbp
testl %eax, %eax
je 0x73c55
movsd (%rsp), %xmm2
movsd 0x8(%rsp), %xmm3
leaq 0x38(%rsp), %rdi
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movsd 0x30(%rsp), %xmm4
callq 0x8e9d5
testl %eax, %eax
je 0x73c55
movq %r14, %rdi
callq 0x738da
movsd (%rsp), %xmm0
movsd %xmm0, (%rax)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rax)
movsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x10(%rax)
movq %rbx, 0x20(%rax)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x18(%rax)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/geo.c
// Function: geoposCommand
void geoposCommand(client *c) {
    int j;

    /* Look up the requested zset */
    robj *zobj = NULL;
    if ((zobj = lookupKeyReadOrReply(c, c->argv[1], shared.emptymultibulk))
        == NULL || checkType(c, zobj, OBJ_ZSET)) return;

    /* Report elements one after the other, using a null bulk reply for
     * missing elements. */
    addReplyMultiBulkLen(c,c->argc-2);
    for (j = 2; j < c->argc; j++) {
        double score;
        if (zsetScore(zobj, c->argv[j], &score) == C_ERR) {
            addReply(c,shared.nullmultibulk);
        } else {
            /* Decode... */
            double xy[2];
            if (!decodeGeohash(score,xy)) {
                addReply(c,shared.nullmultibulk);
                continue;
            }
            addReplyMultiBulkLen(c,2);
            addReplyHumanLongDouble(c,xy[0]);
            addReplyHumanLongDouble(c,xy[1]);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x8(%rax), %rsi
leaq 0x856d2(%rip), %rbp     # 0xfa310
movq 0x68(%rbp), %rdx
callq 0x3aee5
testq %rax, %rax
je 0x74c61
movq %rax, %r14
pushq $0x3
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3a311
testl %eax, %eax
je 0x74c70
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movslq 0x38(%rbx), %rsi
addq $-0x2, %rsi
movq %rbx, %rdi
callq 0x370d9
pushq $0x2
popq %r15
leaq 0x18(%rsp), %r12
leaq 0x20(%rsp), %r13
movslq 0x38(%rbx), %rax
cmpq %rax, %r15
jge 0x74c61
movq 0x40(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0x49447
cmpl $-0x1, %eax
je 0x74cec
movsd 0x18(%rsp), %xmm0
movq %r13, %rdi
callq 0x7395f
testl %eax, %eax
je 0x74cec
movq %rbx, %rdi
pushq $0x2
popq %rsi
callq 0x370d9
fldl 0x20(%rsp)
fstpt (%rsp)
movq %rbx, %rdi
callq 0x36fa3
fldl 0x28(%rsp)
fstpt (%rsp)
movq %rbx, %rdi
callq 0x36fa3
jmp 0x74cf8
movq 0x58(%rbp), %rsi
movq %rbx, %rdi
callq 0x36987
incq %r15
jmp 0x74c8e
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/geo.c
// Function: geodistCommand
void geodistCommand(client *c) {
    double to_meter = 1;

    /* Check if there is the unit to extract, otherwise assume meters. */
    if (c->argc == 5) {
        to_meter = extractUnitOrReply(c,c->argv[4]);
        if (to_meter < 0) return;
    } else if (c->argc > 5) {
        addReply(c,shared.syntaxerr);
        return;
    }

    /* Look up the requested zset */
    robj *zobj = NULL;
    if ((zobj = lookupKeyReadOrReply(c, c->argv[1], shared.emptybulk))
        == NULL || checkType(c, zobj, OBJ_ZSET)) return;

    /* Get the scores. We need both otherwise NULL is returned. */
    double score1, score2, xyxy[4];
    if (zsetScore(zobj, c->argv[2], &score1) == C_ERR ||
        zsetScore(zobj, c->argv[3], &score2) == C_ERR)
    {
        addReply(c,shared.nullbulk);
        return;
    }

    /* Decode & compute the distance. */
    if (!decodeGeohash(score1,xyxy) || !decodeGeohash(score2,xyxy+2))
        addReply(c,shared.nullbulk);
    else
        addReplyDoubleDistance(c,
            geohashGetDistance(xyxy[0],xyxy[1],xyxy[2],xyxy[3]) / to_meter);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movl 0x38(%rdi), %eax
cmpl $0x5, %eax
jne 0x74d36
movq 0x40(%rbx), %rax
movq 0x20(%rax), %rsi
movq %rbx, %rdi
callq 0x73a67
xorpd %xmm1, %xmm1
movsd %xmm0, 0x8(%rsp)
ucomisd %xmm0, %xmm1
jbe 0x74d65
jmp 0x74e37
jle 0x74d57
leaq 0x855d1(%rip), %rax     # 0xfa310
movq 0x80(%rax), %rsi
movq %rbx, %rdi
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x36987
movsd 0x3d661(%rip), %xmm0    # 0xb23c0
movsd %xmm0, 0x8(%rsp)
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
leaq 0x8559c(%rip), %r15     # 0xfa310
movq 0x18(%r15), %rdx
movq %rbx, %rdi
callq 0x3aee5
testq %rax, %rax
je 0x74e37
movq %rax, %r14
pushq $0x3
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3a311
testl %eax, %eax
jne 0x74e37
movq 0x40(%rbx), %rax
movq 0x10(%rax), %rsi
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
callq 0x49447
cmpl $-0x1, %eax
je 0x74e2b
movq 0x40(%rbx), %rax
movq 0x18(%rax), %rsi
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x49447
cmpl $-0x1, %eax
je 0x74e2b
movsd 0x18(%rsp), %xmm0
leaq 0x20(%rsp), %rdi
callq 0x7395f
testl %eax, %eax
je 0x74e2b
movsd 0x10(%rsp), %xmm0
leaq 0x30(%rsp), %rdi
callq 0x7395f
testl %eax, %eax
je 0x74e2b
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movsd 0x30(%rsp), %xmm2
movsd 0x38(%rsp), %xmm3
callq 0x8e8c2
divsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x73b7b
jmp 0x74e37
movq 0x50(%r15), %rsi
movq %rbx, %rdi
callq 0x36987
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/hiredis/async.c
// Function: redisvAsyncCommand
int redisvAsyncCommand(redisAsyncContext *ac, redisCallbackFn *fn, void *privdata, const char *format, va_list ap) {
    char *cmd;
    int len;
    int status;
    len = redisvFormatCommand(&cmd,format,ap);
    status = __redisAsyncCommand(ac,fn,privdata,cmd,len);
    free(cmd);
    return status;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsp, %r12
movq %r12, %rdi
movq %rcx, %rsi
movq %r8, %rdx
callq 0x76ecc
movq (%r12), %rcx
movslq %eax, %r8
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x757cb
movl %eax, %ebx
movq (%r12), %rdi
callq 0x264d0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/hiredis/async.c
// Function: redisAsyncCommandArgv
int redisAsyncCommandArgv(redisAsyncContext *ac, redisCallbackFn *fn, void *privdata, int argc, const char **argv, const size_t *argvlen) {
    char *cmd;
    int len;
    int status;
    len = redisFormatCommandArgv(&cmd,argc,argv,argvlen);
    status = __redisAsyncCommand(ac,fn,privdata,cmd,len);
    free(cmd);
    return status;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsp, %r12
movq %r12, %rdi
movl %ecx, %esi
movq %r8, %rdx
movq %r9, %rcx
callq 0x775e1
movq (%r12), %rcx
movslq %eax, %r8
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x757cb
movl %eax, %ebx
movq (%r12), %rdi
callq 0x264d0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/hiredis/async.c
// Function: callbackKeyCompare
static int callbackKeyCompare(void *privdata, const void *key1, const void *key2) {
    int l1, l2;
    ((void) privdata);

    l1 = sdslen((const sds)key1);
    l2 = sdslen((const sds)key2);
    if (l1 != l2) return 0;
    return memcmp(key1,key2,l1) == 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rsi, %rdi
callq 0x75547
movq %rax, %r15
movq %rbx, %rdi
callq 0x75547
movq %rax, %rcx
xorl %eax, %eax
cmpl %ecx, %r15d
jne 0x75af2
movslq %r15d, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x266f0
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/hiredis/async.c
// Function: nextArgument
static char *nextArgument(char *start, char **str, size_t *len) {
    char *p = start;
    if (p[0] != '$') {
        p = strchr(p,'$');
        if (p == NULL) return NULL;
    }

    *len = (int)strtol(p+1,NULL,10);
    p = strchr(p,'\r');
    assert(p);
    *str = p+2;
    return p+2+(*len)+2;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
cmpb $0x24, (%rdi)
je 0x75c7e
pushq $0x24
popq %rsi
movq %r15, %rdi
callq 0x267f0
movq %rax, %r15
testq %rax, %rax
je 0x75cbc
leaq 0x1(%r15), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x26720
movslq %eax, %r12
movq %r12, (%r14)
pushq $0xd
popq %rsi
movq %r15, %rdi
callq 0x267f0
testq %rax, %rax
je 0x75cc0
leaq 0x2(%rax), %rcx
movq %rcx, (%rbx)
addq %r12, %rax
addq $0x4, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %eax, %eax
jmp 0x75cb0
leaq 0x430f6(%rip), %rdi     # 0xb8dbd
leaq 0x4a717(%rip), %rsi     # 0xc03e5
leaq 0x4a904(%rip), %rcx     # 0xc05d9
movl $0x233, %edx            # imm = 0x233
callq 0x262d0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: luaopen_cjson
int luaopen_cjson(lua_State *l)
{
    lua_cjson_new(l);

#ifdef ENABLE_CJSON_GLOBAL
    /* Register a global "cjson" table. */
    lua_pushvalue(l, -1);
    lua_setglobal(l, CJSON_MODNAME);
#endif

    /* Return cjson table */
    return 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x87ee1
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0x78698
leaq 0x32ce8(%rip), %rdx     # 0xbabb7
movq %rbx, %rdi
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
callq 0x78efa
pushq $0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: lua_cjson_safe_new
static int lua_cjson_safe_new(lua_State *l)
{
    const char *func[] = { "decode", "encode", NULL };
    int i;

    lua_cjson_new(l);

    /* Fix new() method */
    lua_pushcfunction(l, lua_cjson_safe_new);
    lua_setfield(l, -2, "new");

    for (i = 0; func[i]; i++) {
        lua_getfield(l, -1, func[i]);
        lua_pushcclosure(l, json_protect_conversion, 1);
        lua_setfield(l, -2, func[i]);
    }

    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x87ee1
leaq -0x1a(%rip), %rsi       # 0x8819e
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %edx, %edx
callq 0x78c17
leaq 0x3a0e3(%rip), %rdx     # 0xc22ae
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x78efa
pushq $-0x1
popq %r14
leaq 0x133b(%rip), %r15      # 0x8951c
pushq $0x1
popq %r12
cmpq $0x10, %rbp
je 0x88227
leaq 0x6af1e(%rip), %rax     # 0xf3110
movq (%rbp,%rax), %r13
movq %rbx, %rdi
movl %r14d, %esi
movq %r13, %rdx
callq 0x78d22
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x78c17
movq %rbx, %rdi
pushq $-0x2
popq %rsi
movq %r13, %rdx
callq 0x78efa
addq $0x8, %rbp
jmp 0x881e5
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_encode
static int json_encode(lua_State *l)
{
    json_config_t *cfg = json_fetch_config(l);
    strbuf_t local_encode_buf;
    strbuf_t *encode_buf;
    char *json;
    int len;

    luaL_argcheck(l, lua_gettop(l) == 1, 1, "expected 1 argument");

    if (!cfg->encode_keep_buffer) {
        /* Use private buffer */
        encode_buf = &local_encode_buf;
        strbuf_init(encode_buf, 0);
    } else {
        /* Reuse existing buffer */
        encode_buf = &cfg->encode_buf;
        strbuf_reset(encode_buf);
    }

    json_append_data(l, cfg, 0, encode_buf);
    json = strbuf_string(encode_buf, &len);

    lua_pushlstring(l, json, len);

    if (!cfg->encode_keep_buffer)
        strbuf_free(encode_buf);

    return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
callq 0x8856b
movq %rax, %r14
movq %rbx, %rdi
callq 0x7846b
cmpl $0x1, %eax
je 0x8826c
leaq 0x3a05d(%rip), %rdx     # 0xc22be
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x82650
cmpl $0x0, 0x538(%r14)
je 0x8828a
movq %r14, %r15
addq $0x500, %r15            # imm = 0x500
andl $0x0, 0x50c(%r14)
jmp 0x88297
movq %rsp, %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x8d624
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0x885a0
movslq 0xc(%r15), %rdx
movq (%r15), %rsi
movq %rbx, %rdi
callq 0x78a95
cmpl $0x0, 0x538(%r14)
jne 0x882c8
movq %r15, %rdi
callq 0x8d768
pushq $0x1
popq %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_decode
static int json_decode(lua_State *l)
{
    json_parse_t json;
    json_token_t token;
    size_t json_len;

    luaL_argcheck(l, lua_gettop(l) == 1, 1, "expected 1 argument");

    json.cfg = json_fetch_config(l);
    json.data = luaL_checklstring(l, 1, &json_len);
    json.current_depth = 0;
    json.ptr = json.data;

    /* Detect Unicode other than UTF-8 (see RFC 4627, Sec 3)
     *
     * CJSON can support any simple data type, hence only the first
     * character is guaranteed to be ASCII (at worst: '"'). This is
     * still enough to detect whether the wrong encoding is in use. */
    if (json_len >= 2 && (!json.data[0] || !json.data[1]))
        luaL_error(l, "JSON parser does not support UTF-16 or UTF-32");

    /* Ensure the temporary buffer can hold the entire string.
     * This means we no longer need to do length checks since the decoded
     * string must be smaller than the entire json string */
    json.tmp = strbuf_new(json_len);

    json_next_token(&json, &token);
    json_process_value(l, &json, &token);

    /* Ensure there is no more input left */
    json_next_token(&json, &token);

    if (token.type != T_END)
        json_throw_parse_error(l, &json, "the end", &token);

    strbuf_free(json.tmp);

    return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
callq 0x7846b
cmpl $0x1, %eax
je 0x882fd
leaq 0x39fcc(%rip), %rdx     # 0xc22be
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x82650
movq %rbx, %rdi
callq 0x8856b
movq %rax, 0x28(%rsp)
pushq $0x1
popq %rsi
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x8293c
movq %rax, 0x10(%rsp)
andl $0x0, 0x30(%rsp)
movq %rax, 0x18(%rsp)
movq (%r14), %rdi
cmpq $0x2, %rdi
jb 0x88356
cmpb $0x0, (%rax)
je 0x88340
cmpb $0x0, 0x1(%rax)
jne 0x88356
leaq 0x3a130(%rip), %rsi     # 0xc2477
movq %rbx, %rdi
xorl %eax, %eax
callq 0x82707
movq 0x8(%rsp), %rdi
callq 0x8d70c
leaq 0x10(%rsp), %r14
movq %rax, 0x10(%r14)
leaq 0x38(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x88b48
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x88f52
movq %r14, %rdi
movq %r15, %rsi
callq 0x88b48
cmpl $0xa, (%r15)
je 0x883ac
leaq 0x3a10b(%rip), %rdx     # 0xc24a5
leaq 0x10(%rsp), %rsi
leaq 0x38(%rsp), %rcx
movq %rbx, %rdi
callq 0x891b1
movq 0x20(%rsp), %rdi
callq 0x8d768
pushq $0x1
popq %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_cfg_encode_sparse_array
static int json_cfg_encode_sparse_array(lua_State *l)
{
    json_config_t *cfg = json_arg_init(l, 3);

    json_enum_option(l, 1, &cfg->encode_sparse_convert, NULL, 1);
    json_integer_option(l, 2, &cfg->encode_sparse_ratio, 0, INT_MAX);
    json_integer_option(l, 3, &cfg->encode_sparse_safe, 0, INT_MAX);

    return 3;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
pushq $0x3
popq %rbx
movl %ebx, %esi
callq 0x893aa
movq %rax, %r15
leaq 0x520(%rax), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x893f7
leaq 0x524(%r15), %rdx
pushq $0x2
popq %rsi
movq %r14, %rdi
xorl %ecx, %ecx
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
callq 0x89472
addq $0x528, %r15            # imm = 0x528
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
xorl %ecx, %ecx
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
callq 0x89472
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_cfg_encode_keep_buffer
static int json_cfg_encode_keep_buffer(lua_State *l)
{
    json_config_t *cfg = json_arg_init(l, 1);
    int old_value;

    old_value = cfg->encode_keep_buffer;

    json_enum_option(l, 1, &cfg->encode_keep_buffer, NULL, 1);

    /* Init / free the buffer if the setting has changed */
    if (old_value ^ cfg->encode_keep_buffer) {
        if (cfg->encode_keep_buffer)
            strbuf_init(&cfg->encode_buf, 0);
        else
            strbuf_free(&cfg->encode_buf);
    }

    return 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
pushq $0x1
popq %rsi
callq 0x893aa
movq %rax, %rbx
leaq 0x538(%rax), %rsi
movl 0x538(%rax), %ebp
movq %r14, %rdi
xorl %edx, %edx
callq 0x893f7
movl 0x538(%rbx), %eax
cmpl %eax, %ebp
je 0x8850a
addq $0x500, %rbx            # imm = 0x500
movq %rbx, %rdi
testl %eax, %eax
je 0x88505
xorl %esi, %esi
callq 0x8d624
jmp 0x8850a
callq 0x8d768
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_fetch_config
static json_config_t *json_fetch_config(lua_State *l)
{
    json_config_t *cfg;

    cfg = lua_touserdata(l, lua_upvalueindex(1));
    if (!cfg)
        luaL_error(l, "BUG: Unable to fetch CJSON configuration");

    return cfg;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0xffffd8ed, %esi       # imm = 0xFFFFD8ED
callq 0x789d1
movq %rax, %rbx
testq %rax, %rax
jne 0x88595
leaq 0x39d47(%rip), %rsi     # 0xc22d2
movq %r14, %rdi
xorl %eax, %eax
callq 0x82707
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_append_string
static void json_append_string(lua_State *l, strbuf_t *json, int lindex)
{
    const char *escstr;
    int i;
    const char *str;
    size_t len;

    str = lua_tolstring(l, lindex, &len);

    /* Worst case is len * 6 (all unicode escapes).
     * This buffer is reused constantly for small strings
     * If there are any excess pages, they won't be hit anyway.
     * This gains ~5% speedup. */
    strbuf_ensure_empty_length(json, len * 6 + 2);

    strbuf_append_char_unsafe(json, '\"');
    for (i = 0; i < len; i++) {
        escstr = char2escape[(unsigned char)str[i]];
        if (escstr)
            strbuf_append_string(json, escstr);
        else
            strbuf_append_char_unsafe(json, str[i]);
    }
    strbuf_append_char_unsafe(json, '\"');
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rsp, %r15
movl %edx, %esi
movq %r15, %rdx
callq 0x788e1
movq %rax, %r14
imull $0x6, (%r15), %esi
addl $0x2, %esi
movq %rbx, %rdi
callq 0x88b06
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0xc(%rbx)
movb $0x22, (%rax,%rcx)
xorl %r15d, %r15d
leaq 0x69f29(%rip), %r12     # 0xf2890
cmpq %r15, (%rsp)
jbe 0x8899a
movzbl (%r14,%r15), %eax
movq (%r12,%rax,8), %rsi
testq %rsi, %rsi
je 0x88985
movq %rbx, %rdi
callq 0x8d891
jmp 0x88995
movq (%rbx), %rcx
movslq 0xc(%rbx), %rdx
leal 0x1(%rdx), %esi
movl %esi, 0xc(%rbx)
movb %al, (%rcx,%rdx)
incq %r15
jmp 0x88967
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0xc(%rbx)
movb $0x22, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_append_number
static void json_append_number(lua_State *l, json_config_t *cfg,
                               strbuf_t *json, int lindex)
{
    double num = lua_tonumber(l, lindex);
    int len;

    if (cfg->encode_invalid_numbers == 0) {
        /* Prevent encoding invalid numbers */
        if (isinf(num) || isnan(num))
            json_encode_exception(l, cfg, json, lindex, "must not be NaN or Inf");
    } else if (cfg->encode_invalid_numbers == 1) {
        /* Encode invalid numbers, but handle "nan" separately
         * since some platforms may encode as "-nan". */
        if (isnan(num)) {
            strbuf_append_mem(json, "nan", 3);
            return;
        }
    } else {
        /* Encode invalid numbers as "null" */
        if (isinf(num) || isnan(num)) {
            strbuf_append_mem(json, "null", 4);
            return;
        }
    }

    strbuf_ensure_empty_length(json, FPCONV_G_FMT_BUFSIZE);
    len = fpconv_g_fmt(strbuf_empty_ptr(json), num, cfg->encode_number_precision);
    strbuf_extend_length(json, len);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl %ecx, %esi
callq 0x7885f
movl 0x530(%r14), %eax
cmpl $0x1, %eax
movq %xmm0, (%rsp)
je 0x88a17
testl %eax, %eax
jne 0x88a28
movq %xmm0, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jl 0x88a5a
leaq 0x399d9(%rip), %r8      # 0xc23de
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0x88aba
jmp 0x88a5a
ucomisd %xmm0, %xmm0
jnp 0x88a5a
leaq 0x299b8(%rip), %rsi     # 0xb23dc
pushq $0x3
jmp 0x88a4a
movq %xmm0, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jl 0x88a5a
leaq 0x27c8f(%rip), %rsi     # 0xb06d7
pushq $0x4
popq %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x88a8b
pushq $0x20
popq %rsi
movq %rbx, %rdi
callq 0x88b06
movslq 0xc(%rbx), %rdi
addq (%rbx), %rdi
movl 0x534(%r14), %esi
movsd (%rsp), %xmm0
callq 0x8dbe2
addl %eax, 0xc(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_encode_exception
static void json_encode_exception(lua_State *l, json_config_t *cfg, strbuf_t *json, int lindex,
                                  const char *reason)
{
    if (!cfg->encode_keep_buffer)
        strbuf_free(json);
    luaL_error(l, "Cannot serialise %s: %s",
                  lua_typename(l, lua_type(l, lindex)), reason);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %r8, %rbx
movl %ecx, %ebp
movq %rdi, %r14
cmpl $0x0, 0x538(%rsi)
jne 0x88ad7
movq %rdx, %rdi
callq 0x8d768
movq %r14, %rdi
movl %ebp, %esi
callq 0x786b8
movq %r14, %rdi
movl %eax, %esi
callq 0x786d4
leaq 0x3996d(%rip), %rsi     # 0xc245f
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x82707
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_throw_parse_error
static void json_throw_parse_error(lua_State *l, json_parse_t *json,
                                   const char *exp, json_token_t *token)
{
    const char *found;

    strbuf_free(json->tmp);

    if (token->type == T_ERROR)
        found = token->value.string;
    else
        found = json_token_type_name[token->type];

    /* Note: token->index is 0 based, display starting from 1 */
    luaL_error(l, "Expected %s but found %s at character %d",
               exp, found, token->index + 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movq 0x10(%rsi), %rdi
callq 0x8d768
movl (%rbx), %eax
movl 0x4(%rbx), %r8d
addq $0x8, %rbx
cmpq $0xc, %rax
leaq 0x69eb3(%rip), %rcx     # 0xf3090
leaq (%rcx,%rax,8), %rax
cmoveq %rbx, %rax
movq (%rax), %rcx
incl %r8d
leaq 0x393f5(%rip), %rsi     # 0xc25e7
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x82707
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_is_invalid_number
static int json_is_invalid_number(json_parse_t *json)
{
    const char *p = json->ptr;

    /* Reject numbers starting with + */
    if (*p == '+')
        return 1;

    /* Skip minus sign if it exists */
    if (*p == '-')
        p++;

    /* Reject numbers starting with 0x, or leading zeros */
    if (*p == '0') {
        int ch2 = *(p + 1);

        if ((ch2 | 0x20) == 'x' ||          /* Hex */
            ('0' <= ch2 && ch2 <= '9'))     /* Leading zero */
            return 1;

        return 0;
    } else if (*p <= '9') {
        return 0;                           /* Ordinary number */
    }

    /* Reject inf/nan */
    if (!strncasecmp(p, "inf", 3))
        return 1;
    if (!strncasecmp(p, "nan", 3))
        return 1;

    /* Pass all other numbers which may still be invalid, but
     * strtod() will catch them. */
    return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rbx
movzbl (%rbx), %eax
movb $0x1, %bpl
cmpl $0x2b, %eax
je 0x89276
cmpl $0x2d, %eax
jne 0x89221
movb 0x1(%rbx), %al
incq %rbx
cmpb $0x30, %al
jne 0x89240
movb 0x1(%rbx), %al
movl %eax, %ecx
andb $-0x21, %cl
cmpb $0x58, %cl
sete %cl
addb $-0x30, %al
cmpb $0xa, %al
setb %bpl
orb %cl, %bpl
jmp 0x89276
cmpb $0x3a, %al
jge 0x89248
xorl %ebp, %ebp
jmp 0x89276
leaq 0x28700(%rip), %rsi     # 0xb194f
pushq $0x3
popq %rdx
movq %rbx, %rdi
callq 0x268d0
testl %eax, %eax
je 0x89276
leaq 0x29177(%rip), %rsi     # 0xb23dc
pushq $0x3
popq %rdx
movq %rbx, %rdi
callq 0x268d0
testl %eax, %eax
sete %bpl
movzbl %bpl, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_next_number_token
static void json_next_number_token(json_parse_t *json, json_token_t *token)
{
    char *endptr;

    token->type = T_NUMBER;
    token->value.number = fpconv_strtod(json->ptr, &endptr);
    if (json->ptr == endptr)
        json_set_token_error(token, json, "invalid number");
    else
        json->ptr = endptr;     /* Skip the processed number */

    return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x5, (%rsi)
movq 0x8(%rdi), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x8daa8
movsd %xmm0, 0x8(%rbx)
movq 0x8(%r14), %rax
movq (%r15), %rcx
cmpq %rcx, %rax
je 0x892be
movq %rcx, 0x8(%r14)
jmp 0x892d5
movl $0xc, (%rbx)
subl (%r14), %eax
movl %eax, 0x4(%rbx)
leaq 0x391ea(%rip), %rax     # 0xc24bb
movq %rax, 0x8(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: decode_hex4
static int decode_hex4(const char *hex)
{
    int digit[4];
    int i;

    /* Convert ASCII hex digit to numeric digit
     * Note: this returns an error for invalid hex digits, including
     *       NULL */
    for (i = 0; i < 4; i++) {
        digit[i] = hexdigit2int(hex[i]);
        if (digit[i] < 0) {
            return -1;
        }
    }

    return (digit[0] << 12) +
           (digit[1] << 8) +
           (digit[2] << 4) +
            digit[3];
}

// Assembly:
xorl %ecx, %ecx
movl $0xffffffd0, %edx       # imm = 0xFFFFFFD0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0xffffffa9, %esi       # imm = 0xFFFFFFA9
cmpq $0x4, %rcx
je 0x8932b
movb (%rdi,%rcx), %r8b
leal -0x30(%r8), %r9d
cmpb $0xa, %r9b
jae 0x89309
movl %edx, %r9d
jmp 0x8931a
orb $0x20, %r8b
leal -0x61(%r8), %r10d
movl %esi, %r9d
cmpb $0x5, %r10b
ja 0x89348
movzbl %r8b, %r8d
addl %r9d, %r8d
movl %r8d, -0x18(%rsp,%rcx,4)
incq %rcx
jmp 0x892f0
movl -0x18(%rsp), %eax
movl -0x14(%rsp), %ecx
shll $0xc, %eax
shll $0x8, %ecx
addl %eax, %ecx
movl -0x10(%rsp), %eax
shll $0x4, %eax
addl %ecx, %eax
addl -0xc(%rsp), %eax
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_decode_descend
static void json_decode_descend(lua_State *l, json_parse_t *json, int slots)
{
    json->current_depth++;

    if (json->current_depth <= json->cfg->decode_max_depth &&
        lua_checkstack(l, slots)) {
        return;
    }

    strbuf_free(json->tmp);
    luaL_error(l, "Found too many nested data structures (%d) at character %d",
        json->current_depth, json->ptr - json->data);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x20(%rsi), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x20(%rsi)
movq 0x18(%rsi), %rcx
cmpl 0x540(%rcx), %eax
jge 0x8937e
movq %rbx, %rdi
movl %edx, %esi
callq 0x7835e
testl %eax, %eax
je 0x8937e
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x10(%r14), %rdi
callq 0x8d768
movl 0x20(%r14), %edx
movq 0x8(%r14), %rcx
subq (%r14), %rcx
leaq 0x39200(%rip), %rsi     # 0xc2599
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x82707
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_arg_init
static json_config_t *json_arg_init(lua_State *l, int args)
{
    luaL_argcheck(l, lua_gettop(l) <= args, args + 1,
                  "found too many arguments");

    while (lua_gettop(l) < args)
        lua_pushnil(l);

    return json_fetch_config(l);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
callq 0x7846b
cmpl %r14d, %eax
jle 0x893db
leal 0x1(%r14), %esi
leaq 0x392cb(%rip), %rdx     # 0xc2694
movq %rbx, %rdi
callq 0x82650
jmp 0x893db
movq %rbx, %rdi
callq 0x78a55
movq %rbx, %rdi
callq 0x7846b
cmpl %r14d, %eax
jl 0x893d3
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x8856b
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_enum_option
static int json_enum_option(lua_State *l, int optindex, int *setting,
                            const char **options, int bool_true)
{
    static const char *bool_options[] = { "off", "on", NULL };

    if (!options) {
        options = bool_options;
        bool_true = 1;
    }

    if (!lua_isnil(l, optindex)) {
        if (bool_true && lua_isboolean(l, optindex))
            *setting = lua_toboolean(l, optindex) * bool_true;
        else
            *setting = luaL_checkoption(l, optindex, NULL, options);
    }

    if (bool_true && (*setting == 0 || *setting == bool_true))
        lua_pushboolean(l, *setting);
    else
        lua_pushstring(l, options[*setting]);

    return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
testq %rdx, %rdx
leaq 0x703b4(%rip), %r14     # 0xf97c0
cmovneq %rdx, %r14
pushq $0x1
popq %rsi
callq 0x786b8
testl %eax, %eax
je 0x89439
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x786b8
pushq $0x1
popq %rsi
movq %rbx, %rdi
cmpl $0x1, %eax
jne 0x8943e
callq 0x788bd
jmp 0x89448
movl (%r15), %eax
jmp 0x8944b
xorl %edx, %edx
movq %r14, %rcx
callq 0x82866
movl %eax, (%r15)
cmpl $0x1, %eax
ja 0x8945f
movq %rbx, %rdi
movl %eax, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x78cb0
cltq
movq (%r14,%rax,8), %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x78aec
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lua_cjson.c
// Function: json_integer_option
static int json_integer_option(lua_State *l, int optindex, int *setting,
                               int min, int max)
{
    char errmsg[64];
    int value;

    if (!lua_isnil(l, optindex)) {
        value = luaL_checkinteger(l, optindex);
        snprintf(errmsg, sizeof(errmsg), "expected integer between %d and %d", min, max);
        luaL_argcheck(l, min <= value && value <= max, 1, errmsg);
        *setting = value;
    }

    lua_pushinteger(l, *setting);

    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %r8d, %ebp
movl %ecx, %r12d
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
callq 0x786b8
testl %eax, %eax
je 0x894e1
movq %rbx, %rdi
movl %r15d, %esi
callq 0x82b7a
movq %rax, %r15
leaq 0x39202(%rip), %rdx     # 0xc26ad
movq %rsp, %rdi
pushq $0x40
popq %rsi
movl %r12d, %ecx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x26120
cmpl %r12d, %r15d
setge %al
cmpl %ebp, %r15d
setle %cl
testb %cl, %al
jne 0x894dc
pushq $0x1
popq %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x82650
movl %r15d, (%r14)
jmp 0x894e4
movl (%r14), %r15d
movslq %r15d, %rsi
movq %rbx, %rdi
callq 0x78a7b
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq