// File: /workspace/github_c_makefile_star2_O3/justy989[P]ce/ce_commands.c
// Function: command_syntax
CeCommandStatus_t command_syntax(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;

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

     if(strcmp(command->args[0].string, "c") == 0){
          buffer_data->syntax_function = ce_syntax_highlight_c;
     }else if(strcmp(command->args[0].string, "cpp") == 0 ||
              strcmp(command->args[0].string, "c++") == 0){
          buffer_data->syntax_function = ce_syntax_highlight_cpp;
     }else if(strcmp(command->args[0].string, "python") == 0){
          buffer_data->syntax_function = ce_syntax_highlight_python;
     }else if(strcmp(command->args[0].string, "java") == 0){
          buffer_data->syntax_function = ce_syntax_highlight_java;
     }else if(strcmp(command->args[0].string, "bash") == 0){
          buffer_data->syntax_function = ce_syntax_highlight_bash;
     }else if(strcmp(command->args[0].string, "config") == 0){
          buffer_data->syntax_function = ce_syntax_highlight_config;
     }else if(strcmp(command->args[0].string, "diff") == 0){
          buffer_data->syntax_function = ce_syntax_highlight_diff;
     }else if(strcmp(command->args[0].string, "plain") == 0){
          buffer_data->syntax_function = ce_syntax_highlight_plain;
     }else{
          return CE_COMMAND_PRINT_HELP;
     }

     return CE_COMMAND_SUCCESS;
}

// Assembly:
movl $0x2, %eax
cmpq $0x1, 0x208(%rdi)
jne 0x1871f
pushq %r15
pushq %r14
pushq %rbx
movq 0x200(%rdi), %rcx
cmpl $0x2, (%rcx)
jne 0x1871a
movl $0x3, %eax
cmpq $0x0, 0x27f8(%rsi)
jne 0x1871a
movq 0x2818(%rsi), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x48(%rax), %rax
movq 0x58(%rax), %r14
movq 0x8(%rcx), %rbx
cmpb $0x63, (%rbx)
jne 0x18626
cmpb $0x0, 0x1(%rbx)
je 0x186dd
leaq 0x15242(%rip), %rsi     # 0x2d86f
movq %rbx, %rdi
callq 0xd390
leaq 0x820e(%rip), %r15      # 0x2084a
testl %eax, %eax
je 0x18711
leaq 0x16e87(%rip), %rsi     # 0x2f4d2
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x18711
leaq 0x16e74(%rip), %rsi     # 0x2f4d6
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x186e6
leaq 0x15210(%rip), %rsi     # 0x2d885
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x186ef
leaq 0x16e55(%rip), %rsi     # 0x2f4dd
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x186f8
leaq 0x17ff2(%rip), %rsi     # 0x3068d
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x18701
leaq 0x151e6(%rip), %rsi     # 0x2d894
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x1870a
leaq 0x16e21(%rip), %rsi     # 0x2f4e2
movq %rbx, %rdi
callq 0xd390
movl %eax, %ecx
movl $0x2, %eax
testl %ecx, %ecx
jne 0x1871a
leaq 0x9c19(%rip), %r15      # 0x222f4
jmp 0x18711
leaq 0x7739(%rip), %r15      # 0x1fe1d
jmp 0x18711
leaq 0x8c25(%rip), %r15      # 0x21312
jmp 0x18711
leaq 0x8782(%rip), %r15      # 0x20e78
jmp 0x18711
leaq 0x920c(%rip), %r15      # 0x2190b
jmp 0x18711
leaq 0x95d0(%rip), %r15      # 0x21cd8
jmp 0x18711
leaq 0x9994(%rip), %r15      # 0x220a5
movq %r15, 0x600(%r14)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq