user: Demonstrate the C code that generates the assembly output below:

```asm
<Spsum>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x0,-0x28(%rbp)
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <Digits@plt>
  mov    %eax,-0x28(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  movslq %eax,%rbx
  mov    -0x38(%rbp),%rax
  cqto
  idiv   %rbx
  mov    %eax,-0x24(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  movslq %eax,%rbx
  mov    -0x40(%rbp),%rax
  cqto
  idiv   %rbx
  mov    %eax,-0x20(%rbp)
  mov    -0x40(%rbp),%rcx
  movabs $0x6666666666666667,%rdx
  mov    %rcx,%rax
  imul   %rdx
  mov    %rdx,%rax
  sar    $0x2,%rax
  mov    %rcx,%rsi
  sar    $0x3f,%rsi
  sub    %rsi,%rax
  mov    %rax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  sub    %rax,%rcx
  mov    %rcx,%rdx
  mov    %edx,-0x1c(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  jne    L326
  cmpq   $0x0,-0x40(%rbp)
  jne    L326
  mov    $0x0,%eax
  jmp    L118
L326:
  cmpl   $0x1,-0x44(%rbp)
  jne    L131
  movq   $0x0,-0x18(%rbp)
  jmp    L19
L332:
  nop
L19:
  movl   $0x1,-0x2c(%rbp)
  movl   $0x1,-0x30(%rbp)
  jmp    L287
L184:
  mov    -0x2c(%rbp),%eax
  imul   -0x30(%rbp),%eax
  cltq
  add    %rax,-0x18(%rbp)
  negl   -0x2c(%rbp)
  addl   $0x1,-0x30(%rbp)
L287:
  mov    -0x30(%rbp),%eax
  cltq
  cmp    %rax,-0x40(%rbp)
  jge    L184
  mov    -0x18(%rbp),%rax
  jmp    L118
L131:
  mov    -0x44(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L112
  cmpl   $0x1,-0x28(%rbp)
  jne    L125
  mov    -0x40(%rbp),%rax
  add    $0x1,%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  shr    $0x3f,%rdx
  add    %rdx,%rax
  sar    %rax
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  jmp    L118
L125:
  mov    -0x44(%rbp),%eax
  sub    -0x28(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L72
  cmpq   $0x0,-0x38(%rbp)
  jne    L202
  mov    -0x28(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  imul   $0x2d,%eax,%eax
  cltq
  add    %rax,-0x18(%rbp)
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x20(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%ebx
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   %ebx,%eax
  cltq
  sub    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  cltq
  mov    -0x44(%rbp),%edx
  mov    -0x40(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <Spsum>
  add    %rax,-0x18(%rbp)
  jmp    L300
L202:
  mov    -0x24(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  je     L254
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x20(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%ecx
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  neg    %eax
  lea    (%rcx,%rax,1),%ebx
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   %ebx,%eax
  cltq
  sub    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  mov    %eax,%ebx
  mov    -0x28(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   %eax,%ebx
  mov    %ebx,%edx
  mov    -0x20(%rbp),%eax
  sub    -0x24(%rbp),%eax
  imul   %edx,%eax
  imul   $0x2d,%eax,%eax
  cltq
  add    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  cltq
  mov    -0x44(%rbp),%edx
  mov    -0x40(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <Spsum>
  add    %rax,-0x18(%rbp)
  jmp    L300
L254:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  sub    -0x38(%rbp),%rax
  add    $0x1,%rax
  imul   %rdx,%rax
  sub    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rcx
  mov    -0x44(%rbp),%eax
  mov    %eax,%edx
  mov    %rcx,%rsi
  mov    $0x0,%edi
  call   <Spsum>
  add    %rax,-0x18(%rbp)
  jmp    L300
L72:
  cmpq   $0x0,-0x38(%rbp)
  je     L63
  mov    -0x24(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  je     L2
L63:
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x20(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%ecx
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  neg    %eax
  lea    (%rcx,%rax,1),%ebx
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   %ebx,%eax
  cltq
  add    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  cltq
  mov    -0x44(%rbp),%edx
  mov    -0x40(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <Spsum>
  add    %rax,-0x18(%rbp)
  jmp    L300
L2:
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  sub    -0x38(%rbp),%rax
  add    $0x1,%rax
  imul   %rdx,%rax
  add    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rcx
  mov    -0x44(%rbp),%eax
  mov    %eax,%edx
  mov    %rcx,%rsi
  mov    $0x0,%edi
  call   <Spsum>
  add    %rax,-0x18(%rbp)
  jmp    L300
L112:
  cmpl   $0x1,-0x28(%rbp)
  je     L332
  mov    -0x1c(%rbp),%eax
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  cmp    $0x1,%eax
  jne    L199
  cmpq   $0x0,-0x38(%rbp)
  jne    L93
  mov    -0x28(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  cltq
  add    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  cltq
  mov    -0x44(%rbp),%edx
  mov    -0x40(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <Spsum>
  add    %rax,-0x18(%rbp)
  jmp    L300
L93:
  mov    -0x24(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  je     L271
  mov    -0x28(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    -0x20(%rbp),%edx
  sub    -0x24(%rbp),%edx
  imul   %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  cltq
  add    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  cltq
  mov    -0x44(%rbp),%edx
  mov    -0x40(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <Spsum>
  add    %rax,-0x18(%rbp)
  jmp    L300
L271:
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rcx
  mov    -0x44(%rbp),%eax
  mov    %eax,%edx
  mov    %rcx,%rsi
  mov    $0x0,%edi
  call   <Spsum>
  add    %rax,-0x18(%rbp)
  jmp    L300
L199:
  mov    -0x44(%rbp),%eax
  sub    -0x28(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L314
  mov    $0xffffffff,%eax
  jmp    L80
L314:
  mov    $0x1,%eax
L80:
  mov    %eax,-0x2c(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  jne    L128
  mov    -0x28(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  cltq
  add    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  cltq
  mov    -0x44(%rbp),%edx
  mov    -0x40(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <Spsum>
  add    %rax,-0x18(%rbp)
  jmp    L300
L128:
  mov    -0x24(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  je     L56
  mov    -0x28(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    -0x20(%rbp),%edx
  sub    -0x24(%rbp),%edx
  imul   %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  cltq
  add    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  cltq
  mov    -0x44(%rbp),%edx
  mov    -0x40(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <Spsum>
  add    %rax,-0x18(%rbp)
  jmp    L300
L56:
  mov    -0x2c(%rbp),%eax
  imul   -0x20(%rbp),%eax
  cltq
  add    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  imul   -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rcx
  mov    -0x44(%rbp),%eax
  mov    %eax,%edx
  mov    %rcx,%rsi
  mov    $0x0,%edi
  call   <Spsum>
  add    %rax,-0x18(%rbp)
L300:
  mov    -0x18(%rbp),%rax
L118:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
long long int Spsum(long long int a, long long int b, int se) {
  long long int s = 0;
  int i, o, p, f1, f2, d = 0, l2;
  d = Digits(b);
  f1 = a / pow(10, d - 1);
  f2 = b / pow(10, d - 1);
  l2 = b % 10;
  if (a == 0 && b == 0)
    return 0;
  if (se == 1) {
    s = 0;
  l:
    p = 1;
    for (i = 1; i <= b; i++) {
      s = s + p * i;
      p = p * -1;
    }
    return s;
  }
  if (se % 2 == 0) {
    if (d == 1) {
      s = b * (b + 1) / 2;
      return s;
    }
    if ((se - d) % 2 == 0) {
      if (a == 0) {
        s = s + 45 * pow(10, d - 2) * f2;
        s = s - f2 * (f2 - 1) / 2 * pow(10, d - 1);
        s = s + Spsum(f2 * pow(10, d - 1), b, se);
      } else if (f1 != f2) {
        s = s - (f2 * (f2 - 1) / 2 - f1 * (f1 - 1) / 2) * pow(10, d - 1);
        s = s + (d - 1) % 2 * 45 * pow(10, d - 2) * (f2 - f1);
        s = s + Spsum(f2 * pow(10, d - 1), b, se);
      } else {
        s = s - f2 * (b - a + 1);
        s = s + Spsum(0, b - f2 * pow(10, d - 1), se);
      }
    } else {
      if (a == 0 || f1 != f2) {
        s = s + (f2 * (f2 - 1) / 2 - f1 * (f1 - 1) / 2) * pow(10, d - 1);
        s = s + Spsum(f2 * pow(10, d - 1), b, se);
      } else {
        s = s + f1 * (b - a + 1);
        s = s + Spsum(0, b - f2 * pow(10, d - 1), se);
      }
    }
  } else {
    if (d == 1)
      goto l;
    if (l2 % 2 == 1) {
      if (a == 0) {
        s = s + 5 * pow(10, d - 2) * f2;
        s = s + Spsum(f2 * pow(10, d - 1), b, se);
      } else if (f1 != f2) {
        s = s + 5 * pow(10, d - 2) * (f2 - f1);
        s = s + Spsum(f2 * pow(10, d - 1), b, se);
      } else
        s = s + Spsum(0, b - f2 * pow(10, d - 1), se);
    } else {
      p = ((se - d) % 2 == 0) ? -1 : 1;
      if (a == 0) {
        s = s + 5 * pow(10, d - 2) * f2;
        s = s + Spsum(f2 * pow(10, d - 1), b, se);
      } else if (f1 != f2) {
        s = s + 5 * pow(10, d - 2) * (f2 - f1);
        s = s + Spsum(f2 * pow(10, d - 1), b, se);
      } else {
        s = s + p * f2;
        s = s + Spsum(0, b - f2 * pow(10, d - 1), se);
      }
    }
  }
  return s;
}
```