user: 请从给定的汇编指令推导出C源代码:

```asm
<find_n_param>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x138,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  mov    %rsi,0x8(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %ecx,0x10(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x128(%rsp)
  xor    %eax,%eax
  lea    D8(%rip),%rdi
  call   <getenv@plt>
  mov    %eax,%edi
  call   <atoi@plt>
  mov    %eax,%r13d
  mov    %rbx,%rdi
  call   <strlen@plt>
  test   %rbp,%rbp
  je     L194
  mov    %eax,%r14d
  mov    $0x0,%ebx
  not    %eax
  shr    $0x1f,%eax
  mov    %eax,0x14(%rsp)
  lea    0x20(%rsp),%r15
  mov    $0x1,%eax
  test   %r13d,%r13d
  jg     L77
  jmp    L7
L147:
  movslq %r12d,%rax
  add    %rax,%rbp
  movzbl 0x0(%rbp),%edx
  cmp    %r12d,%r13d
  jle    L87
  cmp    $0x26,%dl
  je     L87
  mov    $0x1,%eax
L208:
  mov    0x18(%rsp),%rdi
  mov    %dl,-0x1(%rdi,%rax,1)
  mov    %eax,%esi
  movzbl 0x0(%rbp,%rax,1),%edx
  lea    (%r12,%rax,1),%ecx
  add    $0x1,%rax
  cmp    %r13d,%ecx
  jge    L195
  cmp    $0x26,%dl
  jne    L208
L195:
  movslq %esi,%rsi
  mov    0x18(%rsp),%rax
  movb   $0x0,(%rax,%rsi,1)
  mov    $0x0,%eax
L7:
  mov    0x128(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L11
  add    $0x138,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L87:
  mov    $0x0,%esi
  jmp    L195
L198:
  mov    $0x0,%edx
L46:
  lea    0x1(%rbx),%r12d
  movslq %edx,%rdx
  movb   $0x0,0x20(%rsp,%rdx,1)
  mov    0x10(%rsp),%edx
  mov    0x8(%rsp),%rsi
  mov    %r15,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L147
  movslq %r12d,%rax
  cmpb   $0x26,0x0(%rbp,%rax,1)
  je     L177
  cmp    %r12d,%r13d
  setg   %al
  add    $0x2,%ebx
  movslq %ebx,%rbx
  test   %al,%al
  je     L177
L168:
  mov    %ebx,%r12d
  cmpb   $0x26,0x0(%rbp,%rbx,1)
  setne  %dl
  cmp    %ebx,%r13d
  setg   %al
  add    $0x1,%rbx
  test   %al,%dl
  jne    L168
L177:
  lea    0x1(%r12),%ebx
  cmp    %ebx,%r13d
  jle    L149
L77:
  movslq %ebx,%rdi
  movzbl 0x0(%rbp,%rdi,1),%ecx
  cmpb   $0x0,0x14(%rsp)
  je     L198
  cmp    $0x3d,%cl
  setne  %r8b
  lea    0x1(%rbx),%eax
  cltq
  mov    $0x0,%edx
  mov    %r15,%rsi
  sub    %rdi,%rsi
  test   %r8b,%r8b
  je     L198
L118:
  mov    %cl,-0x1(%rsi,%rax,1)
  mov    %eax,%ebx
  add    $0x1,%edx
  movzbl 0x0(%rbp,%rax,1),%ecx
  add    $0x1,%rax
  cmp    %edx,%r14d
  jl     L46
  cmp    $0x3d,%cl
  jne    L118
  jmp    L46
L194:
  mov    $0x1,%eax
  jmp    L7
L149:
  mov    $0x1,%eax
  jmp    L7
L11:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D8
type_infered: string

tool: D8: CONTENT_LENGTH

assistant: ```c
int find_n_param(char *buffer, char *nomeobj, char *valore_out, int n_max) {
  int param_length = atoi(getenv("CONTENT_LENGTH"));
  int i = 0, j = 0;
  char nomeparam[255];
  int n_nomeobj = strlen(nomeobj);
  if (buffer == NULL)
    return 1;
  while (i < param_length) {
    j = 0;
    while ((buffer[i] != '=') && (j <= n_nomeobj)) {
      nomeparam[j] = buffer[i];
      i++;
      j++;
    }
    i++;
    nomeparam[j] = '\0';
    if (strncmp(nomeparam, nomeobj, n_max) == 0) {
      j = 0;
      while ((buffer[i] != '&') && (i < param_length)) {
        valore_out[j] = buffer[i];
        i++;
        j++;
      }
      valore_out[j] = '\0';
      return 0;
    } else {
      while ((buffer[i] != '&') && (i < param_length))
        i++;
      i++;
    }
  }
  return 1;
}
```