user: Translate the below assembly code into C programming language:

```asm
<GPMCAccessTypeSelect>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  mov    %esi,-0x8(%rbp)
  mov    %edx,-0xc(%rbp)
  mov    %ecx,-0x10(%rbp)
  cmpl   $0x1,-0xc(%rbp)
  jne    L13
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  add    $0x60,%eax
  mov    %eax,%eax
  mov    (%rax),%ecx
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  add    $0x60,%eax
  mov    %eax,%eax
  mov    %rax,%rdx
  mov    %ecx,%eax
  and    $0xefffffff,%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  add    $0x60,%eax
  mov    %eax,%eax
  mov    (%rax),%ecx
  mov    -0x10(%rbp),%eax
  shl    $0x1c,%eax
  and    $0x10000000,%eax
  mov    %eax,%esi
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  add    $0x60,%eax
  mov    %eax,%eax
  mov    %rax,%rdx
  mov    %ecx,%eax
  or     %esi,%eax
  mov    %eax,(%rdx)
  jmp    L14
L13:
  cmpl   $0x0,-0xc(%rbp)
  jne    L14
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  add    $0x60,%eax
  mov    %eax,%eax
  mov    (%rax),%ecx
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  add    $0x60,%eax
  mov    %eax,%eax
  mov    %rax,%rdx
  mov    %ecx,%eax
  and    $0xbfffffff,%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  add    $0x60,%eax
  mov    %eax,%eax
  mov    (%rax),%ecx
  mov    -0x10(%rbp),%eax
  shl    $0x1e,%eax
  and    $0x40000000,%eax
  mov    %eax,%esi
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  add    $0x60,%eax
  mov    %eax,%eax
  mov    %rax,%rdx
  mov    %ecx,%eax
  or     %esi,%eax
  mov    %eax,(%rdx)
L14:
  nop
  pop    %rbp
  ret
```

assistant: ```c
void GPMCAccessTypeSelect(unsigned int baseAddr, unsigned int csNum, unsigned int mode, unsigned int accessType) {
  if (mode == (1)) {
    (*((volatile unsigned int *)(baseAddr + (0x60 + (csNum * (0x30)))))) &= ~(0x10000000u);
    (*((volatile unsigned int *)(baseAddr + (0x60 + (csNum * (0x30)))))) |= ((accessType << (0x0000001Cu)) & (0x10000000u));
  } else if (mode == (0)) {
    (*((volatile unsigned int *)(baseAddr + (0x60 + (csNum * (0x30)))))) &= ~(0x40000000u);
    (*((volatile unsigned int *)(baseAddr + (0x60 + (csNum * (0x30)))))) |= ((accessType << (0x0000001Eu)) & (0x40000000u));
  }
}
```