user: Demonstrate the C code that generates the assembly output below:

```asm
<video_all_stat_to_line_stat>:
  endbr64
  mov    %esi,%eax
  mov    %esi,%edx
  and    $0x80,%eax
  jne    L24
  cmp    $0xbf,%edi
  jle    L34
  ret
  nopl   0x0(%rax,%rax,1)
L24:
  mov    $0x40,%eax
  ret
  cs nopw 0x0(%rax,%rax,1)
L34:
  mov    %edx,%ecx
  mov    %esi,%eax
  shr    $0x6,%esi
  shr    $0x2,%ecx
  sar    %eax
  xor    $0x1,%ecx
  and    %esi,%ecx
  and    $0x1,%ecx
  shl    $0x2,%ecx
  test   $0x1,%dl
  je     L42
L26:
  mov    %edx,%esi
  mov    %edx,%edi
  and    $0x1,%eax
  shr    $0x2,%esi
  shr    $0x2,%edi
  and    $0xf000,%esi
  and    $0xf00,%edi
  or     %edi,%esi
  test   $0x40000,%edx
  jne    L6
  shr    $0x10,%edx
  and    $0x8,%edx
  lea    0x10(%rsi,%rdx,1),%edx
  add    %ecx,%edx
  add    %edx,%eax
  ret
  xchg   %ax,%ax
L42:
  test   $0x10,%dl
  je     L55
  cmp    $0x9f,%edi
  jg     L26
L55:
  mov    %edx,%edi
  mov    %edx,%esi
  shr    $0x9,%edi
  sar    $0x3,%esi
  xor    $0x1,%edi
  and    %edi,%eax
  and    $0x1,%eax
  test   $0x1,%dh
  je     L43
  sar    $0x5,%edx
  or     %esi,%edx
  add    %edx,%edx
  and    $0x2,%edx
  lea    0x30(%rcx,%rdx,1),%edx
  add    %edx,%eax
  ret
  nopl   (%rax)
L6:
  lea    0x90(%rsi,%rcx,1),%edx
  add    %edx,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L43:
  add    %esi,%esi
  and    $0x2,%esi
  lea    0x20(%rcx,%rsi,1),%edx
  add    %edx,%eax
  ret
```

assistant: ```c
int video_all_stat_to_line_stat(int line, int new_all_stat) {
  int page, color, dbl;
  int st80, hires, annunc3, mix_t_gr;
  int altchar, text_color, bg_color, flash_state;
  int mode;
  st80 = new_all_stat & (1 << (2));
  hires = new_all_stat & (1 << (8));
  annunc3 = new_all_stat & (1 << (9));
  mix_t_gr = new_all_stat & (1 << (4));
  page = (((1) >= (31 - 6) + 1) ? ((new_all_stat) >> (31 - (31 - 6))) : (((new_all_stat) >> (31 - (31 - 6))) & ((1 << (1)) - 1))) && !st80;
  color = (((1) >= (31 - 3) + 1) ? ((new_all_stat) >> (31 - (31 - 3))) : (((new_all_stat) >> (31 - (31 - 3))) & ((1 << (1)) - 1)));
  dbl = (((1) >= (31 - 1) + 1) ? ((new_all_stat) >> (31 - (31 - 1))) : (((new_all_stat) >> (31 - (31 - 1))) & ((1 << (1)) - 1)));
  altchar = 0;
  text_color = 0;
  bg_color = 0;
  flash_state = 0;
  if (new_all_stat & (1 << (7))) {
    mode = 4;
    page = 0;
    dbl = 0;
    color = 0;
  } else {
    if (line >= 192) {
      mode = 0;
      page = 0;
      dbl = 0;
      color = 0;
    } else if ((new_all_stat & (1 << (0))) || (line >= 160 && mix_t_gr)) {
      mode = 1;
      color = 0;
      altchar = (((1) >= (31 - 18) + 1) ? ((new_all_stat) >> (31 - (31 - 18))) : (((new_all_stat) >> (31 - (31 - 18))) & ((1 << (1)) - 1)));
      text_color = (((4) >= (31 - 14) + 1) ? ((new_all_stat) >> (31 - (31 - 14))) : (((new_all_stat) >> (31 - (31 - 14))) & ((1 << (4)) - 1)));
      bg_color = (((4) >= (31 - 10) + 1) ? ((new_all_stat) >> (31 - (31 - 10))) : (((new_all_stat) >> (31 - (31 - 10))) & ((1 << (4)) - 1)));
      flash_state = (((1) >= (31 - 19) + 1) ? ((new_all_stat) >> (31 - (31 - 19))) : (((new_all_stat) >> (31 - (31 - 19))) & ((1 << (1)) - 1)));
      if (altchar) {
        flash_state = 0;
      }
    } else {
      dbl = dbl && !annunc3;
      if (hires) {
        color = color | (((1) >= (31 - 5) + 1) ? ((new_all_stat) >> (31 - (31 - 5))) : (((new_all_stat) >> (31 - (31 - 5))) & ((1 << (1)) - 1)));
        mode = 3;
      } else {
        mode = 2;
      }
    }
  }
  return ((text_color << 12) + (bg_color << 8) + (altchar << 7) + (mode << 4) + (flash_state << 3) + (page << 2) + (color << 1) + dbl);
}
```