user: 请从给定的汇编指令推导出C源代码:

```asm
<gsm_init>:
  endbr64
  push   %r15
  mov    $0xc1f,%edx
  lea    D14(%rip),%rsi
  lea    D189(%rip),%r15
  push   %r14
  lea    D28(%rip),%r14
  push   %r13
  push   %r12
  lea    D183(%rip),%r12
  push   %rbp
  lea    D12(%rip),%rbp
  push   %rbx
  lea    D119(%rip),%rbx
  sub    $0xa8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r13
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    $0xbb8,%ecx
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <sendATComm@plt>
  cmp    $0x1,%eax
  je     L65
L66:
  xor    %r12d,%r12d
L91:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L34
  add    $0xa8,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L65:
  mov    $0x3e8,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <sendATComm@plt>
  test   %eax,%eax
  je     L65
  mov    $0x3e8,%ecx
  mov    %r14,%rdx
  mov    %r15,%rsi
  lea    D94(%rip),%rdi
  call   <sendATComm@plt>
  cmp    $0x1,%eax
  jne    L66
  lea    D18(%rip),%rbx
  lea    D25(%rip),%r12
  lea    D138(%rip),%rbp
  nopl   0x0(%rax,%rax,1)
L13:
  mov    $0x1f4,%ecx
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <sendATComm@plt>
  test   %eax,%eax
  je     L13
  mov    $0x5,%edi
  call   <sleep@plt>
  lea    D4(%rip),%rdx
  lea    D61(%rip),%rsi
  xor    %eax,%eax
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    $0x7530,%ecx
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <sendATComm@plt>
  cmp    $0x1,%eax
  jne    L66
  lea    D160(%rip),%r12
  nopl   0x0(%rax)
L82:
  mov    $0x1f4,%ecx
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <sendATComm@plt>
  test   %eax,%eax
  je     L82
  mov    $0x5,%edi
  call   <sleep@plt>
  mov    $0x7530,%ecx
  mov    %r14,%rdx
  mov    %r15,%rsi
  lea    D105(%rip),%rdi
  call   <sendATComm@plt>
  cmp    $0x1,%eax
  jne    L66
  nopl   0x0(%rax)
L16:
  mov    $0x1f4,%ecx
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <sendATComm@plt>
  test   %eax,%eax
  je     L16
  mov    $0x5,%edi
  call   <sleep@plt>
  mov    $0x2710,%ecx
  mov    %r14,%rdx
  lea    D199(%rip),%rsi
  lea    D32(%rip),%rdi
  call   <sendATComm@plt>
  cmp    $0x1,%eax
  jne    L66
  nopl   (%rax)
L32:
  mov    $0x1f4,%ecx
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <sendATComm@plt>
  test   %eax,%eax
  je     L32
  mov    $0x5,%edi
  call   <sleep@plt>
  mov    $0x7df,%ecx
  mov    %r13,%rdi
  xor    %eax,%eax
  lea    D19(%rip),%rdx
  lea    D40(%rip),%rsi
  call   <sprintf@plt>
  mov    $0x7530,%ecx
  lea    D67(%rip),%rdx
  mov    %r13,%rdi
  lea    D179(%rip),%rsi
  call   <sendATComm@plt>
  mov    %eax,%r12d
  cmp    $0x1,%eax
  jne    L66
  lea    D75(%rip),%rdi
  call   <printf@plt>
  jmp    L91
L34:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D14
type: string
name: extract_symbolic_data
arguments: label: D189
type: string
name: extract_symbolic_data
arguments: label: D28
type: string
name: extract_symbolic_data
arguments: label: D183
type: string
name: extract_symbolic_data
arguments: label: D12
type: string
name: extract_symbolic_data
arguments: label: D119
type: string
name: extract_symbolic_data
arguments: label: D94
type: string
name: extract_symbolic_data
arguments: label: D18
type: string
name: extract_symbolic_data
arguments: label: D25
type: string
name: extract_symbolic_data
arguments: label: D138
type: string
name: extract_symbolic_data
arguments: label: D4
type: string
name: extract_symbolic_data
arguments: label: D61
type: string
name: extract_symbolic_data
arguments: label: D160
type: string
name: extract_symbolic_data
arguments: label: D105
type: string
name: extract_symbolic_data
arguments: label: D199
type: string
name: extract_symbolic_data
arguments: label: D32
type: string
name: extract_symbolic_data
arguments: label: D19
type: string
name: extract_symbolic_data
arguments: label: D40
type: string
name: extract_symbolic_data
arguments: label: D67
type: string
name: extract_symbolic_data
arguments: label: D179
type: string
name: extract_symbolic_data
arguments: label: D75
type: string

tool: D14: AT+CPIN=%d

tool: D189: OK

tool: D28: ERROR

tool: D183: +CREG: 0,5

tool: D12: +CREG: 0,1

tool: D119: AT+CREG?

tool: D94: AT+CIPMUX=0

tool: 

tool: D25: INITIAL

tool: D138: AT+CIPSTATUS

tool: D4: internet

tool: D61: AT+CSTT="%s","",""

tool: D160: START

tool: D105: AT+CIICR

tool: D199: .

tool: D32: AT+CIFSR

tool: D19: myserver.hu

tool: D40: AT+CIPSTART="TCP","%s","%d"

tool: D67: CONNECT FAIL

tool: D179: CONNECT OK

tool: D75: Connected


assistant: ```c
int gsm_init() {
  char temp[150];
  sprintf(temp, "AT+CPIN=%d", 3103);
  if (sendATComm(temp, "OK", "ERROR", 3000) == 1) {
    while (sendATComm("AT+CREG?", "+CREG: 0,1", "+CREG: 0,5", 1000) == 0)
      ;
    if (sendATComm("AT+CIPMUX=0", "OK", "ERROR", 1000) == 1) {
      while (sendATComm("AT+CIPSTATUS", "INITIAL", "", 500) == 0)
        ;
      sleep(5);
      sprintf(temp, "AT+CSTT=\"%s\",\"\",\"\"", "internet");
      if (sendATComm(temp, "OK", "ERROR", 30000) == 1) {
        while (sendATComm("AT+CIPSTATUS", "START", "", 500) == 0)
          ;
        sleep(5);
        if (sendATComm("AT+CIICR", "OK", "ERROR", 30000) == 1) {
          while (sendATComm("AT+CIPSTATUS", "START", "", 500) == 0)
            ;
          sleep(5);
          if (sendATComm("AT+CIFSR", ".", "ERROR", 10000) == 1) {
            while (sendATComm("AT+CIPSTATUS", "START", "", 500) == 0)
              ;
            sleep(5);
            sprintf(temp, "AT+CIPSTART=\"TCP\",\"%s\",\"%d\"", "myserver.hu", 2015);
            if (sendATComm(temp, "CONNECT OK", "CONNECT FAIL", 30000) == 1) {
              printf("Connected\n");
              return 1;
            }
          }
        }
      }
    }
  }
  return 0;
}
```