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

```asm
<mount_method_select_all>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %r8,%rbx
  sub    $0xe38,%rsp
  mov    %ecx,(%rsp)
  lea    0x30(%rsp),%r14
  lea    0x230(%rsp),%r13
  mov    %r14,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0xe28(%rsp)
  xor    %eax,%eax
  call   <strcpy@plt>
  mov    %r14,%rdi
  call   <capitalize_name@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  mov    %rbp,0x8(%rsp)
  call   <strcpy@plt>
  lea    0x430(%rsp),%rbp
  mov    %r13,%rdi
  call   <uncapitalize_name@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <capitalize_name@plt>
  mov    (%rsp),%ebp
  mov    %r15,%rdx
  xor    %esi,%esi
  mov    %ebp,%edi
  call   <write_array_type@plt>
  mov    %rax,0x10(%rsp)
  test   %ebp,%ebp
  jle    L45
  mov    %rax,%rdx
  mov    0x8(%rsp),%r15
  mov    %ebp,%eax
  mov    %r12,0x20(%rsp)
  lea    (%rdx,%rax,8),%rcx
  lea    0x630(%rsp),%rax
  mov    %r13,0x28(%rsp)
  mov    %rbx,%rbp
  mov    %r15,%r12
  mov    %rax,0x18(%rsp)
  mov    %rdx,%r13
  mov    %rcx,%rbx
  mov    %rax,%r15
  jmp    L5
  nopl   0x0(%rax)
L7:
  add    $0x8,%r13
  add    $0x1f4,%r12
  cmp    %rbx,%r13
  je     L52
L5:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L7
  mov    0x0(%r13),%rsi
  mov    %r15,%rdi
  add    $0x8,%r13
  add    $0x1f4,%r12
  call   <strcpy@plt>
  cmp    %rbx,%r13
  jne    L5
L52:
  mov    0x18(%rsp),%rsi
  lea    0x830(%rsp),%rbp
  mov    0x20(%rsp),%r12
  mov    %rbp,%rdi
  mov    0x28(%rsp),%r13
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <capitalize_name@plt>
  mov    %r14,%rdx
  mov    %r12,%rdi
  xor    %eax,%eax
  lea    D114(%rip),%rsi
  call   <fprintf@plt>
  mov    %r14,%rdx
  mov    %r12,%rdi
  xor    %eax,%eax
  lea    D109(%rip),%rsi
  call   <fprintf@plt>
  mov    %r13,%rcx
  mov    %r14,%rdx
  mov    %r12,%rdi
  lea    D135(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r12,%rcx
  mov    $0x3d,%edx
  mov    $0x1,%esi
  lea    D161(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x32,%edx
  mov    $0x1,%esi
  lea    D153(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D204(%rip),%rdi
  call   <fwrite@plt>
  mov    %r14,%r8
  mov    %r13,%rcx
  mov    %r14,%rdx
  lea    D21(%rip),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  movslq (%rsp),%rax
  cmp    $0x1,%eax
  jle    L72
  mov    0x8(%rsp),%r15
  mov    %rax,0x8(%rsp)
  mov    $0x1,%ebx
  lea    0xa30(%rsp),%r14
  mov    %r12,(%rsp)
  lea    0xc30(%rsp),%rbp
  add    $0x1f4,%r15
  mov    %r15,%r12
  mov    0x10(%rsp),%r15
  cs nopw 0x0(%rax,%rax,1)
L30:
  mov    %r12,%rsi
  mov    %r14,%rdi
  add    $0x1f4,%r12
  call   <strcpy@plt>
  mov    %r14,%rdi
  call   <capitalize_name@plt>
  mov    (%r15,%rbx,8),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <capitalize_name@plt>
  mov    (%rsp),%rdi
  mov    %ebx,%r9d
  mov    %rbp,%r8
  mov    %r14,%rcx
  mov    %r13,%rdx
  lea    D13(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  add    $0x1,%rbx
  cmp    %rbx,0x8(%rsp)
  jne    L30
  mov    (%rsp),%r12
L72:
  mov    %r13,%rdx
  lea    D49(%rip),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r13,%rcx
  mov    %r13,%rdx
  mov    %r12,%rdi
  lea    D103(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r12,%rcx
  mov    $0x5,%edx
  mov    $0x1,%esi
  lea    D11(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    D92(%rip),%rdi
  call   <fwrite@plt>
  mov    %r13,%rdx
  mov    %r12,%rdi
  xor    %eax,%eax
  lea    D47(%rip),%rsi
  call   <fprintf@plt>
  mov    %r12,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D201(%rip),%rdi
  call   <fwrite@plt>
  mov    0xe28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0xe38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L45:
  lea    0x830(%rsp),%rbp
  lea    0x630(%rsp),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <capitalize_name@plt>
  mov    %r14,%rdx
  mov    %r12,%rdi
  xor    %eax,%eax
  lea    D114(%rip),%rsi
  call   <fprintf@plt>
  mov    %r14,%rdx
  mov    %r12,%rdi
  xor    %eax,%eax
  lea    D109(%rip),%rsi
  call   <fprintf@plt>
  mov    %r13,%rcx
  mov    %r14,%rdx
  mov    %r12,%rdi
  lea    D135(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r12,%rcx
  mov    $0x3d,%edx
  mov    $0x1,%esi
  lea    D161(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x32,%edx
  mov    $0x1,%esi
  lea    D153(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D204(%rip),%rdi
  call   <fwrite@plt>
  mov    %r14,%r8
  mov    %r13,%rcx
  mov    %r14,%rdx
  lea    D21(%rip),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  jmp    L72
L18:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D114
type_guessed: string
name: unpack_data
arguments: data_label: D109
type_guessed: string
name: unpack_data
arguments: data_label: D135
type_guessed: string
name: unpack_data
arguments: data_label: D161
type_guessed: string
name: unpack_data
arguments: data_label: D153
type_guessed: string
name: unpack_data
arguments: data_label: D204
type_guessed: string
name: unpack_data
arguments: data_label: D21
type_guessed: string
name: unpack_data
arguments: data_label: D13
type_guessed: string
name: unpack_data
arguments: data_label: D49
type_guessed: string
name: unpack_data
arguments: data_label: D103
type_guessed: string
name: unpack_data
arguments: data_label: D11
type_guessed: string
name: unpack_data
arguments: data_label: D92
type_guessed: string
name: unpack_data
arguments: data_label: D47
type_guessed: string
name: unpack_data
arguments: data_label: D201
type_guessed: string

tool: D114: 	public ArrayList<%s> selectAll() throws SQLException {


tool: D109: 		String sql = 'SELECT * FROM %s';


tool: D135: 		ArrayList<%s> %ss = new ArrayList<>();


tool: D161: 		PreparedStatement statement = conn.preparedStatement(sql);


tool: D153: 		ResultSet result = statement.executeQuery(sql);


tool: D204: 		while (result.next()) {


tool: D21: 			%s %s = new %s();


tool: D13: 			%s.set%s(result.get%s(%d));


tool: D49: 			if (%s != null) {


tool: D103: 				%ss.add(%s);


tool: D11: 			}


tool: D92: 		}


tool: D47: 		return %ss;


tool: D201: 	}

assistant: ```c
void mount_method_select_all(FILE *file_out, char name_array[][500], char type_array[][500], int real_dimension, char primary_key[500]) {
  char entity_name_pascalcase[500];
  strcpy(entity_name_pascalcase, name_array[0]);
  capitalize_name(entity_name_pascalcase);
  char lowercase_entity_name[500];
  strcpy(lowercase_entity_name, name_array[0]);
  uncapitalize_name(lowercase_entity_name);
  char capital_primary_key[500];
  strcpy(capital_primary_key, primary_key);
  capitalize_name(capital_primary_key);
  int k = 0;
  char **type_out;
  type_out = write_array_type(real_dimension, k, type_array);
  char type_primary_key[500];
  for (k = 0; k < real_dimension; k++) {
    if (strcmp(name_array[k], primary_key) == 0) {
      strcpy(type_primary_key, type_out[k]);
    }
  }
  char capital_type_primary_key[500];
  strcpy(capital_type_primary_key, type_primary_key);
  capitalize_name(capital_type_primary_key);
  fprintf(file_out, "	public ArrayList<%s> selectAll() throws SQLException {\n", entity_name_pascalcase);
  fprintf(file_out, "\t\tString sql = 'SELECT * FROM %s';\n", entity_name_pascalcase);
  fprintf(file_out, "\t\tArrayList<%s> %ss = new ArrayList<>();\n", entity_name_pascalcase, lowercase_entity_name);
  fprintf(file_out, "\t\tPreparedStatement statement = conn.preparedStatement(sql);\n");
  fprintf(file_out, "\t\tResultSet result = statement.executeQuery(sql);\n");
  fprintf(file_out, "\t\twhile (result.next()) {\n");
  fprintf(file_out, "\t\t\t%s %s = new %s();\n", entity_name_pascalcase, lowercase_entity_name, entity_name_pascalcase);
  int i = 0, j = 1;
  for (i = 1; i < real_dimension; i++) {
    char capital_column_name[500];
    strcpy(capital_column_name, name_array[i]);
    capitalize_name(capital_column_name);
    char capital_type_column[500];
    strcpy(capital_type_column, type_out[i]);
    capitalize_name(capital_type_column);
    fprintf(file_out, "\t\t\t%s.set%s(result.get%s(%d));\n", lowercase_entity_name, capital_column_name, capital_type_column, i);
    j++;
  }
  fprintf(file_out, "\t\t\tif (%s != null) {\n", lowercase_entity_name);
  fprintf(file_out, "\t\t\t\t%ss.add(%s);\n", lowercase_entity_name, lowercase_entity_name);
  fprintf(file_out, "\t\t\t}\n");
  fprintf(file_out, "\t\t}\n");
  fprintf(file_out, "\t\treturn %ss;\n", lowercase_entity_name);
  fprintf(file_out, "\t}");
}
```