user: Please show me the C implementation that matches the assembly code listed below:

```asm
<gen_rgb24_stripe>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xb0,%rsp
  mov    %edi,-0x94(%rbp)
  mov    %esi,-0x98(%rbp)
  mov    %ecx,%eax
  mov    %r8d,%ecx
  mov    %dl,-0x9c(%rbp)
  mov    %al,-0xa0(%rbp)
  mov    %ecx,%eax
  mov    %al,-0xa4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x80(%rbp)
  movq   $0x0,-0x70(%rbp)
  movq   $0x0,-0x68(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x0,-0x10(%rbp)
  movq   $0x0,-0x78(%rbp)
  movl   $0x0,-0x88(%rbp)
  movl   $0x0,-0x84(%rbp)
  cmpl   $0x0,-0x94(%rbp)
  jle    L88
  cmpl   $0x0,-0x98(%rbp)
  jg     L71
L88:
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x280,-0x94(%rbp)
  movl   $0x1e0,-0x98(%rbp)
L71:
  mov    -0x94(%rbp),%eax
  imul   -0x98(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x80(%rbp)
  mov    -0x98(%rbp),%ecx
  mov    -0x94(%rbp),%edx
  lea    -0x70(%rbp),%rax
  lea    D12(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x70(%rbp),%rax
  lea    D51(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x78(%rbp)
  cmpq   $0x0,-0x78(%rbp)
  jne    L25
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L37
L25:
  movl   $0x0,-0x84(%rbp)
  jmp    L101
L40:
  movl   $0x0,-0x88(%rbp)
  jmp    L93
L15:
  mov    -0x88(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L73
  mov    -0x84(%rbp),%eax
  imul   -0x94(%rbp),%eax
  mov    %eax,%edx
  mov    -0x88(%rbp),%eax
  add    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x80(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x9c(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x84(%rbp),%eax
  imul   -0x94(%rbp),%eax
  mov    %eax,%edx
  mov    -0x88(%rbp),%eax
  add    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x80(%rbp),%rax
  add    %rax,%rdx
  movzbl -0xa0(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x84(%rbp),%eax
  imul   -0x94(%rbp),%eax
  mov    %eax,%edx
  mov    -0x88(%rbp),%eax
  add    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x80(%rbp),%rax
  add    %rax,%rdx
  movzbl -0xa4(%rbp),%eax
  mov    %al,(%rdx)
  jmp    L50
L73:
  mov    -0x84(%rbp),%eax
  imul   -0x94(%rbp),%eax
  mov    %eax,%edx
  mov    -0x88(%rbp),%eax
  add    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movb   $0xff,(%rax)
  mov    -0x84(%rbp),%eax
  imul   -0x94(%rbp),%eax
  mov    %eax,%edx
  mov    -0x88(%rbp),%eax
  add    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movb   $0xff,(%rax)
  mov    -0x84(%rbp),%eax
  imul   -0x94(%rbp),%eax
  mov    %eax,%edx
  mov    -0x88(%rbp),%eax
  add    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movb   $0xff,(%rax)
L50:
  addl   $0x1,-0x88(%rbp)
L93:
  mov    -0x88(%rbp),%eax
  cmp    -0x94(%rbp),%eax
  jl     L15
  addl   $0x1,-0x84(%rbp)
L101:
  mov    -0x84(%rbp),%eax
  cmp    -0x98(%rbp),%eax
  jl     L40
  mov    -0x94(%rbp),%eax
  imul   -0x98(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  lea    (%rax,%rdx,1),%esi
  mov    -0x78(%rbp),%rdx
  mov    -0x80(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  lea    -0x70(%rbp),%rax
  mov    %rax,%rsi
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
L37:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L21
  call   <__stack_chk_fail@plt>
L21:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D15
datatype: string
name: disassemble_data
arguments: data_tag: D50
datatype: string
name: disassemble_data
arguments: data_tag: D12
datatype: string
name: disassemble_data
arguments: data_tag: D51
datatype: string
name: disassemble_data
arguments: data_tag: D33
datatype: string
name: disassemble_data
arguments: data_tag: D39
datatype: string

tool: D15: Error: Width, Height cannot be 0 or negative number!

tool: D50: Default Param is used.

tool: D12: rgbstripe_%dx%d_rgb24.rgb

tool: D51: wb+

tool: D33: Error: Cannot create file!

tool: D39: Finish generate %s!


assistant: ```c
int gen_rgb24_stripe(int width, int height, unsigned char r, unsigned char g, unsigned char b) {
  unsigned char *data = NULL;
  char filename[100] = {0};
  FILE *fp = NULL;
  int i = 0, j = 0;
  if (width <= 0 || height <= 0) {
    printf("Error: Width, Height cannot be 0 or negative number!\n");
    printf("Default Param is used.\n");
    width = 640;
    height = 480;
  }
  data = (unsigned char *)malloc(width * height * 3);
  sprintf(filename, "rgbstripe_%dx%d_rgb24.rgb", width, height);
  if ((fp = fopen(filename, "wb+")) == NULL) {
    printf("Error: Cannot create file!");
    return -1;
  }
  for (j = 0; j < height; j++) {
    for (i = 0; i < width; i++) {
      if (i % 2 != 0) {
        data[(j * width + i) * 3 + 0] = r;
        data[(j * width + i) * 3 + 1] = g;
        data[(j * width + i) * 3 + 2] = b;
      } else {
        data[(j * width + i) * 3 + 0] = 255;
        data[(j * width + i) * 3 + 1] = 255;
        data[(j * width + i) * 3 + 2] = 255;
      }
    }
  }
  fwrite(data, width * height * 3, 1, fp);
  fclose(fp);
  free(data);
  printf("Finish generate %s!\n", filename);
  return 0;
}
```