user: What is the c source code of the assembly code below:

```asm
<connect_wireless>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,%r14
  mov    %rsi,%r13
  mov    %rdx,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  lea    D66(%rip),%rdx
  mov    $0x64,%esi
  mov    %rbx,%rdi
  call   <snprintf@plt>
  mov    %rbx,%rsi
  lea    D8(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%ebp
  lea    D48(%rip),%r15
  jmp    L41
L65:
  mov    %rbp,%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x2,%edi
  call   <sleep@plt>
  add    $0x1,%rbp
L41:
  mov    %rsp,%rdi
  call   <system@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  jne    L65
  mov    %rsp,%rbp
  mov    %r14,%rcx
  lea    D67(%rip),%rdx
  mov    $0x64,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    %rbp,%rsi
  lea    D8(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D20(%rip),%r15
  jmp    L68
L63:
  lea    0x1(%rbx),%ebp
  mov    %ebx,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x2,%edi
  call   <sleep@plt>
  mov    %ebp,%ebx
L68:
  mov    %rsp,%rdi
  call   <system@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  jne    L63
  mov    %rsp,%rbx
  mov    %r13,%rcx
  lea    D33(%rip),%rdx
  mov    $0x64,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    %rbx,%rsi
  lea    D8(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D45(%rip),%r14
  jmp    L10
L26:
  lea    0x1(%rbp),%ebx
  mov    %ebp,%edx
  mov    %r13,%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x2,%edi
  call   <sleep@plt>
  mov    %ebx,%ebp
L10:
  mov    %rsp,%rdi
  call   <system@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  jne    L26
  mov    %rsp,%r13
  mov    %ebp,%r8d
  mov    %r12,%rcx
  lea    D63(%rip),%rdx
  mov    $0x64,%esi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    %r13,%rsi
  lea    D8(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D61(%rip),%r13
  jmp    L15
L64:
  lea    0x1(%rbx),%ebp
  mov    %ebx,%edx
  mov    %r12,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x2,%edi
  call   <sleep@plt>
  mov    %ebp,%ebx
L15:
  mov    %rsp,%rdi
  call   <system@plt>
  test   %eax,%eax
  jne    L64
  mov    %ebx,%edx
  mov    %r12,%rsi
  lea    D14(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L23
  mov    $0x0,%eax
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L23:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D66
type_infered: string
name: unpack_data
arguments: tag: D8
type_infered: string
name: unpack_data
arguments: tag: D48
type_infered: string
name: unpack_data
arguments: tag: D67
type_infered: string
name: unpack_data
arguments: tag: D20
type_infered: string
name: unpack_data
arguments: tag: D33
type_infered: string
name: unpack_data
arguments: tag: D45
type_infered: string
name: unpack_data
arguments: tag: D63
type_infered: string
name: unpack_data
arguments: tag: D61
type_infered: string
name: unpack_data
arguments: tag: D14
type_infered: string

tool: D66: ifconfig wlan0 up

tool: D8: %s


tool: D48: Can't bring wlan0 up, will try again (%d)


tool: D67: iwconfig wlan0 essid %s

tool: D20: Can't set essid "%s", will try again (%d)


tool: D33: ifconfig wlan0 %s

tool: D45: Can't configure wlan0 for %s (%d)


tool: D63: ping -c 1 %s

tool: D61: Can't can' ping %s (%d)


tool: D14: Connected!!!!!!!!!


assistant: ```c
int connect_wireless(char *essid, char *this_ip, char *ping_ip) {
  char cmd[100];
  int retval;
  int n = 0;
  snprintf(cmd, sizeof(cmd), "ifconfig wlan0 up");
  printf("%s\n", cmd);
  while (1) {
    retval = system(cmd);
    if (retval == 0) {
      break;
    }
    printf("Can't bring wlan0 up, will try again (%d)\n", n++);
    sleep(2);
  }
  snprintf(cmd, sizeof(cmd), "iwconfig wlan0 essid %s", essid);
  printf("%s\n", cmd);
  n = 0;
  while (1) {
    retval = system(cmd);
    if (retval == 0) {
      break;
    }
    printf("Can't set essid \"%s\", will try again (%d)\n", essid, n++);
    sleep(2);
  }
  snprintf(cmd, sizeof(cmd), "ifconfig wlan0 %s", this_ip);
  printf("%s\n", cmd);
  n = 0;
  while (1) {
    retval = system(cmd);
    if (retval == 0) {
      break;
    }
    printf("Can't configure wlan0 for %s (%d)\n", this_ip, n++);
    sleep(2);
  }
  snprintf(cmd, sizeof(cmd), "ping -c 1 %s", ping_ip, n++);
  printf("%s\n", cmd);
  n = 0;
  while (1) {
    retval = system(cmd);
    if (retval == 0) {
      break;
    }
    printf("Can't can' ping %s (%d)\n", ping_ip, n++);
    sleep(2);
  }
  printf("Connected!!!!!!!!!\n", ping_ip, n++);
  return 0;
}
```