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

```asm
<numDecodings>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpq   $0x0,-0x28(%rbp)
  je     L100
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L118
L100:
  mov    $0x0,%eax
  jmp    L91
L118:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L121
  mov    $0x0,%eax
  jmp    L91
L121:
  movl   $0x1,-0x10(%rbp)
  movl   $0x1,-0xc(%rbp)
  movl   $0x1,-0x18(%rbp)
L61:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L44
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  cltq
  mov    -0x10(%rbp,%rax,4),%eax
  jmp    L91
L44:
  mov    -0x18(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  sub    $0x30,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  cmpl   $0x0,-0x14(%rbp)
  jne    L123
  mov    $0x0,%eax
  jmp    L91
L123:
  cmpl   $0x9,-0x14(%rbp)
  jle    L159
  cmpl   $0x1a,-0x14(%rbp)
  jle    L104
L159:
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  mov    %eax,%esi
  mov    -0x18(%rbp),%eax
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  mov    %eax,%ecx
  movslq %esi,%rax
  mov    -0x10(%rbp,%rax,4),%edx
  movslq %ecx,%rax
  mov    %edx,-0x10(%rbp,%rax,4)
  jmp    L92
L104:
  cmpl   $0xa,-0x14(%rbp)
  je     L92
  cmpl   $0x14,-0x14(%rbp)
  je     L92
  mov    -0x18(%rbp),%eax
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  mov    %eax,%ecx
  movslq %ecx,%rax
  mov    -0x10(%rbp,%rax,4),%esi
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  cltq
  mov    -0x10(%rbp,%rax,4),%eax
  lea    (%rsi,%rax,1),%edx
  movslq %ecx,%rax
  mov    %edx,-0x10(%rbp,%rax,4)
L92:
  addl   $0x1,-0x18(%rbp)
  jmp    L61
L91:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L134
  call   <__stack_chk_fail@plt>
L134:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D5
type: string

tool: D5: %d


assistant: ```c
int numDecodings(char *s) {
  if (!s || !*s)
    return 0;
  if (*s == '0')
    return 0;
  int result[2] = {1, 1};
  for (int i = 1;; ++i) {
    if (!s[i])
      return result[(i - 1) % 2];
    int tmp = (s[i - 1] - '0') * 10 + s[i] - '0';
    printf("%d\n", tmp);
    if (tmp == 0)
      return 0;
    if (tmp < 10 || tmp > 26) {
      result[i % 2] = result[(i - 1) % 2];
      continue;
    }
    if (tmp != 10 && tmp != 20)
      result[i % 2] += result[(i - 1) % 2];
  }
}
```