user: Translate the below assembly code into C programming language:

```asm
<DoArithmEval>:
  endbr64
  push   %r15
  push   %r14
  mov    %rcx,%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  cmp    %edx,%esi
  jge    L1379
  movslq %esi,%rbx
  add    %rdi,%rbx
  jmp    L580
  nopl   (%rax)
L398:
  add    $0x1,%ebp
  add    $0x1,%rbx
  cmp    %ebp,%r12d
  je     L1080
L580:
  movsbl (%rbx),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L398
  cmp    %ebp,%r12d
  jle    L1379
  movslq %r12d,%rax
  lea    -0x1(%r13,%rax,1),%rbx
  jmp    L1282
L563:
  sub    $0x1,%r12d
  sub    $0x1,%rbx
  cmp    %ebp,%r12d
  je     L1080
L1282:
  movsbl (%rbx),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L563
L152:
  lea    0x8(%rsp),%r15
  lea    0x4(%rsp),%rbx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D64(%rip),%rcx
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L1085
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L1097
  xchg   %ax,%ax
L1080:
  xor    %eax,%eax
L271:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L840
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L1085:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D159(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L129
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  je     L1311
  mov    0x10(%rsp),%edx
  xor    %eax,%eax
  test   %edx,%edx
  setne  %al
  jmp    L1311
  nopl   0x0(%rax,%rax,1)
L129:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D74(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L1206
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0xc(%rsp),%eax
  or     0x10(%rsp),%eax
L1311:
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
  nop
L1097:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0xc(%rsp),%eax
  or     0x10(%rsp),%eax
  setne  %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L1379:
  cmp    %ebp,%r12d
  jne    L152
  jmp    L1080
  nopl   (%rax)
L1206:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D42(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L1082
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D132(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L1579
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0xc(%rsp),%eax
  and    0x10(%rsp),%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L1082:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0xc(%rsp),%eax
  xor    0x10(%rsp),%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L1579:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D52(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L587
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D186(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L801
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D93(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L1036
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D29(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L616
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D127(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L935
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D30(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L425
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D175(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L724
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D36(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L1374
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x10(%rsp),%eax
  add    0xc(%rsp),%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
  cs nopw 0x0(%rax,%rax,1)
L587:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L486
L1564:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebp
  jl     L1375
  jmp    L238
  nopl   (%rax)
L1356:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L238
L1375:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1356
L238:
  mov    0x8(%rsp),%eax
  cmp    %r12d,%eax
  jl     L1315
  jmp    L904
  nopl   0x0(%rax)
L553:
  add    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %r12d,%eax
  jge    L904
L1315:
  cltq
  movsbl 0x0(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  mov    0x8(%rsp),%eax
  jne    L553
L904:
  mov    0x4(%rsp),%edx
  sub    %eax,%r12d
  sub    %ebp,%edx
  cmp    %r12d,%edx
  je     L989
  movl   $0x1,(%r14)
  mov    $0x1,%eax
  jmp    L271
L801:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L1641
L965:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebp
  jl     L1053
  jmp    L832
  nopw   0x0(%rax,%rax,1)
L1118:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L832
L1053:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1118
L832:
  mov    0x8(%rsp),%eax
  cmp    %r12d,%eax
  jl     L199
  jmp    L690
  nopl   0x0(%rax)
L817:
  add    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %r12d,%eax
  jge    L690
L199:
  cltq
  movsbl 0x0(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  mov    0x8(%rsp),%eax
  jne    L817
L690:
  mov    0x4(%rsp),%edx
  sub    %eax,%r12d
  sub    %ebp,%edx
  cmp    %r12d,%edx
  je     L1192
  movl   $0x0,(%r14)
  mov    $0x1,%eax
  jmp    L271
L1036:
  lea    D130(%rip),%rdi
  call   <bug@plt>
  mov    $0x1,%eax
  jmp    L271
L1641:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L965
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L486:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1564
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L616:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L1279
L269:
  mov    0x4(%rsp),%eax
  cmp    %ebp,%eax
  jg     L1629
  jmp    L286
  cs nopw 0x0(%rax,%rax,1)
L305:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L286
L1629:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L305
L286:
  movslq 0x8(%rsp),%rax
  mov    %eax,%edx
  cmp    %r12d,%eax
  jl     L867
  jmp    L467
  nop
L923:
  mov    0x8(%rsp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  cmp    %r12d,%edx
  jge    L924
L867:
  movslq %edx,%rdx
  movsbl 0x0(%r13,%rdx,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L923
  movslq 0x8(%rsp),%rax
L467:
  mov    0x4(%rsp),%edx
  mov    %r12d,%ecx
  movslq %ebp,%rdi
  lea    0x0(%r13,%rax,1),%rsi
  sub    %eax,%ecx
  sub    %ebp,%edx
  cmp    %ecx,%edx
  cmovg  %ecx,%edx
  add    %r13,%rdi
  call   <strncmp@plt>
  mov    %eax,%r8d
  mov    $0x1,%eax
  test   %r8d,%r8d
  jg     L1311
  mov    $0x0,%eax
  jne    L1311
  mov    0x4(%rsp),%eax
  sub    0x8(%rsp),%r12d
  sub    %ebp,%eax
  cmp    %r12d,%eax
  setge  %al
  movzbl %al,%eax
  jmp    L1311
L924:
  movslq %edx,%rax
  jmp    L467
L1279:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L269
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setge  %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L935:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L1001
L550:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebp
  jl     L872
  jmp    L1462
  xchg   %ax,%ax
L1458:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L1462
L872:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1458
L1462:
  movslq 0x8(%rsp),%rax
  mov    %eax,%edx
  cmp    %r12d,%eax
  jl     L376
  jmp    L1479
  nop
L516:
  mov    0x8(%rsp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  cmp    %r12d,%edx
  jge    L301
L376:
  movslq %edx,%rdx
  movsbl 0x0(%r13,%rdx,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L516
  movslq 0x8(%rsp),%rax
L1479:
  mov    0x4(%rsp),%edx
  mov    %r12d,%ecx
  movslq %ebp,%rdi
  lea    0x0(%r13,%rax,1),%rsi
  sub    %eax,%ecx
  sub    %ebp,%edx
  cmp    %ecx,%edx
  cmovg  %ecx,%edx
  add    %r13,%rdi
  call   <strncmp@plt>
  mov    %eax,%r8d
  mov    $0x1,%eax
  test   %r8d,%r8d
  jg     L1311
  mov    $0x0,%eax
  jne    L1311
  mov    0x4(%rsp),%eax
  sub    0x8(%rsp),%r12d
  sub    %ebp,%eax
  cmp    %r12d,%eax
  setg   %al
  movzbl %al,%eax
  jmp    L1311
L1374:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D123(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L1389
  mov    0x4(%rsp),%edx
  cmp    %ebp,%edx
  je     L1389
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0xc(%rsp),%eax
  sub    0x10(%rsp),%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L724:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L1086
L1426:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebp
  jl     L272
  jmp    L1487
  nopl   (%rax)
L514:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L1487
L272:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L514
L1487:
  movslq 0x8(%rsp),%rax
  mov    %eax,%edx
  cmp    %r12d,%eax
  jl     L694
  jmp    L45
  nop
L445:
  mov    0x8(%rsp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  cmp    %r12d,%edx
  jge    L1105
L694:
  movslq %edx,%rdx
  movsbl 0x0(%r13,%rdx,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L445
  movslq 0x8(%rsp),%rax
L45:
  mov    0x4(%rsp),%edx
  mov    %r12d,%ecx
  movslq %ebp,%rdi
  lea    0x0(%r13,%rax,1),%rsi
  sub    %eax,%ecx
  sub    %ebp,%edx
  cmp    %ecx,%edx
  cmovg  %ecx,%edx
  add    %r13,%rdi
  call   <strncmp@plt>
  mov    %eax,%r8d
  mov    $0x1,%eax
  test   %r8d,%r8d
  js     L1311
  mov    $0x0,%eax
  jne    L1311
  mov    0x4(%rsp),%eax
  sub    0x8(%rsp),%r12d
  sub    %ebp,%eax
  cmp    %r12d,%eax
  setl   %al
  movzbl %al,%eax
  jmp    L1311
L425:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L1051
L627:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebp
  jl     L41
  jmp    L1007
  cs nopw 0x0(%rax,%rax,1)
L1148:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L1007
L41:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1148
L1007:
  movslq 0x8(%rsp),%rax
  mov    %eax,%edx
  cmp    %r12d,%eax
  jl     L1
  jmp    L1500
  nop
L1614:
  mov    0x8(%rsp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  cmp    %r12d,%edx
  jge    L150
L1:
  movslq %edx,%rdx
  movsbl 0x0(%r13,%rdx,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1614
  movslq 0x8(%rsp),%rax
L1500:
  mov    0x4(%rsp),%edx
  mov    %r12d,%ecx
  movslq %ebp,%rdi
  lea    0x0(%r13,%rax,1),%rsi
  sub    %eax,%ecx
  sub    %ebp,%edx
  cmp    %ecx,%edx
  cmovg  %ecx,%edx
  add    %r13,%rdi
  call   <strncmp@plt>
  mov    %eax,%r8d
  mov    $0x1,%eax
  test   %r8d,%r8d
  js     L1311
  mov    $0x0,%eax
  jne    L1311
  mov    0x4(%rsp),%eax
  sub    0x8(%rsp),%r12d
  sub    %ebp,%eax
  cmp    %r12d,%eax
  setle  %al
  movzbl %al,%eax
  jmp    L1311
L989:
  cltq
  movslq %ebp,%rdi
  add    %r13,%rdi
  lea    0x0(%r13,%rax,1),%rsi
  call   <strncmp@plt>
  test   %eax,%eax
  setne  %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L301:
  movslq %edx,%rax
  jmp    L1479
L1192:
  cltq
  movslq %ebp,%rdi
  add    %r13,%rdi
  lea    0x0(%r13,%rax,1),%rsi
  call   <strncmp@plt>
  test   %eax,%eax
  sete   %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L1051:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L627
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setle  %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L1105:
  movslq %edx,%rax
  jmp    L45
L150:
  movslq %edx,%rax
  jmp    L1500
L1086:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1426
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setl   %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L1001:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L550
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setg   %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L840:
  call   <__stack_chk_fail@plt>
L1389:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D174(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L1212
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0xc(%rsp),%eax
  imul   0x10(%rsp),%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L1212:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D49(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L897
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x10(%rsp),%ebx
  test   %ebx,%ebx
  je     L1033
L473:
  mov    0xc(%rsp),%eax
  cltd
  idiv   %ebx
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L897:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D76(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L1117
  movslq %ebp,%r15
  add    %r13,%r15
  movzbl (%r15),%eax
  cmp    $0x7e,%al
  je     L1382
  cmp    $0x21,%al
  je     L496
  cmp    $0x2d,%al
  je     L481
  lea    D110(%rip),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %rbx,%rsi
  mov    %r15,%rdi
  mov    %eax,%edx
  call   <strncmp@plt>
  mov    %eax,%r8d
  movslq %r12d,%rax
  test   %r8d,%r8d
  jne    L1447
  cmpb   $0x29,-0x1(%r13,%rax,1)
  jne    L1080
  lea    D202(%rip),%rdi
  sub    %ebp,%r12d
  call   <strlen@plt>
  sub    %eax,%r12d
  mov    $0x1,%eax
  mov    %r12d,(%r14)
  jmp    L271
L1033:
  lea    D146(%rip),%rdi
  call   <bug@plt>
  jmp    L473
L1447:
  cmpb   $0x28,(%r15)
  jne    L402
  cmpb   $0x29,-0x1(%r13,%rax,1)
  jne    L1080
  lea    -0x1(%r12),%edx
  lea    0x1(%rbp),%esi
  mov    %r14,%rcx
  mov    %r13,%rdi
  call   <DoArithmEval>
  jmp    L271
L481:
  lea    0xc(%rsp),%rcx
  lea    0x1(%rbp),%esi
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0xc(%rsp),%eax
  neg    %eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L1382:
  lea    0xc(%rsp),%rcx
  lea    0x1(%rbp),%esi
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0xc(%rsp),%eax
  not    %eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L1117:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  mov    0x10(%rsp),%ebx
  test   %ebx,%ebx
  je     L193
L869:
  mov    0xc(%rsp),%eax
  cltd
  idiv   %ebx
  mov    $0x1,%eax
  mov    %edx,(%r14)
  jmp    L271
L496:
  lea    0xc(%rsp),%rcx
  lea    0x1(%rbp),%esi
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1080
  xor    %eax,%eax
  cmpl   $0x0,0xc(%rsp)
  sete   %al
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L271
L402:
  add    %rax,%r13
  xor    %edx,%edx
  lea    0x10(%rsp),%rsi
  mov    %r15,%rdi
  movzbl 0x0(%r13),%ebx
  movb   $0x0,0x0(%r13)
  call   <strtol@plt>
  mov    %eax,(%r14)
  xor    %eax,%eax
  cmp    %r13,0x10(%rsp)
  mov    %bl,0x0(%r13)
  sete   %al
  jmp    L271
L193:
  lea    D146(%rip),%rdi
  call   <bug@plt>
  jmp    L869
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D64
data_type: string
name: extract_symbolic_data
arguments: data_tag: D159
data_type: string
name: extract_symbolic_data
arguments: data_tag: D74
data_type: string
name: extract_symbolic_data
arguments: data_tag: D42
data_type: string
name: extract_symbolic_data
arguments: data_tag: D132
data_type: string
name: extract_symbolic_data
arguments: data_tag: D52
data_type: string
name: extract_symbolic_data
arguments: data_tag: D186
data_type: string
name: extract_symbolic_data
arguments: data_tag: D93
data_type: string
name: extract_symbolic_data
arguments: data_tag: D29
data_type: string
name: extract_symbolic_data
arguments: data_tag: D127
data_type: string
name: extract_symbolic_data
arguments: data_tag: D30
data_type: string
name: extract_symbolic_data
arguments: data_tag: D175
data_type: string
name: extract_symbolic_data
arguments: data_tag: D36
data_type: string
name: extract_symbolic_data
arguments: data_tag: D130
data_type: string
name: extract_symbolic_data
arguments: data_tag: D123
data_type: string
name: extract_symbolic_data
arguments: data_tag: D174
data_type: string
name: extract_symbolic_data
arguments: data_tag: D49
data_type: string
name: extract_symbolic_data
arguments: data_tag: D76
data_type: string
name: extract_symbolic_data
arguments: data_tag: D110
data_type: string
name: extract_symbolic_data
arguments: data_tag: D202
data_type: string
name: extract_symbolic_data
arguments: data_tag: D146
data_type: string

tool: D64: ||

tool: D159: &&

tool: D74: |

tool: D42: ^

tool: D132: &

tool: D52: !=

tool: D186: ==

tool: D93: =~

tool: D29: >=

tool: D127: >

tool: D30: <=

tool: D175: <

tool: D36: +

tool: D130: globbing support has not been compiled in

tool: D123: -

tool: D174: *

tool: D49: /

tool: D76: %

tool: D110: length(

tool: D202: length()

tool: D146: Division by zero in expression

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");
    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);
}
```