user: 请将这段汇编代码片段转换成等效的C代码:

```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    L1
  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    L52
  nopl   0x0(%rax)
L18:
  add    $0x8,%r13
  add    $0x1f4,%r12
  cmp    %rbx,%r13
  je     L86
L52:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L18
  mov    0x0(%r13),%rsi
  mov    %r15,%rdi
  add    $0x8,%r13
  add    $0x1f4,%r12
  call   <strcpy@plt>
  cmp    %rbx,%r13
  jne    L52
L86:
  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    D129(%rip),%rsi
  call   <fprintf@plt>
  mov    %r14,%rdx
  mov    %r12,%rdi
  xor    %eax,%eax
  lea    D102(%rip),%rsi
  call   <fprintf@plt>
  mov    %r13,%rcx
  mov    %r14,%rdx
  mov    %r12,%rdi
  lea    D0(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r12,%rcx
  mov    $0x3d,%edx
  mov    $0x1,%esi
  lea    D175(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x32,%edx
  mov    $0x1,%esi
  lea    D190(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D22(%rip),%rdi
  call   <fwrite@plt>
  mov    %r14,%r8
  mov    %r13,%rcx
  mov    %r14,%rdx
  lea    D118(%rip),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  movslq (%rsp),%rax
  cmp    $0x1,%eax
  jle    L12
  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)
L71:
  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    D113(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  add    $0x1,%rbx
  cmp    0x8(%rsp),%rbx
  jne    L71
  mov    (%rsp),%r12
L12:
  mov    %r13,%rdx
  lea    D163(%rip),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r13,%rcx
  mov    %r13,%rdx
  mov    %r12,%rdi
  lea    D40(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r12,%rcx
  mov    $0x5,%edx
  mov    $0x1,%esi
  lea    D204(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    D164(%rip),%rdi
  call   <fwrite@plt>
  mov    %r13,%rdx
  mov    %r12,%rdi
  xor    %eax,%eax
  lea    D19(%rip),%rsi
  call   <fprintf@plt>
  mov    %r12,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D91(%rip),%rdi
  call   <fwrite@plt>
  mov    0xe28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L32
  add    $0xe38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L1:
  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    D129(%rip),%rsi
  call   <fprintf@plt>
  mov    %r14,%rdx
  mov    %r12,%rdi
  xor    %eax,%eax
  lea    D102(%rip),%rsi
  call   <fprintf@plt>
  mov    %r13,%rcx
  mov    %r14,%rdx
  mov    %r12,%rdi
  lea    D0(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r12,%rcx
  mov    $0x3d,%edx
  mov    $0x1,%esi
  lea    D175(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x32,%edx
  mov    $0x1,%esi
  lea    D190(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D22(%rip),%rdi
  call   <fwrite@plt>
  mov    %r14,%r8
  mov    %r13,%rcx
  mov    %r14,%rdx
  lea    D118(%rip),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  jmp    L12
L32:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D129
data_type: string
name: extract_symbolic_data
arguments: tag: D102
data_type: string
name: extract_symbolic_data
arguments: tag: D0
data_type: string
name: extract_symbolic_data
arguments: tag: D175
data_type: string
name: extract_symbolic_data
arguments: tag: D190
data_type: string
name: extract_symbolic_data
arguments: tag: D22
data_type: string
name: extract_symbolic_data
arguments: tag: D118
data_type: string
name: extract_symbolic_data
arguments: tag: D113
data_type: string
name: extract_symbolic_data
arguments: tag: D163
data_type: string
name: extract_symbolic_data
arguments: tag: D40
data_type: string
name: extract_symbolic_data
arguments: tag: D204
data_type: string
name: extract_symbolic_data
arguments: tag: D164
data_type: string
name: extract_symbolic_data
arguments: tag: D19
data_type: string
name: extract_symbolic_data
arguments: tag: D91
data_type: string

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


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


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


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


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


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


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


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


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


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


tool: D204: 			}


tool: D164: 		}


tool: D19: 		return %ss;


tool: D91: 	}

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