LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/mahrr[P]raven/src/lexer.c
// Function: error_token
static Token error_token(Lexer *lexer, const char *message) {
    fprintf(stderr, "[%s: %d] SyntaxError at '%.1s': %s\n", lexer->file, lexer->line, lexer->start, message);

    Token token;
    token.type = TOKEN_ERROR;
    token.line = lexer->line;
    token.lexeme = NULL;
    token.length = 0;

    return token;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r9
movq %rsi, %rbx
movq %rdi, %r14
movq 0x64d6(%rip), %rax      # 0xdff0
movq (%rax), %rdi
movl 0x18(%rsi), %ecx
movq (%rsi), %rdx
movq 0x8(%rsi), %r8
leaq 0x2364(%rip), %rsi      # 0x9e92
xorl %eax, %eax
callq 0x2140
movl $0x35, (%r14)
movl 0x18(%rbx), %eax
movl %eax, 0x14(%r14)
andq $0x0, 0x8(%r14)
andl $0x0, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/mahrr[P]raven/src/lexer.c
// Function: is_keyword
static TokenType is_keyword(Lexer *lexer, int start, int length, const char *rest, TokenType type) {
    if (lexer->current - lexer->start == start + length &&
        memcmp(lexer->start + start, rest, length) == 0) {
        return type;
    }

    return TOKEN_IDENTIFIER;
}

// Assembly:
pushq %rbx
movl %r8d, %ebx
movq %rdi, %rax
movq 0x8(%rdi), %rdi
movq 0x10(%rax), %rax
subq %rdi, %rax
leal (%rdx,%rsi), %r8d
cmpq %r8, %rax
jne 0x7b86
movl %esi, %eax
addq %rax, %rdi
movl %edx, %edx
movq %rcx, %rsi
callq 0x2190
testl %eax, %eax
je 0x7b89
pushq $0x2f
popq %rbx
movl %ebx, %eax
popq %rbx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/mahrr[P]raven/src/debug.c
// Function: const_instruction
static int const_instruction(const char *tag, Chunk *chunk, int offset) {
    uint8_t constant_index = chunk->opcodes[offset + 1];
    printf("%-16s %4x = ", tag, constant_index);
    value_print(chunk->constants[constant_index]);
    printf("\n");
    return offset + 2;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %rsi
movq 0x8(%rbx), %rax
movslq %edx, %r14
movzbl 0x1(%rax,%r14), %r15d
leaq 0x21eb(%rip), %rdi      # 0xa190
movl %r15d, %edx
xorl %eax, %eax
callq 0x20b0
movq 0x20(%rbx,%r15,8), %rdi
callq 0x56a8
pushq $0xa
popq %rdi
callq 0x2040
addl $0x2, %r14d
movl %r14d, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/mahrr[P]raven/src/debug.c
// Function: jump_instruction
static int jump_instruction(const char *tag, Chunk *chunk, int sign, int offset) {
    uint16_t jump = (uint16_t)(
        chunk->opcodes[offset + 1] << 8 |
        chunk->opcodes[offset + 2]
    );

    printf("%-16s %4d -> %d\n", tag, offset, offset + 3 + sign * jump);
    return offset + 3;
}

// Assembly:
pushq %rbx
movq %rdi, %rax
movq 0x8(%rsi), %rsi
movslq %ecx, %r8
movzwl 0x1(%rsi,%r8), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
leal 0x3(%r8), %ebx
imull %edx, %ecx
addl %r8d, %ecx
addl $0x3, %ecx
leaq 0x2186(%rip), %rdi      # 0xa1a8
movq %rax, %rsi
movl %r8d, %edx
xorl %eax, %eax
callq 0x20b0
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/mahrr[P]raven/src/debug.c
// Function: short_instruction
static int short_instruction(const char *tag, Chunk *chunk, int offset) {
    uint16_t count = (uint16_t)(
        chunk->opcodes[offset + 1] << 8 |
        chunk->opcodes[offset + 2]
    );

    printf("%-16s %4d\n", tag, count);
    return offset + 3;
}

// Assembly:
pushq %rbx
movq %rdi, %rax
movq 0x8(%rsi), %rcx
movslq %edx, %rbx
movzwl 0x1(%rcx,%rbx), %ecx
rolw $0x8, %cx
movzwl %cx, %edx
leaq 0x214c(%rip), %rdi      # 0xa19d
movq %rax, %rsi
xorl %eax, %eax
callq 0x20b0
addl $0x3, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/mahrr[P]raven/src/mem.c
// Function: allocator_free
void allocator_free(Allocator *allocator) {
    table_free(&allocator->strings);
    free(allocator->gray_stack);

    Object *objects = allocator->objects;
    while (objects) {
        Object *next = objects->next;
        free_object(allocator, objects);
        objects = next;
    }

    allocator_init(allocator);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x4a83
movq 0x20(%rbx), %rdi
callq 0x2030
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x80e5
movq 0x8(%rsi), %r14
movq %rbx, %rdi
callq 0x80f4
movq %r14, %rsi
jmp 0x80cf
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x8094
// File: /workspace/github_c_makefile_star2_O2/mahrr[P]raven/src/mem.c
// Function: allocate
void *allocate(Allocator *allocator, void *previous, size_t old_size, size_t new_size) {
    allocator->bytes_allocated += new_size - old_size;

    if (!allocator->gc_off && new_size > old_size) {
#ifdef DEBUG_STRESS_GC
        allocator_gc(allocator);
#else
        if (allocator->bytes_allocated >= allocator->next_gc) {
            allocator_gc(allocator);
        }
#endif
    }

    if (new_size == 0) {
        free(previous);
        return NULL;
    }

    return realloc(previous, new_size);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rsi, %r14
movq %rcx, %rax
subq %rdx, %rax
addq 0x30(%rdi), %rax
movq %rax, 0x30(%rdi)
cmpq %rdx, %rcx
jbe 0x81d8
cmpb $0x0, 0x40(%rdi)
jne 0x81d8
cmpq 0x38(%rdi), %rax
jb 0x81dd
callq 0x8201
jmp 0x81dd
testq %rbx, %rbx
je 0x81ef
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x21b0
movq %r14, %rdi
callq 0x2030
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/mahrr[P]raven/src/mem.c
// Function: allocator_gc
void allocator_gc(Allocator *allocator) {
#ifdef DEBUG_TRACE_MEMORY
    puts("[Memory] --- GC Round Start ---");
    size_t size_before = allocator->bytes_allocated;
#endif

    // Mark all root objects, on stacks, globals ..etc.
    mark_roots(allocator);

    // Mark all reachable objects through the root objects.
    trace_references(allocator);

    // Remove the weak references of the interned strings table.
    table_remove_weak(&allocator->strings);

    // Free the memory of the unreachable objects.
    sweep(allocator);

    // Adjust the threshold of the next GC round.
    allocator->next_gc = allocator->bytes_allocated * GC_GROWTH_FACTOR;

#ifdef DEBUG_TRACE_MEMORY
    size_t size_current = allocator->bytes_allocated;
    size_t size_diff = size_before - size_current;
    size_t next_gc = allocator->next_gc;

    puts("[Memory] --- GC Round End ---");

    printf("[Memory] size collected: %ld (%ldkb)\n",
           size_diff, size_diff / 1000);
    printf("[Memory] size before: %ld (%ldkb)\n",
           size_before, size_before / 1000);
    printf("[Memory] size current: %ld (%ldkb)\n",
           size_current, size_current / 1000);

    printf("[Memory] next GC: %ld (%ldkb)\n",
           next_gc, next_gc / 1000);
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x8388
leaq 0x2005(%rip), %r14      # 0xa220
movl 0x2c(%rbx), %eax
testl %eax, %eax
jle 0x8316
movq 0x20(%rbx), %rcx
decl %eax
movl %eax, 0x2c(%rbx)
movq (%rcx,%rax,8), %r12
movl (%r12), %eax
decl %eax
cmpl $0x5, %eax
ja 0x8369
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
movq 0x10(%r12), %rsi
movq %rbx, %rdi
callq 0x8448
movq 0x18(%r12), %rsi
movq %rbx, %rdi
callq 0x8448
jmp 0x821b
leaq 0x40(%r12), %rsi
movslq 0x848(%r12), %rdx
movq %rbx, %rdi
callq 0x84d8
movq 0x10(%r12), %rsi
movq %rbx, %rdi
callq 0x8466
jmp 0x821b
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq %rbx, %rdi
callq 0x84d8
jmp 0x821b
pushq $0x8
popq %r13
xorl %ebp, %ebp
movslq 0x1c(%r12), %rax
cmpq %rax, %rbp
jg 0x821b
movq 0x10(%r12), %r15
movq -0x8(%r15,%r13), %rsi
testq %rsi, %rsi
je 0x82d9
movq %rbx, %rdi
callq 0x8466
movq (%r15,%r13), %rsi
movq %rbx, %rdi
callq 0x8448
incq %rbp
addq $0x10, %r13
jmp 0x82a8
movq 0x10(%r12), %rsi
movq %rbx, %rdi
callq 0x8466
xorl %r13d, %r13d
movslq 0x20(%r12), %rax
cmpq %rax, %r13
jge 0x821b
movq 0x18(%r12), %rax
movq (%rax,%r13,8), %rsi
movq %rbx, %rdi
callq 0x8466
incq %r13
jmp 0x82f2
movq %rbx, %rdi
callq 0x4da8
leaq 0x10(%rbx), %r14
movq (%r14), %rsi
cmpq 0x18(%rbx), %rsi
je 0x834f
cmpb $0x1, 0x4(%rsi)
je 0x8342
movq 0x8(%rsi), %rax
movq %rax, (%r14)
movq %rbx, %rdi
callq 0x80f4
jmp 0x8322
movb $0x0, 0x4(%rsi)
addq $0x8, %rsi
movq %rsi, %r14
jmp 0x8322
movq 0x30(%rbx), %rax
addq %rax, %rax
movq %rax, 0x38(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1305(%rip), %rdi      # 0x9675
leaq 0x1ec1(%rip), %rsi      # 0xa238
leaq 0x1eec(%rip), %rcx      # 0xa26a
movl $0xfe, %edx
callq 0x20e0
// File: /workspace/github_c_makefile_star2_O2/mahrr[P]raven/src/mem.c
// Function: mark_roots
void mark_roots(Allocator *allocator) {
    VM *vm = (VM *)allocator;

    // Locals and Temporaries
    for (Value *slot = vm->stack; slot < vm->stack_top; slot++) {
        mark_value(allocator, *slot);
    }

    // Call Stack
    for (int i = 0; i < vm->frame_count; i++) {
        mark_object(allocator, (Object *)vm->frames[i].closure);
    }

    // Globals
    for (int i = 0; i <= vm->globals.hash_mask; i++) {
        Entry *entry = &vm->globals.entries[i];

        if (entry->key != NULL) {
            mark_object(allocator, (Object *)entry->key);
            mark_value(allocator, entry->value);
        }
    }

    // Upvalues
    for (RavUpvalue *upvalue = vm->open_upvalues; upvalue != NULL; ) {
        mark_object(allocator, (Object *)upvalue);
        upvalue = upvalue->next;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x58(%rdi), %r14
cmpq 0x40058(%rbx), %r14
jae 0x83b1
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x8448
addq $0x8, %r14
jmp 0x8397
leaq 0x40068(%rbx), %r14
xorl %r15d, %r15d
movslq 0x40c68(%rbx), %rax
cmpq %rax, %r15
jge 0x83db
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x8466
incq %r15
addq $0x18, %r14
jmp 0x83bb
pushq $0x8
popq %r14
xorl %r15d, %r15d
movslq 0x40c7c(%rbx), %rax
cmpq %rax, %r15
jg 0x841c
movq 0x40c70(%rbx), %r12
movq -0x8(%r12,%r14), %rsi
testq %rsi, %rsi
je 0x8413
movq %rbx, %rdi
callq 0x8466
movq (%r12,%r14), %rsi
movq %rbx, %rdi
callq 0x8448
incq %r15
addq $0x10, %r14
jmp 0x83e2
leaq 0x40c80(%rbx), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x843c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8466
addq $0x20, %r14
jmp 0x8423
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/mahrr[P]raven/src/mem.c
// Function: mark_object
static void mark_object(Allocator *allocator, Object *object) {
    if (object == NULL) return;
    if (object->marked) return;

#ifdef DEBUG_TRACE_MEMORY
    printf("[Memory] %p get marked: ", object);
    value_print(Obj_Value(object));
    putchar('\n');
#endif

    object->marked = true;

    // Strings and native functions have no nested references, so no need
    // to push them into the gray stack
    if (object->type == OBJ_STRING || object->type == OBJ_CFUNCTION) {
        return;
    }

    // Add the object to the marked stack.
    if (allocator->gray_count == allocator->gray_capacity) {
        int new_capacity = Grow_Capacity(allocator->gray_capacity);
        size_t size = sizeof (Object*) * new_capacity;

        allocator->gray_stack = realloc(allocator->gray_stack, size);
        allocator->gray_capacity = new_capacity;
    }

    allocator->gray_stack[allocator->gray_count++] = object;
}

// Assembly:
testq %rsi, %rsi
je 0x84d7
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
cmpb $0x0, 0x4(%rsi)
jne 0x84d2
movb $0x1, 0x4(%rbx)
movl (%rbx), %eax
testl %eax, %eax
je 0x84d2
cmpl $0x7, %eax
je 0x84d2
movq %rdi, %r14
movl 0x2c(%rdi), %ecx
cmpl 0x28(%rdi), %ecx
jne 0x84c0
leal (%rcx,%rcx), %eax
cmpl $0x8, %ecx
pushq $0x8
popq %r15
cmovgel %eax, %r15d
leaq (,%r15,8), %rsi
movq 0x20(%r14), %rdi
callq 0x21b0
movq %rax, 0x20(%r14)
movl %r15d, 0x28(%r14)
movl 0x2c(%r14), %ecx
jmp 0x84c4
movq 0x20(%r14), %rax
leal 0x1(%rcx), %edx
movl %edx, 0x2c(%r14)
movslq %ecx, %rcx
movq %rbx, (%rax,%rcx,8)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/USArmyResearchLab[P]ARL_OpenSHMEM/src/shmem_sync_all.c
// Function: shmem_sync_all
SHMEM_SCOPE
void shmem_sync_all(void)
{
	int i;

	debug("shmem_sync_all begin");

	volatile int* pcount
		= (volatile int*)shmem_ptr((void*)&__shmem.giant_barrier_count,0);

	sem_t* pgate1 = (sem_t*)shmem_ptr((void*)&__shmem.giant_barrier_gate1,0);
	sem_t* pgate2 = (sem_t*)shmem_ptr((void*)&__shmem.giant_barrier_gate2,0);

	__giant_lock();
	if (++(*pcount) == __shmem.n_pes) {
		debug("shmem_sync_all: before sem_post on pgate1");
		for(i=0;i<__shmem.n_pes;i++) sem_post(pgate1);
		debug("shmem_sync_all: after sem_post on pgate1");
	}
	__giant_unlock();

	debug("shmem_sync_all: before sem_wait on pgate1");
	sem_wait(pgate1);
	debug("shmem_sync_all: after sem_wait on pgate1");

	__giant_lock();
	if (--(*pcount) == 0) {
		debug("shmem_sync_all: before sem_post on pgate2");
		for(i=0;i<__shmem.n_pes;i++) sem_post(pgate2);
		debug("shmem_sync_all: after sem_post on pgate2");
	}
	__giant_unlock();

	sem_wait(pgate2);

	debug("shmem_sync_all end");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0x452d(%rip), %r12      # 0x61f0
leaq 0xc8(%r12), %rdi
xorl %ebp, %ebp
xorl %esi, %esi
callq 0x1c6c
movq %rax, %r14
leaq 0xd0(%r12), %rdi
xorl %esi, %esi
callq 0x1c6c
movq %rax, %r15
leaq 0xf0(%r12), %rdi
xorl %esi, %esi
callq 0x1c6c
movq %rax, %rbx
movq 0xc0(%r12), %rdi
callq 0x1070
movl (%r14), %eax
incl %eax
movl %eax, (%r14)
cmpl 0x8(%r12), %eax
jne 0x1d2c
cmpl %eax, %ebp
jge 0x1d2c
movq %r15, %rdi
callq 0x1160
incl %ebp
movl 0x8(%r12), %eax
jmp 0x1d17
movq 0xc0(%r12), %rdi
callq 0x1160
movq %r15, %rdi
callq 0x1070
movq 0xc0(%r12), %rdi
callq 0x1070
decl (%r14)
je 0x1d70
movq 0xc0(%r12), %rdi
callq 0x1160
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1070
xorl %ebp, %ebp
cmpl 0x8(%r12), %ebp
jge 0x1d53
movq %rbx, %rdi
callq 0x1160
incl %ebp
jmp 0x1d72
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/USArmyResearchLab[P]ARL_OpenSHMEM/src/xmalloc.c
// Function: wrtmessage
static void
wrtmessage(const char *p1, const char *p2, const char *p3, const char *p4)
{

    write(STDERR_FILENO, p1, strlen(p1));
    write(STDERR_FILENO, p2, strlen(p2));
    write(STDERR_FILENO, p3, strlen(p3));
    write(STDERR_FILENO, p4, strlen(p4));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
callq 0x10c0
pushq $0x2
popq %rbp
movl %ebp, %edi
movq %r12, %rsi
movq %rax, %rdx
callq 0x1090
movq %r15, %rdi
callq 0x10c0
movl %ebp, %edi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1090
movq %r14, %rdi
callq 0x10c0
movl %ebp, %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1090
movq %rbx, %rdi
callq 0x10c0
movl %ebp, %edi
movq %rbx, %rsi
movq %rax, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1090
// File: /workspace/github_c_makefile_star2_O2/USArmyResearchLab[P]ARL_OpenSHMEM/src/xmalloc.c
// Function: xmalloc_init
struct __xmem_struct* xmalloc_init( void* ptr, size_t size, int flags )
{
	struct __xmem_struct* xm = (struct __xmem_struct*)
		calloc(1,sizeof(struct __xmem_struct));

	xm->malloc_cache = 16;

	xm->malloc_hint = 0;

	malloc_init(xm);
	
	xm->membrk = xm->memlo = ptr;
	xm->memhi = (void*)((intptr_t)ptr + size);

	return xm;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x1
popq %rdi
movl $0x98, %esi
callq 0x1170
movq %rax, %r15
movq $0x10, 0x18(%rax)
movq %rax, %rdi
callq 0x1e44
movq %r14, 0x80(%r15)
movq %r14, 0x90(%r15)
addq %r14, %rbx
movq %rbx, 0x88(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/USArmyResearchLab[P]ARL_OpenSHMEM/src/xmalloc.c
// Function: xposix_memalign
int
xposix_memalign(struct __xmem_struct* xm, void **memptr, size_t alignment, 
	size_t size)
{
    int err;
    void *result;

    /* Make sure that alignment is a large enough power of 2. */
    if (((alignment - 1) & alignment) != 0 || alignment < sizeof(void *))
	    return EINVAL;

    /* 
     * (size & alignment) is enough to assure the requested alignment, since
     * the allocator always allocates power-of-two blocks.
     */
    err = errno; /* Protect errno against changes in pubrealloc(). */
    result = pubrealloc(xm, NULL, (size & alignment),
		" in xposix_memalign()");
    errno = err;

    if (result == NULL)
	return ENOMEM;

    *memptr = result;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
pushq $0x16
popq %r14
cmpq $0x8, %rdx
jb 0x24b9
movq %rcx, %r15
movq %rdx, %r13
movq %rdx, %rax
shrq %rax
movabsq $0x5555555555555555, %rcx # imm = 0x5555555555555555
andq %rax, %rcx
movq %rdx, %rax
subq %rcx, %rax
movabsq $0x3333333333333333, %rcx # imm = 0x3333333333333333
movq %rax, %rdx
andq %rcx, %rdx
shrq $0x2, %rax
andq %rcx, %rax
addq %rdx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
addq %rax, %rcx
movabsq $0xf0f0f0f0f0f0f0f, %rax # imm = 0xF0F0F0F0F0F0F0F
andq %rcx, %rax
movabsq $0x101010101010101, %rcx # imm = 0x101010101010101
imulq %rax, %rcx
shrq $0x38, %rcx
cmpl $0x1, %ecx
ja 0x24b9
movq %rdi, %r12
movq %rsi, (%rsp)
callq 0x1060
movq %rax, %rbp
movl (%rax), %ebx
andq %r13, %r15
leaq 0x1dba(%rip), %rcx      # 0x424e
xorl %r14d, %r14d
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x210c
movl %ebx, (%rbp)
testq %rax, %rax
je 0x24b5
movq (%rsp), %rcx
movq %rax, (%rcx)
jmp 0x24b9
pushq $0xc
popq %r14
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/USArmyResearchLab[P]ARL_OpenSHMEM/src/xmalloc.c
// Function: xcalloc
void *
xcalloc(struct __xmem_struct* xm, size_t num, size_t size)
{
    void *ret;

    if (size != 0 && (num * size) / size != num) {
	/* size_t overflow. */
	errno = ENOMEM;
	return (NULL);
    }

    ret = pubrealloc(xm, NULL, num * size, " in dcalloc():");

    if (ret != NULL)
	memset(ret, 0, num * size);

    return ret;
}

// Assembly:
pushq %rbx
movq %rdx, %rbx
testq %rdx, %rdx
je 0x24e9
movq %rbx, %rax
mulq %rsi
jno 0x24e9
callq 0x1060
movl $0xc, (%rax)
jmp 0x2511
imulq %rsi, %rbx
leaq 0x1d70(%rip), %rcx      # 0x4264
xorl %esi, %esi
movq %rbx, %rdx
callq 0x210c
testq %rax, %rax
je 0x2511
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
popq %rbx
jmp 0x1130
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/USArmyResearchLab[P]ARL_OpenSHMEM/src/autogen/shmem_fcollect64.c
// Function: shmem_fcollect64
void shmem_fcollect64(void *dest, const void *source, size_t nelems, 
	int pe_start, int log_pe_stride, int pe_size, long* psync)
{
	const int step = 1 << log_pe_stride;
	const int pe_shift = pe_size << log_pe_stride;
	const int pe_end = pe_start + pe_shift;
	const int my_pe = __shmem.my_pe;

	const int nbytes = nelems << 3;

	const ptrdiff_t offset = nbytes * ((my_pe - pe_start) >> log_pe_stride);
	const void* target = (void*)((intptr_t)dest + offset);

	int pe = my_pe;

	do {
		shmemx_memcpy(shmem_ptr(target,pe), source, nelems*sizeof(int64_t));
		pe += step;
	} while (pe < pe_end);

	pe -= pe_shift;
	while (pe < my_pe) {
		shmemx_memcpy(shmem_ptr(target,pe), source, nelems*sizeof(int64_t));
		pe += step;
	}
	shmem_barrier(pe_start, log_pe_stride, pe_size, psync);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r10d
movq %rdx, %r15
movq %rsi, %r12
pushq $0x1
popq %r14
movl %r8d, %ecx
shll %cl, %r14d
movl %r9d, 0xc(%rsp)
movl %r9d, %edx
shll %cl, %edx
leaq 0x32e2(%rip), %rax      # 0x61f0
movl 0x4(%rax), %ebx
movl %ebx, %eax
subl %r10d, %eax
movl %r8d, 0x8(%rsp)
sarl %cl, %eax
movq 0x60(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq %r10, 0x20(%rsp)
movq %rdx, 0x10(%rsp)
leal (%rdx,%r10), %ebp
imull %r15d, %eax
shll $0x3, %eax
movslq %eax, %r13
addq %rdi, %r13
shlq $0x3, %r15
movl %ebx, 0x4(%rsp)
movq %r13, %rdi
movl %ebx, %esi
callq 0x1c6c
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3060
addl %r14d, %ebx
cmpl %ebp, %ebx
jl 0x2f4a
subl 0x10(%rsp), %ebx
movl 0x4(%rsp), %ebp
cmpl %ebp, %ebx
jge 0x2f92
movq %r13, %rdi
movl %ebx, %esi
callq 0x1c6c
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3060
addl %r14d, %ebx
jmp 0x2f71
movq 0x20(%rsp), %rdi
movl 0x8(%rsp), %esi
movl 0xc(%rsp), %edx
movq 0x18(%rsp), %rcx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2fb8
nop
// File: /workspace/github_c_makefile_star2_O2/USArmyResearchLab[P]ARL_OpenSHMEM/src/shmem_sync.c
// Function: shmem_sync
SHMEM_SCOPE
void shmem_sync(int pe_start, int log_pe_stride, int pe_size, long *psync)
{
	debug("[%d] shmem_sync begin",__shmem.my_pe);

	int pe_size_stride = pe_size << log_pe_stride;
	int pe_end = pe_size_stride + pe_start;

	int c, r;
	for (c = 0, r = (1 << log_pe_stride); r < pe_size_stride; c++, r <<= 1)
	{
		int to = __shmem.my_pe + r;
		if (to >= pe_end) to -= pe_size_stride;

		volatile long* lock = (volatile long*)(psync + c);
		long * remote_lock = (long*)shmem_ptr((void*)lock, to);

		__set_spin_lock(remote_lock);

		__clear_spin_lock(lock);
	}

	debug("[%d] shmem_sync end",__shmem.my_pe);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movl %esi, %ecx
shll %cl, %ebp
pushq $0x1
popq %r15
shll %cl, %r15d
movl %edi, %r14d
addl %ebp, %r14d
leaq 0x31dc(%rip), %r12      # 0x61f0
xorl %r13d, %r13d
cmpl %ebp, %r15d
jge 0x3050
movl 0x4(%r12), %esi
addl %r15d, %esi
cmpl %r14d, %esi
movl %ebp, %eax
cmovll %r13d, %eax
subl %eax, %esi
movq %rbx, %rdi
callq 0x1c6c
movq %rax, %rdi
callq 0x3094
movq %rbx, %rdi
callq 0x3084
addl %r15d, %r15d
addq $0x8, %rbx
jmp 0x3017
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/zpole[P]IICV/src/test_liop.c
// Function: main
int main(){
  vl_int i ;
  VlLiopDesc * liop ;
  vl_size size = 11*11 ;
  float mat[] = {
    6,6,6,6,6,6,6,6,6,6,6,
    6,6,6,5,4,4,4,5,6,6,6,
    6,6,5,4,3,3,3,4,5,6,6,
    6,5,4,3,2,2,2,3,4,5,6,
    6,4,3,2,2,1,2,2,3,4,6,
    6,4,3,2,1,1,1,2,3,4,6,
    6,4,3,2,2,1,2,2,3,4,6,
    6,5,4,3,2,2,2,3,4,5,6,
    6,6,5,4,3,3,3,4,5,6,6,
    6,6,6,5,4,4,4,5,6,6,6,
    6,6,6,6,6,6,6,6,6,6,6};
  float * patch = vl_malloc(sizeof(float)*size);

  for(i = 0; i < (signed)size; i++){
    patch[i] = mat[i];
  }

  liop = vl_liopdesc_new(4,6,2,11);

  vl_liopdesc_delete(liop) ;
  vl_free(patch) ;
}

// Assembly:
pushq %rbx
movl $0x1e4, %edi            # imm = 0x1E4
callq 0x1050
movq %rax, %rbx
xorl %eax, %eax
leaq 0xe8d(%rip), %rcx       # 0x2010
cmpq $0x1e4, %rax            # imm = 0x1E4
je 0x119b
movss (%rax,%rcx), %xmm0
movss %xmm0, (%rbx,%rax)
addq $0x4, %rax
jmp 0x1183
pushq $0x4
popq %rdi
pushq $0x6
popq %rsi
movss 0xe5b(%rip), %xmm0      # 0x2004
pushq $0xb
popq %rdx
callq 0x1060
movq %rax, %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1040
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/aux_funcs.c
// Function: create_state
t_qlayer	*create_state(int node, t_vect *path)
{
	t_qlayer	*new = (t_qlayer*)malloc(sizeof(t_qlayer));
	t_vect		*copy = (t_vect*)malloc(sizeof(t_vect));

	init_vector(copy);
	for (int i = 0;i < (int)path->used; i++)
		push_back(copy, path->tab[i]);
	new->prefix = copy;
	new->node = node;
	return new;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebx
pushq $0x20
popq %rdi
callq 0x1070
movq %rax, %r15
pushq $0x18
popq %rdi
callq 0x1070
movq %rax, %r12
movq %rax, %rdi
callq 0x1d70
xorl %r13d, %r13d
movslq 0x10(%r14), %rax
cmpq %rax, %r13
jge 0x11fb
movq (%r14), %rax
movl (%rax,%r13,4), %esi
movq %r12, %rdi
callq 0x1e19
incq %r13
jmp 0x11de
movq %r12, (%r15)
movl %ebx, 0x18(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/aux_funcs.c
// Function: append
t_vect	*append(t_vect *src, int add)
{
	t_vect		*copy = (t_vect*)malloc(sizeof(t_vect));

	init_vector(copy);
	for (int i = 0; i < (int)src->used; i++)
		push_back(copy, src->tab[i]);
	push_back(copy, add);
	return copy;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebx
movq %rdi, %r15
pushq $0x18
popq %rdi
callq 0x1070
movq %rax, %r14
movq %rax, %rdi
callq 0x1d70
xorl %r12d, %r12d
movslq 0x10(%r15), %rax
cmpq %rax, %r12
jge 0x1257
movq (%r15), %rax
movl (%rax,%r12,4), %esi
movq %r14, %rdi
callq 0x1e19
incq %r12
jmp 0x123a
movq %r14, %rdi
movl %ebx, %esi
callq 0x1e19
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/graph.c
// Function: add_edge
void	add_edge(t_graph *g, int a, int b)
{
	g->edg++;
	push_back(&g->adj[a],b);
	if (g->direct == 0)
	{
		g->edg++;
		push_back(&g->adj[b],a);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r15d
movl %esi, %ebx
movq %rdi, %r14
incl 0x2c(%rdi)
movslq %esi, %rax
imulq $0x18, %rax, %rdi
addq (%r14), %rdi
movl %edx, %esi
callq 0x1e19
cmpl $0x0, 0x34(%r14)
je 0x1320
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
incl 0x2c(%r14)
movslq %r15d, %rax
imulq $0x18, %rax, %rdi
addq (%r14), %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1e19
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/graph.c
// Function: init_adj
int	init_adj(t_graph *g)
{
	if(!(g->adj = (t_vect*)malloc(sizeof(t_vect)*g->vertx)))
		return 0;
	for (int i = 0; i < g->vertx; i++)
		if (!(init_vector(&g->adj[i])))
			return 0;
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movslq 0x28(%rdi), %rax
imulq $0x18, %rax, %rdi
callq 0x1070
movq %rax, (%rbx)
testq %rax, %rax
je 0x13ce
pushq $-0x1
popq %r14
xorl %edi, %edi
movslq 0x28(%rbx), %r15
incq %r14
cmpq %r15, %r14
jge 0x13c4
leaq 0x18(%rdi), %r12
addq (%rbx), %rdi
callq 0x1d70
movq %r12, %rdi
testl %eax, %eax
jne 0x13a5
xorl %eax, %eax
cmpq %r15, %r14
setge %al
jmp 0x13d0
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/graph.c
// Function: get_dimensions
int		get_dimensions(t_graph *new)
{
	int n, m, dir, search;

	scanf("%d %d %d %d", &n, &m, &dir, &search);
	if (!valid_dimensions(n,m,new))
	{
		free(new);
		return 0;
	}
	if (!valid_params(dir, search, new))
	{
		free(new);
		return 0;
	}
	if (!init_adj(new))
		return 0;
	new->vis = (int*)malloc(sizeof(int) * new->vertx);
	new->rank = (int*)malloc(sizeof(int) * new->vertx);
	new->search = search - 1;
	memset(new->vis, 0, new->vertx * sizeof(int));
	memset(new->rank, 0 , new->vertx * sizeof(int));
	new->ranked = (t_vect*)malloc(sizeof(t_vect) * (new->vertx + 1));
	for (int i = 0; i < new->vertx + 1 ; i++)
		init_vector(&(new->ranked[i]));
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0xc50(%rip), %rdi       # 0x2044
xorl %r14d, %r14d
leaq -0x38(%rbp), %r15
leaq -0x34(%rbp), %r12
leaq -0x30(%rbp), %rcx
leaq -0x2c(%rbp), %r8
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1080
movl (%r15), %edi
movl (%r12), %esi
movq %rbx, %rdx
callq 0x1ceb
testl %eax, %eax
je 0x14c3
movl -0x30(%rbp), %edi
movl -0x2c(%rbp), %esi
movq %rbx, %rdx
callq 0x1c4c
testl %eax, %eax
je 0x14c3
movq %rbx, %rdi
callq 0x137c
testl %eax, %eax
je 0x14dd
movslq 0x28(%rbx), %r12
leaq (,%r12,4), %r14
pushq $0x1
popq %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x1060
movq %rax, 0x18(%rbx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x1060
movq %rax, 0x20(%rbx)
movl -0x2c(%rbp), %eax
decl %eax
movl %eax, 0x38(%rbx)
imulq $0x18, %r12, %rdi
addq $0x18, %rdi
callq 0x1070
movq %rax, 0x10(%rbx)
xorl %r15d, %r15d
pushq $0x1
popq %r14
xorl %r13d, %r13d
movslq %r12d, %rax
cmpq %rax, %r13
jg 0x14cb
movq 0x10(%rbx), %rdi
addq %r15, %rdi
callq 0x1d70
incq %r13
movl 0x28(%rbx), %r12d
addq $0x18, %r15
jmp 0x14a2
movq %rbx, %rdi
callq 0x1030
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x14cb
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/graph.c
// Function: get_edges
int 	get_edges(t_graph *g)
{
	t_pair *got = (t_pair*)malloc(sizeof(t_pair)*g->in_edg);

	for (int i = 0; i < g->in_edg; i++)
	{
		scanf("%d %d",&(got[i].x),&(got[i].y));
		if (!valid_edge(got, i, g))
			return (error_edge(got, i));
	}
	insert_edges(got, g);
	free(got);
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x30(%rdi), %r12
movq %r12, %rdi
shlq $0x3, %rdi
callq 0x1070
movq %rax, %r14
movq %rax, %r13
xorl %r15d, %r15d
movslq %r12d, %rax
cmpq %rax, %r15
jge 0x1548
leaq 0x4(%r13), %rdx
leaq 0xb2b(%rip), %rdi       # 0x204a
movq %r13, %rsi
xorl %eax, %eax
callq 0x1080
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x1c77
testl %eax, %eax
je 0x156d
incq %r15
movl 0x30(%rbx), %r12d
addq $0x8, %r13
jmp 0x150c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x133f
movq %r14, %rdi
callq 0x1030
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movl %r15d, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x129c
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/graph.c
// Function: generate_graph
t_graph *generate_graph()
{
	t_graph *new = (t_graph*)malloc(sizeof(t_graph));
	if (!get_dimensions(new))
		error(WRONG_INPUT);
	if (!get_edges(new))
		error(WRONG_EDGE);
	return (new);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
pushq $0x40
popq %rdi
callq 0x1070
movq %rax, %rbx
movq %rax, %rdi
callq 0x13d9
testl %eax, %eax
jne 0x15aa
xorl %edi, %edi
callq 0x12bc
movq %rbx, %rdi
callq 0x14e2
testl %eax, %eax
jne 0x15be
pushq $0x1
popq %rdi
callq 0x12bc
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/graph.c
// Function: find_all_paths
void	find_all_paths(t_graph *g, int start)
{
	t_vect *spur = (t_vect*)malloc(sizeof(t_vect));
	t_queue *bfs = init_queue(); 
	init_vector(spur);
	push_back(spur, start);
	push_q(bfs, create_state(start, spur));
	while (bfs->size > 0)
	{
		t_qlayer *front = bfs->head;
		for (int i = 0; i < (int)g->adj[front->node].used; i++)
		{
			for (int j = 0; j < (int)front->prefix->used; j++)
				if (front->prefix->tab[j] == g->adj[front->node].tab[i])
					goto st;
			add_path(g, append(front->prefix, g->adj[front->node].tab[i]), start);
			push_q(bfs, create_state(g->adj[front->node].tab[i], append(front->prefix, g->adj[front->node].tab[i])));
st:;
		}	
		pop_q(bfs);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
pushq $0x18
popq %rdi
callq 0x1070
movq %rax, %r12
xorl %eax, %eax
callq 0x1c37
movq %rax, %r15
movq %r12, %rdi
callq 0x1d70
movq %r12, %rdi
movl %ebx, %esi
callq 0x1e19
movl %ebx, -0x2c(%rbp)
movl %ebx, %edi
movq %r12, %rsi
callq 0x11aa
movq %r15, %rdi
movq %rax, %rsi
callq 0x1b98
cmpq $0x0, 0x10(%r15)
je 0x16d5
movq (%r15), %rbx
xorl %r13d, %r13d
movq (%r14), %rax
movslq 0x18(%rbx), %rcx
imulq $0x18, %rcx, %rdx
movslq 0x10(%rax,%rdx), %rcx
cmpq %rcx, %r13
jge 0x16c8
movq (%rbx), %rdi
movl 0x10(%rdi), %ecx
addq %rdx, %rax
testl %ecx, %ecx
movl $0x0, %edx
cmovlel %edx, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x1672
movq (%rdi), %rsi
movl (%rsi,%rdx,4), %esi
movq (%rax), %r8
incq %rdx
cmpl (%r8,%r13,4), %esi
jne 0x1659
jmp 0x16c0
movq (%rax), %rax
movl (%rax,%r13,4), %esi
callq 0x1214
movq %r14, %rdi
movq %rax, %rsi
movl -0x2c(%rbp), %edx
callq 0x1b23
movq (%r14), %rax
movslq 0x18(%rbx), %rcx
imulq $0x18, %rcx, %rcx
movq (%rax,%rcx), %rax
movl (%rax,%r13,4), %r12d
movq (%rbx), %rdi
movl %r12d, %esi
callq 0x1214
movl %r12d, %edi
movq %rax, %rsi
callq 0x11aa
movq %r15, %rdi
movq %rax, %rsi
callq 0x1b98
incq %r13
jmp 0x162b
movq %r15, %rdi
callq 0x1bd3
jmp 0x161a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/main_rank.c
// Function: all_paths_are_good
int		all_paths_are_good(t_graph *g, int src, int dest, int rank)
{
	size_t pos = 0;
	int		tag = 0;

	while (pos < g->paths[src]->used)
	{
		if (g->paths[src]->path[pos].tab[g->paths[src]->path[pos].used - 1] != dest )
		{
			pos++;
			continue;
		}
		tag = 0;
		if ((int)g->paths[src]->path[pos].used <= 2)
			return 0;
		for (int i = 1; i < (int)g->paths[src]->path[pos].used - 1; i++)
		{
			if (g->rank[g->paths[src]->path[pos].tab[i]] == 0 || g->rank[g->paths[src]->path[pos].tab[i]] > rank)
			{
				tag = 1;
				break;
			}
		}
		if (!tag)
			return 0;
		pos++;
	}
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x8(%rdi), %rax
movslq %esi, %rsi
movq (%rax,%rsi,8), %rsi
movq 0x10(%rsi), %r8
xorl %r9d, %r9d
movl $0x1, %eax
movabsq $0x1, %r10
cmpq %r8, %r9
je 0x175b
movq (%rsi), %rbx
imulq $0x18, %r9, %r14
movq (%rbx,%r14), %r11
movq 0x10(%rbx,%r14), %rbx
cmpl %edx, -0x4(%r11,%rbx,4)
jne 0x1754
cmpl $0x3, %ebx
jl 0x1759
decl %ebx
movq %r10, %r14
cmpq %r14, %rbx
je 0x1759
movq 0x20(%rdi), %r15
movslq (%r11,%r14,4), %r12
movl (%r15,%r12,4), %r15d
testl %r15d, %r15d
je 0x1754
incq %r14
cmpl %ecx, %r15d
jle 0x1736
incq %r9
jmp 0x1710
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/main_rank.c
// Function: main
int main()
{
	t_graph *g;
	g = generate_graph();
	init_paths(g);
	int unexplored = 1;
	// finds all paths between all points
	for (int i = 0; i < g->vertx; i++)
		find_all_paths(g, i);
	// loops over all scc s
	while (unexplored)
	{
		unexplored = 0;
		// greedy search for a minimal ranking
		rank(g, g->search);
		// check for unexplored vertices
		for (int i = 0; i < g->vertx; i++)
			if (g->rank[i] == 0)
			{
			   unexplored = 1;
			   g->search = i;
			}
	}
	for (int i = 0; i < g->vertx; i++)
		printf("%d ", g->rank[i]);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x1586
movq %rax, %rbx
movq %rax, %rdi
callq 0x19b4
movl 0x28(%rbx), %eax
cmpl %eax, %r14d
jge 0x1939
movq %rbx, %rdi
movl %r14d, %esi
callq 0x15c8
incl %r14d
jmp 0x1921
pushq $0x1
popq %r14
movl %r14d, %edx
testl %edx, %edx
je 0x197a
movl 0x38(%rbx), %esi
movq %rbx, %rdi
callq 0x1764
movl 0x28(%rbx), %eax
xorl %ecx, %ecx
testl %eax, %eax
movl $0x0, %esi
cmovgl %eax, %esi
xorl %edx, %edx
cmpq %rcx, %rsi
je 0x1940
movq 0x20(%rbx), %rdi
cmpl $0x0, (%rdi,%rcx,4)
jne 0x1975
movl %ecx, 0x38(%rbx)
movl %r14d, %edx
incq %rcx
jmp 0x1960
leaq 0x6cf(%rip), %r14       # 0x2050
xorl %r15d, %r15d
cltq
cmpq %rax, %r15
jge 0x19a5
movq 0x20(%rbx), %rax
movl (%rax,%r15,4), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1050
incq %r15
movl 0x28(%rbx), %eax
jmp 0x1984
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/path_routines.c
// Function: init_paths
void	init_paths(t_graph *g)
{
	t_paths **new = (t_paths**)malloc(sizeof(t_paths*) * g->vertx);

	for (int i = 0; i < g->vertx ; i++)
	{
		new[i] = (t_paths*)malloc(sizeof(t_paths));
		new[i]->path = (t_vect*)malloc(sizeof(t_vect)*50);
		for (int j = 0; j < 50; j++)
			init_vector(&new[i]->path[j]);
		new[i]->size = 50;
		new[i]->used = 0;
	}
	g->paths = new;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x28(%rdi), %r12
movq %r12, %rdi
shlq $0x3, %rdi
callq 0x1070
movq %rax, %r14
xorl %r13d, %r13d
movslq %r12d, %rax
cmpq %rax, %r13
jge 0x1a36
pushq $0x18
popq %rdi
callq 0x1070
movq %rax, %r12
movq %rax, (%r14,%r13,8)
movl $0x4b0, %edi            # imm = 0x4B0
callq 0x1070
movq %rax, (%r12)
xorl %r15d, %r15d
cmpq $0x4b0, %r15            # imm = 0x4B0
je 0x1a1e
movq (%r12), %rdi
addq %r15, %rdi
callq 0x1d70
addq $0x18, %r15
jmp 0x1a03
movq $0x32, 0x8(%r12)
andq $0x0, 0x10(%r12)
incq %r13
movl 0x28(%rbx), %r12d
jmp 0x19db
movq %r14, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/path_routines.c
// Function: extend_paths
void	extend_paths(t_graph *g, int start)
{
	size_t new_size = g->paths[start]->size * 2;

	t_vect *copy = (t_vect*)malloc(sizeof(t_vect)*new_size); 
	for (int i = 0; i < (int)new_size; i++)
		init_vector(&copy[i]);
	for (int i = 0; i < (int)g->paths[start]->size; i++)
	{
		for (int j = 0; j < (int)g->paths[start]->path[i].used; j++)
			push_back(&copy[i],g->paths[start]->path[i].tab[j]);
	}
	g->paths[start]->path = copy;
	g->paths[start]->size = new_size;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movslq %esi, %r12
movq (%rax,%r12,8), %rax
movq 0x8(%rax), %r15
imulq $0x30, %r15, %rdi
addq %r15, %r15
callq 0x1070
movq %rax, %r13
xorl %r14d, %r14d
testl %r15d, %r15d
movl $0x0, %eax
movq %r15, -0x30(%rbp)
cmovgl %r15d, %eax
imulq $0x18, %rax, %r15
cmpq %r14, %r15
je 0x1aa6
leaq (%r14,%r13), %rdi
callq 0x1d70
addq $0x18, %r14
jmp 0x1a92
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %rcx
xorl %esi, %esi
movq %r13, -0x38(%rbp)
movslq 0x8(%rcx), %rdx
cmpq %rdx, %rsi
jge 0x1b05
movq %rsi, -0x40(%rbp)
imulq $0x18, %rsi, %r14
leaq (%r14,%r13), %r15
xorl %r13d, %r13d
movq (%rcx), %rdx
movslq 0x10(%rdx,%r14), %rsi
cmpq %rsi, %r13
jge 0x1af8
addq %r14, %rdx
movq (%rdx), %rax
movl (%rax,%r13,4), %esi
movq %r15, %rdi
callq 0x1e19
incq %r13
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %rcx
jmp 0x1acc
movq -0x40(%rbp), %rsi
incq %rsi
movq -0x38(%rbp), %r13
jmp 0x1ab4
movq %r13, (%rcx)
movq (%rax,%r12,8), %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0x8(%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/path_routines.c
// Function: add_path
void	add_path(t_graph *g, t_vect *new, int start)
{
	size_t pos = g->paths[start]->used;
	size_t size = g->paths[start]->size;

	if (pos >= size)
		extend_paths(g, start);
	for (int i = 0 ; i < (int)new->used; i++)
		push_back(&g->paths[start]->path[pos], new->tab[i]);
	g->paths[start]->used++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
movslq %edx, %r15
movq (%rax,%r15,8), %rax
movq 0x10(%rax), %r13
cmpq 0x8(%rax), %r13
jb 0x1b56
movq %r14, %rdi
movl %edx, %esi
callq 0x1a49
xorl %r12d, %r12d
imulq $0x18, %r13, %r13
movslq 0x10(%rbx), %rcx
movq 0x8(%r14), %rax
movq (%rax,%r15,8), %rax
cmpq %rcx, %r12
jge 0x1b85
movq (%rax), %rdi
addq %r13, %rdi
movq (%rbx), %rax
movl (%rax,%r12,4), %esi
callq 0x1e19
incq %r12
jmp 0x1b5d
incq 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/queue.c
// Function: push_q
void	push_q(t_queue *que, t_qlayer *new)
{
	if (que->size == 0)
	{
		new->next = NULL;
		new->prev = NULL;
		que->head = new;
		que->tail = new;
	}
	else
	{
		new->prev = que->tail;
		que->tail->next = new;
		que->tail = new;
		new->next = NULL;
	}
	que->size++;
}

// Assembly:
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x1bbd
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rcx
movq %rcx, 0x8(%rsi)
movq %rsi, 0x10(%rcx)
movq %rsi, 0x8(%rdi)
andq $0x0, 0x10(%rsi)
popq %rbp
jmp 0x1bcb
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
movq %rsi, (%rdi)
movq %rsi, 0x8(%rdi)
incq %rax
movq %rax, 0x10(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/queue.c
// Function: pop_q
void	pop_q(t_queue *que)
{
	t_qlayer *tmp;
	if (que->size < 1)
	{
		free(que->head->prefix->tab);
		free(que->head->prefix);
		free(que->head);
		return;
	}
	else
	{
		tmp = que->head->next;
		free(que->head->prefix->tab);
		free(que->head->prefix);
		free(que->head);
		que->head = tmp;
		que->size--;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x10(%rdi)
movq (%rdi), %rax
je 0x1c15
movq (%rax), %rcx
movq 0x10(%rax), %r14
movq (%rcx), %rdi
callq 0x1030
movq (%rbx), %rax
movq (%rax), %rdi
callq 0x1030
movq (%rbx), %rdi
callq 0x1030
movq %r14, (%rbx)
decq 0x10(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq (%rax), %rax
movq (%rax), %rdi
callq 0x1030
movq (%rbx), %rax
movq (%rax), %rdi
callq 0x1030
movq (%rbx), %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/validation.c
// Function: valid_params
int		valid_params(int dir, int node, t_graph *g)
{
	if (dir != 0 && dir != 1)
		return 0;
	if (node <= 0 || node > g->vertx)
		return 0;
	g->search = node - 1;
	g->direct = dir;
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x2, %edi
setae %cl
testl %esi, %esi
setle %r8b
xorl %eax, %eax
orb %cl, %r8b
jne 0x1c75
cmpl %esi, 0x28(%rdx)
jl 0x1c75
decl %esi
movl %esi, 0x38(%rdx)
movl %edi, 0x34(%rdx)
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/validation.c
// Function: valid_edge
int		valid_edge(t_pair *got, int i, t_graph *g)
{
	got[i].x--;
	got[i].y--;
	if (got[i].x < 0 || got[i].x >= g->vertx)
	   return 0;
	if (got[i].y < 0 || got[i].y >= g->vertx)
		return 0;
	if (g->direct == 0 && got[i].x > got[i].y)
		swap(&got[i].x, &got[i].y);
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movslq %esi, %rcx
movl (%rdi,%rcx,8), %eax
movl 0x4(%rdi,%rcx,8), %esi
leal -0x1(%rax), %r8d
movl %r8d, (%rdi,%rcx,8)
leal -0x1(%rsi), %r8d
movl %r8d, 0x4(%rdi,%rcx,8)
xorl %ebx, %ebx
testl %eax, %eax
jle 0x1ce2
movl 0x28(%rdx), %r8d
cmpl %r8d, %eax
jg 0x1ce2
testl %esi, %esi
setle %r9b
cmpl %r8d, %esi
setg %r8b
orb %r9b, %r8b
jne 0x1ce2
cmpl $0x0, 0x34(%rdx)
sete %dl
cmpl %esi, %eax
seta %al
andb %dl, %al
pushq $0x1
popq %rbx
cmpb $0x1, %al
jne 0x1ce2
leaq (%rdi,%rcx,8), %rax
leaq (%rdi,%rcx,8), %rsi
addq $0x4, %rsi
movq %rax, %rdi
callq 0x119c
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/validation.c
// Function: valid_dimensions
int 	valid_dimensions(int n, int m, t_graph *g)
{
	if (n < 0 || m < 0)
		return 0;
	g->vertx = n;
	g->edg = 0;
	g->in_edg = m;
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %esi, %eax
orl %edi, %eax
js 0x1d06
movl %edi, 0x28(%rdx)
andl $0x0, 0x2c(%rdx)
movl %esi, 0x30(%rdx)
movl $0x1, %eax
jmp 0x1d08
xorl %eax, %eax
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/queue_int.c
// Function: push_q_i
void	push_q_i(t_queue_int *que, t_qlayer_int *new)
{
	if (que->size == 0)
	{
		new->next = NULL;
		new->prev = NULL;
		que->head = new;
		que->tail = new;
	}
	else
	{
		new->prev = que->tail;
		que->tail->next = new;
		que->tail = new;
		new->next = NULL;
	}
	que->size++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x1d2f
leaq 0x8(%rdi), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, (%rsi)
movq %rsi, 0x8(%rdx)
xorl %edx, %edx
movq %rsi, %r8
jmp 0x1d3e
xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
movq %rdi, %rcx
movq %rdi, %r8
movq %rsi, %rdx
movq %rsi, (%rcx)
movq %rdx, 0x8(%r8)
incq %rax
movq %rax, 0x10(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/queue_int.c
// Function: pop_q_i
void	pop_q_i(t_queue_int *que)
{
	t_qlayer_int *tmp;
	if (que->size < 1)
		return;
	else
		tmp = que->head->next;
		que->head = tmp;
		que->size--;
}

// Assembly:
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x1d6d
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, (%rdi)
decq %rax
movq %rax, 0x10(%rdi)
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/vector.c
// Function: extend_vector
void	extend_vector(t_vect *v, int a)
{
	size_t	size = v->size;
	size_t	new_size = size * 2;
	int		*new_nodes = (int*)malloc(sizeof(int)*new_size);

	copy_vector(v->tab, new_nodes, size);
	free(v->tab);
	v->size = new_size;
	v->tab = new_nodes;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r14
leaq (%r14,%r14), %r13
leaq (,%r14,8), %rdi
callq 0x1070
movq %rax, %r15
movq (%rbx), %r12
movq %r12, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x1dfc
movq %r12, %rdi
callq 0x1030
movq %r13, 0x8(%rbx)
movq %r15, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jalalium[P]graph_algorithms_task/src_ranking/vector.c
// Function: push_back
void	push_back(t_vect *v, int val)
{
	size_t pos = v->used;
	size_t size = v->size;

	if (pos + 1 == size)
		extend_vector(v, val);
	v->tab[pos] = val;
	v->used++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
movq 0x10(%rdi), %r15
leaq 0x1(%r15), %rax
cmpq 0x8(%rdi), %rax
jne 0x1e46
movq %rbx, %rdi
callq 0x1da4
movq 0x10(%rbx), %rax
incq %rax
movq (%rbx), %rcx
movl %r14d, (%rcx,%r15,4)
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/salextpuru[P]speccy-toochain/src/hex2bin/mot2bin.c
// Function: NoFailMalloc
void *NoFailMalloc (size_t size)
{
void *result;

	if ((result = malloc (size)) == NULL)
	{
		fprintf (stderr,"Can't allocate memory.\n");
		exit(1);
	}
	return (result);
}

// Assembly:
pushq %rax
callq 0x10e0
testq %rax, %rax
je 0x1280
popq %rcx
retq
movq 0x2d59(%rip), %rax      # 0x3fe0
movq (%rax), %rcx
leaq 0xfd5(%rip), %rdi       # 0x2266
pushq $0x17
popq %rsi
pushq $0x1
popq %rdx
callq 0x1140
pushq $0x1
popq %rdi
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O2/salextpuru[P]speccy-toochain/src/hex2bin/mot2bin.c
// Function: NoFailOpenInputFile
void NoFailOpenInputFile (char *Flnm)
{
    while ((Filin = fopen(Flnm,"r")) == NULL)
    {
        fprintf (stderr,"Input file %s cannot be opened. Enter new filename: ",Flnm);
        fgets (Flnm,MAX_FILE_NAME_SIZE,stdin);
        if (Flnm[0] == '\0') exit(1);
    }

#ifdef USE_FILE_BUFFERS
    FilinBuf = (char *) NoFailMalloc (BUFFSZ);
    setvbuf(Filin, FilinBuf, _IOFBF, BUFFSZ);
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xfc5(%rip), %r14       # 0x227e
movq 0x2d20(%rip), %r12      # 0x3fe0
leaq 0xfb9(%rip), %r15       # 0x2280
movq 0x2d0a(%rip), %r13      # 0x3fd8
pushq $0x51
popq %rbp
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10b0
movq %rax, 0x2ded(%rip)      # 0x40d0
testq %rax, %rax
jne 0x1314
movq (%r12), %rdi
movq %r15, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1100
movq (%r13), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1120
cmpb $0x0, (%rbx)
jne 0x12d1
pushq $0x1
popq %rdi
callq 0x10d0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq