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

```asm
<split_audit_objective>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x58,%rsp
  mov    %rdi,%r15
  mov    %rsi,0x20(%rsp)
  mov    %rdx,0x8(%rsp)
  mov    %rcx,0x18(%rsp)
  mov    %r8,0x28(%rsp)
  mov    %r9,0x30(%rsp)
  mov    0x2090(%rsp),%rax
  mov    %rax,%rdi
  mov    %rax,0x38(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x2048(%rsp)
  xor    %eax,%eax
  movl   $0x3e7,(%rdi)
  test   %r15,%r15
  je     L329
  test   %rsi,%rsi
  je     L329
  test   %rdx,%rdx
  je     L773
  test   %rcx,%rcx
  je     L773
  mov    %r15,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L751
  lea    D94(%rip),%rsi
  mov    %r15,%rdi
  call   <strstr@plt>
  mov    %rax,%rbp
  lea    D162(%rip),%rsi
  mov    %r15,%rdi
  call   <strstr@plt>
  mov    %rax,0x10(%rsp)
  lea    D137(%rip),%rsi
  mov    %r15,%rdi
  call   <strstr@plt>
  mov    %rax,%r12
  lea    D57(%rip),%rsi
  mov    %r15,%rdi
  call   <strstr@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L187
L169:
  lea    D157(%rip),%rsi
  mov    %r15,%rdi
  call   <strstr@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L756
L318:
  mov    %r15,%rdi
  call   <strlen@plt>
  movslq %eax,%r13
  add    %r15,%r13
  cmpq   $0x0,0x10(%rsp)
  je     L20
  test   %rbp,%rbp
  je     L20
  lea    D94(%rip),%rdi
  call   <strlen@plt>
  cltq
  add    %rbp,%rax
  movzbl (%rax),%edx
  test   %dl,%dl
  je     L356
  cmp    %rax,%rbp
  je     L167
  cmp    %rax,%r12
  je     L167
  cmp    %rax,%r14
  setne  %sil
  cmp    %rax,%rbx
  setne  %cl
  test   %cl,%sil
  je     L205
  cmp    %rax,%r13
  je     L205
  lea    0x40(%rsp),%rcx
L286:
  mov    %dl,(%rcx)
  add    $0x1,%rcx
  add    $0x1,%rax
  movzbl (%rax),%edx
  test   %dl,%dl
  je     L55
  cmp    %rax,%rbp
  je     L55
  cmp    %rax,%r12
  je     L55
  cmp    %rax,%r14
  setne  %dil
  cmp    %rax,%rbx
  setne  %sil
  test   %sil,%dil
  je     L55
  cmp    %rax,%r13
  jne    L286
L55:
  movb   $0x0,(%rcx)
  lea    0x40(%rsp),%r15
  mov    %r15,%rdi
  call   <trim@plt>
  mov    %r15,%rdi
  call   <atoi@plt>
  mov    %eax,%r15d
  mov    $0x4,%eax
  cmp    %eax,%r15d
  cmovg  %eax,%r15d
  test   %r15d,%r15d
  mov    $0x0,%eax
  cmovs  %eax,%r15d
  lea    D162(%rip),%rdi
  call   <strlen@plt>
  cltq
  add    0x10(%rsp),%rax
  movzbl (%rax),%edx
  test   %dl,%dl
  je     L444
  cmp    %rax,%rbp
  je     L754
  cmp    %rax,%r12
  je     L754
  cmp    %rax,%r14
  setne  %sil
  cmp    %rax,%rbx
  setne  %cl
  test   %cl,%sil
  je     L281
  cmp    %rax,%r13
  je     L281
  mov    0x20(%rsp),%rcx
L515:
  mov    %dl,(%rcx)
  add    $0x1,%rcx
  add    $0x1,%rax
  movzbl (%rax),%edx
  test   %dl,%dl
  je     L290
  cmp    %rax,%rbp
  je     L290
  cmp    %rax,%r12
  je     L290
  cmp    %rax,%r14
  setne  %dil
  cmp    %rax,%rbx
  setne  %sil
  test   %sil,%dil
  je     L290
  cmp    %rax,%r13
  jne    L515
L290:
  movb   $0x0,(%rcx)
  mov    0x20(%rsp),%rdi
  call   <trim@plt>
  mov    $0x3e7,%eax
  test   %r12,%r12
  je     L251
  lea    D137(%rip),%rdi
  call   <strlen@plt>
  cltq
  add    %r12,%rax
  mov    %rax,0x20(%rsp)
  lea    D209(%rip),%rsi
  mov    %rax,%rdi
  call   <regmatchInsensitive@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  je     L186
L251:
  mov    0x38(%rsp),%rdi
  mov    %eax,(%rdi)
  test   %r14,%r14
  je     L577
  mov    0x28(%rsp),%rax
  cmpl   $0x0,(%rax)
  je     L371
  lea    D50(%rip),%rdi
  call   <strlen@plt>
  cltq
  add    %r14,%rax
L308:
  movzbl (%rax),%ecx
  test   %cl,%cl
  je     L230
  cmp    %rbp,%rax
  je     L785
  cmp    %r12,%rax
  je     L785
  cmp    %rax,%rbx
  setne  %sil
  mov    0x10(%rsp),%r8
  cmp    %r8,%rax
  setne  %dl
  test   %dl,%sil
  je     L739
  cmp    %r13,%rax
  je     L739
  mov    0x8(%rsp),%rdx
L486:
  mov    %cl,(%rdx)
  add    $0x1,%rax
  add    $0x1,%rdx
  movzbl (%rax),%ecx
  test   %cl,%cl
  je     L588
  cmp    %rax,%rbp
  je     L588
  cmp    %rax,%r12
  je     L588
  cmp    %rax,%rbx
  setne  %dil
  cmp    %rax,%r8
  setne  %sil
  test   %sil,%dil
  je     L588
  cmp    %rax,%r13
  jne    L486
L588:
  movb   $0x0,(%rdx)
  mov    0x8(%rsp),%rdi
  call   <trim@plt>
  mov    0x8(%rsp),%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  jne    L589
  lea    D154(%rip),%rsi
  mov    0x8(%rsp),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L607
L589:
  mov    0x8(%rsp),%rdi
  call   <strlen@plt>
  cmp    $0x3,%eax
  je     L247
L577:
  test   %rbx,%rbx
  je     L90
  mov    0x30(%rsp),%rax
  cmpl   $0x0,(%rax)
  je     L782
  lea    D144(%rip),%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
L797:
  movzbl (%rbx),%edx
  test   %dl,%dl
  je     L399
  cmp    %rbp,%rbx
  je     L772
  cmp    %r12,%rbx
  je     L772
  mov    0x10(%rsp),%rdi
  cmp    %rdi,%rbx
  setne  %cl
  cmp    %rbx,%r14
  setne  %al
  test   %al,%cl
  je     L820
  cmp    %r13,%rbx
  je     L820
  mov    0x18(%rsp),%rax
L570:
  mov    %dl,(%rax)
  add    $0x1,%rbx
  add    $0x1,%rax
  movzbl (%rbx),%edx
  test   %dl,%dl
  je     L777
  cmp    %rbx,%rbp
  je     L777
  cmp    %rbx,%r12
  je     L777
  cmp    %rbx,%rdi
  setne  %sil
  cmp    %rbx,%r14
  setne  %cl
  test   %cl,%sil
  je     L777
  cmp    %rbx,%r13
  jne    L570
L777:
  movb   $0x0,(%rax)
  mov    0x18(%rsp),%rbx
  mov    %rbx,%rdi
  call   <trim@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  jne    L641
  lea    D154(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L165
L641:
  mov    0x18(%rsp),%rdi
  call   <strlen@plt>
  cmp    $0x3,%eax
  je     L254
L90:
  mov    0x2048(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L240
  mov    %r15d,%eax
  add    $0x2058,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L187:
  lea    D50(%rip),%rsi
  mov    %r15,%rdi
  call   <strstr@plt>
  mov    %rax,%r14
  cmp    $0x1,%rax
  sbb    %eax,%eax
  or     $0x1,%eax
  mov    0x28(%rsp),%rbx
  mov    %eax,(%rbx)
  jmp    L169
L756:
  lea    D144(%rip),%rsi
  mov    %r15,%rdi
  call   <strstr@plt>
  mov    %rax,%rbx
  cmp    $0x1,%rax
  sbb    %eax,%eax
  or     $0x1,%eax
  mov    0x30(%rsp),%rdi
  mov    %eax,(%rdi)
  jmp    L318
L20:
  mov    %r15,%rdx
  lea    D65(%rip),%rsi
  mov    $0x1,%edi
  call   <slog@plt>
  mov    $0xffffffff,%r15d
  jmp    L90
L356:
  lea    0x40(%rsp),%rcx
  jmp    L55
L167:
  lea    0x40(%rsp),%rcx
  jmp    L55
L205:
  lea    0x40(%rsp),%rcx
  jmp    L55
L444:
  mov    0x20(%rsp),%rcx
  jmp    L290
L754:
  mov    0x20(%rsp),%rcx
  jmp    L290
L281:
  mov    0x20(%rsp),%rcx
  jmp    L290
L186:
  lea    D164(%rip),%rsi
  mov    0x20(%rsp),%rdi
  call   <regmatchInsensitive@plt>
  cmp    $0x1,%rax
  sbb    %eax,%eax
  and    $0x3e7,%eax
  jmp    L251
L371:
  lea    D57(%rip),%rdi
  call   <strlen@plt>
  cltq
  add    %r14,%rax
  jmp    L308
L230:
  mov    0x8(%rsp),%rdx
  jmp    L588
L785:
  mov    0x8(%rsp),%rdx
  jmp    L588
L739:
  mov    0x8(%rsp),%rdx
  jmp    L588
L247:
  lea    D83(%rip),%rsi
  mov    0x8(%rsp),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L577
L607:
  mov    0x8(%rsp),%rax
  movb   $0x0,(%rax)
  jmp    L577
L782:
  lea    D157(%rip),%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
  jmp    L797
L399:
  mov    0x18(%rsp),%rax
  jmp    L777
L772:
  mov    0x18(%rsp),%rax
  jmp    L777
L820:
  mov    0x18(%rsp),%rax
  jmp    L777
L254:
  lea    D83(%rip),%rsi
  mov    0x18(%rsp),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L90
L165:
  mov    0x18(%rsp),%rax
  movb   $0x0,(%rax)
  jmp    L90
L329:
  mov    $0xffffffff,%r15d
  jmp    L90
L773:
  mov    $0xffffffff,%r15d
  jmp    L90
L751:
  mov    $0xffffffff,%r15d
  jmp    L90
L240:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D94
type: string
name: read_data
arguments: data_label: D162
type: string
name: read_data
arguments: data_label: D137
type: string
name: read_data
arguments: data_label: D57
type: string
name: read_data
arguments: data_label: D157
type: string
name: read_data
arguments: data_label: D209
type: string
name: read_data
arguments: data_label: D50
type: string
name: read_data
arguments: data_label: D154
type: string
name: read_data
arguments: data_label: D144
type: string
name: read_data
arguments: data_label: D65
type: string
name: read_data
arguments: data_label: D164
type: string
name: read_data
arguments: data_label: D83
type: string

tool: D94: criticality=

tool: D162: event=

tool: D137: return=

tool: D57: user=

tool: D157: match=

tool: D209: ^[(]?success[)]?

tool: D50: user!=

tool: D154: *

tool: D144: match!=

tool: D65: The following line does not contain the criticality, event: [%s]

tool: D164: ^[(]?failure[)]?

tool: D83: (*)

assistant: ```c
int split_audit_objective(char *string, char *event, char *user, char *match, int *excludeflag, int *excludematchflag, int *returncode) {
  char *startevent, *startuser, *startmatch, *startcrit, *startreturn;
  char *stringpointer, *endstring;
  char *eventp, *userp, *matchp, *critp;
  char criticality[8192];
  int crit = 0;
  *returncode = 999;
  if (string == (char *)NULL || event == (char *)NULL || user == (char *)NULL || match == (char *)NULL) {
    return (-1);
  }
  if (!strlen(string)) {
    return (-1);
  }
  startcrit = strstr(string, "criticality=");
  startevent = strstr(string, "event=");
  startreturn = strstr(string, "return=");
  startuser = strstr(string, "user=");
  if (startuser == (char *)NULL) {
    startuser = strstr(string, "user!=");
    if (startuser != (char *)NULL) {
      *excludeflag = 1;
    } else {
      *excludeflag = -1;
    }
  }
  startmatch = strstr(string, "match=");
  if (startmatch == (char *)NULL) {
    startmatch = strstr(string, "match!=");
    if (startmatch != (char *)NULL) {
      *excludematchflag = 1;
    } else {
      *excludematchflag = -1;
    }
  }
  stringpointer = string;
  eventp = event;
  userp = user;
  matchp = match;
  critp = criticality;
  endstring = &string[strlen(string)];
  if (startevent == (char *)NULL || startcrit == (char *)NULL) {
    slog(1, "The following line does not contain the criticality, event: [%s]", string);
    return (-1);
  }
  stringpointer = startcrit + strlen("criticality=");
  while (*stringpointer && (stringpointer != startcrit && stringpointer != startreturn && stringpointer != startuser && stringpointer != startmatch && stringpointer != endstring)) {
    *critp = *stringpointer;
    critp++;
    stringpointer++;
  }
  *critp = '\0';
  trim(criticality);
  crit = atoi(criticality);
  if (crit < 0)
    crit = 0;
  if (crit > 4)
    crit = 4;
  stringpointer = startevent + strlen("event=");
  while (*stringpointer && (stringpointer != startcrit && stringpointer != startreturn && stringpointer != startuser && stringpointer != startmatch && stringpointer != endstring)) {
    *eventp = *stringpointer;
    eventp++;
    stringpointer++;
  }
  *eventp = '\0';
  trim(event);
  if (startreturn != (char *)NULL) {
    stringpointer = startreturn + strlen("return=");
    if (regmatchInsensitive(stringpointer, "^[(]?success[)]?")) {
      *returncode = 1;
    } else if (regmatchInsensitive(stringpointer, "^[(]?failure[)]?")) {
      *returncode = 0;
    } else {
      *returncode = 999;
    }
  } else {
    *returncode = 999;
  }
  if (startuser != (char *)NULL) {
    if (*excludeflag) {
      stringpointer = startuser + strlen("user!=");
    } else {
      stringpointer = startuser + strlen("user=");
    }
    while (*stringpointer && (stringpointer != startcrit && stringpointer != startreturn && stringpointer != startmatch && stringpointer != startevent && stringpointer != endstring)) {
      *userp = *stringpointer;
      stringpointer++;
      userp++;
    }
    *userp = '\0';
    trim(user);
    if (((strlen(user) == 1) && (!strcmp(user, "*"))) || ((strlen(user) == 3) && (!strcmp(user, "(*)")))) {
      user[0] = '\0';
    }
  }
  if (startmatch != (char *)NULL) {
    if (*excludematchflag) {
      stringpointer = startmatch + strlen("match!=");
    } else {
      stringpointer = startmatch + strlen("match=");
    }
    while (*stringpointer && (stringpointer != startcrit && stringpointer != startreturn && stringpointer != startevent && stringpointer != startuser && stringpointer != endstring)) {
      *matchp = *stringpointer;
      stringpointer++;
      matchp++;
    }
    *matchp = '\0';
    trim(match);
    if (((strlen(match) == 1) && (!strcmp(match, "*"))) || ((strlen(match) == 3) && (!strcmp(match, "(*)")))) {
      match[0] = '\0';
    }
  }
  return (crit);
}
```