user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r13
  lea    D165(%rip),%rcx
  lea    D189(%rip),%rdi
  mov    $0x379,%r9d
  push   %r12
  lea    D132(%rip),%rsi
  lea    D20(%rip),%rdx
  mov    $0x8,%r8d
  push   %rbp
  sub    $0xe0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xd8(%rsp)
  xor    %eax,%eax
  mov    %rcx,0x8(%rsp)
  lea    0x30(%rsp),%r12
  mov    %rsp,%rbp
  lea    D269(%rip),%rax
  mov    %rsi,(%rsp)
  lea    0x80(%rsp),%r13
  mov    %rdi,0x20(%rsp)
  lea    D26(%rip),%rdi
  mov    %rcx,0x40(%rsp)
  lea    D119(%rip),%rcx
  mov    %rdx,0x10(%rsp)
  mov    %rax,0x18(%rsp)
  mov    %rsi,0x30(%rsp)
  lea    D112(%rip),%rsi
  mov    %rcx,0x48(%rsp)
  mov    %rdx,0x50(%rsp)
  lea    D226(%rip),%rdx
  mov    %rax,0x60(%rsp)
  lea    D260(%rip),%rax
  mov    %rdi,0x88(%rsp)
  lea    D204(%rip),%rdi
  mov    %rcx,0x90(%rsp)
  lea    D102(%rip),%rcx
  mov    %rsi,0x38(%rsp)
  mov    %rdx,0x58(%rsp)
  mov    %rax,0x68(%rsp)
  mov    %rsi,0x80(%rsp)
  mov    $0x5,%esi
  mov    %rdi,0x98(%rsp)
  mov    %rbp,%rdi
  mov    %rdx,0xa0(%rsp)
  mov    %r12,%rdx
  mov    %rcx,0xa8(%rsp)
  mov    %r13,%rcx
  mov    %rax,0xb0(%rsp)
  lea    D253(%rip),%rax
  mov    %rax,0xb8(%rsp)
  call   <dotest@plt>
  lea    D219(%rip),%rax
  lea    D210(%rip),%rsi
  mov    $0xa8,%r9d
  mov    %rax,0x8(%rsp)
  lea    D39(%rip),%rdx
  lea    D90(%rip),%rdi
  mov    $0xa,%r8d
  mov    %rax,0x40(%rsp)
  lea    D203(%rip),%rax
  lea    D183(%rip),%rcx
  mov    %rax,0x50(%rsp)
  lea    D77(%rip),%rax
  mov    %rsi,0x48(%rsp)
  mov    %rax,0x60(%rsp)
  lea    D198(%rip),%rax
  mov    %rsi,0x90(%rsp)
  lea    D170(%rip),%rsi
  mov    %rdx,(%rsp)
  mov    %rdx,0x30(%rsp)
  lea    D58(%rip),%rdx
  mov    %rdi,0x38(%rsp)
  mov    %rcx,0x58(%rsp)
  mov    %rax,0x70(%rsp)
  lea    D47(%rip),%rax
  mov    %rdi,0x80(%rsp)
  lea    D188(%rip),%rdi
  mov    %rsi,0x98(%rsp)
  lea    D97(%rip),%rsi
  mov    %rcx,0xa0(%rsp)
  lea    D262(%rip),%rcx
  mov    %rdx,0x68(%rsp)
  mov    %rax,0x78(%rsp)
  mov    %rdi,0x88(%rsp)
  mov    %rbp,%rdi
  mov    %rcx,0xa8(%rsp)
  mov    %r13,%rcx
  mov    %rdx,0xb0(%rsp)
  mov    %r12,%rdx
  mov    %rsi,0xb8(%rsp)
  mov    $0x2,%esi
  mov    %rax,0xc0(%rsp)
  lea    D48(%rip),%rax
  mov    %rax,0xc8(%rsp)
  call   <dotest@plt>
  mov    0xd8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0xe0,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D165
datatype: string
name: unpack_data
arguments: data_tag: D189
datatype: string
name: unpack_data
arguments: data_tag: D132
datatype: string
name: unpack_data
arguments: data_tag: D20
datatype: string
name: unpack_data
arguments: data_tag: D269
datatype: string
name: unpack_data
arguments: data_tag: D26
datatype: string
name: unpack_data
arguments: data_tag: D119
datatype: string
name: unpack_data
arguments: data_tag: D112
datatype: string
name: unpack_data
arguments: data_tag: D226
datatype: string
name: unpack_data
arguments: data_tag: D260
datatype: string
name: unpack_data
arguments: data_tag: D204
datatype: string
name: unpack_data
arguments: data_tag: D102
datatype: string
name: unpack_data
arguments: data_tag: D253
datatype: string
name: unpack_data
arguments: data_tag: D219
datatype: string
name: unpack_data
arguments: data_tag: D210
datatype: string
name: unpack_data
arguments: data_tag: D39
datatype: string
name: unpack_data
arguments: data_tag: D90
datatype: string
name: unpack_data
arguments: data_tag: D203
datatype: string
name: unpack_data
arguments: data_tag: D183
datatype: string
name: unpack_data
arguments: data_tag: D77
datatype: string
name: unpack_data
arguments: data_tag: D198
datatype: string
name: unpack_data
arguments: data_tag: D170
datatype: string
name: unpack_data
arguments: data_tag: D58
datatype: string
name: unpack_data
arguments: data_tag: D47
datatype: string
name: unpack_data
arguments: data_tag: D188
datatype: string
name: unpack_data
arguments: data_tag: D97
datatype: string
name: unpack_data
arguments: data_tag: D262
datatype: string
name: unpack_data
arguments: data_tag: D48
datatype: string

tool: D165: A2

tool: D189: A5

tool: D132: A1

tool: D20: A3

tool: D269: A4

tool: D26: 100.0

tool: D119: X2

tool: D112: X1

tool: D226: X3

tool: D260: X4

tool: D204: 200.0

tool: D102: 250.0

tool: D253: 300.0

tool: D219: B2

tool: D210: Y2

tool: D39: B1

tool: D90: Y1

tool: D203: B3

tool: D183: Y3

tool: D77: B4

tool: D198: B5

tool: D170: 70.0

tool: D58: Y4

tool: D47: Y5

tool: D188: 50.0

tool: D97: 110.0

tool: D262: 90.0

tool: D48: 150.0

assistant: ```c
int main() {
  {
    char *friends1[5] = {"A1", "A2", "A3", "A4", "A5"};
    char *fTowns1[8] = {"A1", "X1", "A2", "X2", "A3", "X3", "A4", "X4"};
    char *distTable1[8] = {"X1", "100.0", "X2", "200.0", "X3", "250.0", "X4", "300.0"};
    dotest(friends1, 5, fTowns1, distTable1, 8, 889);
  }
  {
    char *friends1[2] = {"B1", "B2"};
    char *fTowns1[10] = {"B1", "Y1", "B2", "Y2", "B3", "Y3", "B4", "Y4", "B5", "Y5"};
    char *distTable1[10] = {"Y1", "50.0", "Y2", "70.0", "Y3", "90.0", "Y4", "110.0", "Y5", "150.0"};
    dotest(friends1, 2, fTowns1, distTable1, 10, 168);
  }
}
```