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

```asm
<create_main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%r12d
  lea    D18(%rip),%rsi
  lea    D25(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  mov    %rax,%rcx
  mov    $0x3,%edx
  mov    $0x1,%esi
  lea    D207(%rip),%rbp
  mov    %rbp,%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x3,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x13,%edx
  mov    $0x1,%esi
  lea    D203(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x14,%edx
  mov    $0x1,%esi
  lea    D92(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    %rbx,%rcx
  mov    $0x21,%edx
  mov    $0x1,%esi
  lea    D126(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D220(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0xb,%edx
  mov    $0x1,%esi
  lea    D243(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0xb,%edx
  mov    $0x1,%esi
  lea    D40(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x12,%edx
  mov    $0x1,%esi
  lea    D249(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x13,%edx
  mov    $0x1,%esi
  lea    D79(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0xb,%edx
  mov    $0x1,%esi
  lea    D14(%rip),%rdi
  call   <fwrite@plt>
  lea    D11(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  lea    D44(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  lea    D90(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rcx
  mov    $0x11,%edx
  mov    $0x1,%esi
  lea    D118(%rip),%rdi
  call   <fwrite@plt>
  test   %r12d,%r12d
  jle    L15
  mov    $0x0,%ebp
  lea    D135(%rip),%r15
  lea    D67(%rip),%r14
  lea    D129(%rip),%r13
L18:
  mov    %r15,%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %ebp,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %r13,%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rcx
  mov    $0x11,%edx
  mov    $0x1,%esi
  lea    D118(%rip),%rdi
  call   <fwrite@plt>
  mov    %ebp,%edx
  lea    D211(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x1,%ebp
  cmp    %ebp,%r12d
  jne    L18
L15:
  mov    %rbx,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    D226(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x3,%edx
  mov    $0x1,%esi
  lea    D94(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    %rbx,%rcx
  mov    $0xb,%edx
  mov    $0x1,%esi
  lea    D57(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D43(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: tag: D18
type: string
name: unpack_data
arguments: tag: D25
type: string
name: unpack_data
arguments: tag: D207
type: string
name: unpack_data
arguments: tag: D203
type: string
name: unpack_data
arguments: tag: D92
type: string
name: unpack_data
arguments: tag: D126
type: string
name: unpack_data
arguments: tag: D220
type: string
name: unpack_data
arguments: tag: D243
type: string
name: unpack_data
arguments: tag: D40
type: string
name: unpack_data
arguments: tag: D249
type: string
name: unpack_data
arguments: tag: D79
type: string
name: unpack_data
arguments: tag: D14
type: string
name: unpack_data
arguments: tag: D11
type: string
name: unpack_data
arguments: tag: D44
type: string
name: unpack_data
arguments: tag: D90
type: string
name: unpack_data
arguments: tag: D118
type: string
name: unpack_data
arguments: tag: D135
type: string
name: unpack_data
arguments: tag: D67
type: string
name: unpack_data
arguments: tag: D129
type: string
name: unpack_data
arguments: tag: D211
type: string
name: unpack_data
arguments: tag: D226
type: string
name: unpack_data
arguments: tag: D94
type: string
name: unpack_data
arguments: tag: D57
type: string
name: unpack_data
arguments: tag: D43
type: string

tool: D18: w+

tool: D25: FOO_main.c

tool: D207: //


tool: D203: #include <stdio.h>


tool: D92: #include <stdlib.h>


tool: D126: int main(int argc, char* argv[])


tool: D220: {


tool: D243: 	long i=0;


tool: D40: 	long j,k;


tool: D249: 	j=atol(argv[1]);


tool: D79: 	for(k=0;k<j;k++){


tool: D14: 	__asm__( 


tool: D11: 	"xorq   %%rdx, %%rdx\n\t"


tool: D44: 	"xorq   %%rcx, %%rcx\n\t"


tool: D90: 	"inc   %%rcx\n\t"


tool: D118: 	".align 16\n\t"


tool: D135: 	"cmp   %%rdx, %%rcx\n\t"


tool: D67: 	"je LP_%06d\n\t"


tool: D129: 	"xorq   %%rdx, %%rcx\n\t"


tool: D211: 	"LP_%06d:\n\t"


tool: D226: 	);


tool: D94: 	}


tool: D57: 	return 0;


tool: D43: }


assistant: ```c
int create_main(int max_depth) {
  int i, j, k, rval;
  FILE *fp_main;
  char filename[100];
  fp_main = fopen("FOO_main.c", "w+");
  fprintf(fp_main, "//\n");
  fprintf(fp_main, "//\n");
  fprintf(fp_main, "#include <stdio.h>\n");
  fprintf(fp_main, "#include <stdlib.h>\n");
  fprintf(fp_main, "\n");
  fprintf(fp_main, "int main(int argc, char* argv[])\n");
  fprintf(fp_main, "{\n");
  fprintf(fp_main, "\tlong i=0;\n");
  fprintf(fp_main, "\tlong j,k;\n");
  fprintf(fp_main, "\tj=atol(argv[1]);\n");
  fprintf(fp_main, "\tfor(k=0;k<j;k++){\n");
  fprintf(fp_main, "\t__asm__( \n");
  fprintf(fp_main, "\t\"xorq   %%rdx, %%rdx\\n\\t\"\n");
  fprintf(fp_main, "\t\"xorq   %%rcx, %%rcx\\n\\t\"\n");
  fprintf(fp_main, "\t\"inc   %%rcx\\n\\t\"\n");
  fprintf(fp_main, "\t\".align 16\\n\\t\"\n");
  for (j = 0; j < max_depth; j++) {
    fprintf(fp_main, "\t\"cmp   %%rdx, %%rcx\\n\\t\"\n");
    fprintf(fp_main, "\t\"je LP_%06d\\n\\t\"\n", j);
    fprintf(fp_main, "\t\"xorq   %%rdx, %%rcx\\n\\t\"\n");
    fprintf(fp_main, "\t\".align 16\\n\\t\"\n");
    fprintf(fp_main, "\t\"LP_%06d:\\n\\t\"\n", j);
  }
  fprintf(fp_main, "\t);\n");
  fprintf(fp_main, "\t}\n");
  fprintf(fp_main, "\n");
  fprintf(fp_main, "\treturn 0;\n");
  fprintf(fp_main, "}\n");
  rval = fclose(fp_main);
  return 0;
}
```