user: 请将以下的汇编代码转换成C语言代码：

```asm
<SMS_SendMessage>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x230,%rsp
  mov    %edi,-0x214(%rbp)
  mov    %rsi,-0x220(%rbp)
  mov    %rdx,-0x228(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movq   $0x0,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  movq   $0x0,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movq   $0x0,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  movq   $0x0,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movq   $0x0,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movq   $0x0,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movq   $0x0,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movq   $0x0,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movq   $0x0,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movq   $0x0,-0x70(%rbp)
  movq   $0x0,-0x68(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  mov    -0x228(%rbp),%rdx
  mov    -0x220(%rbp),%rax
  mov    %rax,%rsi
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <logcat@plt>
  lea    -0x210(%rbp),%rax
  mov    $0x100,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x220(%rbp),%rdx
  lea    -0x210(%rbp),%rax
  lea    D33(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x210(%rbp),%rcx
  mov    -0x214(%rbp),%eax
  mov    $0x5,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <Modem_SendCmd@plt>
  test   %rax,%rax
  jns    L58
  mov    $0xffffffff,%eax
  jmp    L28
L58:
  mov    $0x7a120,%edi
  call   <usleep@plt>
  mov    -0x214(%rbp),%eax
  mov    $0x5,%edx
  lea    D34(%rip),%rcx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <Modem_WaitResponse@plt>
  test   %rax,%rax
  jns    L63
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <logcat@plt>
  mov    $0xffffffff,%eax
  jmp    L28
L63:
  mov    $0x7a120,%edi
  call   <usleep@plt>
  lea    -0x110(%rbp),%rax
  mov    $0x100,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x228(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,%rdx
  mov    -0x228(%rbp),%rcx
  lea    -0x110(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x228(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  movb   $0x1a,-0x110(%rbp,%rax,1)
  lea    -0x110(%rbp),%rcx
  mov    -0x214(%rbp),%eax
  mov    $0x5,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <Modem_SendCmd@plt>
  test   %rax,%rax
  jns    L2
  mov    $0xffffffff,%eax
  jmp    L28
L2:
  mov    $0x7a120,%edi
  call   <usleep@plt>
  mov    -0x214(%rbp),%eax
  mov    $0x1e,%edx
  lea    D15(%rip),%rcx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <Modem_WaitResponse@plt>
  test   %rax,%rax
  jns    L0
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <logcat@plt>
  mov    $0xffffffff,%eax
  jmp    L28
L0:
  mov    $0x0,%eax
L28:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D35
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D33
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D34
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D2
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D15
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D47
type_guessed: string

tool: D35: SMS Start to Send Message, phone = %s, msg = %s


tool: D33: AT+CMGS="%s"

tool: D34: >

tool: D2: SMS Wait > error.


tool: D15: OK

tool: D47: SMS Send Message error.


assistant: ```c
int SMS_SendMessage(int fd, char *phone, char *msg) {
  char cmd[256];
  char buf[256] = {0};
  logcat("SMS Start to Send Message, phone = %s, msg = %s\n", phone, msg);
  memset(cmd, 0, 256);
  sprintf(cmd, "AT+CMGS=\"%s\"\r", phone);
  if (Modem_SendCmd(fd, cmd, 5) < 0)
    return -1;
  usleep(500 * 1000);
  if (Modem_WaitResponse(fd, ">", 5) < 0) {
    logcat("SMS Wait > error.\n");
    return -1;
  }
  usleep(500 * 1000);
  memset(buf, 0, 256);
  memcpy(buf, msg, strlen(msg));
  buf[strlen(msg)] = 0x1a;
  if (Modem_SendCmd(fd, buf, 5) < 0)
    return -1;
  usleep(500 * 1000);
  if (Modem_WaitResponse(fd, "OK", 30) < 0) {
    logcat("SMS Send Message error.\n");
    return -1;
  }
  return 0;
}
```