user: 这段汇编代码用C语言表示是什么样的：

```asm
<USBDevEndpointStallClear>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    %esi,-0x8(%rbp)
  mov    %edx,-0xc(%rbp)
  cmpl   $0x40050000,-0x4(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <ASSERT@plt>
  cmpl   $0x0,-0x8(%rbp)
  je     L45
  cmpl   $0x10,-0x8(%rbp)
  je     L45
  cmpl   $0x20,-0x8(%rbp)
  je     L45
  cmpl   $0x30,-0x8(%rbp)
  je     L45
  cmpl   $0x40,-0x8(%rbp)
  je     L45
  cmpl   $0x50,-0x8(%rbp)
  je     L45
  cmpl   $0x60,-0x8(%rbp)
  je     L45
  cmpl   $0x70,-0x8(%rbp)
  jne    L49
L45:
  mov    $0x1,%eax
  jmp    L32
L49:
  mov    $0x0,%eax
L32:
  mov    %eax,%edi
  call   <ASSERT@plt>
  mov    -0xc(%rbp),%eax
  and    $0xdf,%ah
  test   %eax,%eax
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <ASSERT@plt>
  cmpl   $0x0,-0x8(%rbp)
  jne    L22
  mov    -0x4(%rbp),%eax
  add    $0x102,%eax
  cltq
  mov    (%rax),%eax
  mov    -0x4(%rbp),%edx
  add    $0x102,%edx
  movslq %edx,%rdx
  and    $0xfffffffb,%eax
  mov    %eax,(%rdx)
  jmp    L109
L22:
  cmpl   $0x2000,-0xc(%rbp)
  jne    L65
  mov    -0x4(%rbp),%eax
  lea    0x112(%rax),%edx
  mov    -0x8(%rbp),%eax
  sub    $0x10,%eax
  add    %edx,%eax
  cltq
  mov    (%rax),%eax
  mov    -0x4(%rbp),%edx
  lea    0x112(%rdx),%ecx
  mov    -0x8(%rbp),%edx
  sub    $0x10,%edx
  add    %ecx,%edx
  movslq %edx,%rdx
  and    $0xffffffcf,%eax
  mov    %eax,(%rdx)
  mov    -0x4(%rbp),%eax
  lea    0x112(%rax),%edx
  mov    -0x8(%rbp),%eax
  sub    $0x10,%eax
  add    %edx,%eax
  cltq
  mov    (%rax),%eax
  mov    -0x4(%rbp),%edx
  lea    0x112(%rdx),%ecx
  mov    -0x8(%rbp),%edx
  sub    $0x10,%edx
  add    %ecx,%edx
  movslq %edx,%rdx
  or     $0x40,%eax
  mov    %eax,(%rdx)
  jmp    L109
L65:
  mov    -0x4(%rbp),%eax
  lea    0x116(%rax),%edx
  mov    -0x8(%rbp),%eax
  sub    $0x10,%eax
  add    %edx,%eax
  cltq
  mov    (%rax),%eax
  mov    -0x4(%rbp),%edx
  lea    0x116(%rdx),%ecx
  mov    -0x8(%rbp),%edx
  sub    $0x10,%edx
  add    %ecx,%edx
  movslq %edx,%rdx
  and    $0xffffff9f,%eax
  mov    %eax,(%rdx)
  mov    -0x4(%rbp),%eax
  lea    0x116(%rax),%edx
  mov    -0x8(%rbp),%eax
  sub    $0x10,%eax
  add    %edx,%eax
  cltq
  mov    (%rax),%eax
  mov    -0x4(%rbp),%edx
  lea    0x116(%rdx),%ecx
  mov    -0x8(%rbp),%edx
  sub    $0x10,%edx
  add    %ecx,%edx
  movslq %edx,%rdx
  or     $0x80,%al
  mov    %eax,(%rdx)
L109:
  nop
  leave
  ret
```

assistant: ```c
void USBDevEndpointStallClear(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) {
  ASSERT(ui32Base == 0x40050000);
  ASSERT((ui32Endpoint == 0x00000000) || (ui32Endpoint == 0x00000010) || (ui32Endpoint == 0x00000020) || (ui32Endpoint == 0x00000030) || (ui32Endpoint == 0x00000040) || (ui32Endpoint == 0x00000050) || (ui32Endpoint == 0x00000060) || (ui32Endpoint == 0x00000070));
  ASSERT((ui32Flags & ~(0x00002000 | 0x00000000)) == 0);
  if (ui32Endpoint == 0x00000000) {
    (*((volatile uint8_t *)(ui32Base + 0x00000102))) &= ~0x00000004;
  } else if (ui32Flags == 0x00002000) {
    (*((volatile uint8_t *)(ui32Base + 0x00000112 + (ui32Endpoint - 0x10)))) &= ~(0x00000010 | 0x00000020);
    (*((volatile uint8_t *)(ui32Base + 0x00000112 + (ui32Endpoint - 0x10)))) |= 0x00000040;
  } else {
    (*((volatile uint8_t *)(ui32Base + 0x00000116 + (ui32Endpoint - 0x10)))) &= ~(0x00000020 | 0x00000040);
    (*((volatile uint8_t *)(ui32Base + 0x00000116 + (ui32Endpoint - 0x10)))) |= 0x00000080;
  }
}
```