// File: /workspace/github_c_makefile_star2_O0/justy989[P]ce/ce_vim.c
// Function: ce_vim_verb_open_above
bool ce_vim_verb_open_above(CeVim_t* vim, const CeVimAction_t* action, CeRange_t motion_range, CeView_t* view,
                            CePoint_t* cursor, CeVimVisualData_t* visual, CeVimBufferData_t* buffer_data,
                            const CeConfigOptions_t* config_options){
     // insert newline on next line
     char* insert_string = strdup("\n");
     motion_range.start.x = 0;

     if(!ce_buffer_insert_string_change(view->buffer, insert_string, motion_range.start, cursor, *cursor,
                                        false)){
          return false;
     }

     // TODO: compress what we can with open_below
     // calc indentation
     CePoint_t indentation_point = {0, motion_range.start.y};
     CePoint_t cursor_end = {0, indentation_point.y};
     int64_t indentation = ce_vim_get_indentation(view->buffer, indentation_point, config_options->tab_width);
     if(indentation > 0){
          cursor_end.x = indentation;

          // build indentation string
          insert_string = malloc(indentation + 1);
          memset(insert_string, ' ', indentation);
          insert_string[indentation] = 0;

          if(!ce_buffer_insert_string_change(view->buffer, insert_string, indentation_point, cursor, cursor_end, true)){
               return false;
          }
     }else{
          *cursor = cursor_end;
     }

     vim->chain_undo = true;
     ce_vim_insert_mode(vim);
     return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq 0x30(%rbp), %rax
leaq 0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
leaq 0x9c92(%rip), %rdi      # 0x43ea8
callq 0xd620
movq -0x70(%rbp), %rcx
movq %rax, -0x40(%rbp)
movq $0x0, (%rcx)
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdi
movq -0x40(%rbp), %rsi
movq -0x28(%rbp), %r8
movq -0x28(%rbp), %rax
movq (%rcx), %rdx
movq 0x8(%rcx), %rcx
xorl %r9d, %r9d
movq (%rax), %r10
movq %r10, (%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
callq 0x10da0
testb $0x1, %al
jne 0x3a26a
movb $0x0, -0x1(%rbp)
jmp 0x3a35b
movq -0x70(%rbp), %rax
movq $0x0, -0x50(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
movq $0x0, -0x60(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdi
movq 0x30(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x33520
movq %rax, -0x68(%rbp)
cmpq $0x0, -0x68(%rbp)
jle 0x3a330
movq -0x68(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rdi
addq $0x1, %rdi
callq 0xd4a0
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movq -0x68(%rbp), %rdx
movl $0x20, %esi
callq 0xd290
movq -0x40(%rbp), %rax
movq -0x68(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdi
movq -0x40(%rbp), %rsi
movq -0x28(%rbp), %r8
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %rcx
leaq -0x60(%rbp), %rax
movl $0x1, %r9d
movq (%rax), %r10
movq %r10, (%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
callq 0x10da0
testb $0x1, %al
jne 0x3a32e
movb $0x0, -0x1(%rbp)
jmp 0x3a35b
jmp 0x3a343
movq -0x28(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, (%rax)
movq -0x58(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movb $0x1, 0x19d8(%rax)
movq -0x10(%rbp), %rdi
callq 0x2fdd0
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)