user: 这段汇编代码用C语言表示是什么样的?

```asm
<__glTexImage2D_size>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  mov    %ecx,-0x20(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jns    L233
  mov    $0x0,%eax
  jmp    L37
L233:
  cmpl   $0x0,-0x20(%rbp)
  jns    L243
  mov    $0x0,%eax
  jmp    L37
L243:
  cmpl   $0x9d,-0x14(%rbp)
  jg     L165
  cmpl   $0x94,-0x14(%rbp)
  jge    L70
  cmpl   $0x93,-0x14(%rbp)
  je     L200
  cmpl   $0x93,-0x14(%rbp)
  jg     L165
  cmpl   $0x92,-0x14(%rbp)
  je     L43
  cmpl   $0x92,-0x14(%rbp)
  jg     L165
  cmpl   $0x90,-0x14(%rbp)
  je     L87
  cmpl   $0x91,-0x14(%rbp)
  je     L139
  jmp    L165
L70:
  mov    -0x14(%rbp),%eax
  sub    $0x94,%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,%rdx
  and    $0x145,%edx
  test   %rdx,%rdx
  setne  %dl
  test   %dl,%dl
  jne    L43
  mov    %rax,%rdx
  and    $0x200,%edx
  test   %rdx,%rdx
  setne  %dl
  test   %dl,%dl
  jne    L87
  and    $0x10,%eax
  test   %rax,%rax
  setne  %al
  test   %al,%al
  je     L165
  movl   $0x1,-0x8(%rbp)
  jmp    L204
L43:
  movl   $0x1,-0x8(%rbp)
  jmp    L204
L200:
  movl   $0x2,-0x8(%rbp)
  jmp    L204
L139:
  movl   $0x3,-0x8(%rbp)
  jmp    L204
L87:
  movl   $0x4,-0x8(%rbp)
  jmp    L204
L165:
  mov    $0x0,%eax
  jmp    L37
L204:
  mov    -0x18(%rbp),%eax
  add    $0xffffff80,%eax
  cmp    $0x1b,%eax
  ja     L281
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D10(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D10(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  cmpl   $0x98,-0x14(%rbp)
  jne    L47
  mov    -0x1c(%rbp),%eax
  add    $0x7,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  imul   -0x20(%rbp),%eax
  jmp    L37
L47:
  mov    $0x0,%eax
  jmp    L37
  movl   $0x1,-0x4(%rbp)
  jmp    L247
  movl   $0x1,-0x4(%rbp)
  movl   $0x1,-0x8(%rbp)
  jmp    L247
  movl   $0x2,-0x4(%rbp)
  jmp    L247
  movl   $0x2,-0x4(%rbp)
  movl   $0x1,-0x8(%rbp)
  jmp    L247
  movl   $0x4,-0x4(%rbp)
  jmp    L247
  movl   $0x4,-0x4(%rbp)
  movl   $0x1,-0x8(%rbp)
  jmp    L247
L281:
  mov    $0x0,%eax
  jmp    L37
L247:
  mov    -0x8(%rbp),%eax
  imul   -0x4(%rbp),%eax
  imul   -0x1c(%rbp),%eax
  imul   -0x20(%rbp),%eax
L37:
  pop    %rbp
  ret
```

assistant: ```c
GLint __glTexImage2D_size(GLenum format, GLenum type, GLsizei w, GLsizei h) {
  GLint elements, esize;
  if (w < 0)
    return 0;
  if (h < 0)
    return 0;
  switch (format) {
  case GL_COLOR_INDEX:
    elements = 1;
    break;
  case GL_RED:
  case GL_GREEN:
  case GL_BLUE:
  case GL_ALPHA:
  case GL_LUMINANCE:
    elements = 1;
    break;
  case GL_LUMINANCE_ALPHA:
    elements = 2;
    break;
  case GL_RGB:
    elements = 3;
    break;
  case GL_RGBA:
  case GL_ABGR_EXT:
    elements = 4;
    break;
  default:
    return 0;
  }
  switch (type) {
  case GL_BITMAP:
    if (format == GL_COLOR_INDEX) {
      return (h * ((w + 7) / 8));
    } else {
      return 0;
    }
  case GL_BYTE:
  case GL_UNSIGNED_BYTE:
    esize = 1;
    break;
  case GL_UNSIGNED_BYTE_3_3_2:
  case GL_UNSIGNED_BYTE_2_3_3_REV:
    esize = 1;
    elements = 1;
    break;
  case GL_SHORT:
  case GL_UNSIGNED_SHORT:
    esize = 2;
    break;
  case GL_UNSIGNED_SHORT_5_6_5:
  case GL_UNSIGNED_SHORT_5_6_5_REV:
  case GL_UNSIGNED_SHORT_4_4_4_4:
  case GL_UNSIGNED_SHORT_4_4_4_4_REV:
  case GL_UNSIGNED_SHORT_5_5_5_1:
  case GL_UNSIGNED_SHORT_1_5_5_5_REV:
    esize = 2;
    elements = 1;
    break;
  case GL_INT:
  case GL_UNSIGNED_INT:
  case GL_FLOAT:
    esize = 4;
    break;
  case GL_UNSIGNED_INT_8_8_8_8:
  case GL_UNSIGNED_INT_8_8_8_8_REV:
  case GL_UNSIGNED_INT_10_10_10_2:
  case GL_UNSIGNED_INT_2_10_10_10_REV:
    esize = 4;
    elements = 1;
    break;
  default:
    return 0;
  }
  return elements * esize * w * h;
}
```