// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_vim.c
// Function: ce_vim_move_begin_big_word
CePoint_t ce_vim_move_begin_big_word(CeBuffer_t* buffer, CePoint_t start){
     start.x--;
     if(!ce_buffer_point_is_valid(buffer, start)){
          if(start.x == -1){
               start.y--;
               if(start.y < 0) return (CePoint_t){0, 0};
               start.x = ce_utf8_strlen(buffer->lines[start.y]);
               if(start.x > 0) start.x--;
               else return start;
          }else{
               return (CePoint_t){-1, -1};
          }
     }

     char* line_start = buffer->lines[start.y];
     char* itr = ce_utf8_iterate_to(line_start, start.x); // start one character back

     int64_t rune_len = 0;
     CeRune_t rune = ce_utf8_decode_reverse(itr, line_start, &rune_len);
     WordState_t state = WORD_INSIDE_OTHER;

     if(isspace(rune)){
          state = WORD_INSIDE_SPACE;
     }else{
          if(start.x == 0) return start;
          state = WORD_INSIDE_WORD;
     }

     itr -= rune_len;

     while(true){
          rune = ce_utf8_decode_reverse(itr, line_start, &rune_len);

          switch(state){
          default:
               assert(0);
               break;
          case WORD_INSIDE_WORD:
               if(isspace(rune)) goto END_LOOP;
               break;
          case WORD_INSIDE_SPACE:
               if(!isspace(rune)) state = WORD_INSIDE_WORD;
               break;
          case WORD_NEW_LINE:
               if(isspace(rune)) state = WORD_INSIDE_SPACE;
               else state = WORD_INSIDE_WORD;
               break;
          }

          itr -= rune_len;
          start.x--;

          if(itr < line_start){
               if(state == WORD_INSIDE_WORD) break;

               start.y--;
               if(start.y < 0) return (CePoint_t){0, 0};
               start.x = ce_utf8_strlen(buffer->lines[start.y]);
               if(start.x == 0) break;
               line_start = buffer->lines[start.y];
               itr = ce_utf8_iterate_to(line_start, start.x);
               state = WORD_NEW_LINE;
               start.x++;
          }
     }

END_LOOP:

     return start;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
leaq -0x1(%rsi), %r14
movq %r14, %rsi
callq 0xe425
testq %rax, %rax
je 0x23cb3
movq %r12, 0x10(%rsp)
movq (%r12), %rax
movq %rbx, (%rsp)
movq (%rax,%rbx,8), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0xe4a6
movq %rax, %rbp
leaq 0x8(%rsp), %rdx
andq $0x0, (%rdx)
movq %rax, %rdi
movq %r13, %rsi
callq 0xfd39
movl %eax, %r15d
callq 0xd720
movq %rax, %r12
movq (%rax), %rax
movslq %r15d, %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x23cc8
xorl %ebx, %ebx
testq %r14, %r14
jne 0x23ccb
xorl %r14d, %r14d
movq (%rsp), %rbx
jmp 0x23dac
testq %r15, %r15
je 0x23d7c
pushq $-0x1
popq %r14
movq %r14, %rbx
jmp 0x23dac
pushq $0x1
popq %rbx
leaq 0x8(%rsp), %r15
subq (%r15), %rbp
movq %rbp, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0xfd39
cltq
testl %ebx, %ebx
je 0x23d0b
cmpl $0x1, %ebx
je 0x23cf5
cmpl $0x3, %ebx
jne 0x23dc1
movq (%r12), %rcx
movzwl (%rcx,%rax,2), %ebx
andl $0x2000, %ebx           # imm = 0x2000
sete %al
shrl $0xd, %ebx
jmp 0x23d1a
movq (%r12), %rcx
testb $0x20, 0x1(%rcx,%rax,2)
jne 0x23caa
xorl %ebx, %ebx
movb $0x1, %al
subq 0x8(%rsp), %rbp
decq %r14
cmpq %r13, %rbp
jae 0x23cd3
testb %al, %al
jne 0x23caa
movq (%rsp), %rbx
testq %rbx, %rbx
jle 0x23da2
decq %rbx
movq 0x10(%rsp), %r13
movq (%r13), %rax
movq (%rax,%rbx,8), %rdi
callq 0xe38c
testq %rax, %rax
je 0x23da9
movq %rax, %r14
movq (%r13), %rax
movq %rbx, (%rsp)
movq (%rax,%rbx,8), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0xe4a6
movq %rax, %rbp
incq %r14
pushq $0x3
popq %rax
movl %eax, %ebx
jmp 0x23cd3
testq %rbx, %rbx
jle 0x23da2
movq (%r12), %rax
movq -0x8(%rax,%rbx,8), %rdi
decq %rbx
callq 0xe38c
movq %rax, %r14
testq %rax, %rax
jle 0x23dac
decq %r14
jmp 0x23c55
xorl %r14d, %r14d
xorl %ebx, %ebx
jmp 0x23dac
xorl %r14d, %r14d
movq %r14, %rax
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8f4e(%rip), %rdi      # 0x2cd16
leaq 0x9490(%rip), %rsi      # 0x2d25f
leaq 0x951e(%rip), %rcx      # 0x2d2f4
movl $0x44a, %edx            # imm = 0x44A
callq 0xd280