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

```asm
<output_map>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %rcx,0x8(%rsp)
  mov    %r8,%r12
  mov    %r9,%r14
  mov    0xe0(%rsp),%r15
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  mov    %rsi,%rdi
  call   <google_map_get_map_key@plt>
  mov    %rax,%r13
  lea    0x10(%rsp),%rdi
  mov    %r14,%rsi
  call   <format_initial_capital@plt>
  mov    %eax,%esi
  sub    $0x8,%rsp
  push   $0x226
  push   $0x320
  push   $0xa
  lea    D145(%rip),%rax
  push   %rax
  lea    D0(%rip),%rax
  push   %rax
  push   $0x0
  push   $0x0
  mov    %rbp,%r9
  mov    $0x0,%r8d
  mov    $0x0,%ecx
  mov    %r13,%rdx
  mov    %rbx,%rdi
  call   <google_map_output_heading@plt>
  add    $0x40,%rsp
  lea    D98(%rip),%r8
  lea    D34(%rip),%rcx
  lea    D69(%rip),%rdx
  lea    D92(%rip),%rsi
  mov    %rbx,%rdi
  call   <google_map_output_rectangle@plt>
  mov    %rbx,%rdi
  call   <google_map_output_heading_close@plt>
  lea    D89(%rip),%rdx
  mov    $0x1,%esi
  mov    %rbx,%rdi
  call   <google_map_output_body@plt>
  mov    %rbx,%rdi
  call   <google_map_output_rectangle_bounds_changed@plt>
  mov    %rbx,%rcx
  mov    $0x43,%edx
  mov    $0x1,%esi
  lea    D61(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rdi
  call   <google_map_output_rectangle_copy_to_form@plt>
  sub    $0x8,%rsp
  lea    D13(%rip),%rax
  push   %rax
  mov    %r15,%r9
  mov    %r12,%r8
  mov    0x18(%rsp),%rcx
  mov    %rbp,%rdx
  lea    D6(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rcx
  mov    $0xda,%edx
  mov    $0x1,%esi
  lea    D111(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x13,%edx
  mov    $0x1,%esi
  lea    D136(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x71,%edx
  mov    $0x1,%esi
  lea    D114(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x11,%edx
  mov    $0x1,%esi
  lea    D139(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x10,%edx
  mov    $0x1,%esi
  lea    D11(%rip),%rdi
  call   <fwrite@plt>
  add    $0x10,%rsp
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D145
type_infered: string
name: read_data
arguments: data_label: D0
type_infered: string
name: read_data
arguments: data_label: D98
type_infered: string
name: read_data
arguments: data_label: D34
type_infered: string
name: read_data
arguments: data_label: D69
type_infered: string
name: read_data
arguments: data_label: D92
type_infered: string
name: read_data
arguments: data_label: D89
type_infered: string
name: read_data
arguments: data_label: D61
type_infered: string
name: read_data
arguments: data_label: D13
type_infered: string
name: read_data
arguments: data_label: D6
type_infered: string
name: read_data
arguments: data_label: D111
type_infered: string
name: read_data
arguments: data_label: D136
type_infered: string
name: read_data
arguments: data_label: D114
type_infered: string
name: read_data
arguments: data_label: D139
type_infered: string
name: read_data
arguments: data_label: D11
type_infered: string

tool: D145: -80.84817

tool: D0: 25.68821

tool: D98: -80.74

tool: D34: 25.75

tool: D69: -80.85

tool: D92: 25.65

tool: D89: rectangle_bounds_changed()

tool: D61: <script language=JavaScript1.2 src=/javascript/timlib.js></script>


tool: D13: prompt_frame

tool: D6: <form enctype="multipart/form-data" method=post name="prompt_process" action="/cgi-bin/post_hydrology_measurements_rectangle?%s+%s+%s+%s" target="%s">


tool: D111: <input type=hidden name=rectangle_southwest_latitude>
<input type=hidden name=rectangle_southwest_longitude>
<input type=hidden name=rectangle_northeast_latitude>
<input type=hidden name=rectangle_northeast_longitude>


tool: D136: <td valign=middle>


tool: D114: <input type=button value=Submit onClick="rectangle_copy_to_form(); document.forms[0].submit(); window.close();">


tool: D139: </form>
</table>


tool: D11: </body>
</html>


assistant: ```c
void output_map(FILE *output_file, char *application_name, char *database_string, char *login_name, char *session, char *process_name, char *role_name) {
  char *google_map_key_data;
  char buffer[128];
  google_map_key_data = google_map_get_map_key(application_name);
  google_map_output_heading(output_file, format_initial_capital(buffer, process_name), google_map_key_data, (char *)0, (char *)0, application_name, 0, 0, "25.68821", "-80.84817", 10, 800, 550);
  google_map_output_rectangle(output_file, "25.65", "-80.85", "25.75", "-80.74");
  google_map_output_heading_close(output_file);
  google_map_output_body(output_file, 1, "rectangle_bounds_changed()");
  google_map_output_rectangle_bounds_changed(output_file);
  fprintf(output_file, "<script language=JavaScript1.2 src=/javascript/timlib.js></script>\n");
  google_map_output_rectangle_copy_to_form(output_file);
  fprintf(output_file, "<form enctype=\"multipart/form-data\" method=post name=\"prompt_process\" action=\"/cgi-bin/post_hydrology_measurements_rectangle?%s+%s+%s+%s\" target=\"%s\">\n", application_name, login_name, session, role_name, "prompt_frame");
  fprintf(output_file, "<input type=hidden name=rectangle_southwest_latitude>\n"
                       "<input type=hidden name=rectangle_southwest_longitude>\n"
                       "<input type=hidden name=rectangle_northeast_latitude>\n"
                       "<input type=hidden name=rectangle_northeast_longitude>\n");
  fprintf(output_file, "<td valign=middle>\n");
  fprintf(output_file, "<input type=button value=Submit onClick=\"rectangle_copy_to_form(); document.forms[0].submit(); window.close();\">\n");
  fprintf(output_file, "</form>\n</table>\n");
  fprintf(output_file, "</body>\n</html>\n");
}
```