// File: /workspace/github_c_makefile_star2_O0/neovim[P]libvterm/src/screen.c
// Function: setlineinfo
static int setlineinfo(int row, const VTermLineInfo *newinfo, const VTermLineInfo *oldinfo, void *user)
{
  VTermScreen *screen = user;

  if(newinfo->doublewidth != oldinfo->doublewidth ||
     newinfo->doubleheight != oldinfo->doubleheight) {
    for(int col = 0; col < screen->cols; col++) {
      ScreenCell *cell = getcell(screen, row, col);
      cell->pen.dwl = newinfo->doublewidth;
      cell->pen.dhl = newinfo->doubleheight;
    }

    VTermRect rect = {
      .start_row = row,
      .end_row   = row + 1,
      .start_col = 0,
      .end_col   = newinfo->doublewidth ? screen->cols / 2 : screen->cols,
    };
    damagerect(screen, rect);

    if(newinfo->doublewidth) {
      rect.start_col = screen->cols / 2;
      rect.end_col   = screen->cols;

      erase_internal(rect, 0, user);
    }
  }

  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movb (%rax), %al
andb $0x1, %al
movzbl %al, %eax
movq -0x18(%rbp), %rcx
movb (%rcx), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0x83cd
movq -0x10(%rbp), %rax
movb (%rax), %al
shrb %al
andb $0x3, %al
movzbl %al, %eax
movq -0x18(%rbp), %rcx
movb (%rcx), %cl
shrb %cl
andb $0x3, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x84f1
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x54(%rcx), %eax
jge 0x8446
movq -0x28(%rbp), %rdi
movl -0x4(%rbp), %esi
movl -0x2c(%rbp), %edx
callq 0x6a70
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movb (%rax), %al
andb $0x1, %al
movzbl %al, %edx
movq -0x38(%rbp), %rax
movl 0x20(%rax), %ecx
andl $0x1, %edx
shll $0x10, %edx
andl $0xfffeffff, %ecx       # imm = 0xFFFEFFFF
orl %edx, %ecx
movl %ecx, 0x20(%rax)
movq -0x10(%rbp), %rax
movb (%rax), %al
shrb %al
andb $0x3, %al
movzbl %al, %edx
movq -0x38(%rbp), %rax
movl 0x20(%rax), %ecx
andl $0x3, %edx
shll $0x11, %edx
andl $0xfff9ffff, %ecx       # imm = 0xFFF9FFFF
orl %edx, %ecx
movl %ecx, 0x20(%rax)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x83d4
movl -0x4(%rbp), %eax
movl %eax, -0x48(%rbp)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
movl $0x0, -0x40(%rbp)
leaq -0x48(%rbp), %rax
addq $0xc, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movb (%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x848c
movq -0x28(%rbp), %rax
movl 0x54(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x54(%rbp)
jmp 0x8496
movq -0x28(%rbp), %rax
movl 0x54(%rax), %eax
movl %eax, -0x54(%rbp)
movq -0x50(%rbp), %rax
movl -0x54(%rbp), %ecx
movl %ecx, (%rax)
movq -0x28(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x8670
movq -0x10(%rbp), %rax
movb (%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x84ef
movq -0x28(%rbp), %rax
movl 0x54(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movl 0x54(%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x20(%rbp), %rcx
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
xorl %edx, %edx
callq 0x8960
jmp 0x84f1
movl $0x1, %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)