// File: /workspace/github_c_makefile_star2_O0/justy989[P]ce/ce_vim.c
// Function: ce_vim_find_string_boundaries
CeRange_t ce_vim_find_string_boundaries(CeBuffer_t* buffer, CePoint_t start, char string_char){
     CeRange_t range = {(CePoint_t){-1, -1}, (CePoint_t){-1, -1}};
     char* line_start = buffer->lines[start.y];
     char* itr = ce_utf8_iterate_to(line_start, start.x);
     char* save_start = itr;
     int64_t rune_len = 0;

     CeRune_t previous_rune = CE_UTF8_INVALID;
     int64_t end_x = start.x;
     while(*itr){
          CeRune_t rune = ce_utf8_decode(itr, &rune_len);
          if(rune == string_char && previous_rune != '\\') break;
          previous_rune = rune;
          end_x++;
          itr += rune_len;
     }

     if(!(*itr)) end_x = -1;

     int64_t start_x = start.x + 1;
     itr = save_start;
     previous_rune = ce_utf8_decode_reverse(itr, line_start, &rune_len);
     while(itr > line_start){
          CeRune_t rune = previous_rune;
          previous_rune = ce_utf8_decode_reverse(itr, line_start, &rune_len);
          if(rune == string_char && previous_rune != '\\' && start_x < start.x) break;
          start_x--;
          itr -= rune_len;
     }

     if(itr == line_start) start_x = -1;

     if(start_x > end_x) return range;

     range.start.x = start_x;
     range.start.y = start.y;
     range.end.x = end_x;
     range.end.y = start.y;

     return range;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x78(%rbp)
movb %r8b, %al
movq %rdi, %r8
movq %r8, -0x70(%rbp)
movq %rdx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movq %rsi, -0x18(%rbp)
movb %al, -0x19(%rbp)
movq 0xec11(%rip), %rax      # 0x45710
movq %rax, (%rdi)
movq 0xec0f(%rip), %rax      # 0x45718
movq %rax, 0x8(%rdi)
movq 0xec0c(%rip), %rax      # 0x45720
movq %rax, 0x10(%rdi)
movq 0xec09(%rip), %rax      # 0x45728
movq %rax, 0x18(%rdi)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0xeca0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
movl $0xffffffff, -0x44(%rbp) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rax
cmpb $0x0, (%rax)
je 0x36bb2
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0xedc0
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movsbl -0x19(%rbp), %ecx
cmpl %ecx, %eax
jne 0x36b92
cmpl $0x5c, -0x44(%rbp)
je 0x36b92
jmp 0x36bb2
movl -0x54(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x40(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x36b66
movq -0x30(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x36bc3
movq $-0x1, -0x50(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x11c80
movl %eax, -0x44(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x28(%rbp), %rax
jbe 0x36c4e
movl -0x44(%rbp), %eax
movl %eax, -0x64(%rbp)
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x11c80
movl %eax, -0x44(%rbp)
movl -0x64(%rbp), %eax
movsbl -0x19(%rbp), %ecx
cmpl %ecx, %eax
jne 0x36c2c
cmpl $0x5c, -0x44(%rbp)
je 0x36c2c
movq -0x60(%rbp), %rax
cmpq -0x10(%rbp), %rax
jge 0x36c2c
jmp 0x36c4e
movq -0x60(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x40(%rbp), %rdx
movq -0x30(%rbp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
jmp 0x36beb
movq -0x30(%rbp), %rax
cmpq -0x28(%rbp), %rax
jne 0x36c60
movq $-0x1, -0x60(%rbp)
movq -0x60(%rbp), %rax
cmpq -0x50(%rbp), %rax
jle 0x36c6c
jmp 0x36c8f
movq -0x78(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, (%rax)
movq -0x8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x50(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq -0x70(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)