user: What would the C source look like for the assembly code provided here?

```asm
<ZopfliGetDistSymbol>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  cmpl   $0xc0,-0x4(%rbp)
  jg     L256
  cmpl   $0xc,-0x4(%rbp)
  jg     L82
  cmpl   $0x4,-0x4(%rbp)
  jg     L228
  mov    -0x4(%rbp),%eax
  sub    $0x1,%eax
  jmp    L35
L228:
  cmpl   $0x6,-0x4(%rbp)
  jg     L30
  mov    $0x4,%eax
  jmp    L35
L30:
  cmpl   $0x8,-0x4(%rbp)
  jg     L234
  mov    $0x5,%eax
  jmp    L35
L234:
  mov    $0x6,%eax
  jmp    L35
L82:
  cmpl   $0x10,-0x4(%rbp)
  jg     L138
  mov    $0x7,%eax
  jmp    L35
L138:
  cmpl   $0x18,-0x4(%rbp)
  jg     L32
  mov    $0x8,%eax
  jmp    L35
L32:
  cmpl   $0x20,-0x4(%rbp)
  jg     L258
  mov    $0x9,%eax
  jmp    L35
L258:
  cmpl   $0x30,-0x4(%rbp)
  jg     L301
  mov    $0xa,%eax
  jmp    L35
L301:
  cmpl   $0x40,-0x4(%rbp)
  jg     L59
  mov    $0xb,%eax
  jmp    L35
L59:
  cmpl   $0x60,-0x4(%rbp)
  jg     L106
  mov    $0xc,%eax
  jmp    L35
L106:
  cmpl   $0x80,-0x4(%rbp)
  jg     L88
  mov    $0xd,%eax
  jmp    L35
L88:
  mov    $0xe,%eax
  jmp    L35
L256:
  cmpl   $0x800,-0x4(%rbp)
  jg     L457
  cmpl   $0x100,-0x4(%rbp)
  jg     L316
  mov    $0xf,%eax
  jmp    L35
L316:
  cmpl   $0x180,-0x4(%rbp)
  jg     L5
  mov    $0x10,%eax
  jmp    L35
L5:
  cmpl   $0x200,-0x4(%rbp)
  jg     L221
  mov    $0x11,%eax
  jmp    L35
L221:
  cmpl   $0x300,-0x4(%rbp)
  jg     L509
  mov    $0x12,%eax
  jmp    L35
L509:
  cmpl   $0x400,-0x4(%rbp)
  jg     L11
  mov    $0x13,%eax
  jmp    L35
L11:
  cmpl   $0x600,-0x4(%rbp)
  jg     L411
  mov    $0x14,%eax
  jmp    L35
L411:
  mov    $0x15,%eax
  jmp    L35
L457:
  cmpl   $0xc00,-0x4(%rbp)
  jg     L55
  mov    $0x16,%eax
  jmp    L35
L55:
  cmpl   $0x1000,-0x4(%rbp)
  jg     L507
  mov    $0x17,%eax
  jmp    L35
L507:
  cmpl   $0x1800,-0x4(%rbp)
  jg     L353
  mov    $0x18,%eax
  jmp    L35
L353:
  cmpl   $0x2000,-0x4(%rbp)
  jg     L40
  mov    $0x19,%eax
  jmp    L35
L40:
  cmpl   $0x3000,-0x4(%rbp)
  jg     L208
  mov    $0x1a,%eax
  jmp    L35
L208:
  cmpl   $0x4000,-0x4(%rbp)
  jg     L474
  mov    $0x1b,%eax
  jmp    L35
L474:
  cmpl   $0x6000,-0x4(%rbp)
  jg     L197
  mov    $0x1c,%eax
  jmp    L35
L197:
  mov    $0x1d,%eax
L35:
  pop    %rbp
  ret
```

assistant: ```c
int ZopfliGetDistSymbol(int dist) {
  if (dist < 193) {
    if (dist < 13) {
      if (dist < 5)
        return dist - 1;
      else if (dist < 7)
        return 4;
      else if (dist < 9)
        return 5;
      else
        return 6;
    } else {
      if (dist < 17)
        return 7;
      else if (dist < 25)
        return 8;
      else if (dist < 33)
        return 9;
      else if (dist < 49)
        return 10;
      else if (dist < 65)
        return 11;
      else if (dist < 97)
        return 12;
      else if (dist < 129)
        return 13;
      else
        return 14;
    }
  } else {
    if (dist < 2049) {
      if (dist < 257)
        return 15;
      else if (dist < 385)
        return 16;
      else if (dist < 513)
        return 17;
      else if (dist < 769)
        return 18;
      else if (dist < 1025)
        return 19;
      else if (dist < 1537)
        return 20;
      else
        return 21;
    } else {
      if (dist < 3073)
        return 22;
      else if (dist < 4097)
        return 23;
      else if (dist < 6145)
        return 24;
      else if (dist < 8193)
        return 25;
      else if (dist < 12289)
        return 26;
      else if (dist < 16385)
        return 27;
      else if (dist < 24577)
        return 28;
      else
        return 29;
    }
  }
}
```