user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<get_effective_genes_from_effectrxns>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %ecx,-0x40(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x24(%rbp)
  jmp    L33
L113:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x24(%rbp)
L33:
  mov    -0x24(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L113
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L96
L64:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x14(%rbp)
  cmpl   $0x10,-0x14(%rbp)
  jle    L93
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x1,%eax
  jne    L93
  movl   $0x1,-0x10(%rbp)
  movb   $0x26,-0x29(%rbp)
  movl   $0xf,-0x20(%rbp)
  jmp    L101
L97:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  jne    L106
  movl   $0x1,-0xc(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    (%rdx,%rax,1),%rcx
  lea    -0x28(%rbp),%rax
  mov    %rax,%rdx
  lea    D0(%rip),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <sscanf@plt>
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
L106:
  addl   $0x1,-0x20(%rbp)
L101:
  mov    -0x20(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L97
L93:
  addl   $0x1,-0x1c(%rbp)
L96:
  mov    -0x1c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L64
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L31
L40:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L126
  addl   $0x1,-0x18(%rbp)
L126:
  addl   $0x1,-0x24(%rbp)
L31:
  mov    -0x24(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L40
  mov    -0x18(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L89
  call   <__stack_chk_fail@plt>
L89:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D0
datatype: string

tool: D0: %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;
}
```