user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<get_solution>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x64,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%edx
  lea    -0x18(%rbp),%rax
  lea    D37(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <asprintf@plt>
  mov    -0x18(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movl   $0x0,-0x20(%rbp)
  jmp    L0
L9:
  mov    -0x20(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  cltq
  and    -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x20(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%rdx
  mov    %rdx,%rax
  mov    %eax,-0x1c(%rbp)
  cmpl   $0x1,-0x1c(%rbp)
  jne    L44
  mov    -0x20(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    %eax,-0x24(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  lea    -0x18(%rbp),%rax
  lea    D4(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <asprintf@plt>
  mov    -0x18(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  jmp    L11
L44:
  cmpl   $0x0,-0x1c(%rbp)
  jne    L11
  mov    -0x20(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    %eax,-0x24(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  lea    -0x18(%rbp),%rax
  lea    D3(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <asprintf@plt>
  mov    -0x18(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L11:
  addl   $0x1,-0x20(%rbp)
L0:
  mov    -0x20(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L9
  mov    -0x24(%rbp),%edx
  lea    -0x18(%rbp),%rax
  lea    D11(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <asprintf@plt>
  mov    -0x18(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x10(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L47
  call   <__stack_chk_fail@plt>
L47:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D37
datatype: string
name: parse_data
arguments: tag: D4
datatype: string
name: parse_data
arguments: tag: D3
datatype: string
name: parse_data
arguments: tag: D11
datatype: string

tool: D37: %d

tool: D4: +%d

tool: D3: -%d

tool: D11: =%d

assistant: ```c
char *get_solution(int digits[], long long solution, int signs_count) {
  char *str = (char *)malloc(100 * sizeof(char));
  str[0] = '\0';
  int sum = digits[0];
  char *tmp;
  asprintf(&tmp, "%d", digits[0]);
  strcat(str, tmp);
  free(tmp);
  for (int i = 0; i < signs_count; ++i) {
    int sign = (solution & (1 << i)) >> i;
    if (sign == 1) {
      sum += digits[i + 1];
      asprintf(&tmp, "+%d", digits[i + 1]);
      strcat(str, tmp);
      free(tmp);
    } else if (sign == 0) {
      sum -= digits[i + 1];
      asprintf(&tmp, "-%d", digits[i + 1]);
      strcat(str, tmp);
      free(tmp);
    }
  }
  asprintf(&tmp, "=%d", sum);
  strcat(str, tmp);
  free(tmp);
  return str;
}
```