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

```asm
<USBDevEndpointConfigGet>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  mov    %rcx,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  and    $0x2000,%eax
  test   %eax,%eax
  je     L19
  mov    -0x28(%rbp),%rax
  movl   $0x2000,(%rax)
  mov    -0x18(%rbp),%eax
  lea    -0x10(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  add    $0x110,%eax
  cltq
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x18(%rbp),%eax
  lea    -0x10(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  add    $0x113,%eax
  cltq
  mov    (%rax),%rax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  and    $0x80,%eax
  test   %eax,%eax
  je     L95
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x1,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L95:
  mov    -0x4(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L102
  mov    -0x4(%rbp),%eax
  and    $0x4,%eax
  test   %eax,%eax
  je     L106
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x10,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L102
L106:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x8,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L102:
  mov    -0x4(%rbp),%eax
  and    $0x40,%eax
  test   %eax,%eax
  je     L108
  mov    -0x28(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L37
L108:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x1,%ah
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L37
L19:
  mov    -0x28(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x18(%rbp),%eax
  lea    -0x10(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  add    $0x114,%eax
  cltq
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x18(%rbp),%eax
  lea    -0x10(%rax),%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  add    $0x117,%eax
  cltq
  mov    (%rax),%rax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  and    $0x80,%eax
  test   %eax,%eax
  je     L44
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x4,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L44:
  mov    -0x4(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L18
  mov    -0x4(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L124
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x10,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L18
L124:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x8,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L18:
  mov    -0x4(%rbp),%eax
  and    $0x40,%eax
  test   %eax,%eax
  je     L41
  mov    -0x28(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L37
L41:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x1,%ah
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L37:
  nop
  pop    %rbp
  ret
```

assistant: ```c
void USBDevEndpointConfigGet(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t *pui32MaxPacketSize, uint32_t *pui32Flags) {
  uint32_t ui32Register;
  ;
  ;

  ;
  if (*pui32Flags & 0x00002000) {
    *pui32Flags = 0x00002000;
    *pui32MaxPacketSize = (uint32_t)(*((volatile uint16_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000110)));
    ui32Register = (uint32_t)(*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000113)));
    if (ui32Register & 0x00000080) {
      *pui32Flags |= 0x00000001;
    }
    if (ui32Register & 0x00000010) {
      if (ui32Register & 0x00000004) {
        *pui32Flags |= 0x00000010;
      } else {
        *pui32Flags |= 0x00000008;
      }
    }
    if (ui32Register & 0x00000040) {
      *pui32Flags |= 0x00000000;
    } else {
      *pui32Flags |= 0x00000100;
    }
  } else {
    *pui32Flags = 0x00000000;
    *pui32MaxPacketSize = (uint32_t)(*((volatile uint16_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000114)));
    ui32Register = (uint32_t)(*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000117)));
    if (ui32Register & 0x00000080) {
      *pui32Flags |= 0x00000004;
    }
    if (ui32Register & 0x00000020) {
      if (ui32Register & 0x00000008) {
        *pui32Flags |= 0x00000010;
      } else {
        *pui32Flags |= 0x00000008;
      }
    }
    if (ui32Register & 0x00000040) {
      *pui32Flags |= 0x00000000;
    } else {
      *pui32Flags |= 0x00000100;
    }
  }
}
```