// File: /workspace/github_c_makefile_star2_O0/justy989[P]ce/ce_app.c
// Function: load_file_into_view
CeBuffer_t* load_file_into_view(CeBufferNode_t** buffer_node_head, CeView_t* view,
                                CeConfigOptions_t* config_options, CeVim_t* vim,
                                bool insert_into_jump_list, const char* filepath){
    char load_path[MAX_PATH_LEN + 1];
#if defined(PLATFORM_WINDOWS)
     char* res = NULL;
     if(filepath[0] != 0 &&
        filepath[1] == ':'){
          res = strdup(filepath);
     }else{
          res = _fullpath(NULL, filepath, MAX_PATH_LEN);
     }
#else
     char* res = realpath(filepath, NULL);
#endif
     if(!res) return NULL;

     char cwd[MAX_PATH_LEN + 1];
     if(ce_get_cwd(cwd, MAX_PATH_LEN)){
          size_t cwd_len = strlen(cwd);
          // append a path separator so it looks like a path
          if(cwd_len < MAX_PATH_LEN){
               cwd[cwd_len] = CE_PATH_SEPARATOR;
               cwd_len++;
               cwd[cwd_len] = 0;
          }
          // if the file is in our current directory, only show part of the path
          if(strncmp(cwd, res, cwd_len) == 0){
               strncpy(load_path, res + cwd_len, MAX_PATH_LEN);
          }else{
               strncpy(load_path, res, MAX_PATH_LEN);
          }
     }else{
          strncpy(load_path, res, MAX_PATH_LEN);
     }

     free(res);

     CeBuffer_t* already_loaded_buffer = find_already_loaded_file(*buffer_node_head, load_path);
     if(already_loaded_buffer){
         ce_view_switch_buffer(view, already_loaded_buffer, vim, config_options, insert_into_jump_list);
         return already_loaded_buffer;
     }

     // load file
     CeBuffer_t* buffer = new_buffer();
     if(ce_buffer_load_file(buffer, load_path)){
          ce_buffer_node_insert(buffer_node_head, buffer);
          ce_view_switch_buffer(view, buffer, vim, config_options, insert_into_jump_list);
          determine_buffer_syntax(buffer);
     }else{
          free(buffer);
          return NULL;
     }

     return buffer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x870, %rsp            # imm = 0x870
movb %r8b, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
andb $0x1, %al
movb %al, -0x29(%rbp)
movq %r9, -0x38(%rbp)
movq -0x38(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xd3f0
movq %rax, -0x448(%rbp)
cmpq $0x0, -0x448(%rbp)
jne 0x14472
movq $0x0, -0x8(%rbp)
jmp 0x14634
leaq -0x850(%rbp), %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x14650
testb $0x1, %al
jne 0x1448c
jmp 0x14536
leaq -0x850(%rbp), %rdi
callq 0xd200
movq %rax, -0x858(%rbp)
cmpq $0x400, -0x858(%rbp) # imm = 0x400
jae 0x144dc
movq -0x858(%rbp), %rax
movb $0x2f, -0x850(%rbp,%rax)
movq -0x858(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x858(%rbp)
movq -0x858(%rbp), %rax
movb $0x0, -0x850(%rbp,%rax)
leaq -0x850(%rbp), %rdi
movq -0x448(%rbp), %rsi
movq -0x858(%rbp), %rdx
callq 0xd0d0
cmpl $0x0, %eax
jne 0x1451c
leaq -0x440(%rbp), %rdi
movq -0x448(%rbp), %rsi
addq -0x858(%rbp), %rsi
movl $0x400, %edx            # imm = 0x400
callq 0xd0b0
jmp 0x14534
leaq -0x440(%rbp), %rdi
movq -0x448(%rbp), %rsi
movl $0x400, %edx            # imm = 0x400
callq 0xd0b0
jmp 0x1454e
leaq -0x440(%rbp), %rdi
movq -0x448(%rbp), %rsi
movl $0x400, %edx            # imm = 0x400
callq 0xd0b0
movq -0x448(%rbp), %rdi
callq 0xd090
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq -0x440(%rbp), %rsi
callq 0x14350
movq %rax, -0x860(%rbp)
cmpq $0x0, -0x860(%rbp)
je 0x145af
movq -0x18(%rbp), %rdi
movq -0x860(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x20(%rbp), %rcx
movb -0x29(%rbp), %al
andb $0x1, %al
movzbl %al, %r8d
callq 0x13c50
movq -0x860(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x14634
callq 0x148d0
movq %rax, -0x868(%rbp)
movq -0x868(%rbp), %rdi
leaq -0x440(%rbp), %rsi
callq 0xe270
testb $0x1, %al
jne 0x145d4
jmp 0x14613
movq -0x10(%rbp), %rdi
movq -0x868(%rbp), %rsi
callq 0x12c10
movq -0x18(%rbp), %rdi
movq -0x868(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x20(%rbp), %rcx
movb -0x29(%rbp), %al
andb $0x1, %al
movzbl %al, %r8d
callq 0x13c50
movq -0x868(%rbp), %rdi
callq 0x14690
jmp 0x14629
movq -0x868(%rbp), %rdi
callq 0xd090
movq $0x0, -0x8(%rbp)
jmp 0x14634
movq -0x868(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x870, %rsp            # imm = 0x870
popq %rbp
retq
nopw %cs:(%rax,%rax)