user: 请将以下的汇编代码转换成C语言代码：

```asm
<get_effective_genes_from_effectrxns>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  mov    %r8,%r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %ecx,%r12d
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  test   %ecx,%ecx
  jle    L52
  movslq %ecx,%rdx
  xor    %esi,%esi
  mov    %r13,%rdi
  shl    $0x2,%rdx
  call   <memset@plt>
  test   %ebp,%ebp
  jle    L157
L16:
  xor    %ebx,%ebx
  nop
L125:
  mov    (%r15,%rbx,8),%rdi
  call   <strlen@plt>
  cmp    $0x10,%eax
  jle    L182
  cmpl   $0x1,(%r14,%rbx,4)
  je     L151
L182:
  add    $0x1,%rbx
  cmp    %ebx,%ebp
  jg     L125
  test   %r12d,%r12d
  jle    L121
L157:
  test   %r12d,%r12d
  mov    $0x1,%ecx
  cmovg  %r12d,%ecx
  cmp    $0x3,%r12d
  jle    L4
  mov    %ecx,%edx
  pxor   %xmm0,%xmm0
  mov    %r13,%rax
  shr    $0x2,%edx
  movdqa %xmm0,%xmm2
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%r13,%rdx,1),%rdx
  nopl   0x0(%rax)
L185:
  movdqu (%rax),%xmm1
  add    $0x10,%rax
  pcmpgtd %xmm2,%xmm1
  psubd  %xmm1,%xmm0
  cmp    %rax,%rdx
  jne    L185
  movdqa %xmm0,%xmm1
  mov    %ecx,%edx
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%edx
  and    $0x3,%ecx
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%eax
  je     L50
L110:
  movslq %edx,%rcx
  mov    0x0(%r13,%rcx,4),%edi
  lea    0x0(,%rcx,4),%rsi
  test   %edi,%edi
  jle    L218
  add    $0x1,%eax
L218:
  lea    0x1(%rdx),%ecx
  cmp    %r12d,%ecx
  jge    L50
  mov    0x4(%r13,%rsi,1),%ecx
  test   %ecx,%ecx
  jle    L189
  add    $0x1,%eax
L189:
  add    $0x2,%edx
  cmp    %r12d,%edx
  jge    L50
  mov    0x8(%r13,%rsi,1),%edx
  test   %edx,%edx
  jle    L50
  add    $0x1,%eax
L50:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L87
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L151:
  movslq %eax,%rcx
  mov    $0xf,%eax
  jmp    L17
  nopw   0x0(%rax,%rax,1)
L120:
  mov    %r8,%rax
  cmp    %rcx,%r8
  je     L182
L17:
  mov    (%r15,%rbx,8),%rdi
  lea    0x1(%rax),%r8
  cmpb   $0x28,(%rdi,%rax,1)
  jne    L120
  add    %r8,%rdi
  lea    0x14(%rsp),%rdx
  lea    D6(%rip),%rsi
  mov    %rcx,0x8(%rsp)
  mov    %r8,(%rsp)
  call   <sscanf@plt>
  movslq 0x14(%rsp),%rax
  mov    0x8(%rsp),%rcx
  mov    (%rsp),%r8
  movl   $0x1,-0x4(%r13,%rax,4)
  jmp    L120
L52:
  test   %esi,%esi
  jg     L16
  nopl   0x0(%rax,%rax,1)
L121:
  xor    %eax,%eax
  jmp    L50
L4:
  xor    %eax,%eax
  xor    %edx,%edx
  jmp    L110
L87:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D6
datatype: string

tool: D6: %d

assistant: ```c
int get_effective_genes_from_effectrxns(char **rules, int numRxns, int *gene_effective, int num_genes, int *effectiveRxns) {
  int i, j, n, k, r, stat, stata, geneid, ctrlBrackets;
  char opera;
  for (i = 0; i < num_genes; i++)
    gene_effective[i] = 0;
  i = 0;
  for (k = 0; k < numRxns; k++) {
    n = strlen(rules[k]);
    if (n > 16 && effectiveRxns[k] == 1) {
      stat = 1;
      opera = '&';
      for (j = 15; j < n; j++) {
        if (rules[k][j] == '(') {
          ctrlBrackets = 1;
          sscanf(rules[k] + j + 1, "%d", &geneid);
          gene_effective[geneid - 1] = 1;
        }
      }
    }
  }
  r = 0;
  for (i = 0; i < num_genes; i++) {
    if (gene_effective[i] > 0)
      r++;
  }
  return r;
}
```