user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<palette_feu>:
  endbr64
  push   %rbx
  sub    $0x310,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x308(%rsp)
  xor    %eax,%eax
  call   <cng_clear_screen@plt>
  pxor   %xmm0,%xmm0
  mov    $0xffffffff,%eax
  mov    $0xffffffff,%edx
  movaps %xmm0,0xc0(%rsp)
  mov    $0xffffffff,%ecx
  mov    $0xffffffff,%edi
  mov    $0xffffffff,%esi
  movaps %xmm0,0xd0(%rsp)
  mov    $0xffffffff,%r8d
  mov    $0xffffffff,%r9d
  mov    $0xffffffff,%r10d
  movaps %xmm0,0xe0(%rsp)
  movaps %xmm0,0xf0(%rsp)
  movaps %xmm0,0x100(%rsp)
  movaps %xmm0,0x110(%rsp)
  movaps %xmm0,0x120(%rsp)
  movaps %xmm0,0x130(%rsp)
  movaps %xmm0,0x140(%rsp)
  movaps %xmm0,0x150(%rsp)
  movaps %xmm0,0x160(%rsp)
  movaps %xmm0,0x170(%rsp)
  movaps %xmm0,0x180(%rsp)
  movaps %xmm0,0x190(%rsp)
  movaps %xmm0,0x1a0(%rsp)
  movaps %xmm0,0x1b0(%rsp)
  movaps %xmm0,0x1c0(%rsp)
  movaps %xmm0,0x1d0(%rsp)
  movaps %xmm0,0x1e0(%rsp)
  movaps %xmm0,0x1f0(%rsp)
  movaps %xmm0,0x200(%rsp)
  movaps %xmm0,0x210(%rsp)
  movaps %xmm0,0x220(%rsp)
  movaps %xmm0,0x230(%rsp)
  movaps %xmm0,0x240(%rsp)
  movaps %xmm0,0x250(%rsp)
  movaps %xmm0,0x260(%rsp)
  movaps %xmm0,0x270(%rsp)
  movaps %xmm0,0x280(%rsp)
  movaps %xmm0,0x290(%rsp)
  movaps %xmm0,0x2a0(%rsp)
  movaps %xmm0,0x2b0(%rsp)
  movaps %xmm0,0x2c0(%rsp)
  mov    %ax,0x27(%rsp)
  movabs $0xfffffbffffffffff,%rax
  mov    %rax,(%rsp)
  movabs $0xffeffffff3fffff7,%rax
  mov    %rax,0x8(%rsp)
  movabs $0xe3ffffe7ffffebff,%rax
  mov    %rax,0x10(%rsp)
  movabs $0xffffdbffffdfffff,%rax
  mov    %rax,0x18(%rsp)
  movabs $0xffffbbffffbfffff,%rax
  mov    %rax,0x30(%rsp)
  movabs $0xffafffffb3ffffb7,%rax
  mov    %rax,0x38(%rsp)
  movabs $0xa3ffffa7ffffabff,%rax
  mov    %rax,0x40(%rsp)
  movabs $0xffff9bffff9fffff,%rax
  mov    %rax,0x48(%rsp)
  movabs $0xff8fffff93ffff97,%rax
  mov    %rax,0x50(%rsp)
  movabs $0x83ffff87ffff8bff,%rax
  mov    %rax,0x58(%rsp)
  movabs $0xffff7bffff7fffff,%rax
  mov    %rax,0x60(%rsp)
  movabs $0xff6fffff73ffff77,%rax
  mov    %rax,0x68(%rsp)
  movabs $0x63ffff67ffff6bff,%rax
  mov    %rax,0x70(%rsp)
  movabs $0xffff5bffff5fffff,%rax
  mov    %rax,0x78(%rsp)
  movabs $0xffff3bffff3fffff,%rax
  mov    %dx,0x2a(%rsp)
  mov    $0xffffffff,%edx
  mov    %cx,0x2d(%rsp)
  lea    0x180(%rsp),%rcx
  mov    %di,0x87(%rsp)
  mov    %rsp,%rdi
  movl   $0xd3ffffd7,0x20(%rsp)
  mov    %si,0x24(%rsp)
  movb   $0xcf,0x26(%rsp)
  movb   $0xcb,0x29(%rsp)
  movb   $0xc7,0x2c(%rsp)
  mov    %r8w,0x8a(%rsp)
  mov    %r9w,0x8d(%rsp)
  movb   $0xc3,0x2f(%rsp)
  movl   $0x53ffff57,0x80(%rsp)
  mov    %r10w,0x84(%rsp)
  movb   $0x4f,0x86(%rsp)
  movaps %xmm0,0x2d0(%rsp)
  movaps %xmm0,0x2e0(%rsp)
  movaps %xmm0,0x2f0(%rsp)
  movb   $0x4b,0x89(%rsp)
  mov    %rax,0x90(%rsp)
  movabs $0xff2fffff33ffff37,%rax
  mov    %rax,0x98(%rsp)
  movabs $0x23ffff27ffff2bff,%rax
  mov    %rax,0xa0(%rsp)
  movabs $0xffff1bffff1fffff,%rax
  mov    %rax,0xa8(%rsp)
  movabs $0xff0fffff13ffff17,%rax
  movb   $0x47,0x8c(%rsp)
  movb   $0x43,0x8f(%rsp)
  mov    %rax,0xb0(%rsp)
  movabs $0x3ffff07ffff0bff,%rax
  mov    %rax,0xb8(%rsp)
  lea    0xc0(%rsp),%rax
  cs nopw 0x0(%rax,%rax,1)
L42:
  mov    %dl,0x1(%rax)
  add    $0x3,%rax
  sub    $0x2,%edx
  movb   $0xff,-0x3(%rax)
  movb   $0x0,-0x1(%rax)
  cmp    %rcx,%rax
  jne    L42
  lea    0x240(%rdi),%rcx
  mov    $0xffffff80,%edx
  nopl   0x0(%rax,%rax,1)
L36:
  mov    %dl,0x1(%rax)
  add    $0x3,%rax
  sub    $0x2,%edx
  movb   $0xff,-0x3(%rax)
  movb   $0x0,-0x1(%rax)
  cmp    %rcx,%rax
  jne    L36
  lea    0x240(%rsp),%rax
  lea    0x300(%rdi),%rcx
  mov    $0xffffffff,%edx
  nopl   0x0(%rax,%rax,1)
L4:
  mov    %dl,(%rax)
  add    $0x3,%rax
  sub    $0x4,%edx
  movb   $0x0,-0x2(%rax)
  movb   $0x0,-0x1(%rax)
  cmp    %rax,%rcx
  jne    L4
  call   <cng_palette@plt>
  xor    %edi,%edi
  xor    %ebx,%ebx
  call   <cng_current_color_index@plt>
  xor    %eax,%eax
  call   <cng_clear_screen@plt>
  nopl   0x0(%rax,%rax,1)
L3:
  mov    %ebx,%edi
  call   <cng_current_color_index@plt>
  mov    %ebx,%ecx
  mov    %ebx,%esi
  mov    $0x280,%edx
  xor    %edi,%edi
  add    $0x1,%ebx
  call   <cng_line@plt>
  cmp    $0x100,%ebx
  jne    L3
  mov    $0x7d0,%edi
  call   <cng_delay@plt>
  xor    %eax,%eax
  call   <menu@plt>
  mov    0x308(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  add    $0x310,%rsp
  xor    %eax,%eax
  pop    %rbx
  ret
L40:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int palette_feu() {
  unsigned char feu[256][3];
  int i, r, v, b;
  cng_clear_screen();
  for (i = 0; i < 256; i++) {
    feu[i][0] = 0;
    feu[i][1] = 0;
    feu[i][2] = 0;
  }
  for (i = 0; i < 64; i++) {
    feu[i][0] = 255;
    feu[i][1] = 255;
    feu[i][2] = 255 - (i * 4);
  }
  for (i = 0; i < 64; i++) {
    feu[i + 64][0] = 255;
    feu[i + 64][1] = 255 - (i * 2);
    feu[i + 64][2] = 0;
  }
  for (i = 0; i < 64; i++) {
    feu[i + 128][0] = 255;
    feu[i + 128][1] = 128 - (i * 2);
    feu[i + 128][2] = 0;
  }
  for (i = 0; i < 64; i++) {
    feu[i + 192][0] = 255 - (i * 4);
    feu[i + 192][1] = 0;
    feu[i + 192][2] = 0;
  }
  cng_palette(feu);
  cng_current_color_index(0);
  cng_clear_screen();
  for (i = 0; i < 256; i++) {
    cng_current_color_index(i);
    cng_line(0, i, 640, i);
  }
  cng_delay(2000);
  menu();
}
```