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

```asm
<PreOrderGoster>:
  endbr64
  cmp    %edx,%edi
  jge    L93
  push   %r15
  push   %r14
  lea    D9(%rip),%r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  mov    %edx,%ebx
  sub    $0x28,%rsp
L64:
  movslq %ebp,%rax
  mov    (%r12,%rax,4),%esi
  cmp    $0xffffffff,%esi
  je     L115
  mov    %r14,%rdi
  call   <printf@plt>
L115:
  lea    0x0(%rbp,%rbp,1),%eax
  lea    0x1(%rax),%ebp
  mov    %eax,0x8(%rsp)
  cmp    %ebx,%ebp
  jge    L132
L214:
  movslq %ebp,%rax
  mov    (%r12,%rax,4),%esi
  cmp    $0xffffffff,%esi
  je     L224
  mov    %r14,%rdi
  call   <printf@plt>
L224:
  lea    0x0(%rbp,%rbp,1),%eax
  lea    0x1(%rax),%ebp
  mov    %eax,0xc(%rsp)
  cmp    %ebp,%ebx
  jle    L112
L8:
  movslq %ebp,%rax
  mov    (%r12,%rax,4),%esi
  cmp    $0xffffffff,%esi
  je     L174
  mov    %r14,%rdi
  call   <printf@plt>
L174:
  lea    0x0(%rbp,%rbp,1),%eax
  lea    0x1(%rax),%ebp
  mov    %eax,0x10(%rsp)
  cmp    %ebp,%ebx
  jle    L80
L247:
  movslq %ebp,%rax
  mov    (%r12,%rax,4),%esi
  cmp    $0xffffffff,%esi
  je     L26
  mov    %r14,%rdi
  call   <printf@plt>
L26:
  lea    0x0(%rbp,%rbp,1),%eax
  lea    0x1(%rax),%ebp
  mov    %eax,0x14(%rsp)
  cmp    %ebp,%ebx
  jle    L144
L77:
  movslq %ebp,%rax
  mov    (%r12,%rax,4),%esi
  cmp    $0xffffffff,%esi
  je     L125
  mov    %r14,%rdi
  call   <printf@plt>
L125:
  add    %ebp,%ebp
  lea    0x1(%rbp),%r13d
  cmp    %r13d,%ebx
  jle    L264
L86:
  movslq %r13d,%rax
  mov    (%r12,%rax,4),%esi
  cmp    $0xffffffff,%esi
  je     L61
  mov    %r14,%rdi
  call   <printf@plt>
L61:
  lea    0x0(%r13,%r13,1),%eax
  lea    0x1(%rax),%r15d
  mov    %eax,0x4(%rsp)
  cmp    %r15d,%ebx
  jle    L43
L108:
  movslq %r15d,%rax
  mov    (%r12,%rax,4),%esi
  cmp    $0xffffffff,%esi
  je     L82
  mov    %r14,%rdi
  call   <printf@plt>
L82:
  lea    (%r15,%r15,1),%eax
  lea    0x1(%rax),%r15d
  mov    %eax,0x18(%rsp)
  cmp    %r15d,%ebx
  jle    L248
L140:
  movslq %r15d,%rax
  mov    (%r12,%rax,4),%esi
  cmp    $0xffffffff,%esi
  je     L105
  mov    %r14,%rdi
  call   <printf@plt>
L105:
  add    %r15d,%r15d
  lea    0x1(%r15),%edx
  cmp    %edx,%ebx
  jle    L36
L159:
  movslq %edx,%rax
  mov    (%r12,%rax,4),%esi
  cmp    $0xffffffff,%esi
  je     L240
  mov    %r14,%rdi
  mov    %edx,0x1c(%rsp)
  call   <printf@plt>
  mov    0x1c(%rsp),%edx
L240:
  lea    (%rdx,%rdx,1),%r13d
  mov    %r12,%rsi
  mov    %ebx,%edx
  lea    0x1(%r13),%edi
  call   <PreOrderGoster>
  lea    0x2(%r13),%edx
  cmp    %edx,%ebx
  jg     L159
L36:
  add    $0x2,%r15d
  cmp    %r15d,%ebx
  jg     L140
L248:
  mov    0x18(%rsp),%r15d
  add    $0x2,%r15d
  cmp    %r15d,%ebx
  jg     L108
L43:
  mov    0x4(%rsp),%r13d
  add    $0x2,%r13d
  cmp    %r13d,%ebx
  jg     L86
L264:
  add    $0x2,%ebp
  cmp    %ebp,%ebx
  jg     L77
L144:
  mov    0x14(%rsp),%ebp
  add    $0x2,%ebp
  cmp    %ebp,%ebx
  jg     L247
L80:
  mov    0x10(%rsp),%ebp
  add    $0x2,%ebp
  cmp    %ebp,%ebx
  jg     L8
L112:
  mov    0xc(%rsp),%ebp
  add    $0x2,%ebp
  cmp    %ebp,%ebx
  jg     L214
L132:
  mov    0x8(%rsp),%ebp
  add    $0x2,%ebp
  cmp    %ebx,%ebp
  jl     L64
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L93:
  ret
```

tool_calls: name: retrieve_data
arguments: label: D9
datatype: string

tool: D9: %d  

assistant: ```c
void PreOrderGoster(int node, int *BST, int elemanSayisi) {
  if (node < elemanSayisi) {
    if (BST[node] != -1)
      printf("%d  ", BST[node]);
    PreOrderGoster(2 * node + 1, BST, elemanSayisi);
    PreOrderGoster(2 * node + 2, BST, elemanSayisi);
  }
}
```