LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/yahya-tamur[P]Visualising-Complex-Functions/gifenc.c
// Function: ge_new_gif
ge_GIF *ge_new_gif(
    const char *fname, uint16_t width, uint16_t height, uint8_t *palette, int depth, int loop) {
    ge_GIF *gif = calloc(1, sizeof(*gif) + 2 * width * height);
    if (!gif)
        goto no_gif;
    gif->w = width;
    gif->h = height;
    gif->depth = depth > 1 ? depth : 2;
    gif->frame = (uint8_t *) &gif[1];
    gif->back = &gif->frame[width * height];
    gif->fd = creat(fname, 0666);
    if (gif->fd == -1)
        goto no_fd;
    write(gif->fd, "GIF89a", 6);
    write_num(gif->fd, width);
    write_num(gif->fd, height);
    write(gif->fd, (uint8_t[]) { 0xF0 | (depth - 1), 0x00, 0x00 }, 3);
    write(gif->fd, palette, 3 << depth);
    if (loop >= 0 && loop <= 0xFFFF)
        put_loop(gif, (uint16_t) loop);
    return gif;
no_fd:
    free(gif);
no_gif:
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, 0xc(%rsp)
movl %r8d, %r15d
movq %rcx, 0x20(%rsp)
movl %edx, %r12d
movl %esi, %r13d
movq %rdi, %rbp
movl %esi, %r14d
imull %edx, %r14d
leal 0x130(,%r14,2), %esi
pushq $0x1
popq %rdi
callq 0x20f0
testq %rax, %rax
je 0x24fd
movq %rax, %rbx
movw %r13w, (%rax)
movw %r12w, 0x2(%rax)
cmpl $0x3, %r15d
pushq $0x2
popq %rax
cmovgel %r15d, %eax
movl %eax, 0x4(%rbx)
leaq 0x130(%rbx), %rax
movq %rax, 0x18(%rbx)
leaq (%rbx,%r14), %rax
addq $0x130, %rax            # imm = 0x130
movq %rax, 0x20(%rbx)
movq %rbp, %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x2100
movl %eax, 0x8(%rbx)
cmpl $-0x1, %eax
je 0x24f5
leaq 0x1bf1(%rip), %rsi      # 0x4004
pushq $0x6
popq %rdx
movl %eax, %edi
callq 0x2070
movl 0x8(%rbx), %edi
leaq 0x14(%rsp), %rsi
movw %r13w, (%rsi)
pushq $0x2
popq %r13
movq %r13, %rdx
callq 0x2070
movl 0x8(%rbx), %edi
leaq 0x12(%rsp), %rsi
movw %r12w, (%rsi)
movq %r13, %rdx
callq 0x2070
movl 0x8(%rbx), %edi
leal -0x1(%r15), %eax
orb $-0x10, %al
leaq 0x1a(%rsp), %rsi
movb %al, (%rsi)
andw $0x0, 0x1(%rsi)
pushq $0x3
popq %rdx
callq 0x2070
movl 0x8(%rbx), %edi
pushq $0x3
popq %rax
movl %r15d, %ecx
shll %cl, %eax
movslq %eax, %rdx
movq 0x20(%rsp), %rsi
callq 0x2070
movl 0xc(%rsp), %ebp
cmpl $0xffff, %ebp           # imm = 0xFFFF
ja 0x24ff
movl 0x8(%rbx), %edi
leaq 0x1d(%rsp), %rsi
movw $0xff21, (%rsi)         # imm = 0xFF21
movb $0xb, 0x2(%rsi)
pushq $0x3
popq %rdx
callq 0x2070
movl 0x8(%rbx), %edi
leaq 0x1b60(%rip), %rsi      # 0x400d
pushq $0xb
popq %rdx
callq 0x2070
movl 0x8(%rbx), %edi
leaq 0x18(%rsp), %rsi
movw $0x103, (%rsi)          # imm = 0x103
pushq $0x2
popq %r14
movq %r14, %rdx
callq 0x2070
movl 0x8(%rbx), %edi
leaq 0x16(%rsp), %rsi
movw %bp, (%rsi)
movq %r14, %rdx
callq 0x2070
movl 0x8(%rbx), %edi
leaq 0x1b32(%rip), %rsi      # 0x401d
pushq $0x1
popq %rdx
callq 0x2070
jmp 0x24ff
movq %rbx, %rdi
callq 0x21a0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/yahya-tamur[P]Visualising-Complex-Functions/gifenc.c
// Function: new_trie
static Node *new_trie(int degree, int *nkeys) {
    Node *root = new_node(0, degree);
    /* Create nodes for single pixels. */
    for (*nkeys = 0; *nkeys < degree; (*nkeys)++)
        root->children[*nkeys] = new_node(*nkeys, degree);
    *nkeys += 2; /* skip clear code and stop code */
    return root;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
xorl %r15d, %r15d
xorl %edi, %edi
movl %ebp, %esi
callq 0x2936
movq %rax, %r14
movl %r15d, (%rbx)
cmpl %ebp, %r15d
jge 0x2884
movzwl %r15w, %edi
movl %ebp, %esi
callq 0x2936
movslq (%rbx), %rcx
movq %rax, 0x8(%r14,%rcx,8)
leal 0x1(%rcx), %r15d
jmp 0x2863
addl $0x2, %r15d
movl %r15d, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/yahya-tamur[P]Visualising-Complex-Functions/gifenc.c
// Function: new_node
static Node *new_node(uint16_t key, int degree) {
    Node *node = calloc(1, sizeof(*node) + degree * sizeof(Node *));
    if (node)
        node->key = key;
    return node;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
movslq %esi, %rax
leaq 0x8(,%rax,8), %rsi
pushq $0x1
popq %rdi
callq 0x20f0
testq %rax, %rax
je 0x2954
movw %bx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/yahya-tamur[P]Visualising-Complex-Functions/gifenc.c
// Function: del_trie
static void del_trie(Node *root, int degree) {
    if (!root)
        return;
    for (int i = 0; i < degree; i++)
        del_trie(root->children[i], degree);
    free(root);
}

// Assembly:
testq %rdi, %rdi
je 0x299e
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
xorl %r14d, %r14d
testl %esi, %esi
movl $0x0, %r15d
cmovgl %esi, %r15d
cmpq %r14, %r15
je 0x298c
movq 0x8(%rbx,%r14,8), %rdi
movl %ebp, %esi
callq 0x2956
incq %r14
jmp 0x2976
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x21a0
retq
nop
// File: /workspace/github_c_makefile_star2_O2/yahya-tamur[P]Visualising-Complex-Functions/params.cc
// Function: function(std::complex<long double>)
std::complex<long double> function(std::complex<long double> z) {
    std::complex<long double> ans = 0;
    for (long double i = 0; i < 100; i += 1) {
        ans += std::pow(std::complex<long double>(i, 0), -z);
    }
    return ans;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %rbx
fldt 0xe0(%rsp)
fchs
fstpt 0x20(%rsp)
fldt 0xf0(%rsp)
fchs
fstpt 0x14(%rsp)
fldz
flds 0xc4d(%rip)             # 0x4110
fstpt 0x2c(%rsp)
leaq 0x90(%rsp), %r14
leaq 0x70(%rsp), %r15
leaq 0x50(%rsp), %r12
fld %st(0)
fld %st(1)
fldt 0x2c(%rsp)
fucompi %st(3), %st
jbe 0x3550
fld %st(2)
fstpt 0x70(%rsp)
fldz
fstpt 0x80(%rsp)
fldt 0x20(%rsp)
fstpt 0x50(%rsp)
fldt 0x14(%rsp)
fstpt 0x60(%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
fxch %st(1)
fstpt 0x8(%rsp)
fstpt 0x44(%rsp)
fstpt 0x38(%rsp)
callq 0x356b
fldt 0x38(%rsp)
fldt 0x44(%rsp)
fldt 0x90(%rsp)
fldt 0xa0(%rsp)
fxch %st(1)
faddp %st, %st(2)
fldt 0x8(%rsp)
faddp %st, %st(1)
fstpt 0x8(%rsp)
fldt 0x8(%rsp)
fld1
faddp %st, %st(3)
fxch %st(1)
jmp 0x34dd
fstp %st(2)
fxch %st(1)
fstpt (%rbx)
fstpt 0x10(%rbx)
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/aparrish[P]rwet-examples-c/ut_string_helpers.c
// Function: split_new
UT_array* split_new(const char* src, const char* delimiter) {
	char* src_copy;
	char* word;
	UT_array* tokens;

	utarray_new(tokens, &ut_str_icd);

	/* don't modify original string */
	src_copy = (char*)malloc(strlen(src)+1);
	strcpy(src_copy, src);
	if (src_copy == NULL) return NULL;

	word = strtok(src_copy, delimiter);
	while (word != NULL) {
		/* utarray_push_back copies the string */
		utarray_push_back(tokens, &word);
		word = strtok(NULL, delimiter);
	}

	free(src_copy);
	return tokens;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %r12
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x1070
movq %rax, %rbx
movups 0x2fd7(%rip), %xmm0     # 0x4dd0
movups %xmm0, 0x8(%rax)
movups 0x2fdc(%rip), %xmm0     # 0x4de0
movups %xmm0, 0x18(%rax)
movq %r12, %rdi
callq 0x1050
leaq 0x1(%rax), %rdi
callq 0x10a0
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
callq 0x1040
xorl %r15d, %r15d
testq %r13, %r13
je 0x1f36
movq %rbx, (%rsp)
addq $0x8, %rbx
movq %rbx, 0x18(%rsp)
movq %r13, 0x10(%rsp)
movq %r13, %rdi
movq %r14, 0x20(%rsp)
movq %r14, %rsi
callq 0x10d0
pushq $0x8
popq %rbp
leaq 0x331(%rip), %rcx       # 0x2190
pushq $0x8
popq %r14
xorl %edx, %edx
xorl %esi, %esi
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x1f26
leal 0x1(%rsi), %r12d
cmpl %r15d, %r12d
jbe 0x1eca
cmpl %r15d, %r12d
jbe 0x1e93
testl %r15d, %r15d
leal (%r15,%r15), %eax
cmovel %r14d, %eax
movl %eax, %r15d
jmp 0x1e7e
movq %rsi, %rbx
movq (%rsp), %rcx
movl %r15d, 0x4(%rcx)
movl %r15d, %eax
imulq %rax, %rbp
movq %rdx, %rdi
movq %rbp, %rsi
movq %rcx, %rbp
callq 0x10c0
movq %rax, 0x28(%rbp)
testq %rax, %rax
je 0x1f47
movq %rax, %rdx
movq 0x18(%rbp), %rcx
movq %rbx, %rsi
movq 0x18(%rsp), %rax
movq (%rax), %rbp
movl %esi, %edi
imulq %rbp, %rdi
testq %rcx, %rcx
je 0x1eef
movq %rdx, %rbx
addq %rdx, %rdi
leaq 0x8(%rsp), %rsi
movq %rcx, %r13
callq *%rcx
jmp 0x1f05
movq %rcx, %r13
movq %rdx, %rbx
addq %rdx, %rdi
leaq 0x8(%rsp), %rsi
movq %rbp, %rdx
callq 0x1090
movq (%rsp), %rax
movl %r12d, (%rax)
xorl %edi, %edi
movq 0x20(%rsp), %rsi
callq 0x10d0
movl %r12d, %esi
movq %r13, %rcx
movq %rbx, %rdx
jmp 0x1e67
movq 0x10(%rsp), %rdi
callq 0x1030
movq (%rsp), %rax
jmp 0x1f38
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
popq %rdi
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O2/aparrish[P]rwet-examples-c/ut_string_helpers.c
// Function: slice_new
UT_array* slice_new(const UT_array* src, int start, int end) {

	int i = start;
	UT_array* slice = NULL;
	utarray_new(slice, &ut_str_icd);
	char** elem = NULL;

	if (end > utarray_len(src))
		end = utarray_len(src);

	for (i = start; i < end; i++) {
		elem = (char**)utarray_eltptr(src, i);
		utarray_push_back(slice, elem);
	}

	return slice;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %rbx
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x1070
movq %rbx, %rcx
leaq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movups 0x2e5c(%rip), %xmm0     # 0x4de0
movups %xmm0, 0x18(%rax)
movups 0x2e41(%rip), %xmm0     # 0x4dd0
movups %xmm0, 0x8(%rax)
movl (%rbx), %edx
cmpl %r12d, %edx
cmovbl %edx, %r12d
movslq %r15d, %rsi
movslq %r12d, %rdx
movq %rdx, 0x28(%rsp)
xorl %r8d, %r8d
pushq $0x8
popq %rdx
movq %rdx, 0x8(%rsp)
leaq 0x1d7(%rip), %r9        # 0x2190
pushq $0x8
popq %rbx
xorl %r14d, %r14d
xorl %edi, %edi
movq %rcx, 0x20(%rsp)
movq %rax, 0x10(%rsp)
cmpq 0x28(%rsp), %rsi
jge 0x209d
cmpl %esi, (%rcx)
jbe 0x1fe8
movq 0x8(%rcx), %r13
imulq %rsi, %r13
addq 0x28(%rcx), %r13
jmp 0x1feb
xorl %r13d, %r13d
leal 0x1(%rdi), %r15d
cmpl %r14d, %r15d
movq %rsi, 0x30(%rsp)
ja 0x2008
jmp 0x2040
testl %r14d, %r14d
leal (%r14,%r14), %ecx
cmovel %ebx, %ecx
movl %ecx, %r14d
cmpl %r14d, %r15d
ja 0x1ffb
movq %rdi, %r12
movl %r14d, 0x4(%rax)
movl %r14d, %eax
movq 0x8(%rsp), %rsi
imulq %rax, %rsi
movq %r8, %rdi
callq 0x10c0
movq 0x10(%rsp), %rcx
movq %rax, 0x28(%rcx)
testq %rax, %rax
je 0x20ac
movq %rax, %r8
movq 0x18(%rcx), %r9
movq %r12, %rdi
movq 0x18(%rsp), %rax
movq (%rax), %rdx
movl %edi, %edi
imulq %rdx, %rdi
testq %r9, %r9
movq %rdx, 0x8(%rsp)
je 0x2069
movq %r8, %rbp
addq %r8, %rdi
movq %r13, %rsi
movq %r9, %r12
callq *%r9
jmp 0x207a
movq %r9, %r12
movq %r8, %rbp
addq %r8, %rdi
movq %r13, %rsi
callq 0x1090
movq 0x10(%rsp), %rax
movl %r15d, (%rax)
movq 0x30(%rsp), %rsi
incq %rsi
movl %r15d, %edi
movq 0x20(%rsp), %rcx
movq %rbp, %r8
movq %r12, %r9
jmp 0x1fcb
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
popq %rdi
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O2/aparrish[P]rwet-examples-c/ut_string_helpers.c
// Function: join_new
int join_new(char** s, const UT_array* src, const char* separator) {
	int len, i, separator_len, offset, src_len;
	char** elem = NULL;

	separator_len = strlen(separator);
	src_len = utarray_len(src);

	/* calculate the size for the needed buffer (length of all strings in src,
	   plus src_len * separator_len - 1 */
	len = 0;
	for (i = 0; i < src_len; i++) {
		len += strlen(*(char**)utarray_eltptr(src, i));
	}
	len += (src_len - 1) * separator_len;

	*s = (char*)malloc(len + 1);

	/* s = char**
   * *s = char*
   * **s char */

	/* blit chars into allocated buffer */
	offset = 0;
	for (i = 0; i < src_len; i++) {
		elem = (char**)utarray_eltptr(src, i);	
		if (i < src_len - 1) {
			offset += sprintf((*s) + offset, "%s%s", *elem, separator);
		}
		else {
			sprintf((*s) + offset, "%s", *elem);
		}
	}

	return len;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq %rdx, %rdi
callq 0x1050
movq %rax, %r15
movslq (%r14), %r13
xorl %ebx, %ebx
testl %r13d, %r13d
movl $0x0, %r12d
cmovgl %r13d, %r12d
xorl %ebp, %ebp
cmpq %rbx, %r12
je 0x210f
movq 0x28(%r14), %rax
movq 0x8(%r14), %rcx
imulq %rbx, %rcx
movq (%rax,%rcx), %rdi
callq 0x1050
addl %eax, %ebp
incq %rbx
jmp 0x20ee
decq %r13
imull %r13d, %r15d
movl %ebp, %eax
addl %r15d, %ebp
addl %r15d, %eax
incl %eax
movslq %eax, %rdi
callq 0x10a0
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
xorl %ebx, %ebx
xorl %r15d, %r15d
cmpq %rbx, %r12
je 0x217f
movq 0x28(%r14), %rax
movq 0x8(%r14), %rcx
imulq %rbx, %rcx
movslq %r15d, %rdi
movq 0x8(%rsp), %rdx
addq (%rdx), %rdi
movq (%rax,%rcx), %rdx
cmpq %r13, %rbx
jge 0x2172
leaq 0xf18(%rip), %rsi       # 0x3079
movq 0x10(%rsp), %rcx
xorl %eax, %eax
callq 0x10e0
addl %eax, %r15d
jmp 0x217a
movq %rdx, %rsi
callq 0x1040
incq %rbx
jmp 0x2135
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/openshmem-org[P]openshmem-examples/c/bcast4.c
// Function: main
int
main(void)
{
    int i;
    long *target;
    static long source[8] = { 1, 2, 3, 4, 5, 6, 7, 8 };
    int nlong = 8;
    int me;

    shmem_init();
    me = shmem_my_pe();

    target = (long *) shmem_malloc(8 * sizeof(*target));

    for (i = 0; i < SHMEM_BCAST_SYNC_SIZE; i += 1) {
        pSync[i] = SHMEM_SYNC_VALUE;
    }
    shmem_barrier_all();

    /* Number of PEs in the active set must be set properly, this test is
       expected to run with 4 PEs */
    if ((me % 2) == 0) {
        shmem_broadcast64(target, source, nlong, 0, 0, 1, 2, pSync);
    }

    shmem_barrier_all();

    for (i = 0; i < 8; i++) {
        printf("%d: target[%d] = %ld\n", me, i, target[i]);
    }

    shmem_free(target);

    shmem_finalize();

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
callq 0x1080
callq 0x1050
movl %eax, %ebx
pushq $0x40
popq %rdi
callq 0x1060
movq %rax, %r14
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x2ee9(%rip)     # 0x40c0
callq 0x1070
testb $0x1, %bl
jne 0x1208
leaq 0x2ed8(%rip), %rax      # 0x40c0
leaq 0x2e81(%rip), %rsi      # 0x4070
pushq $0x8
popq %rdx
pushq $0x1
popq %r9
movq %r14, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %rax
pushq $0x2
callq 0x10a0
popq %rax
popq %rcx
callq 0x1070
leaq 0xdf0(%rip), %r15       # 0x2004
xorl %r12d, %r12d
cmpq $0x8, %r12
je 0x1235
movq (%r14,%r12,8), %rcx
movq %r15, %rdi
movl %ebx, %esi
movl %r12d, %edx
xorl %eax, %eax
callq 0x1030
incq %r12
jmp 0x1217
movq %r14, %rdi
callq 0x1090
callq 0x1040
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/antonblanchard[P]will-it-scale/tests/unlink1.c
// Function: testcase_prepare
void testcase_prepare(unsigned long nr_tasks)
{
	int i;
	tmpfiles = (char(*)[sizeof(template)])malloc(sizeof(template) * nr_tasks);
	assert(tmpfiles);

	for (i = 0; i < nr_tasks; i++) {
		strcpy(tmpfiles[i], template);
		char *tmpfile = tmpfiles[i];
		int fd = mkstemp(tmpfile);

		assert(fd >= 0);
		close(fd);
		unlink(tmpfile);
	}

	local_nr_tasks = nr_tasks;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
imulq $0x18, %rdi, %rdi
callq 0x21b0
movq %rax, 0xe64c(%rip)      # 0x111a8
testq %rax, %rax
je 0x2be5
xorl %r15d, %r15d
movabsq $0x5858585858582e, %r12 # imm = 0x5858585858582E
movq %rbx, %r13
subq $0x1, %r13
jb 0x2bb8
movq 0xe626(%rip), %rax      # 0x111a8
leaq (%rax,%r15), %r14
movups 0x739(%rip), %xmm0      # 0x32c6
movups %xmm0, (%rax,%r15)
movq %r12, 0x10(%rax,%r15)
movq %r14, %rdi
callq 0x21d0
testl %eax, %eax
js 0x2bc8
movl %eax, %edi
callq 0x2140
movq %r14, %rdi
callq 0x2080
addq $0x18, %r15
jmp 0x2b75
movl %ebx, 0xe5f2(%rip)      # 0x111b0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x70f(%rip), %rdi       # 0x32de
leaq 0x6bb(%rip), %rsi       # 0x3291
leaq 0x6c4(%rip), %rcx       # 0x32a1
pushq $0x1b
popq %rdx
callq 0x2120
leaq 0x69c(%rip), %rdi       # 0x3288
leaq 0x69e(%rip), %rsi       # 0x3291
leaq 0x6a7(%rip), %rcx       # 0x32a1
pushq $0x14
jmp 0x2bdf
// File: /workspace/github_c_makefile_star2_O2/antonblanchard[P]will-it-scale/tests/unlink1.c
// Function: testcase
void testcase(unsigned long long *iterations, unsigned long nr)
{
	char *tmpfile = tmpfiles[nr];

	while (1) {
		int fd = open(tmpfile, O_RDWR|O_CREAT, 0600);
		assert(fd >= 0);
		close(fd);
		unlink(tmpfile);

		(*iterations)++;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
imulq $0x18, %rsi, %r14
addq 0xe598(%rip), %r14      # 0x111a8
pushq $0x42
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
movl $0x180, %edx            # imm = 0x180
xorl %eax, %eax
callq 0x2210
testl %eax, %eax
js 0x2c3c
movl %eax, %edi
callq 0x2140
movq %r14, %rdi
callq 0x2080
incq (%rbx)
jmp 0x2c13
leaq 0x69b(%rip), %rdi       # 0x32de
leaq 0x647(%rip), %rsi       # 0x3291
leaq 0x695(%rip), %rcx       # 0x32e6
pushq $0x2a
popq %rdx
callq 0x2120
// File: /workspace/github_c_makefile_star2_O2/antonblanchard[P]will-it-scale/tests/unlink1.c
// Function: testcase_cleanup
void testcase_cleanup(void)
{
	int i;
	for (i = 0; i < local_nr_tasks; i++) {
		unlink(tmpfiles[i]);
	}
	free(tmpfiles);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
xorl %r14d, %r14d
movslq 0xe547(%rip), %rax      # 0x111b0
movq 0xe538(%rip), %rdi      # 0x111a8
cmpq %rax, %r14
jge 0x2c86
addq %rbx, %rdi
callq 0x2080
incq %r14
addq $0x18, %rbx
jmp 0x2c62
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2050
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./Utilities.h
// Function: growBuffer(char*&, int&)
void growBuffer(char *&buf, int &max_buffer) {
   int old_max = max_buffer;
   max_buffer *= 2;
   buf = (char *)realloc(buf, max_buffer * sizeof(char));

   // null terminate the new memory
   memset(&buf[old_max], '\0', max_buffer - old_max);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movslq (%rsi), %r15
leaq (%r15,%r15), %rsi
movl %esi, (%rbx)
movq (%rdi), %rdi
callq 0x22d0
movq %rax, (%r14)
leaq (%rax,%r15), %rdi
movslq (%rbx), %rdx
subq %r15, %rdx
xorl %esi, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x20f0
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./Utilities.h
// Function: safeCopyToBuffer(char*&, char const*, int&, int&)
void safeCopyToBuffer(char *&dest_root, const char *source, int &index, int &max_buffer) {
   int len = strlen(source);
   if (len == 0) return;

   while (index + len >= max_buffer) {
      int old_max = max_buffer;
      max_buffer *= 2;
      dest_root = (char *)realloc(dest_root, max_buffer * sizeof(char));

      // null terminate the new memory
      memset(&dest_root[old_max], '\0', max_buffer - old_max);
   }

   strncpy(&dest_root[index], source, len);
   index += len;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r13
movq %rsi, %rdi
callq 0x2090
movq %rax, %r15
testl %r15d, %r15d
je 0x2667
movq %r14, (%rsp)
movl (%r12), %ebp
movslq (%rbx), %rdi
leal (%rdi,%r15), %eax
cmpl %ebp, %eax
jl 0x2654
leal (,%rbp,2), %eax
movl %eax, (%r12)
movq (%r13), %rdi
movslq %eax, %rsi
callq 0x22d0
movq %rax, (%r13)
movslq %ebp, %rdi
addq %rax, %rdi
movl (%r12), %r14d
movl %r14d, %eax
subl %ebp, %eax
movslq %eax, %rdx
xorl %esi, %esi
callq 0x20f0
movl %r14d, %ebp
jmp 0x2610
addq (%r13), %rdi
movslq %r15d, %rdx
movq (%rsp), %rsi
callq 0x20d0
addl %r15d, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./FHErrorTracker.h
// Function: OrderBook::FHErrorTracker::printStatistics()
void printStatistics() {
      fprintf(stderr, "\n[Feed Handler Statistics]\n");
      fprintf(stderr, "   %-30s %10u\n", "Corrupt Messages", corrupt_messages_);
      fprintf(stderr, "   %-30s %10u\n", "Good Messages:", good_messages_);
      fprintf(stderr, "   %-30s %10u\n", "Duplicate Adds:", duplicate_add_);
      fprintf(stderr, "   %-30s %10u\n", "Trades Missing Orders:", trade_missing_orders_);
      fprintf(stderr, "   %-30s %10u\n", "Cancels for Missing ID's:", bad_cancels_);
      fprintf(stderr, "   %-30s %10u\n", "Modifies for Missing ID's:", bad_modifies_);
      fprintf(stderr, "   %-30s %10u\n", "Crossed Book:", crossed_book_);
      fprintf(stderr, "   %-30s %10u\n", "Invalid Quantities:", invalid_qtys_);
      fprintf(stderr, "   %-30s %10u\n", "Invalid Prices:", invalid_prices_);
      fprintf(stderr, "   %-30s %10u\n", "Invalid IDs:", invalid_ids_);
   }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x7649(%rip), %r15      # 0x9fd8
movq (%r15), %rcx
leaq 0x3747(%rip), %rdi      # 0x60e0
pushq $0x1b
popq %rsi
pushq $0x1
popq %rdx
callq 0x2300
movq (%r15), %rdi
movl 0x14(%rbx), %ecx
leaq 0x374b(%rip), %r14      # 0x60fc
leaq 0x3753(%rip), %rdx      # 0x610b
movq %r14, %rsi
xorl %eax, %eax
callq 0x2250
movq (%r15), %rdi
movl 0x24(%rbx), %ecx
leaq 0x374d(%rip), %rdx      # 0x611c
movq %r14, %rsi
xorl %eax, %eax
callq 0x2250
movq (%r15), %rdi
movl (%rbx), %ecx
leaq 0x3746(%rip), %rdx      # 0x612b
movq %r14, %rsi
xorl %eax, %eax
callq 0x2250
movq (%r15), %rdi
movl 0x4(%rbx), %ecx
leaq 0x373f(%rip), %rdx      # 0x613b
movq %r14, %rsi
xorl %eax, %eax
callq 0x2250
movq (%r15), %rdi
movl 0x8(%rbx), %ecx
leaq 0x373f(%rip), %rdx      # 0x6152
movq %r14, %rsi
xorl %eax, %eax
callq 0x2250
movq (%r15), %rdi
movl 0xc(%rbx), %ecx
leaq 0x3742(%rip), %rdx      # 0x616c
movq %r14, %rsi
xorl %eax, %eax
callq 0x2250
movq (%r15), %rdi
movl 0x10(%rbx), %ecx
leaq 0x3746(%rip), %rdx      # 0x6187
movq %r14, %rsi
xorl %eax, %eax
callq 0x2250
movq (%r15), %rdi
movl 0x18(%rbx), %ecx
leaq 0x373d(%rip), %rdx      # 0x6195
movq %r14, %rsi
xorl %eax, %eax
callq 0x2250
movq (%r15), %rdi
movl 0x1c(%rbx), %ecx
leaq 0x373a(%rip), %rdx      # 0x61a9
movq %r14, %rsi
xorl %eax, %eax
callq 0x2250
movq (%r15), %rdi
movl 0x20(%rbx), %ecx
leaq 0x3733(%rip), %rdx      # 0x61b9
movq %r14, %rsi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x2250
nop
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./OrderBook.h
// Function: OrderBook::OrderBook<unsigned int, OrderLevelEntry>::~OrderBook()
~OrderBook() {
      for (auto it = buy_book_map_.begin(); it != buy_book_map_.end(); ++it) {
         it->second.clearLevel();
      }
      for (auto it = sell_book_map_.begin(); it != sell_book_map_.end(); ++it) {
         it->second.clearLevel();
      }
      buy_book_map_.clear();
      sell_book_map_.clear();
      while (!orders_.empty()) {
         auto it = orders_.begin();
         delete it->second;
         orders_.erase(it);
      }
   }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0xd8(%rdi), %r14
movq 0xf0(%rdi), %r15
leaq 0xe0(%rdi), %r12
cmpq %r12, %r15
je 0x2b70
leaq 0x28(%r15), %rdi
callq 0x2faa
movq %r15, %rdi
callq 0x2140
movq %rax, %r15
jmp 0x2b55
leaq 0x108(%rbx), %r15
movq 0x120(%rbx), %r12
leaq 0x110(%rbx), %r13
cmpq %r13, %r12
je 0x2ba1
leaq 0x28(%r12), %rdi
callq 0x2faa
movq %r12, %rdi
callq 0x2140
movq %rax, %r12
jmp 0x2b85
movq %r14, %rdi
callq 0x309a
movq %r15, %rdi
callq 0x309a
leaq 0x138(%rbx), %r12
cmpq $0x0, 0x150(%rbx)
je 0x2bdf
movq 0x148(%rbx), %r13
movq 0x10(%r13), %rdi
callq 0x21a0
movq %r12, %rdi
movq %r13, %rsi
callq 0x30fc
jmp 0x2bb8
movq %r12, %rdi
callq 0x31fa
movq %r15, %rdi
callq 0x3280
movq %r14, %rdi
callq 0x3280
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2fda
jmp 0x2c0c
jmp 0x2c0c
movq %rax, %rdi
callq 0x286e
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./CountedOrderList.h
// Function: OrderBook::CountedOrderList<OrderLevelEntry>::clearLevel()
void clearLevel() {
      NODE *head = DLList<NODE>::getHead();
      while (head != DLList<NODE>::getTail()) {
         removeNode(head);
         head = head->previous_;
      }
      removeNode(head);
   }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq (%r14), %r14
movq 0x10(%rbx), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3036
cmpq %r15, %r14
je 0x2fd3
addq $0x20, %r14
jmp 0x2fb6
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./Logger.h
// Function: Logger::~Logger()
~Logger() {
      // Guard against it never being used or being stopped elsewhere
      if (thread_ == 0) return;

      exit_ = true;
      thread_->join();
      delete thread_;
      thread_ = 0;
   }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x3011
movb $0x1, %al
xchgb %al, (%rbx)
callq 0x22e0
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x3004
movq %r14, %rdi
callq 0x3294
movq %r14, %rdi
callq 0x21a0
andq $0x0, 0x8(%rbx)
leaq 0x60(%rbx), %rdi
callq 0x2e8a
addq $0x10, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2e8a
movq %rax, %rdi
callq 0x286e
nop
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./DLList.h
// Function: OrderBook::DLList<OrderLevelEntry>::removeNode(OrderLevelEntry*)
void removeNode(NODE *target) {
      // Skip self and delete if straddled
      if (target->previous_ != 0 && target->next_ != 0) {
         target->previous_->next_ = target->next_;
         target->next_->previous_ = target->previous_;
      }
      // Edge - tail deleted
      else if (target == tail_ && target->next_ != 0) {
         tail_ = target->next_;
         tail_->previous_ = 0;
      }
      // Edge - head deleted
      else if (target == head_ && target->previous_ != 0) {
         head_ = target->previous_;
         head_->next_ = 0;
      }
      // Edge - single element list
      else {
         head_ = 0;
         tail_ = 0;
         return;
      }
   }

// Assembly:
movq 0x20(%rsi), %rax
testq %rax, %rax
je 0x3061
movq 0x18(%rsi), %rcx
testq %rcx, %rcx
je 0x3061
movq %rcx, 0x18(%rax)
movq 0x18(%rsi), %rcx
movq %rax, 0x20(%rcx)
retq
cmpq %rsi, 0x10(%rdi)
je 0x3086
leaq 0x8(%rdi), %rcx
testq %rax, %rax
je 0x307f
cmpq %rsi, 0x8(%rdi)
jne 0x307f
movq %rax, (%rcx)
andq $0x0, 0x18(%rax)
retq
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
retq
movq 0x18(%rsi), %rcx
testq %rcx, %rcx
je 0x3067
movq %rcx, 0x10(%rdi)
andq $0x0, 0x20(%rcx)
retq
nop
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./MessageParser.h
// Function: OrderBook::MessageParser::getMessageType(char*)
inline MessageType MessageParser::getMessageType(char *tk_msg) {
   uint32_t len = strlen(tk_msg);
   if (len == 0 || len > MESSAGELENMAX) {
      FHErrorTracker::instance()->corruptMessage();
      return eMT_Unknown;
   }

   tk_msg = strtok(tk_msg, ",");
   switch(tk_msg[0]) {
      case 'A':
         return eMT_Add;
         break;
      case 'M':
         return eMT_Modify;
         break;
      case 'X':
         return eMT_Remove;
         break;
      case 'T':
         return eMT_Trade;
         break;
      default:
         return eMT_Unknown;
         break;
   }
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq %rsi, %rdi
callq 0x2090
addl $-0x25, %eax
cmpl $-0x25, %eax
ja 0x32c2
callq 0x2842
incl 0x14(%rax)
xorl %eax, %eax
jmp 0x32f7
leaq 0x2f39(%rip), %rsi      # 0x6202
movq %rbx, %rdi
callq 0x22a0
movzbl (%rax), %eax
cmpl $0x41, %eax
je 0x32f4
cmpl $0x58, %eax
je 0x32ec
cmpl $0x54, %eax
je 0x32f0
cmpl $0x4d, %eax
jne 0x32be
pushq $0x3
jmp 0x32f6
pushq $0x2
jmp 0x32f6
pushq $0x4
jmp 0x32f6
pushq $0x1
popq %rax
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./MessageParser.h
// Function: OrderBook::MessageParser::parseTrade(char*, TradeMessage&)
inline void MessageParser::parseTrade(char *tk_msg, TradeMessage &tm) {
   ParseStatus result = tokenizeAndConvertToUint(tk_msg, tm.trade_qty_);
   if (result != ePS_Good) {
      if (result == ePS_CorruptMessage)
         return failTradeParse(tm, result);;
      return failTradeParse(tm, ePS_BadQuantity);
   }
   if (tm.trade_qty_ == 0) return failTradeParse(tm, ePS_BadPrice);

   double price;
   result = tokenizeAndConvertToDouble(tk_msg, price);
   if (result != ePS_Good) {
      if (result == ePS_CorruptMessage)
         return failTradeParse(tm, result);
      return failTradeParse(tm, ePS_BadPrice);
   }
   // technically not supporting prices up to double here.
   if (price > ULLONG_MAX) {
      return failTradeParse(tm, ePS_BadPrice);
   }

   // Bail if not 0-2 decimals of precision
   if ((double)(price * 100) - static_cast<unsigned long long>(price * 100) != 0) {
      return failTradeParse(tm, ePS_BadPrice);
   }
   if (static_cast<unsigned long long>(price * 100) == 0) return failTradeParse(tm, ePS_BadPrice);

   tm.trade_price_ = static_cast<unsigned long long>(price * 100);
   if (tm.trade_price_ > MAXPRICE - 1) {
      DB("Price: %llu.  Max: %d\n", tm.trade_price_, MAXPRICE - 1);
      return failTradeParse(tm, ePS_BadPrice);
   }

   FHErrorTracker::instance()->goodMessage();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0x3bce
testl %eax, %eax
je 0x331e
cmpl $0x1, %eax
jne 0x3347
pushq $0x1
jmp 0x334d
cmpl $0x0, (%rbx)
je 0x334b
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3c3e
testl %eax, %eax
je 0x3362
cmpl $0x1, %eax
jne 0x33ce
pushq $0x1
jmp 0x33d0
pushq $0x2
jmp 0x334d
pushq $0x3
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x3c2e
movsd 0x8(%rsp), %xmm0
ucomisd 0x2c98(%rip), %xmm0     # 0x6008
ja 0x33ce
mulsd 0x2c96(%rip), %xmm0     # 0x6010
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
movapd %xmm0, %xmm1
subsd 0x2c8a(%rip), %xmm1     # 0x6018
cvttsd2si %xmm1, %rax
sarq $0x3f, %rdx
andq %rdx, %rax
orq %rcx, %rax
movq %rax, %xmm1
punpckldq 0x2c86(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2c8e(%rip), %xmm1     # 0x6040
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
subsd %xmm2, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x33ce
jnp 0x33e6
pushq $0x3
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3c2e
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
testq %rax, %rax
je 0x33ce
movq %rax, 0x8(%rbx)
cmpq $0x989680, %rax         # imm = 0x989680
jae 0x33ce
callq 0x2842
incl 0x24(%rax)
jmp 0x33dc
nop
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./OrderBook.h
// Function: OrderBook::OrderBook<unsigned int, OrderLevelEntry>::addOrder(OrderLevelEntry*)
void addOrder(ORDERTYPE* ole) {
      checkCross();

      auto ooit = orders_.find(ole->order_id_);
      if (ooit != orders_.end()) {
         FHErrorTracker::instance()->duplicateAdd();
         delete ole;
         return;
      }

      OrderListMap &map = ole->order_side_ == eS_Buy ? buy_book_map_ : sell_book_map_;

      std::pair<typename OrderListMap::iterator, bool> ret;
      ret = map.insert(
         std::pair<unsigned long long, CountedOrderList<ORDERTYPE>>(
            ole->order_price_, CountedOrderList<ORDERTYPE>()));
      ret.first->second.addNode(ole);
      orders_[ole->order_id_] = ole;
   }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r15
callq 0x4b50
leaq 0x138(%r15), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4be2
testq %rax, %rax
je 0x3813
callq 0x2842
incl (%rax)
movq %rbx, %rdi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
leaq 0x108(%r15), %rax
addq $0xd8, %r15
cmpl $0x1, 0x14(%rbx)
cmovneq %rax, %r15
xorps %xmm0, %xmm0
leaq 0x8(%rsp), %rsi
movups %xmm0, 0x10(%rsi)
movq 0x8(%rbx), %rax
movq %rax, (%rsi)
leaq 0x6515(%rip), %rax      # 0x9d58
movq %rax, 0x8(%rsi)
andl $0x0, 0x20(%rsi)
movq %r15, %rdi
callq 0x5192
leaq 0x28(%rax), %rdi
movq %rbx, %rsi
callq 0x5170
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5344
movq %rbx, (%rax)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./OrderBook.h
// Function: OrderBook::OrderBook<unsigned int, OrderLevelEntry>::removeOrder(OrderLevelEntry*)
void removeOrder(ORDERTYPE* ole) {
      checkCross();

      // Confirm cancel of existing.  Don't check fields against record on books:
      // wasn't requested.  Trivial to do.
      auto ooit = orders_.find(ole->order_id_);
      if (ooit == orders_.end()) {
         FHErrorTracker::instance()->badCancel();
         delete ole;
         return;
      }

      OrderListMap &map = ooit->second->order_side_ == eS_Buy ? buy_book_map_ : sell_book_map_;

      typename OrderListMap::iterator pit = map.find(ooit->second->order_price_);
      if (pit == map.end()) {
         fprintf(stderr, "OrderBook:: CATASTROPHIC ERROR.  Cancel for order on price level (%llu) not found.  Skipping!\n", ooit->second->order_price_);
         delete ole;
         return;
      }
      pit->second.removeNode(ooit->second);
      delete ooit->second;
      orders_.erase(ooit);
      delete ole;

      if (pit->second.getQuantity() == 0) {
         map.erase(pit);
      }
   }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4b50
leaq 0x138(%r14), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4be2
testq %rax, %rax
je 0x3a81
movq %rax, %r12
movq 0x10(%rax), %rsi
leaq 0x108(%r14), %rax
addq $0xd8, %r14
cmpl $0x1, 0x14(%rsi)
cmovneq %rax, %r14
addq $0x8, %rsi
movq %r14, %rdi
callq 0x4b8c
movq %rax, %r13
leaq 0x8(%r14), %rax
movq 0x10(%r12), %rsi
cmpq %rax, %r13
je 0x3aae
movq %r13, %rdi
addq $0x28, %rdi
callq 0x3036
movq 0x10(%r12), %rdi
callq 0x21a0
movq %r15, %rdi
movq %r12, %rsi
callq 0x30fc
movq %rbx, %rdi
callq 0x21a0
cmpl $0x0, 0x40(%r13)
je 0x3a9a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
callq 0x2842
incl 0x8(%rax)
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x21a0
movq %r14, %rdi
movq %r13, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x4c5e
movq 0x6523(%rip), %rax      # 0x9fd8
movq (%rax), %rdi
movq 0x8(%rsi), %rdx
leaq 0x27d2(%rip), %rsi      # 0x6295
xorl %eax, %eax
callq 0x2250
jmp 0x3a89
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./OrderBook.h
// Function: OrderBook::OrderBook<unsigned int, OrderLevelEntry>::printMidpoint()
void printMidpoint() {
      if (sell_book_map_.empty() || buy_book_map_.empty()) {
         logger_.print("NAN\n");
         return;
      }

      unsigned long long sell_min = sell_book_map_.begin()->first;
      unsigned long long buy_max = buy_book_map_.rbegin()->first;
      double midpoint = (sell_min + buy_max) / 200.;
      char buffer[20];
      sprintf(buffer, "%.2f\n", midpoint);
      logger_.print(buffer);
   }

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x130(%rdi)
je 0x3b72
cmpq $0x0, 0x100(%rbx)
je 0x3b72
movq 0x120(%rbx), %rax
movq 0x20(%rax), %r14
leaq 0xe0(%rbx), %rdi
callq 0x21e0
addq 0x20(%rax), %r14
movq %r14, %xmm1
punpckldq 0x2516(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x251e(%rip), %xmm1     # 0x6040
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x24ea(%rip), %xmm0     # 0x6020
leaq 0x2722(%rip), %rsi      # 0x625f
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movb $0x1, %al
callq 0x2040
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %r14, %rsi
callq 0x2070
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4af6
leaq 0x10(%rsp), %rdi
jmp 0x3b9a
leaq 0x277b(%rip), %rsi      # 0x62f4
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x2070
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x4af6
leaq 0x30(%rsp), %rdi
callq 0x20a0
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x3bb9
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x20a0
jmp 0x3bc5
jmp 0x3bc2
movq %rax, %rbx
movq %rbx, %rdi
callq 0x22f0
nop
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./MessageParser.h
// Function: OrderBook::MessageParser::tokenizeAndConvertToUint(char*, unsigned int&)
inline ParseStatus MessageParser::tokenizeAndConvertToUint(char *tk_msg, uint32_t &dest) {
   tk_msg = strtok(NULL, ",");
   if (tk_msg == NULL) {
      return ePS_CorruptMessage;
   }
   // Prevent boost qi from rolling on 1st bit
   else if (tk_msg[0] == '-') {
      return ePS_GenericBadValue;
   }
   else if (!qi::parse(tk_msg, &tk_msg[strlen(tk_msg)], uint_, dest)) {
      return ePS_GenericBadValue;
   }
   return ePS_Good;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
leaq 0x2626(%rip), %rsi      # 0x6202
xorl %edi, %edi
callq 0x22a0
movq %rax, (%rsp)
testq %rax, %rax
je 0x3bf8
movq %rax, %r14
cmpb $0x2d, (%rax)
jne 0x3bfd
pushq $0x5
jmp 0x3bfa
pushq $0x1
popq %rax
jmp 0x3c25
movq %r14, %rdi
callq 0x2090
addq %rax, %r14
leaq 0x65ac(%rip), %rdx      # 0xa1bb
movq %rsp, %rdi
movq %r14, %rsi
movq %rbx, %rcx
callq 0x3c9d
xorb $0x1, %al
movzbl %al, %eax
leal (%rax,%rax,4), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./MessageParser.h
// Function: OrderBook::MessageParser::tokenizeAndConvertToDouble(char*, double&)
inline ParseStatus MessageParser::tokenizeAndConvertToDouble(char *tk_msg, double &dest) {
   tk_msg = strtok(NULL, ",");
   if (tk_msg == NULL) {
      return ePS_CorruptMessage;
   }
   // Prevent boost qi from rolling on 1st bit
   else if (tk_msg[0] == '-') {
      return ePS_GenericBadValue;
   }
   else if (!qi::parse(tk_msg, &tk_msg[strlen(tk_msg)], double_, dest)) {
      return ePS_GenericBadValue;
   }
   return ePS_Good;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
leaq 0x25b6(%rip), %rsi      # 0x6202
xorl %edi, %edi
callq 0x22a0
movq %rax, (%rsp)
testq %rax, %rax
je 0x3c68
movq %rax, %r14
cmpb $0x2d, (%rax)
jne 0x3c6d
pushq $0x5
jmp 0x3c6a
pushq $0x1
popq %rax
jmp 0x3c95
movq %r14, %rdi
callq 0x2090
addq %rax, %r14
leaq 0x6543(%rip), %rdx      # 0xa1c2
movq %rsp, %rdi
movq %r14, %rsi
movq %rbx, %rcx
callq 0x3ee8
xorb $0x1, %al
movzbl %al, %eax
leal (%rax,%rax,4), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./MessageParser.h
// Function: OrderBook::MessageParser::reportStatus(OrderBook::ParseStatus)
inline void MessageParser::reportStatus(ParseStatus status) {
   switch (status) {
      case ePS_Good:
         FHErrorTracker::instance()->goodMessage();
         break;
      case ePS_CorruptMessage:
         FHErrorTracker::instance()->corruptMessage();
         break;
      case ePS_BadQuantity:
         FHErrorTracker::instance()->invalidQuantity();
         break;
      case ePS_BadPrice:
         FHErrorTracker::instance()->invalidPrice();
         break;
      case ePS_BadID:
         FHErrorTracker::instance()->invalidID();
         break;
      default:
         fprintf(stderr, "Unknown parsing error occurred.  Skipping report of error.\n");
         FAILASSERT();
         break;
   }
}

// Assembly:
cmpl $0x4, %esi
ja 0x3ecc
pushq %rax
movl %esi, %eax
leaq 0x21cf(%rip), %rcx      # 0x6060
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x2842
incl 0x24(%rax)
jmp 0x3eca
callq 0x2842
incl 0x20(%rax)
jmp 0x3eca
callq 0x2842
incl 0x18(%rax)
jmp 0x3eca
callq 0x2842
incl 0x1c(%rax)
jmp 0x3eca
callq 0x2842
incl 0x14(%rax)
popq %rax
retq
movq 0x6105(%rip), %rax      # 0x9fd8
movq (%rax), %rcx
leaq 0x2327(%rip), %rdi      # 0x6204
pushq $0x3b
popq %rsi
pushq $0x1
popq %rdx
jmp 0x2300
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./Logger.h
// Function: Logger::print(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void print(std::string msg) {
      // lazy init creation
      // Optimizeable.  For now, keep interface clean and hide temporal coupling
      // from users.
      if (thread_ == 0) {
         init();
      }
      // mutex protects against messing with messages_ while logging thread
      // is copying out to it's own queue
      std::lock_guard<std::mutex> lock(mutex_);
      messages_.push(msg);
      messages_available_ = true;
   }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
jne 0x4b10
movq %rbx, %rdi
callq 0x4caa
leaq 0xb0(%rbx), %r14
movq %r14, %rdi
callq 0x4f40
leaq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0x4f54
movb $0x1, %al
xchgb %al, 0x1(%rbx)
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2150
movq %rax, %rbx
movq %r14, %rdi
callq 0x2150
movq %rbx, %rdi
callq 0x22f0
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./Logger.h
// Function: Logger::runLogger()
void runLogger() {
      while (TRUE) {
         if (messages_available_ == true) {
            copyMessages();
            printMessages();
         }
         if (exit_ == true) {
            copyMessages();
            printMessages();
            return;
         }
      }
   }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movb 0x1(%rbx), %al
testb $0x1, %al
je 0x4d17
movq %rbx, %rdi
callq 0x4d9e
movq %rbx, %rdi
callq 0x4e10
movb (%rbx), %al
testb $0x1, %al
je 0x4d00
movq %rbx, %rdi
callq 0x4d9e
movq %rbx, %rdi
popq %rbx
jmp 0x4e10
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./Logger.h
// Function: Logger::copyMessages()
void copyMessages() {
      // Just copy them all out.  Deal with strcpy costs here in bulk.
      // Could optimize later if it becomes a problem and blocks enqueue
      std::lock_guard<std::mutex> lock(mutex_);
      while (messages_.size() != 0) {
         messages_to_print_.push(messages_.front());
         messages_.pop();
      }
      messages_available_ = false;
   }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0xb0(%rdi), %rbx
movq %rbx, %rdi
callq 0x4f40
leaq 0x10(%r14), %r15
leaq 0x60(%r14), %r12
movq %r15, %rdi
callq 0x4e50
testq %rax, %rax
je 0x4de3
movq 0x20(%r14), %rsi
movq %r12, %rdi
callq 0x4f54
movq %r15, %rdi
callq 0x4e98
jmp 0x4dc0
xorl %eax, %eax
xchgb %al, 0x1(%r14)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2150
movq %rax, %r14
movq %rbx, %rdi
callq 0x2150
movq %r14, %rdi
callq 0x22f0
nop
// File: /workspace/github_c_makefile_star2_O2/aspone[P]OrderBook/./CountedOrderList.h
// Function: OrderBook::CountedOrderList<OrderLevelEntry>::printLevel(char, char*&, int&, int&)
void printLevel(char tag, char *&buffer, int &index, int &max_buffer) {
      NODE *tail = DLList<NODE>::getTail();
      while (tail != DLList<NODE>::getHead()) {
         // Need interim so I know len of level print
         // char level[50];
         // sprintf(level, "%c %u ", tag, tail->order_qty_);
         // safeCopyToBuffer(buffer, level, index, max_buffer);

         if (index + 50 > max_buffer) growBuffer(buffer, max_buffer);
         index += sprintf(&buffer[index], "%c %u ", tag, tail->order_qty_);

         tail = tail->next_;
      }
      // Need interim so I know len of level print
      // char level[50];
      // sprintf(level, "%c %u ", tag, tail->order_qty_);
      // safeCopyToBuffer(buffer, level, index, max_buffer);

      if (index + 50 > max_buffer) growBuffer(buffer, max_buffer);
      index += sprintf(&buffer[index], "%c %u ", tag, tail->order_qty_);
   }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r12
leaq 0x10(%rdi), %r13
movq (%r13), %r13
movl (%rbx), %eax
leal 0x32(%rax), %ecx
movl (%r15), %edx
cmpq 0x8(%r12), %r13
je 0x5969
cmpl %edx, %ecx
jle 0x5947
movq %r14, %rdi
movq %r15, %rsi
callq 0x25ac
movl (%rbx), %eax
movslq %eax, %rdi
addq (%r14), %rdi
movl 0x10(%r13), %ecx
leaq 0x9a7(%rip), %rsi       # 0x62ff
movl %ebp, %edx
xorl %eax, %eax
callq 0x2040
addl %eax, (%rbx)
addq $0x18, %r13
jmp 0x5923
cmpl %edx, %ecx
jle 0x597a
movq %r14, %rdi
movq %r15, %rsi
callq 0x25ac
movl (%rbx), %eax
movslq %eax, %rdi
addq (%r14), %rdi
movl 0x10(%r13), %ecx
leaq 0x974(%rip), %rsi       # 0x62ff
movl %ebp, %edx
xorl %eax, %eax
callq 0x2040
addl %eax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/DeforaOS[P]libSystem/tests/error.c
// Function: main
static int _test(void)
{
	int code;

	if((code = error_get_code()) != 0)
		return 1;
	error_set_code(255, NULL);
	if(error_get_code() != 255)
		return 2;
	error_print(NULL);
	error_print("error");
	return 0;
}

// Assembly:
pushq %rbx
callq 0x1030
testl %eax, %eax
je 0x116a
pushq $0x1
jmp 0x119d
xorl %ebx, %ebx
movl $0xff, %edi
xorl %esi, %esi
xorl %eax, %eax
callq 0x1050
callq 0x1030
cmpl $0xff, %eax
jne 0x119b
xorl %edi, %edi
callq 0x1040
leaq 0xe70(%rip), %rdi       # 0x2004
callq 0x1040
jmp 0x119e
pushq $0x2
popq %rbx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/crcx[P]retroforth/tools/retro-unu.c
// Function: unu
void unu(char *fname, int tests_enabled, Handler handler) {
  int inBlock = 0;
  char buffer[4096];
  FILE *fp;
  fp = fopen(fname, "r");
  if (fp == NULL) {
    printf("Unable to load file\n");
    exit(2);
  }
  while (!feof(fp)) {
    read_line(fp, buffer);
    if (fence_boundary(buffer, tests_enabled) == -1) {
      if (inBlock == 0) {
        inBlock = 1;
      } else {
        inBlock = 0;
      }
    } else {
      if (inBlock == 1) {
        handler(buffer);
      }
    }
  }
  fclose(fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rdx, %rbx
movl %esi, %ebp
leaq 0xd8d(%rip), %rsi       # 0x2004
callq 0x1080
testq %rax, %rax
je 0x12e9
movq %rax, %r14
xorl %r13d, %r13d
movq %rsp, %r15
pushq $0x1
popq %r12
movq %r14, %rdi
callq 0x1070
testl %eax, %eax
jne 0x12cf
movq %r14, %rdi
movq %r15, %rsi
callq 0x11ac
movq %r15, %rdi
movl %ebp, %esi
callq 0x11e2
cmpl $-0x1, %eax
je 0x12c9
testl %r13d, %r13d
movl $0x0, %r13d
je 0x128e
movq %r15, %rdi
callq *%rbx
movl %r12d, %r13d
jmp 0x128e
xorl $0x1, %r13d
jmp 0x128e
movq %r14, %rdi
callq 0x1050
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd69(%rip), %rdi       # 0x2059
callq 0x1040
pushq $0x2
popq %rdi
callq 0x1090
// File: /workspace/github_c_makefile_star2_O2/phluid61[P]hsf/src/bytesequence.c
// Function: SH_ByteSequence__init
SH_ByteSequence*
SH_ByteSequence__init(sh_byte_t* value, size_t n, int* err) {
	SH_ByteSequence* obj;

	__cascade(err, (SH_ByteSequence*)0);

	if (n > SH_BYTESEQUENCE_LENGTH_MAX) {
		__raise(err, SH_E_BYTESEQUENCE_TOO_LONG);
		return (SH_ByteSequence*)0;
	}

	obj = (SH_ByteSequence*)malloc(sizeof(SH_ByteSequence));
	if ((SH_ByteSequence*)0 == obj) {
		__raise(err, SH_E_MALLOC_ERROR);
		return (SH_ByteSequence*)0;
	}

	obj->value = (sh_byte_t*)malloc(sizeof(sh_byte_t) * n);
	if ((sh_byte_t*)0 == obj->value) {
		free(obj);
		__raise(err, SH_E_MALLOC_ERROR);
		return (SH_ByteSequence*)0;
	}

	memcpy((void*)obj->value, (const void*)value, n);
	obj->length = n;

	__clear(err);
	return obj;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
testq %rdx, %rdx
je 0x115a
cmpl $0x0, (%rbx)
jne 0x1163
cmpq $0x4000, %r15           # imm = 0x4000
jbe 0x1168
movl $0x150001, %eax         # imm = 0x150001
xorl %r14d, %r14d
jmp 0x11bd
cmpq $0x4000, %r15           # imm = 0x4000
jbe 0x1168
xorl %r14d, %r14d
jmp 0x11bf
pushq $0x10
popq %rdi
callq 0x1050
testq %rax, %rax
je 0x119e
movq %rax, %r14
movq %r15, %rdi
callq 0x1050
movq %rax, (%r14)
testq %rax, %rax
je 0x11a8
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x1040
xorl %eax, %eax
movq %r15, 0x8(%r14)
jmp 0x11b8
movl $0x80000001, %eax       # imm = 0x80000001
xorl %r14d, %r14d
jmp 0x11b8
movq %r14, %rdi
callq 0x1030
xorl %r14d, %r14d
movl $0x80000001, %eax       # imm = 0x80000001
testq %rbx, %rbx
je 0x11bf
movl %eax, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/phluid61[P]hsf/src/bytesequence.c
// Function: SH_ByteSequence__destroy
void
SH_ByteSequence__destroy(SH_ByteSequence* obj, int* err) {
	__cascade(err,);
	if ((sh_byte_t*)0 != obj->value) {
		free(obj->value);
	}
	free(obj);
	__clear(err);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x11fe
movq %rsi, %r14
cmpl $0x0, (%rsi)
jne 0x11f6
movq (%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
andl $0x0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq (%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1030