// File: /workspace/github_c_makefile_star2_O0/justy989[P]ce/ce_vim.c
// Function: ce_vim_verb_join
bool ce_vim_verb_join(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){
     if(cursor->y < 0) return false;
     if(cursor->y >= (view->buffer->line_count - 1)) return false;

     // delete up to the soft beginning of the line
     CePoint_t beginning_of_next_line = {0, cursor->y + 1};
     int64_t whitespace_len = ce_vim_soft_begin_line(view->buffer, beginning_of_next_line.y);
     if(whitespace_len > 0){
          ce_buffer_remove_string_change(view->buffer, beginning_of_next_line, whitespace_len, cursor, *cursor, false);
     }

     bool insert_space = (strlen(view->buffer->lines[cursor->y + 1]) > 0);
     CePoint_t point = {ce_utf8_strlen(view->buffer->lines[cursor->y]), cursor->y};
     ce_vim_join_next_line(view->buffer, cursor->y, *cursor, true);

     if(insert_space){
          char* space_str = strdup(" ");
          CePoint_t end_cursor = (CePoint_t){point.x + 1, point.y};
          ce_buffer_insert_string_change(view->buffer, space_str, point, cursor, end_cursor, true);
     }

     return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq 0x30(%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 -0x28(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jge 0x3a5db
movb $0x0, -0x1(%rbp)
jmp 0x3a749
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0x40(%rcx), %rcx
movq 0x8(%rcx), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jl 0x3a601
movb $0x0, -0x1(%rbp)
jmp 0x3a749
movq $0x0, -0x48(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdi
movq -0x40(%rbp), %rsi
callq 0x35210
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
jle 0x3a669
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdi
movq -0x50(%rbp), %rcx
movq -0x28(%rbp), %r8
movq -0x28(%rbp), %rax
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
xorl %r9d, %r9d
movq (%rax), %r10
movq %r10, (%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
callq 0x110a0
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq 0x8(%rax,%rcx,8), %rdi
callq 0xd200
cmpq $0x0, %rax
seta %al
andb $0x1, %al
movb %al, -0x51(%rbp)
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rdi
callq 0xea70
movq %rax, -0x68(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdi
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
movl $0x1, %r8d
callq 0x338c0
testb $0x1, -0x51(%rbp)
je 0x3a745
leaq 0x9fe8(%rip), %rdi      # 0x446d9
callq 0xd620
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdi
movq -0x70(%rbp), %rsi
movq -0x28(%rbp), %r8
movq -0x68(%rbp), %rdx
movq -0x60(%rbp), %rcx
leaq -0x80(%rbp), %rax
movl $0x1, %r9d
movq (%rax), %r10
movq %r10, (%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
callq 0x10da0
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)