user: 这段汇编代码用C语言表示是什么样的?

```asm
<FormatFraction>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %esi,-0x28(%rbp)
  mov    %edx,-0x2c(%rbp)
  mov    %rcx,-0x38(%rbp)
  mov    %r8d,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  jne    L94
  lea    D24(%rip),%rax
  mov    %rax,-0x38(%rbp)
  movl   $0x28,-0x30(%rbp)
L94:
  mov    -0x30(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  cmpl   $0x0,-0x24(%rbp)
  jne    L25
  mov    -0x38(%rbp),%rax
  movb   $0x30,(%rax)
  mov    -0x38(%rbp),%rax
  add    $0x1,%rax
  movb   $0x0,(%rax)
L25:
  cmpl   $0x0,-0x2c(%rbp)
  je     L114
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x24(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x28(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edx
  mov    -0x38(%rbp),%rax
  lea    D33(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L111
  addq   $0x1,-0x18(%rbp)
L111:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L65
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L20
L108:
  mov    -0x10(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x18(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L20:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L108
  jmp    L65
L114:
  lea    -0x1c(%rbp),%rcx
  lea    -0x20(%rbp),%rdx
  mov    -0x28(%rbp),%esi
  mov    -0x24(%rbp),%eax
  mov    %eax,%edi
  call   <SimplifyFraction@plt>
  mov    -0x1c(%rbp),%eax
  cmp    $0x1,%eax
  jne    L14
  mov    -0x20(%rbp),%edx
  mov    -0x38(%rbp),%rax
  lea    D5(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L65
L14:
  mov    -0x1c(%rbp),%ecx
  mov    -0x20(%rbp),%edx
  mov    -0x38(%rbp),%rax
  lea    D42(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L65:
  mov    -0x30(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L15
  mov    -0x30(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  lea    D43(%rip),%rax
  mov    %rax,%rdi
  call   <SetSgError@plt>
  mov    $0x0,%eax
  jmp    L103
L15:
  mov    -0x38(%rbp),%rax
L103:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L49
  call   <__stack_chk_fail@plt>
L49:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D33
type_infered: string
name: unpack_data
arguments: data_tag: D5
type_infered: string
name: unpack_data
arguments: data_tag: D42
type_infered: string
name: unpack_data
arguments: data_tag: D43
type_infered: string

tool: D33: %.6g

tool: D5: %d

tool: D42: %d/%d

tool: D43: Internal Error: FormatFraction(): Buffer too small

assistant: ```c
const char *FormatFraction(int nume, int deno, int Decimal, char *Buffer, int SizeBuffer) {
  int n = 0;
  int d = 0;
  char *cp, *cpp;
  static char StaticBuffer[40];
  if (NULL == Buffer) {
    Buffer = StaticBuffer;
    SizeBuffer = sizeof StaticBuffer / sizeof(*StaticBuffer);
  }
  Buffer[SizeBuffer - 1] = '\0';
  if (nume == 0) {
    Buffer[0] = '0';
    Buffer[1] = '\0';
  }
  if (Decimal) {
    sprintf(Buffer, "%.6g", (double)nume / deno);
    cp = Buffer;
    if (*cp == '-')
      cp++;
    if (*cp == '0') {
      cpp = cp + 1;
      while (*cp)
        *cp++ = *cpp++;
    }
  } else {
    SimplifyFraction(nume, deno, &n, &d);
    if (d == 1)
      sprintf(Buffer, "%d", n);
    else
      sprintf(Buffer, "%d/%d", n, d);
  }
  if (Buffer[SizeBuffer - 1] != '\0') {
    Buffer[SizeBuffer - 1] = '\0';
    SetSgError("Internal Error: FormatFraction(): Buffer too small");
    return NULL;
  }
  return Buffer;
}
```