// File: /workspace/github_c_makefile_star2_O1/justy989[P]ce/ce_vim.c
// Function: ce_vim_verb_indent
bool ce_vim_verb_indent(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){
     bool chain = false;
     ce_range_sort(&motion_range);

     CePoint_t end_cursor = *cursor;

     for(int64_t i = motion_range.start.y; i <= motion_range.end.y; i++){
          if(view->buffer->lines[i][0] == 0) continue;

          // calc indentation
          CePoint_t indentation_point = {0, i};

          // build indentation string
          char* insert_string = malloc(config_options->tab_width + 1);
          memset(insert_string, ' ', config_options->tab_width);
          insert_string[config_options->tab_width] = 0;

          // insert indentation
          if(!ce_buffer_insert_string(view->buffer, insert_string, indentation_point)) return false;

          if(cursor->y == i){
               end_cursor = ce_buffer_advance_point(view->buffer, *cursor, config_options->tab_width);
          }

          // commit the change
          CeBufferChange_t change = {};
          change.chain = chain;
          change.insertion = true;
          change.string = insert_string;
          change.location = indentation_point;
          change.cursor_before = *cursor;
          change.cursor_after = end_cursor;
          ce_buffer_change(view->buffer, &change);
          chain = true;
     }

     if(vim->mode == CE_VIM_MODE_VISUAL_LINE) end_cursor.y = motion_range.start.y;
     if(chain) *cursor = end_cursor; // if we did any indentation at all, update the cursor
     vim->mode = CE_VIM_MODE_NORMAL;
     return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, %r15
movq %rdx, %rbx
movq %rdi, %r14
leaq 0xb0(%rsp), %r13
movq %r13, %rdi
callq 0x1079c
movq (%r15), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%r13), %r12
cmpq 0x18(%r13), %r12
setg %bpl
jle 0x290e1
xorl %eax, %eax
jmp 0x29227
movq %r15, 0x10(%rsp)
movq %r14, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x40(%rbx), %r13
movq (%r13), %rax
movq (%rax,%r12,8), %rax
cmpb $0x0, (%rax)
je 0x291fa
movq 0xd0(%rsp), %rax
movq 0x8(%rax), %r14
leaq 0x1(%r14), %rdi
callq 0xd4c0
movq %rax, %r15
movq %rax, %rdi
movl $0x20, %esi
movq %r14, %rdx
callq 0xd2a0
movb $0x0, (%r15,%r14)
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0xda6e
movl %eax, %r13d
testb %al, %al
je 0x291f5
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdx
cmpq %rdx, %r12
jne 0x29186
movq 0x40(%rbx), %rdi
movq 0xd0(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax), %rsi
callq 0xeffa
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rdx, 0x8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movq 0x20(%rsp), %rcx
andb $0x1, %cl
movb %cl, 0x30(%rsp)
movb $0x1, 0x31(%rsp)
movq %r15, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
movq %r12, 0x48(%rsp)
movups (%rax), %xmm0
leaq 0x50(%rsp), %rax
movups %xmm0, (%rax)
movq 0x18(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x40(%rbx), %rdi
leaq 0x30(%rsp), %rsi
callq 0xfad6
movb $0x1, %al
movq %rax, 0x20(%rsp)
testb %r13b, %r13b
je 0x29218
leaq 0x1(%r12), %rax
leaq 0xb0(%rsp), %rcx
cmpq 0x18(%rcx), %r12
setge %bpl
movq %rax, %r12
jl 0x290f4
movq 0x28(%rsp), %r14
movq 0x10(%rsp), %r15
movq 0x20(%rsp), %rax
testb $0x1, %bpl
je 0x29260
testb $0x1, %al
je 0x29259
cmpl $0x3, (%r14)
jne 0x29248
leaq 0xb0(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%r15)
movq 0x8(%rsp), %rax
movq %rax, 0x8(%r15)
movl $0x0, (%r14)
andb $0x1, %bpl
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq