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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D156(%rip),%rax
  mov    %rax,-0xe0(%rbp)
  lea    D45(%rip),%rax
  mov    %rax,-0xd8(%rbp)
  lea    D282(%rip),%rax
  mov    %rax,-0xd0(%rbp)
  lea    D259(%rip),%rax
  mov    %rax,-0xc8(%rbp)
  lea    D42(%rip),%rax
  mov    %rax,-0xc0(%rbp)
  lea    D156(%rip),%rax
  mov    %rax,-0xb0(%rbp)
  lea    D192(%rip),%rax
  mov    %rax,-0xa8(%rbp)
  lea    D45(%rip),%rax
  mov    %rax,-0xa0(%rbp)
  lea    D378(%rip),%rax
  mov    %rax,-0x98(%rbp)
  lea    D282(%rip),%rax
  mov    %rax,-0x90(%rbp)
  lea    D35(%rip),%rax
  mov    %rax,-0x88(%rbp)
  lea    D259(%rip),%rax
  mov    %rax,-0x80(%rbp)
  lea    D8(%rip),%rax
  mov    %rax,-0x78(%rbp)
  lea    D192(%rip),%rax
  mov    %rax,-0x60(%rbp)
  lea    D85(%rip),%rax
  mov    %rax,-0x58(%rbp)
  lea    D378(%rip),%rax
  mov    %rax,-0x50(%rbp)
  lea    D33(%rip),%rax
  mov    %rax,-0x48(%rbp)
  lea    D35(%rip),%rax
  mov    %rax,-0x40(%rbp)
  lea    D61(%rip),%rax
  mov    %rax,-0x38(%rbp)
  lea    D8(%rip),%rax
  mov    %rax,-0x30(%rbp)
  lea    D346(%rip),%rax
  mov    %rax,-0x28(%rbp)
  lea    -0x60(%rbp),%rcx
  lea    -0xb0(%rbp),%rdx
  lea    -0xe0(%rbp),%rax
  mov    $0x379,%r9d
  mov    $0x8,%r8d
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <dotest@plt>
  lea    D239(%rip),%rax
  mov    %rax,-0xe0(%rbp)
  lea    D403(%rip),%rax
  mov    %rax,-0xd8(%rbp)
  lea    D239(%rip),%rax
  mov    %rax,-0xb0(%rbp)
  lea    D301(%rip),%rax
  mov    %rax,-0xa8(%rbp)
  lea    D403(%rip),%rax
  mov    %rax,-0xa0(%rbp)
  lea    D397(%rip),%rax
  mov    %rax,-0x98(%rbp)
  lea    D173(%rip),%rax
  mov    %rax,-0x90(%rbp)
  lea    D36(%rip),%rax
  mov    %rax,-0x88(%rbp)
  lea    D147(%rip),%rax
  mov    %rax,-0x80(%rbp)
  lea    D357(%rip),%rax
  mov    %rax,-0x78(%rbp)
  lea    D396(%rip),%rax
  mov    %rax,-0x70(%rbp)
  lea    D351(%rip),%rax
  mov    %rax,-0x68(%rbp)
  lea    D301(%rip),%rax
  mov    %rax,-0x60(%rbp)
  lea    D308(%rip),%rax
  mov    %rax,-0x58(%rbp)
  lea    D397(%rip),%rax
  mov    %rax,-0x50(%rbp)
  lea    D89(%rip),%rax
  mov    %rax,-0x48(%rbp)
  lea    D36(%rip),%rax
  mov    %rax,-0x40(%rbp)
  lea    D323(%rip),%rax
  mov    %rax,-0x38(%rbp)
  lea    D357(%rip),%rax
  mov    %rax,-0x30(%rbp)
  lea    D118(%rip),%rax
  mov    %rax,-0x28(%rbp)
  lea    D351(%rip),%rax
  mov    %rax,-0x20(%rbp)
  lea    D177(%rip),%rax
  mov    %rax,-0x18(%rbp)
  lea    -0x60(%rbp),%rcx
  lea    -0xb0(%rbp),%rdx
  lea    -0xe0(%rbp),%rax
  mov    $0xa8,%r9d
  mov    $0xa,%r8d
  mov    $0x2,%esi
  mov    %rax,%rdi
  call   <dotest@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L1
  call   <__stack_chk_fail@plt>
L1:
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D156
type_guessed: string
name: read_data
arguments: label: D45
type_guessed: string
name: read_data
arguments: label: D282
type_guessed: string
name: read_data
arguments: label: D259
type_guessed: string
name: read_data
arguments: label: D42
type_guessed: string
name: read_data
arguments: label: D192
type_guessed: string
name: read_data
arguments: label: D378
type_guessed: string
name: read_data
arguments: label: D35
type_guessed: string
name: read_data
arguments: label: D8
type_guessed: string
name: read_data
arguments: label: D85
type_guessed: string
name: read_data
arguments: label: D33
type_guessed: string
name: read_data
arguments: label: D61
type_guessed: string
name: read_data
arguments: label: D346
type_guessed: string
name: read_data
arguments: label: D239
type_guessed: string
name: read_data
arguments: label: D403
type_guessed: string
name: read_data
arguments: label: D301
type_guessed: string
name: read_data
arguments: label: D397
type_guessed: string
name: read_data
arguments: label: D173
type_guessed: string
name: read_data
arguments: label: D36
type_guessed: string
name: read_data
arguments: label: D147
type_guessed: string
name: read_data
arguments: label: D357
type_guessed: string
name: read_data
arguments: label: D396
type_guessed: string
name: read_data
arguments: label: D351
type_guessed: string
name: read_data
arguments: label: D308
type_guessed: string
name: read_data
arguments: label: D89
type_guessed: string
name: read_data
arguments: label: D323
type_guessed: string
name: read_data
arguments: label: D118
type_guessed: string
name: read_data
arguments: label: D177
type_guessed: string

tool: D156: A1

tool: D45: A2

tool: D282: A3

tool: D259: A4

tool: D42: A5

tool: D192: X1

tool: D378: X2

tool: D35: X3

tool: D8: X4

tool: D85: 100.0

tool: D33: 200.0

tool: D61: 250.0

tool: D346: 300.0

tool: D239: B1

tool: D403: B2

tool: D301: Y1

tool: D397: Y2

tool: D173: B3

tool: D36: Y3

tool: D147: B4

tool: D357: Y4

tool: D396: B5

tool: D351: Y5

tool: D308: 50.0

tool: D89: 70.0

tool: D323: 90.0

tool: D118: 110.0

tool: D177: 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);
  }
}
```