LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_command.c
// Function: parse_arg
static bool parse_arg(CeCommandArg_t* arg, const char* string){
     if(*string == 0) return false;

     int64_t size = 0;
     bool digits_only = true;
     bool decimal = false;
     const char* itr = string;

     while(*itr){
          if(!isdigit((int)(*itr))){
               if(*itr == '.'){
                    decimal = true;
               }else if(*itr == '-' ||
                        *itr == '+'){
                    // ignore
               }else{
                    digits_only = false;
               }
          }
          itr++;
          size++;
     }

     if(decimal && digits_only && size == 1){
         digits_only = false;
     }

     if(digits_only){
          if(decimal){
               arg->type = CE_COMMAND_ARG_DECIMAL;
               arg->decimal = atof(string);
          }else{
               arg->type = CE_COMMAND_ARG_INTEGER;
               arg->integer = atoi(string);
          }
     }else{
          // skip over the first quote if one is there
          if(string[0] == '"') string++;

          arg->type = CE_COMMAND_ARG_STRING;
          arg->string = strdup(string);
          int64_t len = strlen(arg->string);

          // overwrite last quote with null terminator
          if(arg->string[len - 1] == '"') arg->string[len - 1] = 0;
     }

     return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movb (%rsi), %bpl
testb %bpl, %bpl
je 0x15a30
movq %rsi, %r14
movq %rdi, %rbx
callq 0xd720
movq (%rax), %rcx
movb $0x1, %al
pushq $0x1
popq %rdx
xorl %esi, %esi
movl %ebp, %edi
testb %dil, %dil
je 0x159b5
movsbq %dil, %r8
testb $0x8, 0x1(%rcx,%r8,2)
jne 0x159a6
cmpb $0x2b, %dil
je 0x159a6
movzbl %dil, %edi
cmpl $0x2d, %edi
je 0x159a6
movb $0x1, %r8b
cmpl $0x2e, %edi
je 0x159a9
xorl %eax, %eax
movl %esi, %r8d
movb (%r14,%rdx), %dil
incq %rdx
movl %r8d, %esi
jmp 0x1597c
cmpq $0x2, %rdx
setne %cl
movl %esi, %edx
andb %al, %dl
notb %dl
orb %cl, %dl
andb %al, %dl
testb $0x1, %dl
je 0x159e6
testb $0x1, %sil
je 0x15a1f
movl $0x1, (%rbx)
movq %r14, %rdi
callq 0xd190
movsd %xmm0, 0x8(%rbx)
jmp 0x15a30
xorl %eax, %eax
cmpb $0x22, %bpl
sete %al
addq %rax, %r14
movl $0x2, (%rbx)
movq %r14, %rdi
callq 0xd640
movq %rax, %r14
movq %rax, 0x8(%rbx)
movq %rax, %rdi
callq 0xd210
cmpb $0x22, -0x1(%r14,%rax)
jne 0x15a30
movb $0x0, -0x1(%r14,%rax)
jmp 0x15a30
andl $0x0, (%rbx)
movq %r14, %rdi
callq 0xd5f0
cltq
movq %rax, 0x8(%rbx)
testb %bpl, %bpl
setne %al
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_command.c
// Function: ce_command_free
void ce_command_free(CeCommand_t* command){
     memset(command, 0, CE_COMMAND_NAME_MAX_LEN);

     for(int64_t i = 0; i < command->arg_count; ++i){
          if(command->args[i].type == CE_COMMAND_ARG_STRING){
               free(command->args[i].string);
          }
     }

     free(command->args);
     command->args = NULL;
     command->arg_count = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
callq 0xd2a0
leaq 0x200(%rbx), %r15
pushq $0x8
popq %r12
movq 0x200(%rbx), %rdi
cmpq 0x208(%rbx), %r14
jge 0x15a8a
cmpl $0x2, -0x8(%rdi,%r12)
jne 0x15a81
movq (%rdi,%r12), %rdi
callq 0xd090
incq %r14
addq $0x10, %r12
jmp 0x15a60
callq 0xd090
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_command.c
// Function: ce_command_log
void ce_command_log(CeCommand_t* command){
     ce_log("command: '%s', %ld args\n", command->name, command->arg_count);

     for(int64_t i = 0; i < command->arg_count; ++i){
          CeCommandArg_t* arg = command->args + i;
          switch(arg->type){
          default:
               break;
          case CE_COMMAND_ARG_INTEGER:
               ce_log("  %ld\n", arg->integer);
               break;
          case CE_COMMAND_ARG_DECIMAL:
               ce_log("  %f\n", arg->decimal);
               break;
          case CE_COMMAND_ARG_STRING:
               ce_log("  '%s'\n", arg->string);
               break;
          }
     }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x208(%rdi), %rdx
leaq 0x1675b(%rip), %rdi     # 0x2c219
movq %rbx, %rsi
xorl %eax, %eax
callq 0xd8e5
pushq $0x8
popq %r13
leaq 0x1676c(%rip), %r14     # 0x2c23f
leaq 0x1675f(%rip), %r15     # 0x2c239
leaq 0x16751(%rip), %r12     # 0x2c232
xorl %ebp, %ebp
cmpq 0x208(%rbx), %rbp
jge 0x15b38
movq 0x200(%rbx), %rax
movl -0x8(%rax,%r13), %ecx
cmpl $0x2, %ecx
je 0x15b21
cmpl $0x1, %ecx
je 0x15b0f
testl %ecx, %ecx
jne 0x15b2f
movq (%rax,%r13), %rsi
movq %r12, %rdi
jmp 0x15b28
movsd (%rax,%r13), %xmm0
movq %r15, %rdi
movb $0x1, %al
callq 0xd8e5
jmp 0x15b2f
movq (%rax,%r13), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0xd8e5
incq %rbp
addq $0x10, %r13
jmp 0x15ae3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_quit
CeCommandStatus_t command_quit(CeCommand_t* command, void* user_data){
     if(command->arg_count != 0) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     CommandContext_t command_context = {};

     if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;

     bool unsaved_buffers = false;
     CeBufferNode_t* itr = app->buffer_node_head;
     while(itr){
          if(itr->buffer->status == CE_BUFFER_STATUS_MODIFIED && itr->buffer != app->input_view.buffer){
               unsaved_buffers = true;
               break;
          }
          itr = itr->next;
     }

     if(unsaved_buffers){
          ce_view_switch_buffer(command_context.view, app->buffer_list_buffer, &app->vim,
                                &app->config_options, true);
          ce_app_input(app, UNSAVED_BUFFERS_DIALOGUE, unsaved_buffers_input_complete_func);
     }else{
          app->quit = true;
     }

     return CE_COMMAND_SUCCESS;
}

// Assembly:
cmpq $0x0, 0x208(%rdi)
je 0x15b59
pushq $0x2
popq %rax
retq
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x15be9
testb %al, %al
je 0x15b9d
leaq 0x2828(%rbx), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x15ba2
movq (%rax), %rcx
cmpl $0x1, 0x18(%rcx)
jne 0x15b97
cmpq 0x2748(%rbx), %rcx
jne 0x15bab
addq $0x8, %rax
jmp 0x15b7d
pushq $0x3
popq %rax
jmp 0x15be3
movb $0x1, 0x2c78(%rbx)
jmp 0x15be1
movq 0x8(%rsp), %rdi
movq 0x2848(%rbx), %rsi
leaq 0x20(%rbx), %rdx
leaq 0x1a50(%rbx), %rcx
pushq $0x1
popq %r8
callq 0x10bc9
leaq 0x16675(%rip), %rsi     # 0x2c247
leaq -0x279f(%rip), %rdx     # 0x1343a
movq %rbx, %rdi
callq 0x11d3f
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: get_command_context
static bool get_command_context(CeApp_t* app, CommandContext_t* command_context){
     command_context->tab_layout = app->tab_list_layout->tab_list.current;

     if(app->input_complete_func) return false;

     if(command_context->tab_layout->tab.current->type == CE_LAYOUT_TYPE_VIEW){
          command_context->view = &command_context->tab_layout->tab.current->view;
          return true;
     }

     return true;
}

// Assembly:
movq 0x2818(%rdi), %rax
movq 0x10(%rax), %rcx
movq %rcx, (%rsi)
movq 0x27f8(%rdi), %rax
testq %rax, %rax
jne 0x15c14
movq 0x10(%rcx), %rcx
cmpl $0x0, (%rcx)
jne 0x15c14
addq $0x8, %rcx
movq %rcx, 0x8(%rsi)
testq %rax, %rax
sete %al
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: get_view_info_from_tab
static bool get_view_info_from_tab(CeLayout_t* tab_layout, CeView_t** view, CeRect_t* view_rect){
     if(tab_layout->tab.current->type == CE_LAYOUT_TYPE_VIEW){
          *view = &tab_layout->tab.current->view;
     }else if(tab_layout->tab.current->type == CE_LAYOUT_TYPE_LIST){
          *view_rect = tab_layout->list.rect;
     }else if(tab_layout->tab.current->type == CE_LAYOUT_TYPE_TAB){
          *view_rect = tab_layout->tab.rect;
     }else{
          return false;
     }

     return true;
}

// Assembly:
movq 0x10(%rdi), %rax
movl (%rax), %ecx
cmpl $0x2, %ecx
je 0x15e61
cmpl $0x1, %ecx
je 0x15e57
testl %ecx, %ecx
jne 0x15e73
addq $0x8, %rax
movq %rax, (%rsi)
jmp 0x15e70
movups 0x20(%rdi), %xmm0
movups 0x30(%rdi), %xmm1
jmp 0x15e69
movups 0x18(%rdi), %xmm0
movups 0x28(%rdi), %xmm1
movups %xmm1, 0x10(%rdx)
movups %xmm0, (%rdx)
movb $0x1, %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_save_buffer
CeCommandStatus_t command_save_buffer(CeCommand_t* command, void* user_data){
     if(command->arg_count != 0) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     CommandContext_t command_context = {};

     if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;

     try_save_buffer(app, command_context.view->buffer);

     return CE_COMMAND_SUCCESS;
}

// Assembly:
cmpq $0x0, 0x208(%rdi)
je 0x15e84
pushq $0x2
popq %rax
retq
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x15be9
testb %al, %al
je 0x15eb6
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rsi
movq %rbx, %rdi
callq 0x15ebf
xorl %eax, %eax
jmp 0x15eb9
pushq $0x3
popq %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: try_save_buffer
static bool try_save_buffer(CeApp_t* app, CeBuffer_t* buffer){
     struct stat statbuf;
     if(stat(buffer->name, &statbuf) == 0){
          if(statbuf.st_mtime > buffer->file_modified_time){
               ce_app_input(app, BUFFER_MODIFIED_OUTSIDE_EDITOR, buffer_modified_outside_editor_complete_func);
               return false;
          }
     }
     if(app->user_config.save_func){
         app->user_config.save_func(app, buffer);
     }
     return ce_buffer_save(buffer);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %rdi
leaq 0x8(%rsp), %rsi
callq 0xd3f0
testl %eax, %eax
jne 0x15f0f
movq 0x60(%rsp), %rax
cmpq 0x68(%rbx), %rax
jle 0x15f0f
leaq 0x1669a(%rip), %rsi     # 0x2c58d
leaq -0x2a96(%rip), %rdx     # 0x13464
movq %r14, %rdi
callq 0x11d3f
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
movq 0x2ca0(%r14), %rax
testq %rax, %rax
je 0x15f23
movq %r14, %rdi
movq %rbx, %rsi
callq *%rax
movq %rbx, %rdi
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0xe1fb
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_save_all_and_quit
CeCommandStatus_t command_save_all_and_quit(CeCommand_t* command, void* user_data){
     if(command->arg_count != 0) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;

     CeBufferNode_t* itr = app->buffer_node_head;
     while(itr){
          if(itr->buffer->status == CE_BUFFER_STATUS_MODIFIED){
               if(!try_save_buffer(app, itr->buffer)){
                    return CE_COMMAND_SUCCESS;
               }
          }
          itr = itr->next;
     }

     return command_quit(command, user_data);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpq $0x0, 0x208(%rdi)
je 0x15f4d
pushq $0x2
popq %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2828(%rsi), %r15
movq (%r15), %r15
testq %r15, %r15
je 0x15f7d
movq (%r15), %rsi
cmpl $0x1, 0x18(%rsi)
jne 0x15f77
movq %rbx, %rdi
callq 0x15ebf
testb %al, %al
je 0x15f8d
addq $0x8, %r15
jmp 0x15f5a
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x15b4b
xorl %eax, %eax
jmp 0x15f47
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_show_info_buffer
CeCommandStatus_t command_show_info_buffer(CeCommand_t* command, void* user_data, CeBuffer_t* buffer){
     if(command->arg_count != 0) return CE_COMMAND_PRINT_HELP;
     CeApp_t* app = user_data;
     CommandContext_t command_context = {};
     if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;
     ce_view_switch_buffer(command_context.view, buffer, &app->vim, &app->config_options, true);
     return CE_COMMAND_SUCCESS;
}

// Assembly:
cmpq $0x0, 0x208(%rdi)
je 0x15f9f
pushq $0x2
popq %rax
retq
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x15be9
testb %al, %al
je 0x15fe4
movq 0x8(%rsp), %rdi
leaq 0x20(%rbx), %rdx
addq $0x1a50, %rbx           # imm = 0x1A50
pushq $0x1
popq %r8
movq %r14, %rsi
movq %rbx, %rcx
callq 0x10bc9
xorl %eax, %eax
jmp 0x15fe7
pushq $0x3
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: split_layout
CeLayout_t* split_layout(CeApp_t* app, bool vertical){
     CeLayout_t* tab_layout = app->tab_list_layout->tab_list.current;
     bool always_add_last = false;
     CeLayout_t* new_layout = ce_layout_split(tab_layout, vertical, always_add_last);

     if(new_layout){
          ce_view_follow_cursor(&new_layout->view, app->config_options.horizontal_scroll_off,
                                app->config_options.vertical_scroll_off, app->config_options.tab_width);
          tab_layout->tab.current = new_layout;

          CeLayout_t* parent = ce_layout_find_parent(tab_layout, new_layout);
          if(parent && parent->type == CE_LAYOUT_TYPE_LIST){
               for(int64_t i = 0; i < parent->list.layout_count; i++){
                    CeLayout_t* layout = parent->list.layouts[i];
                    ce_view_follow_cursor(&layout->view, app->config_options.horizontal_scroll_off,
                                          app->config_options.vertical_scroll_off, app->config_options.tab_width);

               }
          }
     }

     return new_layout;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x2818(%rdi), %rax
movq 0x10(%rax), %r15
movq %r15, %rdi
xorl %edx, %edx
callq 0x1c04f
movq %rax, %r14
testq %rax, %rax
je 0x160c4
movq %r14, %rdi
addq $0x8, %rdi
movq 0x1a58(%rbx), %rcx
movq 0x1a60(%rbx), %rsi
movq 0x1a68(%rbx), %rdx
callq 0xfa67
movq %r14, 0x10(%r15)
movq %r15, %rdi
movq %r14, %rsi
callq 0x1c2a3
testq %rax, %rax
je 0x160c4
movq %rax, %r15
cmpl $0x1, (%rax)
jne 0x160c4
xorl %r12d, %r12d
cmpq 0x10(%r15), %r12
jge 0x160c4
movq 0x8(%r15), %rax
movq (%rax,%r12,8), %rdi
addq $0x8, %rdi
movq 0x1a58(%rbx), %rcx
movq 0x1a60(%rbx), %rsi
movq 0x1a68(%rbx), %rdx
callq 0xfa67
incq %r12
jmp 0x16093
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_split_layout
CeCommandStatus_t command_split_layout(CeCommand_t* command, void* user_data){
     if(command->arg_count != 1) return CE_COMMAND_PRINT_HELP;
     if(command->args[0].type != CE_COMMAND_ARG_STRING) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     bool vertical = false;

     if(strcmp(command->args[0].string, "vertical") == 0){
          vertical = true;
     }else if(strcmp(command->args[0].string, "horizontal") == 0){
          // pass
     }else{
          return CE_COMMAND_PRINT_HELP;
     }

     CeLayout_t* new_layout = split_layout(app, vertical);
     if(new_layout == NULL){
         return CE_COMMAND_FAILURE;
     }

     return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
pushq $0x2
popq %rbx
cmpq $0x1, 0x208(%rdi)
jne 0x16161
movq 0x200(%rdi), %rax
cmpl $0x2, (%rax)
jne 0x16161
movq %rsi, %r14
movq 0x8(%rax), %r15
leaq 0x161a9(%rip), %rsi     # 0x2c2d1
movq %r15, %rdi
callq 0xd390
movl %eax, %ebp
testl %eax, %eax
je 0x16149
leaq 0x1619d(%rip), %rsi     # 0x2c2da
movq %r15, %rdi
callq 0xd390
testl %eax, %eax
jne 0x16161
xorl %esi, %esi
testl %ebp, %ebp
sete %sil
movq %r14, %rdi
callq 0x1602b
xorl %ebx, %ebx
testq %rax, %rax
sete %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_resize_layout
CeCommandStatus_t command_resize_layout(CeCommand_t* command, void* user_data){
     if(command->arg_count != 3) return CE_COMMAND_PRINT_HELP;
     if(command->args[0].type != CE_COMMAND_ARG_STRING) return CE_COMMAND_PRINT_HELP;
     if(command->args[1].type != CE_COMMAND_ARG_STRING) return CE_COMMAND_PRINT_HELP;
     if(command->args[2].type != CE_COMMAND_ARG_INTEGER) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     CeLayout_t* tab_layout = app->tab_list_layout->tab_list.current;
     CeLayout_t* current_layout = tab_layout->tab.current;
     bool expand = false;
     CeDirection_t direction;

     if(strcmp(command->args[0].string, "expand") == 0){
         expand = true;
     }else if(strcmp(command->args[0].string, "shrink") == 0){
          // pass
     }else{
          return CE_COMMAND_PRINT_HELP;
     }

     if(strcmp(command->args[1].string, "left") == 0){
          direction = CE_LEFT;
     }else if(strcmp(command->args[1].string, "right") == 0){
          direction = CE_RIGHT;
     }else if(strcmp(command->args[1].string, "up") == 0){
          direction = CE_UP;
     }else if(strcmp(command->args[1].string, "down") == 0){
          direction = CE_DOWN;
     }else{
          return CE_COMMAND_PRINT_HELP;
     }

     if(ce_layout_resize_rect(app->tab_list_layout, current_layout, app->terminal_rect, direction, expand, command->args[2].integer)){
          return CE_COMMAND_SUCCESS;
     }

     return CE_COMMAND_FAILURE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
pushq $0x2
popq %r12
cmpq $0x3, 0x208(%rdi)
jne 0x16293
movq 0x200(%rdi), %r15
cmpl $0x2, (%r15)
jne 0x16293
cmpl $0x2, 0x10(%r15)
jne 0x16293
cmpl $0x0, 0x20(%r15)
jne 0x16293
movq %rsi, %rbx
movq 0x2818(%rsi), %r14
movq 0x10(%r14), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x8(%r15), %r13
leaq 0x1610e(%rip), %rsi     # 0x2c2e5
movq %r13, %rdi
callq 0xd390
movl %eax, %ebp
testl %eax, %eax
je 0x161fc
leaq 0x16100(%rip), %rsi     # 0x2c2ec
movq %r13, %rdi
callq 0xd390
testl %eax, %eax
jne 0x16293
movq 0x18(%r15), %r12
leaq 0x17529(%rip), %rsi     # 0x2d730
movq %r12, %rdi
callq 0xd390
testl %eax, %eax
je 0x16256
leaq 0x174fc(%rip), %rsi     # 0x2d716
movq %r12, %rdi
callq 0xd390
testl %eax, %eax
je 0x1625a
cmpb $0x75, (%r12)
jne 0x1623d
cmpb $0x70, 0x1(%r12)
jne 0x1623d
cmpb $0x0, 0x2(%r12)
je 0x16262
leaq 0x174b9(%rip), %rsi     # 0x2d6fd
movq %r12, %rdi
callq 0xd390
testl %eax, %eax
je 0x1625e
pushq $0x2
popq %r12
jmp 0x16293
xorl %edx, %edx
jmp 0x16265
pushq $0x2
jmp 0x16264
pushq $0x3
jmp 0x16264
pushq $0x1
popq %rdx
xorl %ecx, %ecx
testl %ebp, %ebp
sete %cl
movq 0x28(%r15), %r8
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r14, %rdi
movq 0x20(%rsp), %rsi
callq 0x1c6e2
xorb $0x1, %al
movzbl %al, %r12d
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_select_parent_layout
CeCommandStatus_t command_select_parent_layout(CeCommand_t* command, void* user_data){
     if(command->arg_count != 0) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     CeLayout_t* tab_layout = app->tab_list_layout->tab_list.current;

     CeLayout_t* layout = ce_layout_find_parent(tab_layout, tab_layout->tab.current);
     if(layout){
          tab_layout->tab.current = layout;
     }else{
          ce_app_message(app, "current layout has no parent");
     }

     return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
cmpq $0x0, 0x208(%rdi)
je 0x162b8
pushq $0x2
popq %rbp
jmp 0x162f2
movq %rsi, %rbx
movq 0x2818(%rsi), %rax
movq 0x10(%rax), %r14
movq 0x10(%r14), %rsi
movq %r14, %rdi
callq 0x1c2a3
testq %rax, %rax
je 0x162df
movq %rax, 0x10(%r14)
xorl %ebp, %ebp
jmp 0x162f2
leaq 0x1600d(%rip), %rsi     # 0x2c2f3
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11b97
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_open_popup_view
CeCommandStatus_t command_open_popup_view(CeCommand_t* command, void* user_data){
     if(command->arg_count < 0 || command->arg_count > 1) return CE_COMMAND_PRINT_HELP;
     if(command->arg_count == 1 &&
        command->args[0].type != CE_COMMAND_ARG_STRING){
         return CE_COMMAND_PRINT_HELP;
     }
     CeApp_t* app = user_data;
     CeBuffer_t* buffer = app->shell_command_buffer;
     if(command->arg_count == 0){
         if(app->last_popup_buffer){
             buffer = app->last_popup_buffer;
         }
     }else{
         CeBufferNode_t* itr = app->buffer_node_head;
         while(itr){
              if(strcmp(itr->buffer->name, command->args[0].string) == 0){
                  buffer = itr->buffer;
                  break;
              }
              itr = itr->next;
         }
     }
     if(!ce_app_open_popup_view(app, buffer)) return CE_COMMAND_FAILURE;
     return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq $0x2
popq %rax
cmpq $0x1, 0x208(%rdi)
ja 0x16505
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
jne 0x164d4
movq 0x200(%rdi), %r15
cmpl $0x2, (%r15)
jne 0x164fc
movq 0x2880(%rbx), %r12
leaq 0x2828(%rbx), %r13
movq (%r13), %r13
testq %r13, %r13
je 0x164e9
movq (%r13), %r14
movq 0x10(%r14), %rdi
movq 0x8(%r15), %rsi
callq 0xd390
addq $0x8, %r13
testl %eax, %eax
jne 0x164b0
jmp 0x164ec
movq 0x2dd0(%rbx), %r14
testq %r14, %r14
jne 0x164ec
movq 0x2880(%rbx), %r14
jmp 0x164ec
movq %r12, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13236
xorb $0x1, %al
movzbl %al, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_create_file
CeCommandStatus_t command_create_file(CeCommand_t* command, void* user_data){
     if(command->arg_count < 0 || command->arg_count > 1) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;

     if(command->args[0].type != CE_COMMAND_ARG_STRING) return CE_COMMAND_PRINT_HELP;

     FILE* f = fopen(command->args[0].string, "w+");
     if(f == NULL){
         ce_app_message(app, "Failed to create file: %s", strerror(errno));
         return CE_COMMAND_FAILURE;
     }
     fclose(f);
     return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq $0x2
popq %rax
cmpq $0x1, 0x208(%rdi)
ja 0x16589
pushq %rbx
movq 0x200(%rdi), %rcx
cmpl $0x2, (%rcx)
jne 0x16588
movq %rsi, %rbx
movq 0x8(%rcx), %rdi
leaq 0x15dc1(%rip), %rsi     # 0x2c310
callq 0xd5b0
testq %rax, %rax
je 0x16565
movq %rax, %rdi
callq 0xd1f0
xorl %eax, %eax
jmp 0x16588
callq 0xd0a0
movl (%rax), %edi
callq 0xd650
leaq 0x15d9b(%rip), %rsi     # 0x2c313
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x11b97
pushq $0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_rename_file
CeCommandStatus_t command_rename_file(CeCommand_t* command, void* user_data){
     if(command->arg_count < 0 || command->arg_count != 2) return CE_COMMAND_PRINT_HELP;

     if(command->args[0].type != CE_COMMAND_ARG_STRING) return CE_COMMAND_PRINT_HELP;
     if(command->args[1].type != CE_COMMAND_ARG_STRING) return CE_COMMAND_PRINT_HELP;

     int rc = rename(command->args[0].string, command->args[1].string);
     if (rc != 0) {
         ce_log("rename() failed: %s\n", strerror(errno));
         return CE_COMMAND_FAILURE;
     }

     return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq $0x2
popq %rax
cmpq $0x2, 0x208(%rdi)
jne 0x165e3
pushq %rax
movq 0x200(%rdi), %rcx
cmpl $0x2, (%rcx)
jne 0x165df
cmpl $0x2, 0x10(%rcx)
jne 0x165df
movq 0x8(%rcx), %rdi
movq 0x18(%rcx), %rsi
callq 0xd5d0
testl %eax, %eax
je 0x165dd
callq 0xd0a0
movl (%rax), %edi
callq 0xd650
leaq 0x15d5f(%rip), %rdi     # 0x2c32d
movq %rax, %rsi
xorl %eax, %eax
callq 0xd8e5
pushq $0x1
popq %rax
jmp 0x165df
xorl %eax, %eax
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_remove_file
CeCommandStatus_t command_remove_file(CeCommand_t* command, void* user_data){
     if(command->arg_count < 0 || command->arg_count > 1) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;

     if(command->args[0].type != CE_COMMAND_ARG_STRING) return CE_COMMAND_PRINT_HELP;

     int rc = remove(command->args[0].string);
     if(rc != 0){
         ce_app_message(app, "Failed to remove file: %s", strerror(errno));
         return CE_COMMAND_FAILURE;
     }
     return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq $0x2
popq %rax
cmpq $0x1, 0x208(%rdi)
ja 0x16636
pushq %rbx
movq 0x200(%rdi), %rcx
cmpl $0x2, (%rcx)
jne 0x16635
movq %rsi, %rbx
movq 0x8(%rcx), %rdi
callq 0xd0c0
testl %eax, %eax
je 0x16633
callq 0xd0a0
movl (%rax), %edi
callq 0xd650
leaq 0x15d21(%rip), %rsi     # 0x2c342
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x11b97
pushq $0x1
popq %rax
jmp 0x16635
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_load_file
CeCommandStatus_t command_load_file(CeCommand_t* command, void* user_data){
     if(command->arg_count < 0 || command->arg_count > 1) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     CommandContext_t command_context = {};

     if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;

     if(command->arg_count == 1){
          if(command->args[0].type != CE_COMMAND_ARG_STRING) return CE_COMMAND_PRINT_HELP;
          if(!load_file_into_view(&app->buffer_node_head, command_context.view, &app->config_options, &app->vim,
                                  true, command->args[0].string)){
               ce_app_message(app, "failed to load file %s: '%s'", command->args[0].string, strerror(errno));
          }else{
               ce_clangd_file_open(&app->clangd, app->buffer_node_head->buffer);
          }
     }else{ // it's 0
          ce_app_input(app, "Load File", load_file_input_complete_func);

          char* base_directory = buffer_base_directory(command_context.view->buffer);
          complete_files(&app->input_complete, app->input_view.buffer->lines[0], base_directory);
          free(base_directory);
          build_complete_list(app->complete_list_buffer, &app->input_complete);
     }

     return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq 0x208(%rdi), %r15
cmpq $0x1, %r15
jbe 0x16652
pushq $0x2
jmp 0x166c9
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x15be9
testb %al, %al
je 0x166c7
cmpq $0x1, %r15
jne 0x166d7
movq 0x200(%r14), %rax
cmpl $0x2, (%rax)
jne 0x1664e
leaq 0x2828(%rbx), %rdi
movq 0x8(%rsp), %rsi
leaq 0x1a50(%rbx), %rdx
leaq 0x20(%rbx), %rcx
movq 0x8(%rax), %r9
pushq $0x1
popq %r8
callq 0x10fbd
testq %rax, %rax
je 0x16738
movq 0x2828(%rbx), %rax
addq $0x2cd0, %rbx           # imm = 0x2CD0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x14cd5
jmp 0x16734
pushq $0x3
popq %rbp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x15c9b(%rip), %rsi     # 0x2c379
leaq -0x307b(%rip), %rdx     # 0x1366a
movq %rbx, %rdi
callq 0x11d3f
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x1132c
movq %rax, %r14
leaq 0x28a0(%rbx), %r15
movq 0x2748(%rbx), %rax
movq (%rax), %rax
movq (%rax), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x1134d
movq %r14, %rdi
callq 0xd090
movq 0x2860(%rbx), %rdi
movq %r15, %rsi
callq 0x11518
xorl %ebp, %ebp
jmp 0x166ca
movq 0x200(%r14), %rax
movq 0x8(%rax), %r14
callq 0xd0a0
movl (%rax), %edi
callq 0xd650
leaq 0x15c06(%rip), %rsi     # 0x2c35c
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x11b97
jmp 0x166ca
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_load_discovered_file
CeCommandStatus_t command_load_discovered_file(CeCommand_t* command, void* user_data){
    CeApp_t* app = user_data;
    CommandContext_t command_context = {};

    if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;

    if(app->discovered_filepath_count <= 0) return CE_COMMAND_NO_ACTION;

    // setup input and completion
    ce_app_input(app, "Load Discovered File", load_project_file_input_complete_func);
    ce_complete_init(&app->input_complete, (const char**)(app->discovered_filepaths), NULL, app->discovered_filepath_count);
    build_complete_list(app->complete_list_buffer, &app->input_complete);

    return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x15be9
pushq $0x3
popq %r14
testb %al, %al
je 0x16d22
cmpq $0x0, 0x2cb0(%rbx)
jle 0x16d22
leaq 0x156a1(%rip), %rsi     # 0x2c383
leaq -0x3516(%rip), %rdx     # 0x137d3
movq %rbx, %rdi
callq 0x11d3f
leaq 0x28a0(%rbx), %r15
movq 0x2cb0(%rbx), %rcx
movq 0x2cb8(%rbx), %rsi
xorl %r14d, %r14d
movq %r15, %rdi
xorl %edx, %edx
callq 0x18d58
movq 0x2860(%rbx), %rdi
movq %r15, %rsi
callq 0x11518
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_new_tab
CeCommandStatus_t command_new_tab(CeCommand_t* command, void* user_data){
     if(command->arg_count != 0) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;

     CeLayout_t* new_tab_layout = ce_layout_tab_list_add(app->tab_list_layout);
     if(!new_tab_layout) return CE_COMMAND_NO_ACTION;
     app->tab_list_layout->tab_list.current = new_tab_layout;

     return CE_COMMAND_SUCCESS;
}

// Assembly:
cmpq $0x0, 0x208(%rdi)
je 0x16d3d
pushq $0x2
popq %rax
retq
pushq %rbx
movq %rsi, %rbx
movq 0x2818(%rsi), %rdi
callq 0x1bd97
testq %rax, %rax
je 0x16d61
movq 0x2818(%rbx), %rcx
movq %rax, 0x10(%rcx)
xorl %eax, %eax
jmp 0x16d64
pushq $0x3
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: select_tab_left
bool select_tab_left(CeApp_t* app){
     for(int64_t i = 0; i < app->tab_list_layout->tab_list.tab_count; i++){
          if(app->tab_list_layout->tab_list.current == app->tab_list_layout->tab_list.tabs[i]){
               if(i > 0){
                    app->tab_list_layout->tab_list.current = app->tab_list_layout->tab_list.tabs[i - 1];
                    return true;
               }else{
                    // wrap around
                    app->tab_list_layout->tab_list.current = app->tab_list_layout->tab_list.tabs[app->tab_list_layout->tab_list.tab_count - 1];
                    return true;
               }
               break;
          }
     }
     return false;
}

// Assembly:
movq 0x2818(%rdi), %rdx
movq 0x18(%rdx), %rax
xorl %ecx, %ecx
testq %rax, %rax
movl $0x0, %esi
cmovgq %rax, %rsi
cmpq %rcx, %rsi
je 0x16daa
movq 0x8(%rdx), %rdi
movq 0x10(%rdx), %r8
cmpq (%rdi,%rcx,8), %r8
je 0x16d97
incq %rcx
jmp 0x16d7f
testq %rcx, %rcx
movq %rcx, %rsi
cmoveq %rax, %rsi
movq -0x8(%rdi,%rsi,8), %rsi
movq %rsi, 0x10(%rdx)
cmpq %rax, %rcx
setl %al
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: select_tab_right
bool select_tab_right(CeApp_t* app){
     for(int64_t i = 0; i < app->tab_list_layout->tab_list.tab_count; i++){
          if(app->tab_list_layout->tab_list.current == app->tab_list_layout->tab_list.tabs[i]){
               if(i < (app->tab_list_layout->tab_list.tab_count - 1)){
                    app->tab_list_layout->tab_list.current = app->tab_list_layout->tab_list.tabs[i + 1];
                    return true;
               }else{
                    // wrap around
                    app->tab_list_layout->tab_list.current = app->tab_list_layout->tab_list.tabs[0];
                    return true;
               }
               break;
          }
     }
     return false;
}

// Assembly:
movq 0x2818(%rdi), %rdx
movq 0x18(%rdx), %rax
xorl %ecx, %ecx
testq %rax, %rax
movl $0x0, %edi
cmovgq %rax, %rdi
pushq $-0x8
popq %rsi
cmpq %rcx, %rdi
je 0x16e01
movq 0x8(%rdx), %r8
movq 0x10(%rdx), %r9
cmpq (%r8,%rcx,8), %r9
je 0x16de9
incq %rcx
addq $-0x8, %rsi
jmp 0x16dcd
leaq -0x1(%rax), %rdi
movq %r8, %r9
subq %rsi, %r9
cmpq %rdi, %rcx
cmovgeq %r8, %r9
movq (%r9), %rsi
movq %rsi, 0x10(%rdx)
cmpq %rax, %rcx
setl %al
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_select_adjacent_tab
CeCommandStatus_t command_select_adjacent_tab(CeCommand_t* command, void* user_data){
     if(command->arg_count != 1) return CE_COMMAND_PRINT_HELP;
     if(command->args[0].type != CE_COMMAND_ARG_STRING) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;

     if(strcmp(command->args[0].string, "left") == 0){
          if(app->tab_list_layout->tab_list.tab_count == 1){
               ce_app_message(app, "cannot select adjacent tab, there is only 1 tab");
               return CE_COMMAND_NO_ACTION;
          }

          if(select_tab_left(app)){
               app->message_mode = false;
               return CE_COMMAND_SUCCESS;
          }

          return CE_COMMAND_NO_ACTION;
     }else if(strcmp(command->args[0].string, "right") == 0){
          if(app->tab_list_layout->tab_list.tab_count == 1){
               ce_app_message(app, "cannot select adjacent tab, there is only 1 tab");
               return CE_COMMAND_NO_ACTION;
          }

          if(select_tab_right(app)){
               app->message_mode = false;
               return CE_COMMAND_SUCCESS;
          }

          return CE_COMMAND_NO_ACTION;
     }

     return CE_COMMAND_PRINT_HELP;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
pushq $0x2
popq %rbp
cmpq $0x1, 0x208(%rdi)
jne 0x16ead
movq 0x200(%rdi), %rax
cmpl $0x2, (%rax)
jne 0x16ead
movq %rsi, %rbx
movq 0x8(%rax), %r14
leaq 0x168f5(%rip), %rsi     # 0x2d730
movq %r14, %rdi
callq 0xd390
testl %eax, %eax
je 0x16e72
leaq 0x168c8(%rip), %rsi     # 0x2d716
movq %r14, %rdi
callq 0xd390
testl %eax, %eax
jne 0x16ead
movq 0x2818(%rbx), %rax
cmpq $0x1, 0x18(%rax)
je 0x16e80
movq %rbx, %rdi
callq 0x16db1
jmp 0x16e9b
movq 0x2818(%rbx), %rax
cmpq $0x1, 0x18(%rax)
jne 0x16e93
leaq 0x15511(%rip), %rsi     # 0x2c398
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11b97
jmp 0x16eaa
movq %rbx, %rdi
callq 0x16d66
testb %al, %al
je 0x16eaa
movb $0x0, 0x2800(%rbx)
xorl %ebp, %ebp
jmp 0x16ead
pushq $0x3
popq %rbp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_search
CeCommandStatus_t command_search(CeCommand_t* command, void* user_data){
     if(command->arg_count != 1) return CE_COMMAND_PRINT_HELP;
     if(command->args[0].type != CE_COMMAND_ARG_STRING) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     CommandContext_t command_context = {};

     if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;

     if(strcmp(command->args[0].string, "forward") == 0){
          ce_app_input(app, "Search", search_input_complete_func);
          app->vim.search_mode = CE_VIM_SEARCH_MODE_FORWARD;
          app->search_start = command_context.view->cursor;
     }else if(strcmp(command->args[0].string, "backward") == 0){
          ce_app_input(app, "Reverse Search", search_input_complete_func);
          app->vim.search_mode = CE_VIM_SEARCH_MODE_BACKWARD;
          app->search_start = command_context.view->cursor;
     }else{
          return CE_COMMAND_PRINT_HELP;
     }

     app->highlight_search = true;
     return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
pushq $0x2
popq %rbp
cmpq $0x1, 0x208(%rdi)
jne 0x16f6f
movq 0x200(%rdi), %r14
cmpl $0x2, (%r14)
jne 0x16f6f
movq %rsi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x15be9
testb %al, %al
je 0x16f26
movq 0x8(%r14), %r14
leaq 0x16841(%rip), %rsi     # 0x2d742
movq %r14, %rdi
callq 0xd390
xorl %ebp, %ebp
testl %eax, %eax
je 0x16f2b
leaq 0x16841(%rip), %rsi     # 0x2d757
movq %r14, %rdi
callq 0xd390
testl %eax, %eax
je 0x16f37
pushq $0x2
jmp 0x16f28
pushq $0x3
popq %rbp
jmp 0x16f6f
leaq 0x15728(%rip), %rsi     # 0x2c65a
xorl %r14d, %r14d
jmp 0x16f42
pushq $0x1
popq %r14
leaq 0x15710(%rip), %rsi     # 0x2c652
leaq -0x368b(%rip), %rdx     # 0x138be
movq %rbx, %rdi
callq 0x11d3f
movl %r14d, 0x19fc(%rbx)
movq 0x8(%rsp), %rax
movups 0x30(%rax), %xmm0
movups %xmm0, 0x2c40(%rbx)
movb $0x1, 0x2c79(%rbx)
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_regex_search
CeCommandStatus_t command_regex_search(CeCommand_t* command, void* user_data){
     if(command->arg_count != 1) return CE_COMMAND_PRINT_HELP;
     if(command->args[0].type != CE_COMMAND_ARG_STRING) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     CommandContext_t command_context = {};

     if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;

     if(strcmp(command->args[0].string, "forward") == 0){
          ce_app_input(app, "Regex Search", search_input_complete_func);
          app->vim.search_mode = CE_VIM_SEARCH_MODE_REGEX_FORWARD;
          app->search_start = command_context.view->cursor;
     }else if(strcmp(command->args[0].string, "backward") == 0){
          ce_app_input(app, "Reverse Regex Search", search_input_complete_func);
          app->vim.search_mode = CE_VIM_SEARCH_MODE_REGEX_BACKWARD;
          app->search_start = command_context.view->cursor;
     }else{
          return CE_COMMAND_PRINT_HELP;
     }

     app->highlight_search = true;
     return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq $0x2
popq %rax
cmpq $0x1, 0x208(%rdi)
jne 0x17083
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq 0x200(%rdi), %r14
cmpl $0x2, (%r14)
jne 0x1707b
movq %rsi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x15be9
testb %al, %al
je 0x17032
movq 0x8(%r14), %r14
leaq 0x16733(%rip), %rsi     # 0x2d742
movq %r14, %rdi
callq 0xd390
testl %eax, %eax
je 0x17037
leaq 0x16735(%rip), %rsi     # 0x2d757
movq %r14, %rdi
callq 0xd390
testl %eax, %eax
je 0x17043
pushq $0x2
jmp 0x17034
pushq $0x3
popq %rax
jmp 0x1707b
pushq $0x2
popq %rbp
leaq 0x1538f(%rip), %rsi     # 0x2c3d0
jmp 0x1704d
pushq $0x3
popq %rbp
leaq 0x1537b(%rip), %rsi     # 0x2c3c8
leaq -0x3796(%rip), %rdx     # 0x138be
movq %rbx, %rdi
callq 0x11d3f
movl %ebp, 0x19fc(%rbx)
movq 0x8(%rsp), %rax
movups 0x30(%rax), %xmm0
movups %xmm0, 0x2c40(%rbx)
movb $0x1, 0x2c79(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_command
CeCommandStatus_t command_command(CeCommand_t* command, void* user_data){
     if(command->arg_count != 0) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     CommandContext_t command_context = {};

     if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;

     if(command_context.view){
          ce_app_input(app, "Run Command", command_input_complete_func);
          ce_app_init_command_completion(app, &app->input_complete);
          build_complete_list(app->complete_list_buffer, &app->input_complete);
     }

     return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
cmpq $0x0, 0x208(%rdi)
je 0x1709b
pushq $0x2
jmp 0x170f8
movq %rsi, %r14
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %r14, %rdi
callq 0x15be9
testb %al, %al
je 0x170f6
xorl %ebx, %ebx
cmpq $0x0, 0x8(%rsp)
je 0x170f9
leaq 0x15319(%rip), %rsi     # 0x2c3dd
leaq -0x3c1f(%rip), %rdx     # 0x134ac
movq %r14, %rdi
callq 0x11d3f
leaq 0x28a0(%r14), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x11ab9
movq 0x2860(%r14), %rdi
movq %r15, %rsi
callq 0x11518
jmp 0x170f9
pushq $0x3
popq %rbx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_switch_buffer
CeCommandStatus_t command_switch_buffer(CeCommand_t* command, void* user_data){
     if(command->arg_count != 0) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     CommandContext_t command_context = {};

     if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;

     ce_app_input(app, "Switch Buffer", switch_buffer_input_complete_func);

     int64_t buffer_count = 0;
     CeBufferNode_t* itr = app->buffer_node_head;
     while(itr){
          buffer_count++;
          itr = itr->next;
     }

     char** filenames = malloc(buffer_count * sizeof(*filenames));

     int64_t index = 0;
     itr = app->buffer_node_head;
     while(itr){
          filenames[index] = strdup(itr->buffer->name);
          index++;
          itr = itr->next;
     }

     ce_complete_init(&app->input_complete, (const char**)filenames, NULL, buffer_count);
     build_complete_list(app->complete_list_buffer, &app->input_complete);

     for(int64_t i = 0; i < buffer_count; i++){
          free(filenames[i]);
     }
     free(filenames);

     return CE_COMMAND_SUCCESS;
}

// Assembly:
cmpq $0x0, 0x208(%rdi)
je 0x17113
pushq $0x2
popq %rax
retq
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x15be9
testb %al, %al
je 0x1716c
leaq 0x152b0(%rip), %rsi     # 0x2c3e9
leaq -0x379c(%rip), %rdx     # 0x139a4
movq %rbx, %rdi
callq 0x11d3f
leaq 0x2828(%rbx), %r12
xorl %edi, %edi
xorl %r14d, %r14d
movq %r12, %rax
movq (%rax), %rax
testq %rax, %rax
je 0x17171
incq %r14
addq $0x8, %rax
addq $0x8, %rdi
jmp 0x17157
pushq $0x3
popq %rax
jmp 0x171e6
callq 0xd4c0
movq %rax, %r15
movq %rax, %r13
movq (%r12), %r12
testq %r12, %r12
je 0x171a0
movq (%r12), %rax
movq 0x10(%rax), %rdi
callq 0xd640
movq %rax, (%r13)
addq $0x8, %r12
addq $0x8, %r13
jmp 0x1717c
leaq 0x28a0(%rbx), %r12
xorl %r13d, %r13d
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r14, %rcx
callq 0x18d58
movq 0x2860(%rbx), %rdi
movq %r12, %rsi
callq 0x11518
cmpq %r13, %r14
je 0x171dc
movq (%r15,%r13,8), %rdi
callq 0xd090
incq %r13
jmp 0x171c9
movq %r15, %rdi
callq 0xd090
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_goto_destination_in_line
CeCommandStatus_t command_goto_destination_in_line(CeCommand_t* command, void* user_data){
     if(command->arg_count != 0) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     CommandContext_t command_context = {};

     if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;

     if(command_context.view->buffer->line_count == 0) return CE_COMMAND_NO_ACTION;

     CeDestination_t destination = scan_line_for_destination(command_context.view->buffer->lines[command_context.view->cursor.y]);
     if(destination.point.x < 0 || destination.point.y < 0){
          ce_app_message(app, "failed to determine file destination at %s:%d", command_context.view->buffer->name, command_context.view->cursor.y);
          return CE_COMMAND_NO_ACTION;
     }

     CeAppBufferData_t* buffer_data = command_context.view->buffer->app_data;
     buffer_data->last_goto_destination = command_context.view->cursor.y;

     char* base_directory = buffer_base_directory(command_context.view->buffer);
     CeBuffer_t* buffer = load_destination_into_view(&app->buffer_node_head, command_context.view, &app->config_options, &app->vim,
                                                     true, base_directory, &destination);
     free(base_directory);
     if(!buffer) return CE_COMMAND_NO_ACTION;
     ce_clangd_file_open(&app->clangd, app->buffer_node_head->buffer);

     return CE_COMMAND_SUCCESS;
}

// Assembly:
cmpq $0x0, 0x208(%rdi)
je 0x17216
pushq $0x2
popq %rax
retq
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x438, %rsp            # imm = 0x438
movq %rsi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x15be9
movl %eax, %ecx
pushq $0x3
popq %rax
testb %cl, %cl
je 0x17306
movq 0x18(%rsp), %r14
movq 0x40(%r14), %rcx
cmpq $0x0, 0x8(%rcx)
je 0x17306
movq (%rcx), %rax
movq 0x38(%r14), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x116bb
cmpq $0x0, (%r15)
movq 0x38(%r14), %rcx
movq 0x40(%r14), %rdi
js 0x172ee
cmpq $0x0, 0x30(%rsp)
js 0x172ee
movq 0x58(%rdi), %rax
movq %rcx, 0x5f8(%rax)
callq 0x1132c
movq %rax, %r12
leaq 0x2828(%rbx), %rdi
leaq 0x1a50(%rbx), %rdx
leaq 0x20(%rbx), %rcx
movq %r15, (%rsp)
pushq $0x1
popq %r8
movq %r14, %rsi
movq %rax, %r9
callq 0x1316f
movq %rax, %r14
movq %r12, %rdi
callq 0xd090
testq %r14, %r14
je 0x17303
movq 0x2828(%rbx), %rax
addq $0x2cd0, %rbx           # imm = 0x2CD0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x14cd5
xorl %eax, %eax
jmp 0x17306
movq 0x10(%rdi), %rdx
leaq 0x150fe(%rip), %rsi     # 0x2c3f7
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11b97
pushq $0x3
popq %rax
addq $0x438, %rsp            # imm = 0x438
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_goto_prev_buffer_in_view
CeCommandStatus_t command_goto_prev_buffer_in_view(CeCommand_t* command, void* user_data){
     if(command->arg_count != 0) return CE_COMMAND_PRINT_HELP;

     CeApp_t* app = user_data;
     CommandContext_t command_context = {};

     if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;

     if(!ce_app_switch_to_prev_buffer_in_view(app, command_context.view, false)){
          return CE_COMMAND_NO_ACTION;
     }

     return CE_COMMAND_SUCCESS;
}

// Assembly:
cmpq $0x0, 0x208(%rdi)
je 0x17718
pushq $0x2
popq %rax
retq
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x15be9
testb %al, %al
je 0x1774e
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x10e1c
xorb $0x1, %al
movzbl %al, %eax
leal (%rax,%rax,2), %eax
jmp 0x17751
pushq $0x3
popq %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_commands.c
// Function: command_replace_all
CeCommandStatus_t command_replace_all(CeCommand_t* command, void* user_data){
     CeApp_t* app = user_data;
     CommandContext_t command_context = {};

     if(!get_command_context(app, &command_context)) return CE_COMMAND_NO_ACTION;

     if(command->arg_count == 1 && command->args[0].type == CE_COMMAND_ARG_STRING){
          int64_t index = ce_vim_register_index(CE_PATH_SEPARATOR);
          CeVimYank_t* yank = app->vim.yanks + index;
          if(yank->text){
               replace_all(command_context.view, &app->vim_visual_save, yank->text, command->args[0].string);
          }else{
               ce_app_message(app, "only 1 argument used for replace_all, but search yank register is empty");
               return CE_COMMAND_NO_ACTION;
          }
     }else if(command->arg_count == 2 && command->args[0].type == CE_COMMAND_ARG_STRING && command->args[1].type == CE_COMMAND_ARG_STRING){
          replace_all(command_context.view, &app->vim_visual_save, command->args[0].string, command->args[1].string);
     }else{
          return CE_COMMAND_PRINT_HELP;
     }

     return CE_COMMAND_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x15be9
pushq $0x3
popq %rbp
testb %al, %al
je 0x1781c
movq 0x208(%r14), %rcx
pushq $0x2
popq %rax
cmpq $0x2, %rcx
je 0x177d9
cmpq $0x1, %rcx
jne 0x1781e
movq 0x200(%r14), %rcx
cmpl $0x2, (%rcx)
jne 0x1781e
pushq $0x2f
popq %rdi
callq 0x22581
imulq $0x18, %rax, %rax
movq 0x1078(%rbx,%rax), %rdx
testq %rdx, %rdx
je 0x1780b
movq 0x8(%rsp), %rdi
addq $0x1a08, %rbx           # imm = 0x1A08
movq 0x200(%r14), %rax
movq 0x8(%rax), %rcx
jmp 0x177ff
movq 0x200(%r14), %rcx
cmpl $0x2, (%rcx)
jne 0x1781e
cmpl $0x2, 0x10(%rcx)
jne 0x1781e
movq 0x8(%rsp), %rdi
addq $0x1a08, %rbx           # imm = 0x1A08
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rcx
movq %rbx, %rsi
callq 0x17827
xorl %eax, %eax
jmp 0x1781e
leaq 0x14c13(%rip), %rsi     # 0x2c425
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11b97
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq