user: Converte this assembly snippet into its equivalent C code:

```asm
<GPIOPadConfigSet>:
  endbr64
  mov    %rdi,%rax
  mov    %rdx,%rdi
  mov    %rcx,%rdx
  test   $0x1,%dil
  je     L169
  mov    0x500(%rax),%r8
  movzbl %sil,%ecx
  or     %r8,%rcx
L157:
  mov    %rcx,0x500(%rax)
  test   $0x2,%dil
  je     L41
  mov    0x504(%rax),%r8
  movzbl %sil,%ecx
  or     %r8,%rcx
L97:
  mov    %rcx,0x504(%rax)
  test   $0x4,%dil
  je     L129
  mov    0x508(%rax),%r8
  movzbl %sil,%ecx
  or     %r8,%rcx
L105:
  mov    %rcx,0x508(%rax)
  test   $0x8,%dil
  je     L66
  mov    0x518(%rax),%rdi
  movzbl %sil,%ecx
  or     %rdi,%rcx
L85:
  mov    %rcx,0x518(%rax)
  test   $0x1,%dl
  je     L121
  mov    0x50c(%rax),%rdi
  movzbl %sil,%ecx
  or     %rdi,%rcx
L76:
  mov    %rcx,0x50c(%rax)
  test   $0x2,%dl
  je     L146
  mov    0x510(%rax),%rdi
  movzbl %sil,%ecx
  or     %rdi,%rcx
L148:
  mov    %rcx,0x510(%rax)
  test   $0x4,%dl
  je     L28
  mov    0x514(%rax),%rdi
  movzbl %sil,%ecx
  or     %rdi,%rcx
L25:
  mov    %rcx,0x514(%rax)
  test   $0x8,%dl
  je     L86
  mov    0x51c(%rax),%rcx
  movzbl %sil,%edx
  or     %rcx,%rdx
  mov    %rdx,0x51c(%rax)
L5:
  mov    0x528(%rax),%rdx
  movzbl %sil,%esi
  not    %esi
  movslq %esi,%rsi
  and    %rdx,%rsi
  jmp    L68
L169:
  mov    0x500(%rax),%r8
  movzbl %sil,%ecx
  not    %ecx
  movslq %ecx,%rcx
  and    %r8,%rcx
  jmp    L157
L41:
  mov    0x504(%rax),%r8
  movzbl %sil,%ecx
  not    %ecx
  movslq %ecx,%rcx
  and    %r8,%rcx
  jmp    L97
L129:
  mov    0x508(%rax),%r8
  movzbl %sil,%ecx
  not    %ecx
  movslq %ecx,%rcx
  and    %r8,%rcx
  jmp    L105
L66:
  mov    0x518(%rax),%rdi
  movzbl %sil,%ecx
  not    %ecx
  movslq %ecx,%rcx
  and    %rdi,%rcx
  jmp    L85
L121:
  mov    0x50c(%rax),%rdi
  movzbl %sil,%ecx
  not    %ecx
  movslq %ecx,%rcx
  and    %rdi,%rcx
  jmp    L76
L146:
  mov    0x510(%rax),%rdi
  movzbl %sil,%ecx
  not    %ecx
  movslq %ecx,%rcx
  and    %rdi,%rcx
  jmp    L148
L28:
  mov    0x514(%rax),%rdi
  movzbl %sil,%ecx
  not    %ecx
  movslq %ecx,%rcx
  and    %rdi,%rcx
  jmp    L25
L86:
  mov    0x51c(%rax),%rdi
  movzbl %sil,%ecx
  not    %ecx
  movslq %ecx,%rcx
  and    %rdi,%rcx
  mov    %rcx,0x51c(%rax)
  test   %rdx,%rdx
  jne    L5
  mov    0x528(%rax),%rdx
  movzbl %sil,%esi
  or     %rdx,%rsi
L68:
  mov    %rsi,0x528(%rax)
  ret
```

assistant: ```c
void GPIOPadConfigSet(unsigned long ulPort, unsigned char ucPins, unsigned long ulStrength, unsigned long ulPinType) {
  ;

  ;

  (*((volatile unsigned long *)(ulPort + 0x00000500))) = ((ulStrength & 1) ? ((*((volatile unsigned long *)(ulPort + 0x00000500))) | ucPins) : ((*((volatile unsigned long *)(ulPort + 0x00000500))) & ~(ucPins)));
  (*((volatile unsigned long *)(ulPort + 0x00000504))) = ((ulStrength & 2) ? ((*((volatile unsigned long *)(ulPort + 0x00000504))) | ucPins) : ((*((volatile unsigned long *)(ulPort + 0x00000504))) & ~(ucPins)));
  (*((volatile unsigned long *)(ulPort + 0x00000508))) = ((ulStrength & 4) ? ((*((volatile unsigned long *)(ulPort + 0x00000508))) | ucPins) : ((*((volatile unsigned long *)(ulPort + 0x00000508))) & ~(ucPins)));
  (*((volatile unsigned long *)(ulPort + 0x00000518))) = ((ulStrength & 8) ? ((*((volatile unsigned long *)(ulPort + 0x00000518))) | ucPins) : ((*((volatile unsigned long *)(ulPort + 0x00000518))) & ~(ucPins)));
  (*((volatile unsigned long *)(ulPort + 0x0000050C))) = ((ulPinType & 1) ? ((*((volatile unsigned long *)(ulPort + 0x0000050C))) | ucPins) : ((*((volatile unsigned long *)(ulPort + 0x0000050C))) & ~(ucPins)));
  (*((volatile unsigned long *)(ulPort + 0x00000510))) = ((ulPinType & 2) ? ((*((volatile unsigned long *)(ulPort + 0x00000510))) | ucPins) : ((*((volatile unsigned long *)(ulPort + 0x00000510))) & ~(ucPins)));
  (*((volatile unsigned long *)(ulPort + 0x00000514))) = ((ulPinType & 4) ? ((*((volatile unsigned long *)(ulPort + 0x00000514))) | ucPins) : ((*((volatile unsigned long *)(ulPort + 0x00000514))) & ~(ucPins)));
  (*((volatile unsigned long *)(ulPort + 0x0000051C))) = ((ulPinType & 8) ? ((*((volatile unsigned long *)(ulPort + 0x0000051C))) | ucPins) : ((*((volatile unsigned long *)(ulPort + 0x0000051C))) & ~(ucPins)));
  (*((volatile unsigned long *)(ulPort + 0x00000528))) = ((ulPinType == 0x00000000) ? ((*((volatile unsigned long *)(ulPort + 0x00000528))) | ucPins) : ((*((volatile unsigned long *)(ulPort + 0x00000528))) & ~(ucPins)));
}
```