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

```asm
<test_reachable_size>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xd0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D97(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x1,-0xb0(%rbp)
  movl   $0x1,-0xac(%rbp)
  movl   $0x1,-0xa8(%rbp)
  movl   $0x1,-0xa4(%rbp)
  movl   $0x1,-0xa0(%rbp)
  movl   $0x1,-0x9c(%rbp)
  movl   $0x0,-0x98(%rbp)
  movl   $0x1,-0x94(%rbp)
  movl   $0x0,-0x90(%rbp)
  movl   $0x1,-0x8c(%rbp)
  movl   $0x1,-0x88(%rbp)
  movl   $0x0,-0x84(%rbp)
  movl   $0x1,-0x80(%rbp)
  movl   $0x1,-0x7c(%rbp)
  movl   $0x1,-0x78(%rbp)
  movl   $0x1,-0x74(%rbp)
  movl   $0x1,-0x70(%rbp)
  movl   $0x1,-0x6c(%rbp)
  movl   $0x0,-0x68(%rbp)
  movl   $0x1,-0x64(%rbp)
  lea    -0xb0(%rbp),%rcx
  lea    -0x60(%rbp),%rax
  mov    $0x50,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  lea    -0x60(%rbp),%rax
  mov    $0x1,%r8d
  mov    $0x1,%ecx
  mov    $0x5,%edx
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <reachable_size@plt>
  mov    %eax,-0xd0(%rbp)
  movl   $0x3,-0xcc(%rbp)
  mov    -0xd0(%rbp),%eax
  cmp    -0xcc(%rbp),%eax
  jne    L30
  lea    D124(%rip),%rax
  jmp    L67
L30:
  lea    D67(%rip),%rax
L67:
  mov    -0xcc(%rbp),%edx
  mov    -0xd0(%rbp),%esi
  mov    %rax,%rcx
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xb0(%rbp),%rcx
  lea    -0x60(%rbp),%rax
  mov    $0x50,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  lea    -0x60(%rbp),%rax
  mov    $0x3,%r8d
  mov    $0x3,%ecx
  mov    $0x5,%edx
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <reachable_size@plt>
  mov    %eax,-0xc8(%rbp)
  movl   $0x3,-0xc4(%rbp)
  mov    -0xc8(%rbp),%eax
  cmp    -0xc4(%rbp),%eax
  jne    L60
  lea    D124(%rip),%rax
  jmp    L51
L60:
  lea    D67(%rip),%rax
L51:
  mov    -0xc4(%rbp),%edx
  mov    -0xc8(%rbp),%esi
  mov    %rax,%rcx
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xb0(%rbp),%rcx
  lea    -0x60(%rbp),%rax
  mov    $0x50,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  lea    -0x60(%rbp),%rax
  mov    $0x1,%r8d
  mov    $0x2,%ecx
  mov    $0x5,%edx
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <reachable_size@plt>
  mov    %eax,-0xc0(%rbp)
  movl   $0x1,-0xbc(%rbp)
  mov    -0xc0(%rbp),%eax
  cmp    -0xbc(%rbp),%eax
  jne    L74
  lea    D124(%rip),%rax
  jmp    L56
L74:
  lea    D67(%rip),%rax
L56:
  mov    -0xbc(%rbp),%edx
  mov    -0xc0(%rbp),%esi
  mov    %rax,%rcx
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xb0(%rbp),%rcx
  lea    -0x60(%rbp),%rax
  mov    $0x50,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  lea    -0x60(%rbp),%rax
  mov    $0x0,%r8d
  mov    $0x0,%ecx
  mov    $0x5,%edx
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <reachable_size@plt>
  mov    %eax,-0xb8(%rbp)
  movl   $0x0,-0xb4(%rbp)
  mov    -0xb8(%rbp),%eax
  cmp    -0xb4(%rbp),%eax
  jne    L86
  lea    D124(%rip),%rax
  jmp    L37
L86:
  lea    D67(%rip),%rax
L37:
  mov    -0xb4(%rbp),%edx
  mov    -0xb8(%rbp),%esi
  mov    %rax,%rcx
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L65
  call   <__stack_chk_fail@plt>
L65:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D97
type_guessed: string
name: retrieve_data
arguments: tag: D124
type_guessed: string
name: retrieve_data
arguments: tag: D67
type_guessed: string
name: retrieve_data
arguments: tag: D33
type_guessed: string
name: retrieve_data
arguments: tag: D65
type_guessed: string
name: retrieve_data
arguments: tag: D72
type_guessed: string
name: retrieve_data
arguments: tag: D35
type_guessed: string

tool: D97: TESTING PROBLEM 5: reachable_size


tool: D124: CORRECT

tool: D67: WRONG

tool: D33: Test 1 of reachable_size returns %d, should be %d, %s


tool: D65: Test 2 of reachable_size returns %d, should be %d, %s


tool: D72: Test 3 of reachable_size returns %d, should be %d, %s


tool: D35: Test 4 of reachable_size returns %d, should be %d, %s


assistant: ```c
void test_reachable_size() {
  printf("TESTING PROBLEM 5: reachable_size\n\n");
  int test1[4][5] = {{1, 1, 1, 1, 1}, {1, 0, 1, 0, 1}, {1, 0, 1, 1, 1}, {1, 1, 1, 0, 1}};
  int vals[4][5];
  memcpy(vals, test1, sizeof(int) * 4 * 5);
  int result1 = reachable_size((int *)vals, 4, 5, 1, 1);
  int answer1 = 3;
  printf("Test 1 of reachable_size returns %d, should be %d, %s\n", result1, answer1, (result1 == answer1 ? "CORRECT" : "WRONG"));
  memcpy(vals, test1, sizeof(int) * 4 * 5);
  int result2 = reachable_size((int *)vals, 4, 5, 3, 3);
  int answer2 = 3;
  printf("Test 2 of reachable_size returns %d, should be %d, %s\n", result2, answer2, (result2 == answer2 ? "CORRECT" : "WRONG"));
  memcpy(vals, test1, sizeof(int) * 4 * 5);
  int result3 = reachable_size((int *)vals, 4, 5, 2, 1);
  int answer3 = 1;
  printf("Test 3 of reachable_size returns %d, should be %d, %s\n", result3, answer3, (result3 == answer3 ? "CORRECT" : "WRONG"));
  memcpy(vals, test1, sizeof(int) * 4 * 5);
  int result4 = reachable_size((int *)vals, 4, 5, 0, 0);
  int answer4 = 0;
  printf("Test 4 of reachable_size returns %d, should be %d, %s\n", result4, answer4, (result4 == answer4 ? "CORRECT" : "WRONG"));
}
```