user: 下面的汇编指令对应的C源代码是什么:

```asm
<__glTexImage2D_size>:
  endbr64
  mov    %ecx,%r8d
  mov    %edx,%ecx
  xor    %eax,%eax
  or     %r8d,%ecx
  js     L50
  cmp    $0x9d,%edi
  jg     L50
  cmp    $0x91,%edi
  jle    L127
  lea    -0x92(%rdi),%ecx
  mov    $0x1,%r9d
  shl    %cl,%r9
  test   $0x555,%r9d
  jne    L199
  cmp    $0x93,%edi
  je     L149
  cmp    $0x9d,%edi
  je     L77
L50:
  ret
  nopl   0x0(%rax)
L127:
  cmp    $0x90,%edi
  je     L67
  cmp    $0x91,%edi
  jne    L65
  add    $0xffffff80,%esi
  cmp    $0x19,%esi
  ja     L173
  lea    D18(%rip),%rcx
  movslq (%rcx,%rsi,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  nopl   (%rax)
L199:
  mov    $0x1,%eax
L155:
  add    $0xffffff80,%esi
  cmp    $0x1b,%esi
  ja     L173
  lea    D20(%rip),%r9
  movslq (%r9,%rsi,4),%rcx
  add    %r9,%rcx
  notrack jmp *%rcx
  cs nopw 0x0(%rax,%rax,1)
L67:
  add    $0xffffff80,%esi
  cmp    $0x19,%esi
  ja     L173
  lea    D8(%rip),%rcx
  movslq (%rcx,%rsi,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
  add    %edx,%edx
L32:
  mov    %r8d,%eax
  imul   %edx,%eax
  ret
  nopl   0x0(%rax)
L173:
  xor    %eax,%eax
  ret
  nopl   0x0(%rax,%rax,1)
  shl    $0x2,%edx
  jmp    L32
  nopl   (%rax)
  mov    $0x4,%eax
  shl    $0x2,%eax
L74:
  imul   %eax,%edx
  mov    %r8d,%eax
  imul   %edx,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L77:
  mov    $0x4,%eax
  jmp    L155
  mov    $0x4,%eax
  add    %eax,%eax
  jmp    L74
  nopl   0x0(%rax,%rax,1)
  mov    $0xc,%eax
  jmp    L74
  mov    $0x4,%eax
  jmp    L74
  lea    (%rdx,%rdx,2),%edx
  jmp    L32
  mov    $0x6,%eax
  jmp    L74
  xor    %eax,%eax
  cmp    $0x98,%edi
  jne    L50
  lea    0x7(%rdx),%eax
  sar    $0x3,%eax
  imul   %r8d,%eax
  ret
  nopl   0x0(%rax,%rax,1)
L149:
  mov    $0x2,%eax
  jmp    L155
L65:
  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;
}
```