// File: /workspace/github_c_makefile_star2_O0/justy989[P]ce/ce_vim.c
// Function: ce_vim_motion_next_find_char
CeVimMotionResult_t ce_vim_motion_next_find_char(CeVim_t* vim, CeVimAction_t* action, const CeView_t* view, const CePoint_t* cursor,
                                                 CeVimVisualData_t* visual, const CeConfigOptions_t* config_options,
                                                 CeVimBufferData_t* buffer_data, CeRange_t* motion_range){
     CePoint_t new_position = motion_range->end;

     switch(vim->find_char.state){
     default:
          break;
     case CE_VIM_FIND_CHAR_STATE_FIND_FORWARD:
          new_position = ce_vim_move_find_rune_forward(view->buffer, motion_range->end, vim->find_char.rune, false);
          break;
     case CE_VIM_FIND_CHAR_STATE_FIND_BACKWARD:
          new_position = ce_vim_move_find_rune_backward(view->buffer, motion_range->end, vim->find_char.rune, false);
          break;
     case CE_VIM_FIND_CHAR_STATE_UNTIL_FORWARD:
          new_position = ce_vim_move_find_rune_forward(view->buffer, motion_range->end, vim->find_char.rune, true);
          break;
     case CE_VIM_FIND_CHAR_STATE_UNTIL_BACKWARD:
          new_position = ce_vim_move_find_rune_backward(view->buffer, motion_range->end, vim->find_char.rune, true);
          break;
     }

     if(new_position.x < 0) return CE_VIM_MOTION_RESULT_FAIL;
     motion_range->end = new_position;
     return CE_VIM_MOTION_RESULT_SUCCESS;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq 0x18(%rbp), %rax
movups 0x10(%rax), %xmm0
movaps %xmm0, -0x50(%rbp)
movq -0x10(%rbp), %rax
movl 0x19e4(%rax), %eax
movq %rax, -0x98(%rbp)
subq $0x3, %rax
ja 0x384d5
movq -0x98(%rbp), %rax
leaq 0xcecc(%rip), %rcx      # 0x45398
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x385f0
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdi
movq 0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x19e0(%rcx), %ecx
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
xorl %r8d, %r8d
callq 0x364a0
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x385f0
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdi
movq 0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x19e0(%rcx), %ecx
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
xorl %r8d, %r8d
callq 0x365f0
movq %rax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x385f0
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdi
movq 0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x19e0(%rcx), %ecx
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
movl $0x1, %r8d
callq 0x364a0
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x385f0
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdi
movq 0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x19e0(%rcx), %ecx
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
movl $0x1, %r8d
callq 0x365f0
movq %rax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x50(%rbp)
jge 0x38600
movl $0x0, -0x4(%rbp)
jmp 0x3861b
movq 0x18(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x48(%rbp), %rcx
movq %rcx, 0x18(%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xa0, %rsp
popq %rbp
retq
nopw (%rax,%rax)