// File: /workspace/github_c_makefile_star2_O0/justy989[P]ce/ce_app.c
// Function: determine_buffer_syntax
void determine_buffer_syntax(CeBuffer_t* buffer){
     CeAppBufferData_t* buffer_data = buffer->app_data;

     if(string_ends_with(buffer->name, ".c") ||
        string_ends_with(buffer->name, ".h") ||
        string_ends_with(buffer->name, ".js")){
          buffer_data->syntax_function = ce_syntax_highlight_c;
     }else if(string_ends_with(buffer->name, ".cpp") ||
              string_ends_with(buffer->name, ".hpp") ||
              string_ends_with(buffer->name, ".hh") ||
              string_ends_with(buffer->name, ".cc")){
          buffer_data->syntax_function = ce_syntax_highlight_cpp;
     }else if(string_ends_with(buffer->name, ".py")){
          buffer_data->syntax_function = ce_syntax_highlight_python;
     }else if(string_ends_with(buffer->name, ".java")){
          buffer_data->syntax_function = ce_syntax_highlight_java;
     }else if(string_ends_with(buffer->name, ".sh")){
          buffer_data->syntax_function = ce_syntax_highlight_bash;
     }else if(string_ends_with(buffer->name, ".cfg")){
          buffer_data->syntax_function = ce_syntax_highlight_config;
     }else if(string_ends_with(buffer->name, ".diff") ||
              string_ends_with(buffer->name, ".patch") ||
              string_ends_with(buffer->name, "COMMIT_EDITMSG")){
          buffer_data->syntax_function = ce_syntax_highlight_diff;
     }else{
          buffer_data->syntax_function = ce_syntax_highlight_plain;
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2df5f(%rip), %rsi     # 0x42616
callq 0x14930
testb $0x1, %al
jne 0x146f2
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2e149(%rip), %rsi     # 0x42818
callq 0x14930
testb $0x1, %al
jne 0x146f2
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2e134(%rip), %rsi     # 0x4281b
callq 0x14930
testb $0x1, %al
jne 0x146f2
jmp 0x14709
movq -0x10(%rbp), %rax
leaq 0x17433(%rip), %rcx     # 0x2bb30
movq %rcx, 0x600(%rax)
jmp 0x148bf
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2e107(%rip), %rsi     # 0x4281f
callq 0x14930
testb $0x1, %al
jne 0x1476b
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2e0f4(%rip), %rsi     # 0x42824
callq 0x14930
testb $0x1, %al
jne 0x1476b
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2e0e1(%rip), %rsi     # 0x42829
callq 0x14930
testb $0x1, %al
jne 0x1476b
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2e0cd(%rip), %rsi     # 0x4282d
callq 0x14930
testb $0x1, %al
jne 0x1476b
jmp 0x14782
movq -0x10(%rbp), %rax
leaq 0x185ca(%rip), %rcx     # 0x2cd40
movq %rcx, 0x600(%rax)
jmp 0x148bd
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2e0a0(%rip), %rsi     # 0x42831
callq 0x14930
testb $0x1, %al
jne 0x1479c
jmp 0x147b3
movq -0x10(%rbp), %rax
leaq 0x19709(%rip), %rcx     # 0x2deb0
movq %rcx, 0x600(%rax)
jmp 0x148bb
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2e073(%rip), %rsi     # 0x42835
callq 0x14930
testb $0x1, %al
jne 0x147cd
jmp 0x147e4
movq -0x10(%rbp), %rax
leaq 0x18fd8(%rip), %rcx     # 0x2d7b0
movq %rcx, 0x600(%rax)
jmp 0x148b9
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2e048(%rip), %rsi     # 0x4283b
callq 0x14930
testb $0x1, %al
jne 0x147fe
jmp 0x14815
movq -0x10(%rbp), %rax
leaq 0x1a147(%rip), %rcx     # 0x2e950
movq %rcx, 0x600(%rax)
jmp 0x148b7
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2e01b(%rip), %rsi     # 0x4283f
callq 0x14930
testb $0x1, %al
jne 0x1482f
jmp 0x14843
movq -0x10(%rbp), %rax
leaq 0x1a676(%rip), %rcx     # 0x2eeb0
movq %rcx, 0x600(%rax)
jmp 0x148b5
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2dff2(%rip), %rsi     # 0x42844
callq 0x14930
testb $0x1, %al
jne 0x1488d
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2dfe0(%rip), %rsi     # 0x4284a
callq 0x14930
testb $0x1, %al
jne 0x1488d
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2dfcf(%rip), %rsi     # 0x42851
callq 0x14930
testb $0x1, %al
jne 0x1488d
jmp 0x148a1
movq -0x10(%rbp), %rax
leaq 0x1ab78(%rip), %rcx     # 0x2f410
movq %rcx, 0x600(%rax)
jmp 0x148b3
movq -0x10(%rbp), %rax
leaq 0x1af64(%rip), %rcx     # 0x2f810
movq %rcx, 0x600(%rax)
jmp 0x148b5
jmp 0x148b7
jmp 0x148b9
jmp 0x148bb
jmp 0x148bd
jmp 0x148bf
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)