user: What is the c source code of the assembly code below:

```asm
<USBHostEndpointConfig>:
  endbr64
  push   %r15
  mov    %r9d,%r15d
  push   %r14
  mov    %r8d,%r14d
  push   %r13
  push   %r12
  mov    %ecx,%r12d
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x18,%rsp
  cmp    $0x40050000,%edi
  sete   %dil
  mov    %edx,0xc(%rsp)
  xor    %r13d,%r13d
  movzbl %dil,%edi
  call   <ASSERT@plt>
  cmp    $0x1f,%r12d
  mov    %ebx,%eax
  setle  %r13b
  and    $0xffffffef,%eax
  je     L165
  cmp    $0x70,%ebx
  jg     L151
  cmp    $0x3f,%ebx
  jle    L176
  movabs $0x1000100010001,%rdx
  lea    -0x40(%rbx),%eax
  bt     %rax,%rdx
  jb     L150
L151:
  xor    %edi,%edi
  call   <ASSERT@plt>
  mov    %r13d,%edi
  call   <ASSERT@plt>
L68:
  test   $0x4000,%r15d
  jne    L64
L54:
  mov    %r14d,%eax
  or     $0xc0,%r14b
  or     $0x80,%al
  mov    %r14d,%r8d
  test   $0x1000,%r15d
  cmovne %eax,%r8d
  mov    %r15d,%eax
  and    $0x300,%eax
  cmp    $0x100,%eax
  je     L145
L13:
  cmp    $0x200,%eax
  je     L207
  mov    %r8d,%edx
  or     $0x10,%edx
  test   %eax,%eax
  cmove  %edx,%r8d
L192:
  mov    %r15d,%ecx
  lea    -0x10(%rbp,%rbx,1),%eax
  and    $0x10,%ecx
  test   $0x2000,%r15d
  je     L35
  lea    0x11a(%rax),%edx
  mov    0xc(%rsp),%esi
  movslq %edx,%rdx
  mov    %r8d,(%rdx)
  lea    0x11b(%rax),%edx
  movslq %edx,%rdx
  mov    %r12d,(%rdx)
  lea    0x110(%rax),%edx
  movslq %edx,%rdx
  mov    %esi,(%rdx)
  mov    %r15d,%edx
  shl    $0x7,%edx
  movzbl %dl,%edx
  test   %ecx,%ecx
  jne    L59
  mov    %edx,%ecx
  or     $0x10,%ecx
  and    $0x8,%r15d
  cmovne %ecx,%edx
L82:
  add    $0x113,%eax
  cltq
  mov    %edx,(%rax)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L176:
  cmp    $0x20,%eax
  jne    L151
L150:
  mov    $0x1,%edi
  call   <ASSERT@plt>
  mov    %r13d,%edi
  call   <ASSERT@plt>
  test   $0x4000,%r15d
  je     L54
  jmp    L64
  nopw   0x0(%rax,%rax,1)
L165:
  mov    $0x1,%edi
  call   <ASSERT@plt>
  mov    %r13d,%edi
  call   <ASSERT@plt>
  test   %ebx,%ebx
  jne    L68
  lea    0x10b(%rbp),%eax
  add    $0x10a,%ebp
  cltq
  movslq %ebp,%rbp
  mov    %r12d,(%rax)
  test   $0x4000,%r15d
  je     L30
  movl   $0x40,0x0(%rbp)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L64:
  mov    %r15d,%eax
  or     $0x40,%r14d
  and    $0x300,%eax
  mov    %r14d,%r8d
  cmp    $0x100,%eax
  jne    L13
L145:
  or     $0x20,%r8d
  jmp    L192
  nopl   0x0(%rax,%rax,1)
L30:
  and    $0x1000,%r15d
  je     L153
  movl   $0x80,0x0(%rbp)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L35:
  lea    0x11c(%rax),%edx
  mov    0xc(%rsp),%ebx
  movslq %edx,%rdx
  mov    %r8d,(%rdx)
  lea    0x11d(%rax),%edx
  movslq %edx,%rdx
  mov    %r12d,(%rdx)
  lea    0x114(%rax),%edx
  movslq %edx,%rdx
  mov    %ebx,(%rdx)
  mov    %r15d,%edx
  shl    $0x5,%edx
  and    $0x80,%edx
  mov    %edx,%esi
  or     $0x40,%esi
  test   $0x2,%r15b
  cmovne %esi,%edx
  test   %ecx,%ecx
  jne    L62
  mov    %edx,%ecx
  or     $0x20,%ecx
  and    $0x8,%r15d
  cmovne %ecx,%edx
L37:
  add    $0x117,%eax
  cltq
  mov    %edx,(%rax)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L62:
  or     $0x28,%edx
  jmp    L37
  nopl   (%rax)
L153:
  movl   $0xc0,0x0(%rbp)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L59:
  or     $0x14,%edx
  jmp    L82
  nopl   0x0(%rax,%rax,1)
L207:
  or     $0x30,%r8d
  jmp    L192
```

assistant: ```c
void USBHostEndpointConfig(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32MaxPayload, uint32_t ui32NAKPollInterval, uint32_t ui32TargetEndpoint, uint32_t ui32Flags) {
  uint32_t ui32Register;
  ASSERT(ui32Base == 0x40050000);
  ASSERT((ui32Endpoint == 0x00000000) || (ui32Endpoint == 0x00000010) || (ui32Endpoint == 0x00000020) || (ui32Endpoint == 0x00000030) || (ui32Endpoint == 0x00000040) || (ui32Endpoint == 0x00000050) || (ui32Endpoint == 0x00000060) || (ui32Endpoint == 0x00000070));
  ASSERT(ui32NAKPollInterval <= 31);
  if (ui32Endpoint == 0x00000000) {
    (*((volatile uint8_t *)(ui32Base + 0x0000010B))) = ui32NAKPollInterval;
    if (ui32Flags & 0x00004000) {
      (*((volatile uint8_t *)(ui32Base + 0x0000010A))) = 0x00000040;
    } else if (ui32Flags & 0x00001000) {
      (*((volatile uint8_t *)(ui32Base + 0x0000010A))) = 0x00000080;
    } else {
      (*((volatile uint8_t *)(ui32Base + 0x0000010A))) = 0x000000C0;
    }
  } else {
    ui32Register = ui32TargetEndpoint;
    if (ui32Flags & 0x00004000) {
      ui32Register |= 0x00000040;
    } else if (ui32Flags & 0x00001000) {
      ui32Register |= 0x00000080;
    } else {
      ui32Register |= 0x000000C0;
    }
    switch (ui32Flags & 0x00000300) {
    case 0x00000100: {
      ui32Register |= 0x00000020;
      break;
    }
    case 0x00000000: {
      ui32Register |= 0x00000010;
      break;
    }
    case 0x00000200: {
      ui32Register |= 0x00000030;
      break;
    }
    case 0x00000300: {
      ui32Register |= 0x00000000;
      break;
    }
    }
    if (ui32Flags & 0x00002000) {
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x0000011A))) = ui32Register;
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x0000011B))) = ui32NAKPollInterval;
      (*((volatile uint16_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000110))) = ui32MaxPayload;
      ui32Register = 0;
      if (ui32Flags & 0x00000001) {
        ui32Register |= 0x00000080;
      }
      if (ui32Flags & 0x00000010) {
        ui32Register |= 0x00000010 | 0x00000004;
      } else if (ui32Flags & 0x00000008) {
        ui32Register |= 0x00000010;
      }
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000113))) = (uint8_t)ui32Register;
    } else {
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x0000011C))) = ui32Register;
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x0000011D))) = ui32NAKPollInterval;
      (*((volatile uint16_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000114))) = ui32MaxPayload;
      ui32Register = 0;
      if (ui32Flags & 0x00000004) {
        ui32Register |= 0x00000080;
      }
      if (ui32Flags & 0x00000002) {
        ui32Register |= 0x00000040;
      }
      if (ui32Flags & 0x00000010) {
        ui32Register |= 0x00000020 | 0x00000008;
      } else if (ui32Flags & 0x00000008) {
        ui32Register |= 0x00000020;
      }
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000117))) = (uint8_t)ui32Register;
    }
  }
}
```