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

```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    L1630
  movslq %esi,%rbx
  add    %rdi,%rbx
  jmp    L1136
  nopl   (%rax)
L1400:
  add    $0x1,%ebp
  add    $0x1,%rbx
  cmp    %ebp,%r12d
  je     L241
L1136:
  movsbl (%rbx),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1400
  cmp    %ebp,%r12d
  jle    L1630
  movslq %r12d,%rax
  lea    -0x1(%r13,%rax,1),%rbx
  jmp    L674
L1043:
  sub    $0x1,%r12d
  sub    $0x1,%rbx
  cmp    %ebp,%r12d
  je     L241
L674:
  movsbl (%rbx),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1043
L1665:
  lea    0x8(%rsp),%r15
  lea    0x4(%rsp),%rbx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D135(%rip),%rcx
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L64
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L806
  xchg   %ax,%ax
L241:
  xor    %eax,%eax
L120:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L1642
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L64:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D100(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L764
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  je     L159
  mov    0x10(%rsp),%edx
  xor    %eax,%eax
  test   %edx,%edx
  setne  %al
  jmp    L159
  nopl   0x0(%rax,%rax,1)
L764:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D156(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L741
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0xc(%rsp),%eax
  or     0x10(%rsp),%eax
L159:
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
  nop
L806:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0xc(%rsp),%eax
  or     0x10(%rsp),%eax
  setne  %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L1630:
  cmp    %ebp,%r12d
  jne    L1665
  jmp    L241
  nopl   (%rax)
L741:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D26(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L444
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D73(%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     L241
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0xc(%rsp),%eax
  and    0x10(%rsp),%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L444:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0xc(%rsp),%eax
  xor    0x10(%rsp),%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L1579:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D169(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L29
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D95(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L993
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D171(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L447
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D58(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L137
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D62(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L1437
  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
  jne    L978
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D88(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L452
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D136(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L945
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0x10(%rsp),%eax
  add    0xc(%rsp),%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
  cs nopw 0x0(%rax,%rax,1)
L29:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L1072
L1038:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebp
  jl     L1100
  jmp    L924
  nopl   (%rax)
L1334:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L924
L1100:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1334
L924:
  mov    0x8(%rsp),%eax
  cmp    %r12d,%eax
  jl     L652
  jmp    L857
  nopl   0x0(%rax)
L1069:
  add    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %r12d,%eax
  jge    L857
L652:
  cltq
  movsbl 0x0(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  mov    0x8(%rsp),%eax
  jne    L1069
L857:
  mov    0x4(%rsp),%edx
  sub    %eax,%r12d
  sub    %ebp,%edx
  cmp    %r12d,%edx
  je     L381
  movl   $0x1,(%r14)
  mov    $0x1,%eax
  jmp    L120
L993:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L158
L1132:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebp
  jl     L325
  jmp    L1313
  nopw   0x0(%rax,%rax,1)
L696:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L1313
L325:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L696
L1313:
  mov    0x8(%rsp),%eax
  cmp    %r12d,%eax
  jl     L372
  jmp    L427
  nopl   0x0(%rax)
L212:
  add    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    %r12d,%eax
  jge    L427
L372:
  cltq
  movsbl 0x0(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  mov    0x8(%rsp),%eax
  jne    L212
L427:
  mov    0x4(%rsp),%edx
  sub    %eax,%r12d
  sub    %ebp,%edx
  cmp    %r12d,%edx
  je     L888
  movl   $0x0,(%r14)
  mov    $0x1,%eax
  jmp    L120
L447:
  lea    D212(%rip),%rdi
  call   <bug@plt>
  mov    $0x1,%eax
  jmp    L120
L158:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1132
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L1072:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1038
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L137:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L590
L1491:
  mov    0x4(%rsp),%eax
  cmp    %ebp,%eax
  jg     L602
  jmp    L1333
  cs nopw 0x0(%rax,%rax,1)
L1332:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L1333
L602:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1332
L1333:
  movslq 0x8(%rsp),%rax
  mov    %eax,%edx
  cmp    %r12d,%eax
  jl     L1465
  jmp    L895
  nop
L991:
  mov    0x8(%rsp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  cmp    %r12d,%edx
  jge    L949
L1465:
  movslq %edx,%rdx
  movsbl 0x0(%r13,%rdx,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L991
  movslq 0x8(%rsp),%rax
L895:
  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     L159
  mov    $0x0,%eax
  jne    L159
  mov    0x4(%rsp),%eax
  sub    0x8(%rsp),%r12d
  sub    %ebp,%eax
  cmp    %r12d,%eax
  setge  %al
  movzbl %al,%eax
  jmp    L159
L949:
  movslq %edx,%rax
  jmp    L895
L590:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1491
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setge  %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L1437:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L419
L402:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebp
  jl     L1156
  jmp    L257
  xchg   %ax,%ax
L1406:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L257
L1156:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1406
L257:
  movslq 0x8(%rsp),%rax
  mov    %eax,%edx
  cmp    %r12d,%eax
  jl     L1205
  jmp    L933
  nop
L321:
  mov    0x8(%rsp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  cmp    %r12d,%edx
  jge    L340
L1205:
  movslq %edx,%rdx
  movsbl 0x0(%r13,%rdx,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L321
  movslq 0x8(%rsp),%rax
L933:
  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     L159
  mov    $0x0,%eax
  jne    L159
  mov    0x4(%rsp),%eax
  sub    0x8(%rsp),%r12d
  sub    %ebp,%eax
  cmp    %r12d,%eax
  setg   %al
  movzbl %al,%eax
  jmp    L159
L945:
  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
  je     L1093
  mov    0x4(%rsp),%edx
  cmp    %ebp,%edx
  je     L1093
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0xc(%rsp),%eax
  sub    0x10(%rsp),%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L452:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L554
L1028:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebp
  jl     L1039
  jmp    L492
  nopl   (%rax)
L332:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L492
L1039:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L332
L492:
  movslq 0x8(%rsp),%rax
  mov    %eax,%edx
  cmp    %r12d,%eax
  jl     L1405
  jmp    L662
  nop
L1097:
  mov    0x8(%rsp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  cmp    %r12d,%edx
  jge    L763
L1405:
  movslq %edx,%rdx
  movsbl 0x0(%r13,%rdx,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1097
  movslq 0x8(%rsp),%rax
L662:
  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     L159
  mov    $0x0,%eax
  jne    L159
  mov    0x4(%rsp),%eax
  sub    0x8(%rsp),%r12d
  sub    %ebp,%eax
  cmp    %r12d,%eax
  setl   %al
  movzbl %al,%eax
  jmp    L159
L978:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  jne    L1427
L1180:
  mov    0x4(%rsp),%eax
  cmp    %eax,%ebp
  jl     L1569
  jmp    L776
  cs nopw 0x0(%rax,%rax,1)
L1605:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebp,%eax
  jle    L776
L1569:
  cltq
  movsbl -0x1(%r13,%rax,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1605
L776:
  movslq 0x8(%rsp),%rax
  mov    %eax,%edx
  cmp    %r12d,%eax
  jl     L619
  jmp    L1164
  nop
L1467:
  mov    0x8(%rsp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  cmp    %r12d,%edx
  jge    L611
L619:
  movslq %edx,%rdx
  movsbl 0x0(%r13,%rdx,1),%edi
  call   <iswhite@plt>
  test   %rax,%rax
  jne    L1467
  movslq 0x8(%rsp),%rax
L1164:
  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     L159
  mov    $0x0,%eax
  jne    L159
  mov    0x4(%rsp),%eax
  sub    0x8(%rsp),%r12d
  sub    %ebp,%eax
  cmp    %r12d,%eax
  setle  %al
  movzbl %al,%eax
  jmp    L159
L381:
  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    L120
L340:
  movslq %edx,%rax
  jmp    L933
L888:
  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    L120
L1427:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1180
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setle  %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L763:
  movslq %edx,%rax
  jmp    L662
L611:
  movslq %edx,%rax
  jmp    L1164
L554:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L1028
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setl   %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L419:
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L402
  mov    0x10(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  setg   %al
  movzbl %al,%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L1642:
  call   <__stack_chk_fail@plt>
L1093:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D90(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L727
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0xc(%rsp),%eax
  imul   0x10(%rsp),%eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L727:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D17(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  je     L1119
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0x10(%rsp),%ebx
  test   %ebx,%ebx
  je     L667
L441:
  mov    0xc(%rsp),%eax
  cltd
  idiv   %ebx
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L1119:
  mov    %r15,%r9
  mov    %rbx,%r8
  lea    D16(%rip),%rcx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <SpliceInfix@plt>
  test   %rax,%rax
  jne    L445
  movslq %ebp,%r15
  add    %r13,%r15
  movzbl (%r15),%eax
  cmp    $0x7e,%al
  je     L1026
  cmp    $0x21,%al
  je     L1402
  cmp    $0x2d,%al
  je     L761
  lea    D189(%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    L258
  cmpb   $0x29,-0x1(%r13,%rax,1)
  jne    L241
  lea    D85(%rip),%rdi
  sub    %ebp,%r12d
  call   <strlen@plt>
  sub    %eax,%r12d
  mov    $0x1,%eax
  mov    %r12d,(%r14)
  jmp    L120
L667:
  lea    D12(%rip),%rdi
  call   <bug@plt>
  jmp    L441
L258:
  cmpb   $0x28,(%r15)
  jne    L1288
  cmpb   $0x29,-0x1(%r13,%rax,1)
  jne    L241
  lea    -0x1(%r12),%edx
  lea    0x1(%rbp),%esi
  mov    %r14,%rcx
  mov    %r13,%rdi
  call   <DoArithmEval>
  jmp    L120
L761:
  lea    0xc(%rsp),%rcx
  lea    0x1(%rbp),%esi
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0xc(%rsp),%eax
  neg    %eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L1026:
  lea    0xc(%rsp),%rcx
  lea    0x1(%rbp),%esi
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0xc(%rsp),%eax
  not    %eax
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L445:
  mov    0x4(%rsp),%edx
  lea    0xc(%rsp),%rcx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0x8(%rsp),%esi
  lea    0x10(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  mov    0x10(%rsp),%ebx
  test   %ebx,%ebx
  je     L1532
L879:
  mov    0xc(%rsp),%eax
  cltd
  idiv   %ebx
  mov    $0x1,%eax
  mov    %edx,(%r14)
  jmp    L120
L1402:
  lea    0xc(%rsp),%rcx
  lea    0x1(%rbp),%esi
  mov    %r12d,%edx
  mov    %r13,%rdi
  call   <DoArithmEval>
  test   %eax,%eax
  je     L241
  xor    %eax,%eax
  cmpl   $0x0,0xc(%rsp)
  sete   %al
  mov    %eax,(%r14)
  mov    $0x1,%eax
  jmp    L120
L1288:
  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    L120
L1532:
  lea    D12(%rip),%rdi
  call   <bug@plt>
  jmp    L879
```

tool_calls: name: unpack_data
arguments: data_label: D135
type: string
name: unpack_data
arguments: data_label: D100
type: string
name: unpack_data
arguments: data_label: D156
type: string
name: unpack_data
arguments: data_label: D26
type: string
name: unpack_data
arguments: data_label: D73
type: string
name: unpack_data
arguments: data_label: D169
type: string
name: unpack_data
arguments: data_label: D95
type: string
name: unpack_data
arguments: data_label: D171
type: string
name: unpack_data
arguments: data_label: D58
type: string
name: unpack_data
arguments: data_label: D62
type: string
name: unpack_data
arguments: data_label: D36
type: string
name: unpack_data
arguments: data_label: D88
type: string
name: unpack_data
arguments: data_label: D136
type: string
name: unpack_data
arguments: data_label: D212
type: string
name: unpack_data
arguments: data_label: D42
type: string
name: unpack_data
arguments: data_label: D90
type: string
name: unpack_data
arguments: data_label: D17
type: string
name: unpack_data
arguments: data_label: D16
type: string
name: unpack_data
arguments: data_label: D189
type: string
name: unpack_data
arguments: data_label: D85
type: string
name: unpack_data
arguments: data_label: D12
type: string

tool: D135: ||

tool: D100: &&

tool: D156: |

tool: D26: ^

tool: D73: &

tool: D169: !=

tool: D95: ==

tool: D171: =~

tool: D58: >=

tool: D62: >

tool: D36: <=

tool: D88: <

tool: D136: +

tool: D212: globbing support has not been compiled in

tool: D42: -

tool: D90: *

tool: D17: /

tool: D16: %

tool: D189: length(

tool: D85: length()

tool: D12: 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);
}
```