user: 请从给定的汇编指令推导出C源代码:

```asm
<mount_method_select_all>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xe28,%rsp
  mov    %rdi,%r14
  mov    %rsi,%r13
  mov    %rsi,0x18(%rsp)
  mov    %rdx,%rbx
  mov    %ecx,%r15d
  mov    %ecx,0x14(%rsp)
  mov    %r8,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0xe18(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rbp
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <capitalize_name@plt>
  lea    0x220(%rsp),%rbp
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <uncapitalize_name@plt>
  lea    0x420(%rsp),%rbp
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <capitalize_name@plt>
  mov    %rbx,%rdx
  mov    $0x0,%esi
  mov    %r15d,%ebx
  mov    %r15d,%edi
  call   <write_array_type@plt>
  mov    %rax,%r15
  test   %ebx,%ebx
  jle    L19
  mov    %ebx,%eax
  mov    %r13,%rbp
  mov    %r15,%rbx
  mov    %eax,%eax
  lea    (%r15,%rax,8),%r13
  lea    0x620(%rsp),%rax
  mov    %rax,0x8(%rsp)
  jmp    L27
L22:
  add    $0x1f4,%rbp
  add    $0x8,%rbx
  cmp    %r13,%rbx
  je     L19
L27:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L22
  mov    (%rbx),%rsi
  mov    0x8(%rsp),%rdi
  call   <strcpy@plt>
  jmp    L22
L19:
  lea    0x620(%rsp),%rsi
  lea    0x820(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    %rbx,%rdi
  call   <capitalize_name@plt>
  lea    0x20(%rsp),%rbx
  mov    %rbx,%rdx
  lea    D2(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rdx
  lea    D91(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  lea    0x220(%rsp),%rbp
  mov    %rbp,%rcx
  mov    %rbx,%rdx
  lea    D30(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %r14,%rcx
  mov    $0x3d,%edx
  mov    $0x1,%esi
  lea    D0(%rip),%rdi
  call   <fwrite@plt>
  mov    %r14,%rcx
  mov    $0x32,%edx
  mov    $0x1,%esi
  lea    D73(%rip),%rdi
  call   <fwrite@plt>
  mov    %r14,%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D76(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%r8
  mov    %rbp,%rcx
  mov    %rbx,%rdx
  lea    D136(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    0x14(%rsp),%eax
  cmp    $0x1,%eax
  jle    L21
  mov    0x18(%rsp),%r13
  add    $0x1f4,%r13
  mov    %eax,%eax
  mov    %rax,0x8(%rsp)
  mov    $0x1,%ebx
L55:
  lea    0xa20(%rsp),%rbp
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <capitalize_name@plt>
  mov    (%r15,%rbx,8),%rsi
  lea    0xc20(%rsp),%r12
  mov    %r12,%rdi
  call   <strcpy@plt>
  mov    %r12,%rdi
  call   <capitalize_name@plt>
  lea    0x220(%rsp),%rdx
  mov    %ebx,%r9d
  mov    %r12,%r8
  mov    %rbp,%rcx
  lea    D81(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x1,%rbx
  add    $0x1f4,%r13
  cmp    0x8(%rsp),%rbx
  jne    L55
L21:
  lea    0x220(%rsp),%rbx
  mov    %rbx,%rdx
  lea    D125(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rcx
  mov    %rbx,%rdx
  lea    D77(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %r14,%rcx
  mov    $0x5,%edx
  mov    $0x1,%esi
  lea    D45(%rip),%rdi
  call   <fwrite@plt>
  mov    %r14,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    D95(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rdx
  lea    D121(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %r14,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D93(%rip),%rdi
  call   <fwrite@plt>
  mov    0xe18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0xe28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L18:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D2
type_infered: string
name: unpack_data
arguments: tag: D91
type_infered: string
name: unpack_data
arguments: tag: D30
type_infered: string
name: unpack_data
arguments: tag: D0
type_infered: string
name: unpack_data
arguments: tag: D73
type_infered: string
name: unpack_data
arguments: tag: D76
type_infered: string
name: unpack_data
arguments: tag: D136
type_infered: string
name: unpack_data
arguments: tag: D81
type_infered: string
name: unpack_data
arguments: tag: D125
type_infered: string
name: unpack_data
arguments: tag: D77
type_infered: string
name: unpack_data
arguments: tag: D45
type_infered: string
name: unpack_data
arguments: tag: D95
type_infered: string
name: unpack_data
arguments: tag: D121
type_infered: string
name: unpack_data
arguments: tag: D93
type_infered: string

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


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


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


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


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


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


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


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


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


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


tool: D45: 			}


tool: D95: 		}


tool: D121: 		return %ss;


tool: D93: 	}

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}");
}
```