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

```asm
<min_dom_set>:
  endbr64
  push   %r15
  mov    %edi,%r11d
  mov    %rsi,%r15
  push   %r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %r9,0x8(%rsp)
  mov    0x88(%rsp),%r10
  mov    0x90(%rsp),%ebp
  mov    0x98(%rsp),%ebx
  test   %edi,%edi
  jne    L117
  lea    0x0(,%rbp,4),%r14d
  test   %ebp,%ebp
  jle    1080 <min_dom_set.cold>
  lea    -0x1(%rbp),%ebx
  mov    0xa0(%rsp),%rdi
  mov    %rbx,%rax
  shl    $0x9,%rax
  add    %rbx,%rax
  lea    0x804(%rdi,%rax,4),%rdx
  mov    %rdi,%rax
  nopl   0x0(%rax)
L137:
  movl   $0x1,(%rax)
  add    $0x804,%rax
  cmp    %rdx,%rax
  jne    L137
  movl   $0x0,(%r15)
  xor    %esi,%esi
  mov    %r12,%rdi
  mov    %r14d,%edx
  mov    %r10,0x88(%rsp)
  mov    %r8,0x18(%rsp)
  mov    %r11d,0x10(%rsp)
  call   <memset@plt>
  mov    0xa0(%rsp),%rdi
  mov    0x10(%rsp),%r11d
  mov    %r12,%rsi
  lea    0x0(,%rbx,4),%rax
  mov    0x18(%rsp),%r8
  xor    %ebx,%ebx
  mov    0x88(%rsp),%r10
  lea    0x4(%rdi,%rax,1),%rcx
  mov    $0xfffffffffffffffc,%rdi
  lea    0x4(%r12,%rax,1),%r9
  sub    %rax,%rdi
  nopw   0x0(%rax,%rax,1)
L19:
  lea    (%rdi,%rcx,1),%rax
  xor    %edx,%edx
  cs nopw 0x0(%rax,%rax,1)
L33:
  add    (%rax),%edx
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L33
  cmp    %edx,%ebx
  mov    %edx,(%rsi)
  lea    0x800(%rax),%rcx
  cmovl  %edx,%ebx
  add    $0x4,%rsi
  cmp    %r9,%rsi
  jne    L19
  mov    %r14d,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  mov    %r11d,0x18(%rsp)
  mov    %r10,0x88(%rsp)
  mov    %r8,0x10(%rsp)
  call   <memset@plt>
  mov    0x10(%rsp),%r8
  mov    %r14d,%edx
  xor    %esi,%esi
  mov    0x8(%rsp),%rdi
  movl   $0x0,(%r8)
  call   <memset@plt>
  mov    0x80(%rsp),%rax
  mov    %r14d,%edx
  xor    %esi,%esi
  mov    0x88(%rsp),%rdi
  mov    %ebp,(%rax)
  call   <memset@plt>
  mov    0x18(%rsp),%r11d
  mov    %ebp,%edx
  xor    %eax,%eax
  mov    0x10(%rsp),%r8
  mov    0x88(%rsp),%r10
  xchg   %ax,%ax
L143:
  mov    %eax,(%r10,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L143
L130:
  xor    %eax,%eax
  jmp    L57
  nopl   0x0(%rax)
L135:
  add    $0x1,%rax
  cmp    %eax,%ebp
  jle    L77
L57:
  mov    (%r12,%rax,4),%edi
  test   %edi,%edi
  jne    L135
L213:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L117:
  test   %ebp,%ebp
  jg     L130
  nopl   0x0(%rax)
L77:
  mov    (%r15),%ecx
  mov    %ebp,%eax
  mov    0x80(%rsp),%rsi
  mov    (%r8),%edi
  sub    %ecx,%eax
  mov    (%rsi),%esi
  cltd
  idiv   %ebx
  cmp    $0x1,%edx
  sbb    $0xffffffff,%eax
  add    %edi,%eax
  cmp    %esi,%eax
  jge    L213
  cmp    %ebp,%r11d
  je     L138
  cmp    %ebp,%ecx
  je     L138
  mov    0x8(%rsp),%rax
  movslq %r11d,%r14
  lea    0x1(%r11),%edi
  lea    (%rax,%r14,4),%rax
  mov    %rax,0x10(%rsp)
  test   %ebp,%ebp
  jle    L104
  lea    -0x1(%rbp),%eax
  shl    $0xb,%r14
  xor    %edx,%edx
  add    0xa0(%rsp),%r14
  mov    %rax,0x18(%rsp)
  mov    %ebp,%eax
  nopl   0x0(%rax)
L97:
  mov    (%r14,%rdx,4),%esi
  test   %esi,%esi
  je     L106
  subl   $0x1,(%r12,%rdx,4)
L106:
  add    $0x1,%rdx
  cmp    %rdx,%rax
  jne    L97
  mov    %r11d,0x3c(%rsp)
  sub    $0x8,%rsp
  mov    %r12,%rdx
  mov    %r13,%rcx
  mov    %rax,0x38(%rsp)
  mov    %r15,%rsi
  push   0xa8(%rsp)
  push   %rbx
  push   %rbp
  push   %r10
  mov    %r10,0xb0(%rsp)
  push   0xa8(%rsp)
  mov    0x38(%rsp),%r9
  mov    %r8,0x58(%rsp)
  mov    %edi,0x50(%rsp)
  call   <min_dom_set>
  mov    0x60(%rsp),%rax
  mov    0x50(%rsp),%edi
  xor    %edx,%edx
  mov    0x6c(%rsp),%r11d
  mov    0x58(%rsp),%r8
  add    $0x30,%rsp
  mov    0x88(%rsp),%r10
  nopl   0x0(%rax,%rax,1)
L175:
  mov    (%r14,%rdx,4),%ecx
  test   %ecx,%ecx
  je     L134
  addl   $0x1,(%r12,%rdx,4)
L134:
  add    $0x1,%rdx
  cmp    %rax,%rdx
  jne    L175
  mov    0x10(%rsp),%rsi
  xor    %edx,%edx
  movl   $0x1,(%rsi)
  addl   $0x1,(%r8)
  nop
L165:
  mov    (%r14,%rdx,4),%r9d
  test   %r9d,%r9d
  je     L181
  addl   $0x1,0x0(%r13,%rdx,4)
L181:
  add    $0x1,%rdx
  cmp    %rax,%rdx
  jne    L165
  mov    0x18(%rsp),%rsi
  movl   $0x0,(%r15)
  mov    %r13,%rdx
  lea    0x4(%r13,%rsi,4),%rcx
  nopl   0x0(%rax)
L122:
  mov    (%rdx),%esi
  test   %esi,%esi
  je     L35
  addl   $0x1,(%r15)
L35:
  add    $0x4,%rdx
  cmp    %rdx,%rcx
  jne    L122
  mov    %r11d,0x28(%rsp)
  sub    $0x8,%rsp
  mov    %r12,%rdx
  mov    %r13,%rcx
  mov    %rax,0x28(%rsp)
  mov    %r15,%rsi
  push   0xa8(%rsp)
  push   %rbx
  push   %rbp
  push   %r10
  push   0xa8(%rsp)
  mov    0x38(%rsp),%r9
  mov    %r8,0x38(%rsp)
  call   <min_dom_set>
  mov    0x40(%rsp),%rax
  mov    0x38(%rsp),%r8
  xor    %edx,%edx
  mov    0x58(%rsp),%r11d
  add    $0x30,%rsp
  movl   $0x0,(%rax)
  mov    0x20(%rsp),%rax
  subl   $0x1,(%r8)
  nop
L176:
  mov    (%r14,%rdx,4),%ecx
  test   %ecx,%ecx
  je     L144
  mov    0x0(%r13,%rdx,4),%ecx
  test   %ecx,%ecx
  je     L55
  subl   $0x1,(%r15)
  mov    0x0(%r13,%rdx,4),%ecx
L55:
  sub    $0x1,%ecx
  mov    %ecx,0x0(%r13,%rdx,4)
L144:
  add    $0x1,%rdx
  cmp    %rdx,%rax
  jne    L176
  test   %r11d,%r11d
  jne    L213
  mov    0x18(%rsp),%rdi
  mov    0xa0(%rsp),%rax
  mov    %rdi,%rdx
  shl    $0x9,%rdx
  add    %rdi,%rdx
  lea    0x804(%rax,%rdx,4),%rdx
  nopl   0x0(%rax,%rax,1)
L110:
  movl   $0x0,(%rax)
  add    $0x804,%rax
  cmp    %rax,%rdx
  jne    L110
  jmp    L213
L138:
  cmp    %esi,%edi
  jge    L213
  mov    0x8(%rsp),%rsi
  mov    %r10,%rdi
  mov    %r8,0x10(%rsp)
  lea    0x0(,%rbp,4),%edx
  call   <memcpy@plt>
  mov    0x10(%rsp),%r8
  mov    0x80(%rsp),%rdi
  mov    (%r8),%eax
  mov    %eax,(%rdi)
  jmp    L213
L104:
  sub    $0x8,%rsp
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %r15,%rsi
  push   0xa8(%rsp)
  push   %rbx
  push   %rbp
  push   %r10
  mov    %r10,0xb0(%rsp)
  push   0xa8(%rsp)
  mov    0x38(%rsp),%r9
  mov    %r8,0x50(%rsp)
  mov    %edi,0x48(%rsp)
  call   <min_dom_set>
  mov    0x40(%rsp),%r14
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    0x50(%rsp),%r8
  add    $0x28,%rsp
  mov    %r15,%rsi
  movl   $0x1,(%r14)
  addl   $0x1,(%r8)
  push   0xa8(%rsp)
  push   %rbx
  push   %rbp
  mov    0xa8(%rsp),%r10
  movl   $0x0,(%r15)
  push   %r10
  push   0xa8(%rsp)
  mov    0x38(%rsp),%r9
  mov    0x48(%rsp),%edi
  mov    %r8,0x38(%rsp)
  call   <min_dom_set>
  mov    0x38(%rsp),%r8
  add    $0x30,%rsp
  movl   $0x0,(%r14)
  subl   $0x1,(%r8)
  jmp    L213
```

assistant: ```c
void min_dom_set(int level, int *n_dom, int num_choice[512], int num_dom[512], int *size, int dom[512 - 1], int *min_size, int min_dom[512 - 1], int vertex_count, int max_deg, int G[512][512]) {
  if (level == 0) {
    int i;
    for (i = 0; i < vertex_count; i++) {
      G[i][i] = 1;
    }
    *n_dom = 0;
    memset(num_choice, 0, vertex_count * sizeof(int));
    max_deg = 0;
    int j, deg_i;
    for (i = 0; i < vertex_count; i++) {
      deg_i = 0;
      for (j = 0; j < vertex_count; j++) {
        deg_i += G[i][j];
      }
      num_choice[i] = deg_i;
      if (deg_i > max_deg) {
        max_deg = deg_i;
      }
    }
    memset(num_dom, 0, vertex_count * sizeof(int));
    *size = 0;
    memset(dom, 0, vertex_count * sizeof(int));
    *min_size = vertex_count;
    memset(min_dom, 0, vertex_count * sizeof(int));
    for (i = 0; i < vertex_count; i++) {
      min_dom[i] = i;
    }
  }
  int i;
  for (i = 0; i < vertex_count; i++) {
    if (!num_choice[i]) {
      return;
    }
  }
  int u = vertex_count - *n_dom;
  int n_extra = u / max_deg + (u % max_deg != 0);
  if (*size + n_extra >= *min_size) {
    return;
  }
  if (level == vertex_count || *n_dom == vertex_count) {
    if (*size < *min_size) {
      memcpy(min_dom, dom, vertex_count * sizeof(int));
      *min_size = *size;
    }
    return;
  }
  for (i = 0; i < vertex_count; i++) {
    if (G[level][i]) {
      num_choice[i]--;
    };
  }
  min_dom_set(level + 1, n_dom, num_choice, num_dom, size, dom, min_size, min_dom, vertex_count, max_deg, G);
  for (i = 0; i < vertex_count; i++) {
    if (G[level][i]) {
      num_choice[i]++;
    };
  }
  dom[level] = 1;
  *size += 1;
  for (i = 0; i < vertex_count; i++) {
    if (G[level][i]) {
      num_dom[i]++;
    };
  }
  *n_dom = 0;
  for (i = 0; i < vertex_count; i++) {
    if (num_dom[i]) {
      *n_dom += 1;
    }
  }
  min_dom_set(level + 1, n_dom, num_choice, num_dom, size, dom, min_size, min_dom, vertex_count, max_deg, G);
  dom[level] = 0;
  *size -= 1;
  for (i = 0; i < vertex_count; i++) {
    if (G[level][i]) {
      if (num_dom[i]) {
        *n_dom -= 1;
      }
      num_dom[i]--;
    };
  }
  if (level == 0) {
    for (i = 0; i < vertex_count; i++) {
      G[i][i] = 0;
    }
  }
}
```