// File: /workspace/github_c_makefile_star2_O2/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:
pushq $0x2
popq %rax
cmpq $0x1, 0x208(%rdi)
jne 0x17c2f
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq 0x200(%rdi), %rbx
cmpl $0x2, (%rbx)
jne 0x17c26
xorps %xmm0, %xmm0
movq %rsp, %rax
movaps %xmm0, (%rax)
movq %rsi, %rdi
movq %rax, %rsi
callq 0x15be9
testb %al, %al
je 0x17bdb
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x58(%rax), %r14
movq 0x8(%rbx), %rbx
cmpb $0x63, (%rbx)
jne 0x17b30
cmpb $0x0, 0x1(%rbx)
je 0x17be0
leaq 0x12d38(%rip), %rsi     # 0x2a86f
movq %rbx, %rdi
callq 0xd390
leaq 0x6e2f(%rip), %r15      # 0x1e975
testl %eax, %eax
je 0x17c1d
leaq 0x1497d(%rip), %rsi     # 0x2c4d2
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x17c1d
leaq 0x1496a(%rip), %rsi     # 0x2c4d6
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x17be9
leaq 0x12d06(%rip), %rsi     # 0x2a885
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x17bf2
leaq 0x1494b(%rip), %rsi     # 0x2c4dd
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x17bfb
leaq 0x15a88(%rip), %rsi     # 0x2d62d
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x17c04
leaq 0x12cdc(%rip), %rsi     # 0x2a894
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x17c0d
leaq 0x14917(%rip), %rsi     # 0x2c4e2
movq %rbx, %rdi
callq 0xd390
testl %eax, %eax
je 0x17c16
pushq $0x2
jmp 0x17bdd
pushq $0x3
popq %rax
jmp 0x17c26
leaq 0x63d5(%rip), %r15      # 0x1dfbc
jmp 0x17c1d
leaq 0x782f(%rip), %r15      # 0x1f41f
jmp 0x17c1d
leaq 0x7386(%rip), %r15      # 0x1ef7f
jmp 0x17c1d
leaq 0x7dcb(%rip), %r15      # 0x1f9cd
jmp 0x17c1d
leaq 0x812f(%rip), %r15      # 0x1fd3a
jmp 0x17c1d
leaq 0x8493(%rip), %r15      # 0x200a7
jmp 0x17c1d
leaq 0x86c8(%rip), %r15      # 0x202e5
movq %r15, 0x600(%r14)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq