user: Converte this assembly snippet into its equivalent C code:

```asm
<DoArithmEval>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%r12
  mov    %esi,%ebx
  mov    %edx,%ebp
  mov    %rcx,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  cmp    %edx,%esi
  jge    L1223
  movslq %esi,%r14
  add    %rdi,%r14
L675:
  movsbl (%r14),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L1181
  add    $0x1,%ebx
  add    $0x1,%r14
  cmp    %ebx,%ebp
  jne    L675
  mov    $0x0,%eax
  jmp    L126
L1181:
  cmp    %ebx,%ebp
  jle    L1223
  movslq %ebp,%rax
  lea    -0x1(%r12,%rax,1),%r14
L611:
  movsbl (%r14),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L1223
  sub    $0x1,%ebp
  sub    $0x1,%r14
  cmp    %ebx,%ebp
  jne    L611
  mov    $0x0,%eax
L126:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L516
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1223:
  cmp    %ebp,%ebx
  je     L1051
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D24(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L1545
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0xc(%rsp),%eax
  or     0x10(%rsp),%eax
  setne  %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L1545:
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D96(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L56
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  je     L1256
  cmpl   $0x0,0x10(%rsp)
  setne  %al
  movzbl %al,%eax
L1256:
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L56:
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D13(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L990
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0xc(%rsp),%eax
  or     0x10(%rsp),%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L990:
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D19(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L197
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0xc(%rsp),%eax
  xor    0x10(%rsp),%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L197:
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D120(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L795
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0xc(%rsp),%eax
  and    0x10(%rsp),%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L795:
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D133(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L23
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D198(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L1627
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D144(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L517
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D163(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L60
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D56(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L1052
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D169(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L1196
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D88(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L901
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D182(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L1255
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0x10(%rsp),%eax
  add    0xc(%rsp),%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L23:
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L1260
L518:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebx
  jge    L1177
L1340:
  cltq
  movsbl -0x1(%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L1177
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebx,%eax
  jg     L1340
L1177:
  mov    0x8(%rsp),%eax
  cmp    %ebp,%eax
  jge    L899
L1043:
  cltq
  movsbl (%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L899
  mov    0x8(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %ebp,%eax
  jl     L1043
L899:
  mov    0x4(%rsp),%edx
  sub    %ebx,%edx
  mov    0x8(%rsp),%eax
  sub    %eax,%ebp
  cmp    %ebp,%edx
  je     L208
  movl   $0x1,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L1260:
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L518
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L208:
  cltq
  lea    (%r12,%rax,1),%rsi
  movslq %ebx,%rdi
  add    %r12,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  setne  %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L1627:
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L1569
L1018:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebx
  jge    L37
L1479:
  cltq
  movsbl -0x1(%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L37
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebx,%eax
  jg     L1479
L37:
  mov    0x8(%rsp),%eax
  cmp    %ebp,%eax
  jge    L17
L552:
  cltq
  movsbl (%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L17
  mov    0x8(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %ebp,%eax
  jl     L552
L17:
  mov    0x4(%rsp),%edx
  sub    %ebx,%edx
  mov    0x8(%rsp),%eax
  sub    %eax,%ebp
  cmp    %ebp,%edx
  je     L769
  movl   $0x0,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L1569:
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1018
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L769:
  cltq
  lea    (%r12,%rax,1),%rsi
  movslq %ebx,%rdi
  add    %r12,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  sete   %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L517:
  lea    D68(%rip),%rdi
  call   <bug@plt>
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L810
L436:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebx
  jge    L251
L1564:
  cltq
  movsbl -0x1(%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L251
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebx,%eax
  jg     L1564
L251:
  mov    0x8(%rsp),%eax
  cmp    %ebp,%eax
  jge    L1392
L1028:
  cltq
  movsbl (%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L1392
  mov    0x8(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %ebp,%eax
  jl     L1028
L1392:
  movslq %ebx,%rdi
  add    %r12,%rdi
  call   <strdup@plt>
  mov    %rax,%r14
  mov    0x4(%rsp),%eax
  sub    %ebx,%eax
  cltq
  movb   $0x0,(%r14,%rax,1)
  mov    0x8(%rsp),%r15d
  movslq %r15d,%rdi
  add    %r12,%rdi
  call   <strdup@plt>
  mov    %rax,%rbx
  mov    %ebp,%eax
  sub    %r15d,%eax
  cltq
  movb   $0x0,(%rbx,%rax,1)
  mov    $0x0,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <fnmatch@plt>
  test   %rax,%rax
  sete   %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    %r14,%rdi
  call   <free@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  mov    $0x1,%eax
  jmp    L126
L810:
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L436
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L60:
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L475
L142:
  mov    0x4(%rsp),%eax
  cmp    %ebx,%eax
  jle    L1584
L494:
  cltq
  movsbl -0x1(%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L1584
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebx,%eax
  jg     L494
L1584:
  mov    0x8(%rsp),%eax
  cmp    %ebp,%eax
  jge    L1003
L1283:
  cltq
  movsbl (%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L1003
  mov    0x8(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %ebp,%eax
  jl     L1283
L1003:
  mov    0x8(%rsp),%eax
  mov    0x4(%rsp),%edx
  sub    %ebx,%edx
  mov    %ebp,%ecx
  sub    %eax,%ecx
  cmp    %ecx,%edx
  cmovg  %ecx,%edx
  cltq
  lea    (%r12,%rax,1),%rsi
  movslq %ebx,%rdi
  add    %r12,%rdi
  call   <strncmp@plt>
  mov    $0x1,%edx
  test   %eax,%eax
  jle    L1407
L600:
  mov    %edx,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L475:
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L142
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setge  %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L1407:
  mov    $0x0,%edx
  jne    L600
  mov    0x4(%rsp),%eax
  sub    %ebx,%eax
  sub    0x8(%rsp),%ebp
  cmp    %ebp,%eax
  setge  %dl
  movzbl %dl,%edx
  jmp    L600
L1052:
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L1394
L1577:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebx
  jge    L871
L241:
  cltq
  movsbl -0x1(%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L871
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebx,%eax
  jg     L241
L871:
  mov    0x8(%rsp),%eax
  cmp    %ebp,%eax
  jge    L299
L789:
  cltq
  movsbl (%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L299
  mov    0x8(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %ebp,%eax
  jl     L789
L299:
  mov    0x8(%rsp),%eax
  mov    0x4(%rsp),%edx
  sub    %ebx,%edx
  mov    %ebp,%ecx
  sub    %eax,%ecx
  cmp    %ecx,%edx
  cmovg  %ecx,%edx
  cltq
  lea    (%r12,%rax,1),%rsi
  movslq %ebx,%rdi
  add    %r12,%rdi
  call   <strncmp@plt>
  mov    $0x1,%edx
  test   %eax,%eax
  jle    L594
L802:
  mov    %edx,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L1394:
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1577
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setg   %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L594:
  mov    $0x0,%edx
  jne    L802
  mov    0x4(%rsp),%eax
  sub    %ebx,%eax
  sub    0x8(%rsp),%ebp
  cmp    %ebp,%eax
  setg   %dl
  movzbl %dl,%edx
  jmp    L802
L1196:
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L146
L449:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebx
  jge    L533
L463:
  cltq
  movsbl -0x1(%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L533
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebx,%eax
  jg     L463
L533:
  mov    0x8(%rsp),%eax
  cmp    %ebp,%eax
  jge    L704
L1312:
  cltq
  movsbl (%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L704
  mov    0x8(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %ebp,%eax
  jl     L1312
L704:
  mov    0x8(%rsp),%eax
  mov    0x4(%rsp),%edx
  sub    %ebx,%edx
  mov    %ebp,%ecx
  sub    %eax,%ecx
  cmp    %ecx,%edx
  cmovg  %ecx,%edx
  cltq
  lea    (%r12,%rax,1),%rsi
  movslq %ebx,%rdi
  add    %r12,%rdi
  call   <strncmp@plt>
  mov    $0x1,%edx
  test   %eax,%eax
  js     L1268
  mov    $0x0,%edx
  jne    L1268
  mov    0x4(%rsp),%eax
  sub    %ebx,%eax
  sub    0x8(%rsp),%ebp
  cmp    %ebp,%eax
  setle  %dl
  movzbl %dl,%edx
L1268:
  mov    %edx,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L146:
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L449
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setle  %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L901:
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L442
L504:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebx
  jge    L1336
L1115:
  cltq
  movsbl -0x1(%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L1336
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebx,%eax
  jg     L1115
L1336:
  mov    0x8(%rsp),%eax
  cmp    %ebp,%eax
  jge    L1251
L1020:
  cltq
  movsbl (%r12,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  je     L1251
  mov    0x8(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %ebp,%eax
  jl     L1020
L1251:
  mov    0x8(%rsp),%eax
  mov    0x4(%rsp),%edx
  sub    %ebx,%edx
  mov    %ebp,%ecx
  sub    %eax,%ecx
  cmp    %ecx,%edx
  cmovg  %ecx,%edx
  cltq
  lea    (%r12,%rax,1),%rsi
  movslq %ebx,%rdi
  add    %r12,%rdi
  call   <strncmp@plt>
  mov    $0x1,%edx
  test   %eax,%eax
  js     L199
  mov    $0x0,%edx
  jne    L199
  mov    0x4(%rsp),%eax
  sub    %ebx,%eax
  sub    0x8(%rsp),%ebp
  cmp    %ebp,%eax
  setl   %dl
  movzbl %dl,%edx
L199:
  mov    %edx,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L442:
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L504
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setl   %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L1255:
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D150(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L1303
  mov    0x4(%rsp),%edx
  cmp    %ebx,%edx
  jne    L173
L1303:
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D119(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L107
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0xc(%rsp),%eax
  imul   0x10(%rsp),%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L173:
  lea    0xc(%rsp),%rcx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0xc(%rsp),%eax
  sub    0x10(%rsp),%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L107:
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D10(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L1049
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0x10(%rsp),%ebx
  test   %ebx,%ebx
  je     L1029
L22:
  mov    0xc(%rsp),%eax
  cltd
  idiv   %ebx
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L1029:
  lea    D128(%rip),%rdi
  call   <bug@plt>
  jmp    L22
L1049:
  lea    0x8(%rsp),%r9
  lea    0x4(%rsp),%r8
  lea    D6(%rip),%rcx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L1580
  movslq %ebx,%r14
  add    %r12,%r14
  movzbl (%r14),%eax
  cmp    $0x7e,%al
  je     L1000
  cmp    $0x21,%al
  je     L534
  cmp    $0x2d,%al
  je     L284
  lea    D173(%rip),%r15
  mov    %r15,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L1391
  movslq %ebp,%rdx
  cmpb   $0x29,-0x1(%r12,%rdx,1)
  jne    L126
  sub    %ebx,%ebp
  lea    D101(%rip),%rdi
  call   <strlen@plt>
  sub    %eax,%ebp
  mov    %ebp,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L1580:
  lea    0xc(%rsp),%rcx
  mov    0x4(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  lea    0x10(%rsp),%rcx
  mov    %ebp,%edx
  mov    0x8(%rsp),%esi
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0x10(%rsp),%ebx
  test   %ebx,%ebx
  je     L1521
L136:
  mov    0xc(%rsp),%eax
  cltd
  idiv   %ebx
  mov    %edx,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L1521:
  lea    D128(%rip),%rdi
  call   <bug@plt>
  jmp    L136
L1000:
  lea    0xc(%rsp),%rcx
  lea    0x1(%rbx),%esi
  mov    %ebp,%edx
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0xc(%rsp),%eax
  not    %eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L534:
  lea    0xc(%rsp),%rcx
  lea    0x1(%rbx),%esi
  mov    %ebp,%edx
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  cmpl   $0x0,0xc(%rsp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L284:
  lea    0xc(%rsp),%rcx
  lea    0x1(%rbx),%esi
  mov    %ebp,%edx
  mov    %r12,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L126
  mov    0xc(%rsp),%eax
  neg    %eax
  mov    %eax,0x0(%r13)
  mov    $0x1,%eax
  jmp    L126
L1391:
  cmpb   $0x28,(%r14)
  jne    L471
  movslq %ebp,%rdx
  mov    $0x0,%eax
  cmpb   $0x29,-0x1(%r12,%rdx,1)
  jne    L126
  lea    -0x1(%rbp),%edx
  lea    0x1(%rbx),%esi
  mov    %r13,%rcx
  mov    %r12,%rdi
  call   <DoArithmEval>
  jmp    L126
L471:
  movslq %ebp,%rbp
  add    %rbp,%r12
  movzbl (%r12),%ebx
  movb   $0x0,(%r12)
  lea    0x10(%rsp),%rsi
  mov    $0x0,%edx
  mov    %r14,%rdi
  call   <strtol@plt>
  mov    %eax,0x0(%r13)
  mov    %bl,(%r12)
  cmp    %r12,0x10(%rsp)
  sete   %al
  movzbl %al,%eax
  jmp    L126
L1051:
  mov    $0x0,%eax
  jmp    L126
L516:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D24
type_infered: string
name: disassemble_data
arguments: label: D96
type_infered: string
name: disassemble_data
arguments: label: D13
type_infered: string
name: disassemble_data
arguments: label: D19
type_infered: string
name: disassemble_data
arguments: label: D120
type_infered: string
name: disassemble_data
arguments: label: D133
type_infered: string
name: disassemble_data
arguments: label: D198
type_infered: string
name: disassemble_data
arguments: label: D144
type_infered: string
name: disassemble_data
arguments: label: D163
type_infered: string
name: disassemble_data
arguments: label: D56
type_infered: string
name: disassemble_data
arguments: label: D169
type_infered: string
name: disassemble_data
arguments: label: D88
type_infered: string
name: disassemble_data
arguments: label: D182
type_infered: string
name: disassemble_data
arguments: label: D68
type_infered: string
name: disassemble_data
arguments: label: D150
type_infered: string
name: disassemble_data
arguments: label: D119
type_infered: string
name: disassemble_data
arguments: label: D10
type_infered: string
name: disassemble_data
arguments: label: D128
type_infered: string
name: disassemble_data
arguments: label: D6
type_infered: string
name: disassemble_data
arguments: label: D173
type_infered: string
name: disassemble_data
arguments: label: D101
type_infered: string

tool: D24: ||

tool: D96: &&

tool: D13: |

tool: D19: ^

tool: D120: &

tool: D133: !=

tool: D198: ==

tool: D144: =~

tool: D163: >=

tool: D56: >

tool: D169: <=

tool: D88: <

tool: D182: +

tool: D68: globbing support has not been compiled in

tool: D150: -

tool: D119: *

tool: D10: /

tool: D128: Division by zero in expression

tool: D6: %

tool: D173: length(

tool: D101: length()

assistant: ```c
int DoArithmEval(char *buf, int pos1, int pos2, int *result) {
  int spl1, spl2, result1, result2, l;
  char c, *p;
  while ((pos1 < pos2) && iswhite(buf[pos1]))
    pos1++;
  while ((pos1 < pos2) && iswhite(buf[pos2 - 1]))
    pos2--;
  if (pos1 == pos2)
    return 0;
  if (SpliceInfix(buf, pos1, pos2, "||", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2))
      return 0;
    *result = result1 || result2;
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "&&", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2))
      return 0;
    *result = result1 && result2;
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "|", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2))
      return 0;
    *result = result1 | result2;
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "^", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2))
      return 0;
    *result = result1 ^ result2;
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "&", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2))
      return 0;
    *result = result1 & result2;
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "!=", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2)) {
      while ((pos1 < spl1) && iswhite(buf[spl1 - 1]))
        spl1--;
      while ((pos2 > spl2) && iswhite(buf[spl2]))
        spl2++;
      if (spl1 - pos1 != pos2 - spl2)
        *result = 1;
      else
        *result = (strncmp(buf + pos1, buf + spl2, spl1 - pos1) != 0);
    } else
      *result = (result1 != result2);
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "==", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2)) {
      while ((pos1 < spl1) && iswhite(buf[spl1 - 1]))
        spl1--;
      while ((pos2 > spl2) && iswhite(buf[spl2]))
        spl2++;
      if (spl1 - pos1 != pos2 - spl2)
        *result = 0;
      else
        *result = (strncmp(buf + pos1, buf + spl2, spl1 - pos1) == 0);
    } else
      *result = (result1 == result2);
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "=~", &spl1, &spl2)) {
    bug("globbing support has not been compiled in");
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2)) {
      char *str1, *str2;
      while ((pos1 < spl1) && iswhite(buf[spl1 - 1]))
        spl1--;
      while ((pos2 > spl2) && iswhite(buf[spl2]))
        spl2++;
      str1 = strdup(buf + pos1);
      str1[spl1 - pos1] = '\0';
      str2 = strdup(buf + spl2);
      str2[pos2 - spl2] = '\0';
      *result = (fnmatch(str2, str1, 0) == 0);
      free(str1);
      free(str2);
    } else
      *result = (result1 == result2);
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, ">=", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2)) {
      while ((pos1 < spl1) && iswhite(buf[spl1 - 1]))
        spl1--;
      while ((pos2 > spl2) && iswhite(buf[spl2]))
        spl2++;
      l = spl1 - pos1;
      if (l > pos2 - spl2)
        l = pos2 - spl2;
      result1 = strncmp(buf + pos1, buf + spl2, l);
      *result = (result1 > 0) || ((result1 == 0) && (spl1 - pos1 >= pos2 - spl2));
    } else
      *result = (result1 >= result2);
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, ">", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2)) {
      while ((pos1 < spl1) && iswhite(buf[spl1 - 1]))
        spl1--;
      while ((pos2 > spl2) && iswhite(buf[spl2]))
        spl2++;
      l = spl1 - pos1;
      if (l > pos2 - spl2)
        l = pos2 - spl2;
      result1 = strncmp(buf + pos1, buf + spl2, l);
      *result = (result1 > 0) || ((result1 == 0) && (spl1 - pos1 > pos2 - spl2));
    } else
      *result = (result1 > result2);
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "<=", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2)) {
      while ((pos1 < spl1) && iswhite(buf[spl1 - 1]))
        spl1--;
      while ((pos2 > spl2) && iswhite(buf[spl2]))
        spl2++;
      l = spl1 - pos1;
      if (l > pos2 - spl2)
        l = pos2 - spl2;
      result1 = strncmp(buf + pos1, buf + spl2, l);
      *result = (result1 < 0) || ((result1 == 0) && (spl1 - pos1 <= pos2 - spl2));
    } else
      *result = (result1 <= result2);
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "<", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2)) {
      while ((pos1 < spl1) && iswhite(buf[spl1 - 1]))
        spl1--;
      while ((pos2 > spl2) && iswhite(buf[spl2]))
        spl2++;
      l = spl1 - pos1;
      if (l > pos2 - spl2)
        l = pos2 - spl2;
      result1 = strncmp(buf + pos1, buf + spl2, l);
      *result = (result1 < 0) || ((result1 == 0) && (spl1 - pos1 < pos2 - spl2));
    } else
      *result = (result1 < result2);
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "+", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2))
      return 0;
    *result = result1 + result2;
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "-", &spl1, &spl2))
    if (spl1 != pos1) {
      if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2))
        return 0;
      *result = result1 - result2;
      return 1;
    }
  if (SpliceInfix(buf, pos1, pos2, "*", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2))
      return 0;
    *result = result1 * result2;
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "/", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2))
      return 0;
    if (result2 == 0)
      bug("Division by zero in expression");
    *result = result1 / result2;
    return 1;
  }
  if (SpliceInfix(buf, pos1, pos2, "%", &spl1, &spl2)) {
    if (!DoArithmEval(buf, pos1, spl1, &result1) || !DoArithmEval(buf, spl2, pos2, &result2))
      return 0;
    if (result2 == 0)
      bug("Division by zero in expression");
    *result = result1 % result2;
    return 1;
  }
  if (buf[pos1] == '~') {
    if (!DoArithmEval(buf, pos1 + 1, pos2, &result1))
      return 0;
    *result = ~result1;
    return 1;
  }
  if (buf[pos1] == '!') {
    if (!DoArithmEval(buf, pos1 + 1, pos2, &result1))
      return 0;
    *result = !result1;
    return 1;
  }
  if (buf[pos1] == '-') {
    if (!DoArithmEval(buf, pos1 + 1, pos2, &result1))
      return 0;
    *result = -result1;
    return 1;
  }
  if (strncmp(buf + pos1, "length(", strlen("length(")) == 0) {
    if (buf[pos2 - 1] != ')')
      return 0;
    *result = pos2 - pos1 - strlen("length()");
    return 1;
  }
  if (buf[pos1] == '(') {
    if (buf[pos2 - 1] != ')')
      return 0;
    return DoArithmEval(buf, pos1 + 1, pos2 - 1, result);
  }
  c = buf[pos2];
  buf[pos2] = 0;
  *result = (int)strtol(buf + pos1, &p, 0);
  buf[pos2] = c;
  return (p == buf + pos2);
}
```