user: What is the c source code of the assembly code below:

```asm
<generate_xcodeuid>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x30,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x38(%rbp)
  jmp    L37
L3:
  mov    -0x38(%rbp),%eax
  cltq
  movl   $0x1,-0x34(%rbp,%rax,4)
  addl   $0x1,-0x38(%rbp)
L37:
  cmpl   $0x2,-0x38(%rbp)
  jle    L3
  movl   $0x0,-0x38(%rbp)
  jmp    L1
L29:
  mov    -0x38(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x39(%rbp)
  movzbl -0x39(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x34(%rbp),%eax
  imul   %edx,%eax
  lea    0x33299112(%rax),%edx
  mov    -0x2c(%rbp),%eax
  xor    %edx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x30(%rbp),%ecx
  mov    -0x2c(%rbp),%edx
  movzbl -0x39(%rbp),%eax
  imul   %edx,%eax
  add    %ecx,%eax
  lea    0x1345af22(%rax),%edx
  mov    -0x30(%rbp),%eax
  xor    %edx,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x2c(%rbp),%ecx
  mov    -0x30(%rbp),%edx
  movzbl -0x39(%rbp),%eax
  imul   %edx,%eax
  add    %ecx,%eax
  lea    0x73a92332(%rax),%edx
  mov    -0x34(%rbp),%eax
  xor    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  addl   $0x1,-0x38(%rbp)
L1:
  mov    -0x38(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L29
  movzbl -0x29(%rbp),%eax
  movzbl %al,%r12d
  movzbl -0x2a(%rbp),%eax
  movzbl %al,%ebx
  movzbl -0x2b(%rbp),%eax
  movzbl %al,%r11d
  movzbl -0x2c(%rbp),%eax
  movzbl %al,%r10d
  movzbl -0x2d(%rbp),%eax
  movzbl %al,%r9d
  movzbl -0x2e(%rbp),%eax
  movzbl %al,%r8d
  movzbl -0x2f(%rbp),%eax
  movzbl %al,%edi
  movzbl -0x30(%rbp),%eax
  movzbl %al,%esi
  movzbl -0x31(%rbp),%eax
  movzbl %al,%r14d
  movzbl -0x32(%rbp),%eax
  movzbl %al,%r13d
  movzbl -0x33(%rbp),%eax
  movzbl %al,%ecx
  movzbl -0x34(%rbp),%eax
  movzbl %al,%edx
  mov    -0x48(%rbp),%rax
  push   %r12
  push   %rbx
  push   %r11
  push   %r10
  push   %r9
  push   %r8
  push   %rdi
  push   %rsi
  mov    %r14d,%r9d
  mov    %r13d,%r8d
  lea    D3(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  add    $0x40,%rsp
  nop
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L4
  call   <__stack_chk_fail@plt>
L4:
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D3
data_type: string

tool: D3: %02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X

assistant: ```c
void generate_xcodeuid(char *xcodeuid, const char *srcstr) {
  int i;
  union {
    unsigned int d[3];
    unsigned char b[12];
  } code;
  for (i = 0; i < 3; ++i)
    code.d[i] = 1;
  for (i = 0; srcstr[i]; ++i) {
    unsigned char ch = (unsigned char)srcstr[i];
    code.d[0] = (code.d[0] + 0x33299112 + code.d[0] * ch) ^ code.d[2];
    code.d[1] = (code.d[1] + 0x1345AF22 + code.d[2] * ch) ^ code.d[1];
    code.d[2] = (code.d[2] + 0x73A92332 + code.d[1] * ch) ^ code.d[0];
  }
  sprintf(xcodeuid, "%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X", code.b[0], code.b[1], code.b[2], code.b[3], code.b[4], code.b[5], code.b[6], code.b[7], code.b[8], code.b[9], code.b[10], code.b[11]);
}
```