// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x1, 0x208(%rax)
je 0x2008a
movl $0x2, -0x4(%rbp)
jmp 0x202d8
movq -0x10(%rbp), %rax
movq 0x200(%rax), %rax
cmpl $0x2, (%rax)
je 0x200a6
movl $0x2, -0x4(%rbp)
jmp 0x202d8
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0xd290
movq -0x20(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1c5d0
testb $0x1, %al
jne 0x200db
movl $0x3, -0x4(%rbp)
jmp 0x202d8
movq -0x28(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x58(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x200(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x244c5(%rip), %rsi     # 0x445c6
callq 0xd370
cmpl $0x0, %eax
jne 0x20122
movq -0x38(%rbp), %rax
leaq 0xba1a(%rip), %rcx      # 0x2bb30
movq %rcx, 0x600(%rax)
jmp 0x202d1
movq -0x10(%rbp), %rax
movq 0x200(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x226e8(%rip), %rsi     # 0x42820
callq 0xd370
cmpl $0x0, %eax
je 0x20162
movq -0x10(%rbp), %rax
movq 0x200(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x24300(%rip), %rsi     # 0x44458
callq 0xd370
cmpl $0x0, %eax
jne 0x20179
movq -0x38(%rbp), %rax
leaq 0xcbd3(%rip), %rcx      # 0x2cd40
movq %rcx, 0x600(%rax)
jmp 0x202cf
movq -0x10(%rbp), %rax
movq 0x200(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x242cd(%rip), %rsi     # 0x4445c
callq 0xd370
cmpl $0x0, %eax
jne 0x201b0
movq -0x38(%rbp), %rax
leaq 0xdd0c(%rip), %rcx      # 0x2deb0
movq %rcx, 0x600(%rax)
jmp 0x202cd
movq -0x10(%rbp), %rax
movq 0x200(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x22670(%rip), %rsi     # 0x42836
callq 0xd370
cmpl $0x0, %eax
jne 0x201e7
movq -0x38(%rbp), %rax
leaq 0xd5d5(%rip), %rcx      # 0x2d7b0
movq %rcx, 0x600(%rax)
jmp 0x202cb
movq -0x10(%rbp), %rax
movq 0x200(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x24266(%rip), %rsi     # 0x44463
callq 0xd370
cmpl $0x0, %eax
jne 0x2021e
movq -0x38(%rbp), %rax
leaq 0xe73e(%rip), %rcx      # 0x2e950
movq %rcx, 0x600(%rax)
jmp 0x202c9
movq -0x10(%rbp), %rax
movq 0x200(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x255fb(%rip), %rsi     # 0x4582f
callq 0xd370
cmpl $0x0, %eax
jne 0x20252
movq -0x38(%rbp), %rax
leaq 0xec67(%rip), %rcx      # 0x2eeb0
movq %rcx, 0x600(%rax)
jmp 0x202c7
movq -0x10(%rbp), %rax
movq 0x200(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x225dd(%rip), %rsi     # 0x42845
callq 0xd370
cmpl $0x0, %eax
jne 0x20286
movq -0x38(%rbp), %rax
leaq 0xf193(%rip), %rcx      # 0x2f410
movq %rcx, 0x600(%rax)
jmp 0x202c5
movq -0x10(%rbp), %rax
movq 0x200(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x241cc(%rip), %rsi     # 0x44468
callq 0xd370
cmpl $0x0, %eax
jne 0x202ba
movq -0x38(%rbp), %rax
leaq 0xf55f(%rip), %rcx      # 0x2f810
movq %rcx, 0x600(%rax)
jmp 0x202c3
movl $0x2, -0x4(%rbp)
jmp 0x202d8
jmp 0x202c5
jmp 0x202c7
jmp 0x202c9
jmp 0x202cb
jmp 0x202cd
jmp 0x202cf
jmp 0x202d1
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)