// File: /workspace/github_c_makefile_star2_O0/justy989[P]ce/ce_vim.c
// Function: ce_vim_verb_open_below
bool ce_vim_verb_open_below(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 at the end of the current line
     char* insert_string = strdup("\n");
     motion_range.start.x = ce_utf8_strlen(view->buffer->lines[motion_range.start.y]);
     if(!ce_buffer_insert_string_change(view->buffer, insert_string, motion_range.start, cursor, *cursor, false)){
          return false;
     }

     // calc indentation
     CePoint_t indentation_point = {0, motion_range.start.y + 1};
     int64_t indentation = ce_vim_get_indentation(view->buffer, indentation_point, config_options->tab_width);
     CePoint_t cursor_end = {0, indentation_point.y};
     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 0x9b02(%rip), %rdi      # 0x43ea8
callq 0xd620
movq -0x70(%rbp), %rcx
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rax
movq (%rax), %rax
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rdi
callq 0xea70
movq -0x70(%rbp), %rcx
movq %rax, (%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 0x3a412
movb $0x0, -0x1(%rbp)
jmp 0x3a507
movq -0x70(%rbp), %rax
movq $0x0, -0x50(%rbp)
movq 0x8(%rax), %rax
addq $0x1, %rax
movq %rax, -0x48(%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, -0x58(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x58(%rbp)
jle 0x3a4dc
movq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x58(%rbp), %rdi
addq $0x1, %rdi
callq 0xd4a0
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movq -0x58(%rbp), %rdx
movl $0x20, %esi
callq 0xd290
movq -0x40(%rbp), %rax
movq -0x58(%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 -0x68(%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 0x3a4da
movb $0x0, -0x1(%rbp)
jmp 0x3a507
jmp 0x3a4ef
movq -0x28(%rbp), %rax
movq -0x68(%rbp), %rcx
movq %rcx, (%rax)
movq -0x60(%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
nopw %cs:(%rax,%rax)