user: 请将以下的汇编代码转换成C语言代码:

```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     L13
  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
  movzwl (%rax),%eax
  movzwl %ax,%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
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  and    $0x80,%eax
  test   %eax,%eax
  je     L2
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x1,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L2:
  mov    -0x4(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L8
  mov    -0x4(%rbp),%eax
  and    $0x4,%eax
  test   %eax,%eax
  je     L70
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x10,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L8
L70:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x8,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L8:
  mov    -0x4(%rbp),%eax
  and    $0x40,%eax
  test   %eax,%eax
  je     L18
  mov    -0x28(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L134
L18:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x1,%ah
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L134
L13:
  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
  movzwl (%rax),%eax
  movzwl %ax,%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
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  and    $0x80,%eax
  test   %eax,%eax
  je     L61
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x4,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L61:
  mov    -0x4(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L103
  mov    -0x4(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L76
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x10,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L103
L76:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x8,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L103:
  mov    -0x4(%rbp),%eax
  and    $0x40,%eax
  test   %eax,%eax
  je     L96
  mov    -0x28(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L134
L96:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  or     $0x1,%ah
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L134:
  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 unsigned short *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000110)));
    ui32Register = (uint32_t)(*((volatile unsigned char *)(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 unsigned short *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000114)));
    ui32Register = (uint32_t)(*((volatile unsigned char *)(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;
    }
  }
}
```