user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x10000(%rsp),%r11
L30:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L30
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <getenv@plt>
  mov    %rax,-0x10020(%rbp)
  movl   $0x0,-0x10024(%rbp)
  mov    -0x10020(%rbp),%rdx
  lea    -0x10010(%rbp),%rax
  lea    D24(%rip),%rcx
  lea    D49(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x10010(%rbp),%rax
  mov    %rax,%rdi
  call   <getgrnam@plt>
  mov    %rax,-0x10018(%rbp)
  cmpq   $0x0,-0x10018(%rbp)
  jne    L22
  lea    D46(%rip),%rax
  jmp    L14
L22:
  lea    D19(%rip),%rax
L14:
  mov    %rax,%rsi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  cmpq   $0x0,-0x10018(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D15
datatype: string
name: retrieve_data
arguments: label: D24
datatype: string
name: retrieve_data
arguments: label: D49
datatype: string
name: retrieve_data
arguments: label: D46
datatype: string
name: retrieve_data
arguments: label: D19
datatype: string
name: retrieve_data
arguments: label: D38
datatype: string

tool: D15: TEST_WORKGROUP

tool: {"D24": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}

tool: D49: %s/%s

tool: D46: PASS

tool: D19: FAIL

tool: D38: %s


assistant: ```c
int main(void) {
  struct group *grp;
  char *domain = getenv("TEST_WORKGROUP");
  char long_name[65535];
  int failed = 0;
  sprintf(long_name, "%s/%s", domain, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx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