user: What is the c source code of the assembly code below:

```asm
<get_global_flags_old>:
  endbr64
  push   %r15
  mov    %rdx,%r11
  mov    %rcx,%r10
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x108,%rsp
  mov    0x140(%rsp),%rax
  mov    %rdx,0x28(%rsp)
  mov    %rdi,0x8(%rsp)
  mov    0x150(%rsp),%rdx
  mov    %rax,0x38(%rsp)
  mov    %rax,%rbx
  mov    0x148(%rsp),%eax
  mov    %rsi,0x10(%rsp)
  mov    %rcx,0x30(%rsp)
  mov    %r8,0x18(%rsp)
  mov    %r9,0x20(%rsp)
  mov    %fs:0x28,%rcx
  mov    %rcx,0xf8(%rsp)
  xor    %ecx,%ecx
  movb   $0x0,(%rbx)
  movq   $0x0,(%r10)
  movq   $0x0,(%r11)
  movq   $0x0,(%rdi)
  movq   $0x0,(%rsi)
  movq   $0x0,(%r8)
  movq   $0x0,(%r9)
  cmp    $0x1,%eax
  jle    L758
  sub    $0x2,%eax
  lea    0x8(%rdx),%rbp
  lea    0x50(%rsp),%rbx
  lea    0x10(%rdx,%rax,8),%r14
  lea    D97(%rip),%r13
  lea    D53(%rip),%r15
L306:
  mov    0x0(%rbp),%rsi
  mov    $0x20,%edx
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <strncpy2@plt>
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <strlower@plt>
  mov    $0x4,%edx
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L438
  mov    $0x7,%edx
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L254
  mov    $0x6,%edx
  mov    %rbx,%rsi
  lea    D178(%rip),%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L520
  mov    $0x9,%edx
  mov    %rbx,%rsi
  lea    D100(%rip),%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L471
  cmpl   $0x6867696e,(%rbx)
  je     L718
L392:
  movabs $0x746867696e746f6e,%rax
  cmp    %rax,(%rbx)
  je     L554
L295:
  cmpl   $0x6b726164,(%rbx)
  je     L747
L141:
  movabs $0x6b726164746f6e,%rax
  cmp    %rax,(%rbx)
  je     L175
  cmpl   $0x706d6174,(%rbx)
  je     L664
L268:
  movabs $0x65706d6174746f6e,%rax
  cmp    %rax,(%rbx)
  je     L725
L609:
  cmpl   $0x656d7261,(%rbx)
  je     L539
L274:
  movabs $0x64656d7261746f6e,%rax
  cmp    %rax,(%rbx)
  je     L41
L192:
  movabs $0x64656d7261736964,%rax
  cmp    %rax,(%rbx)
  je     L387
L714:
  movabs $0x7261736964746f6e,%rax
  cmp    %rax,(%rbx)
  je     L250
L133:
  movabs $0x69646e65706d7261,%rax
  cmp    %rax,(%rbx)
  je     L51
L472:
  movabs $0x65706d7261746f6e,%rax
  cmp    %rax,(%rbx)
  je     L625
L116:
  mov    %rbx,%rsi
  lea    D183(%rip),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L678
  mov    0x28(%rsp),%rax
  orq    $0x80000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
  nopl   0x0(%rax)
L438:
  lea    0x48(%rsp),%rsi
  lea    0x54(%rsp),%rdi
  mov    $0xa,%edx
  call   <strtol@plt>
  lea    D74(%rip),%rdi
  mov    %eax,%r12d
  mov    0x48(%rsp),%rax
  movsbl (%rax),%esi
  call   <strchr@plt>
  test   %rax,%rax
  je     L289
  lea    -0x1(%r12),%ecx
  mov    0x0(%rbp),%rdx
  cmp    $0x1f,%ecx
  ja     L289
  mov    $0x1,%eax
  shl    %cl,%rax
  mov    0x8(%rsp),%rcx
  or     %rax,(%rcx)
  movb   $0x0,(%rdx)
L375:
  add    $0x8,%rbp
  cmp    %r14,%rbp
  jne    L306
L758:
  mov    0x28(%rsp),%rax
  mov    0x30(%rsp),%rcx
  mov    (%rax),%rax
  mov    (%rcx),%rdx
  or     %rax,%rdx
  test   $0x80000,%edx
  je     L24
  test   $0x140000,%eax
  jne    L24
  mov    0x28(%rsp),%rcx
  or     $0x40000,%rax
  mov    %rax,(%rcx)
L24:
  mov    0x8(%rsp),%rax
  mov    0x10(%rsp),%rcx
  mov    (%rax),%rax
  and    (%rcx),%rax
  je     L433
  lea    D64(%rip),%rdi
  xor    %eax,%eax
  call   <store_error_message@plt>
  mov    $0xffffffff,%eax
  nop
L199:
  mov    0xf8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L677
  add    $0x108,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L254:
  lea    0x48(%rsp),%rsi
  lea    0x57(%rsp),%rdi
  mov    $0xa,%edx
  call   <strtol@plt>
  lea    D74(%rip),%rdi
  mov    %eax,%r12d
  mov    0x48(%rsp),%rax
  movsbl (%rax),%esi
  call   <strchr@plt>
  test   %rax,%rax
  je     L127
  lea    -0x1(%r12),%ecx
  mov    0x0(%rbp),%rdx
  cmp    $0x1f,%ecx
  ja     L127
  mov    $0x1,%eax
  shl    %cl,%rax
  mov    0x10(%rsp),%rcx
  or     %rax,(%rcx)
  movb   $0x0,(%rdx)
  jmp    L375
  xchg   %ax,%ax
L520:
  lea    0x48(%rsp),%rsi
  lea    0x56(%rsp),%rdi
  mov    $0xa,%edx
  call   <strtol@plt>
  lea    D74(%rip),%rdi
  mov    %eax,%r12d
  mov    0x48(%rsp),%rax
  movsbl (%rax),%esi
  call   <strchr@plt>
  test   %rax,%rax
  je     L607
  lea    -0x1(%r12),%ecx
  mov    0x0(%rbp),%rdx
  cmp    $0x1f,%ecx
  ja     L607
  mov    $0x1,%eax
  shl    %cl,%rax
  mov    0x18(%rsp),%rcx
  or     %rax,(%rcx)
  movb   $0x0,(%rdx)
  jmp    L375
  xchg   %ax,%ax
L471:
  lea    0x48(%rsp),%rsi
  lea    0x59(%rsp),%rdi
  mov    $0xa,%edx
  call   <strtol@plt>
  lea    D74(%rip),%rdi
  mov    %eax,%r12d
  mov    0x48(%rsp),%rax
  movsbl (%rax),%esi
  call   <strchr@plt>
  test   %rax,%rax
  je     L276
  lea    -0x1(%r12),%ecx
  mov    0x0(%rbp),%rdx
  cmp    $0x1f,%ecx
  ja     L276
  mov    $0x1,%eax
  shl    %cl,%rax
  mov    0x20(%rsp),%rcx
  or     %rax,(%rcx)
  movb   $0x0,(%rdx)
  jmp    L375
  xchg   %ax,%ax
L718:
  cmpw   $0x74,0x4(%rbx)
  jne    L392
  mov    0x28(%rsp),%rax
  orq    $0x10000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
  nopl   0x0(%rax,%rax,1)
L554:
  cmpb   $0x0,0x8(%rbx)
  jne    L295
  mov    0x30(%rsp),%rax
  orq    $0x10000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
  nopw   0x0(%rax,%rax,1)
L747:
  cmpb   $0x0,0x4(%rbx)
  jne    L141
  mov    0x28(%rsp),%rax
  orq    $0x20000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
  nopw   0x0(%rax,%rax,1)
L289:
  mov    0x0(%rbp),%rdx
  lea    0x70(%rsp),%r12
  lea    D42(%rip),%rsi
L11:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <store_error_message@plt>
  mov    $0xffffffff,%eax
  jmp    L199
L664:
  cmpw   $0x7265,0x4(%rbx)
  jne    L268
  cmpb   $0x0,0x6(%rbx)
  jne    L268
  mov    0x28(%rsp),%rax
  orq    $0x200000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
  nopl   0x0(%rax)
L127:
  mov    0x0(%rbp),%rdx
  lea    0x70(%rsp),%r12
  lea    D138(%rip),%rsi
  jmp    L11
  nopw   0x0(%rax,%rax,1)
L175:
  mov    0x30(%rsp),%rax
  orq    $0x20000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
L607:
  mov    0x0(%rbp),%rdx
  lea    0x70(%rsp),%r12
  lea    D29(%rip),%rsi
  jmp    L11
L433:
  mov    0x18(%rsp),%rax
  mov    0x20(%rsp),%rcx
  mov    (%rax),%rax
  and    (%rcx),%rax
  je     L233
  lea    D62(%rip),%rdi
  xor    %eax,%eax
  call   <store_error_message@plt>
  mov    $0xffffffff,%eax
  jmp    L199
L276:
  mov    0x0(%rbp),%rdx
  lea    0x70(%rsp),%r12
  lea    D155(%rip),%rsi
  jmp    L11
L725:
  cmpw   $0x72,0x8(%rbx)
  jne    L609
  mov    0x30(%rsp),%rax
  orq    $0x200000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
L41:
  cmpb   $0x0,0x8(%rbx)
  jne    L192
  mov    0x30(%rsp),%rax
  orq    $0x40000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
L233:
  mov    0x28(%rsp),%rax
  mov    0x30(%rsp),%rcx
  mov    (%rax),%rax
  and    (%rcx),%rax
  jne    L168
  mov    0x38(%rsp),%rax
  cmpb   $0x3,(%rax)
  je     L671
  xor    %eax,%eax
  jmp    L199
L539:
  cmpw   $0x64,0x4(%rbx)
  jne    L274
  mov    0x28(%rsp),%rax
  orq    $0x40000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
L387:
  cmpb   $0x0,0x8(%rbx)
  jne    L714
  mov    0x30(%rsp),%rax
  orq    $0x140000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
L250:
  cmpl   $0x64656d,0x8(%rbx)
  jne    L133
  mov    0x28(%rsp),%rax
  orq    $0x140000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
L51:
  cmpw   $0x676e,0x8(%rbx)
  jne    L472
  cmpb   $0x0,0xa(%rbx)
  jne    L472
  mov    0x28(%rsp),%rax
  orq    $0x100000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
L625:
  cmpl   $0x6e69646e,0x8(%rbx)
  jne    L116
  cmpw   $0x67,0xc(%rbx)
  jne    L116
  mov    0x30(%rsp),%rax
  orq    $0x100000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
L677:
  call   <__stack_chk_fail@plt>
L678:
  mov    %rbx,%rsi
  lea    D1(%rip),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L96
  mov    0x30(%rsp),%rax
  orq    $0x80000,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
L671:
  lea    D14(%rip),%rdi
  xor    %eax,%eax
  call   <store_error_message@plt>
  or     $0xffffffff,%eax
  jmp    L199
L168:
  lea    D28(%rip),%rdi
  xor    %eax,%eax
  call   <store_error_message@plt>
  or     $0xffffffff,%eax
  jmp    L199
L96:
  mov    %rbx,%rsi
  lea    D70(%rip),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L522
  mov    0x38(%rsp),%rax
  orb    $0x1,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
L522:
  mov    %rbx,%rsi
  lea    D140(%rip),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L375
  mov    0x38(%rsp),%rax
  orb    $0x2,(%rax)
  mov    0x0(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L375
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D97
datatype: string
name: extract_symbolic_data
arguments: data_tag: D53
datatype: string
name: extract_symbolic_data
arguments: data_tag: D178
datatype: string
name: extract_symbolic_data
arguments: data_tag: D100
datatype: string
name: extract_symbolic_data
arguments: data_tag: D183
datatype: string
name: extract_symbolic_data
arguments: data_tag: D74
datatype: string
name: extract_symbolic_data
arguments: data_tag: D64
datatype: string
name: extract_symbolic_data
arguments: data_tag: D42
datatype: string
name: extract_symbolic_data
arguments: data_tag: D138
datatype: string
name: extract_symbolic_data
arguments: data_tag: D29
datatype: string
name: extract_symbolic_data
arguments: data_tag: D62
datatype: string
name: extract_symbolic_data
arguments: data_tag: D155
datatype: string
name: extract_symbolic_data
arguments: data_tag: D1
datatype: string
name: extract_symbolic_data
arguments: data_tag: D14
datatype: string
name: extract_symbolic_data
arguments: data_tag: D28
datatype: string
name: extract_symbolic_data
arguments: data_tag: D70
datatype: string
name: extract_symbolic_data
arguments: data_tag: D140
datatype: string

tool: D97: flag

tool: D53: notflag

tool: D178: czflag

tool: D100: notczflag

tool: D183: home

tool: D74:  /t/n

tool: D64: Conflicting common flag/notflag in launch conditions.

tool: D42: Invalid flag launch parameter '%s'

tool: D138: Invalid notflag launch parameter '%s'

tool: D29: Invalid cxflag launch parameter '%s'

tool: D62: Conflicting czflag/notczflag in launch conditions.

tool: D155: Invalid notczflag launch parameter '%s'

tool: D1: away

tool: D14: Conflicting continue/break in launch conditions.

tool: D28: Conflicting global flag/notflag in launch conditions.

tool: D70: continue

tool: D140: break

assistant: ```c
int get_global_flags_old(unsigned long *cflags, unsigned long *notcflags, unsigned long *sflags, unsigned long *notsflags, unsigned long *czflags, unsigned long *notczflags, unsigned char *scanmode, int tokc, char **tokv) {
  int k, flag;
  char *sp;
  char errmsg[128];
  char tbuf[32];
  *sflags = *notsflags = *scanmode = 0;
  for (k = 0; k < 1; k++) {
    cflags[k] = 0;
    notcflags[k] = 0;
  }
  for (k = 0; k < 1; k++) {
    czflags[k] = 0;
    notczflags[k] = 0;
  }
  for (k = 1; k < tokc; k++) {
    strncpy2(tbuf, tokv[k], (sizeof(tbuf)));
    strlower(tbuf);
    if (strncmp("flag", tbuf, 4) == 0) {
      flag = (int)strtol(tbuf + 4, &sp, 10);
      if (!strchr(" /t/n", *sp) || flag < 1 || flag > (32 * 1)) {
        sprintf(errmsg, "Invalid flag launch parameter '%s'", tokv[k]);
        store_error_message(errmsg);
        return -1;
      }
      cflags[(flag - 1) / 32] |= 1UL << ((flag - 1) % 32);
      *tokv[k] = '\0';
    } else if (strncmp("notflag", tbuf, 7) == 0) {
      flag = (int)strtol(tbuf + 7, &sp, 10);
      if (!strchr(" /t/n", *sp) || flag < 1 || flag > (32 * 1)) {
        sprintf(errmsg, "Invalid notflag launch parameter '%s'", tokv[k]);
        store_error_message(errmsg);
        return -1;
      }
      notcflags[(flag - 1) / 32] |= 1UL << ((flag - 1) % 32);
      *tokv[k] = '\0';
    } else if (strncmp("czflag", tbuf, 6) == 0) {
      flag = (int)strtol(tbuf + 6, &sp, 10);
      if (!strchr(" /t/n", *sp) || flag < 1 || flag > (32 * 1)) {
        sprintf(errmsg, "Invalid cxflag launch parameter '%s'", tokv[k]);
        store_error_message(errmsg);
        return -1;
      }
      czflags[(flag - 1) / 32] |= 1UL << ((flag - 1) % 32);
      *tokv[k] = '\0';
    } else if (strncmp("notczflag", tbuf, 9) == 0) {
      flag = (int)strtol(tbuf + 9, &sp, 10);
      if (!strchr(" /t/n", *sp) || flag < 1 || flag > (32 * 1)) {
        sprintf(errmsg, "Invalid notczflag launch parameter '%s'", tokv[k]);
        store_error_message(errmsg);
        return -1;
      }
      notczflags[(flag - 1) / 32] |= 1UL << ((flag - 1) % 32);
      *tokv[k] = '\0';
    } else if (strcmp("night", tbuf) == 0) {
      *sflags |= (0x01 << 16);
      *tokv[k] = '\0';
    } else if (strcmp("notnight", tbuf) == 0) {
      *notsflags |= (0x01 << 16);
      *tokv[k] = '\0';
    } else if (strcmp("dark", tbuf) == 0) {
      *sflags |= (0x02 << 16);
      *tokv[k] = '\0';
    } else if (strcmp("notdark", tbuf) == 0) {
      *notsflags |= (0x02 << 16);
      *tokv[k] = '\0';
    } else if (strcmp("tamper", tbuf) == 0) {
      *sflags |= (0x08 << 18);
      *tokv[k] = '\0';
    } else if (strcmp("nottamper", tbuf) == 0) {
      *notsflags |= (0x08 << 18);
      *tokv[k] = '\0';
    } else if (strcmp("armed", tbuf) == 0) {
      *sflags |= (0x01 << 18);
      *tokv[k] = '\0';
    } else if (strcmp("notarmed", tbuf) == 0) {
      *notsflags |= (0x01 << 18);
      *tokv[k] = '\0';
    } else if (strcmp("disarmed", tbuf) == 0) {
      *notsflags |= ((0x01 << 18) | (0x04 << 18));
      *tokv[k] = '\0';
    } else if (strcmp("notdisarmed", tbuf) == 0) {
      *sflags |= ((0x01 << 18) | (0x04 << 18));
      *tokv[k] = '\0';
    } else if (strcmp("armpending", tbuf) == 0) {
      *sflags |= (0x04 << 18);
      *tokv[k] = '\0';
    } else if (strcmp("notarmpending", tbuf) == 0) {
      *notsflags |= (0x04 << 18);
      *tokv[k] = '\0';
    } else if (strcmp("home", tbuf) == 0) {
      *sflags |= (0x02 << 18);
      *tokv[k] = '\0';
    } else if (strcmp("away", tbuf) == 0) {
      *notsflags |= (0x02 << 18);
      *tokv[k] = '\0';
    } else if (strcmp("continue", tbuf) == 0) {
      *scanmode |= 1;
      *tokv[k] = '\0';
    } else if (strcmp("break", tbuf) == 0) {
      *scanmode |= 2;
      *tokv[k] = '\0';
    }
  }
  if (((*sflags | *notsflags) & (0x02 << 18)) && !(*sflags & ((0x01 << 18) | (0x04 << 18)))) {
    *sflags |= (0x01 << 18);
  }
  for (k = 0; k < 1; k++) {
    if (cflags[k] & notcflags[k]) {
      store_error_message("Conflicting common flag/notflag in launch conditions.");
      return -1;
    }
  }
  for (k = 0; k < 1; k++) {
    if (czflags[k] & notczflags[k]) {
      store_error_message("Conflicting czflag/notczflag in launch conditions.");
      return -1;
    }
  }
  if (*sflags & *notsflags) {
    store_error_message("Conflicting global flag/notflag in launch conditions.");
    return -1;
  }
  if (*scanmode == (1 | 2)) {
    store_error_message("Conflicting continue/break in launch conditions.");
    return -1;
  }
  return 0;
}
```