user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<place_tile>:
  endbr64
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  xor    %edi,%edi
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  call   <time@plt>
  mov    %eax,%edi
  call   <srandom@plt>
  mov    0x0(%rbp),%ecx
  test   %ecx,%ecx
  jne    L116
  movl   $0x0,(%rsp)
  mov    $0x1,%ebx
L116:
  mov    0x4(%rbp),%edx
  test   %edx,%edx
  jne    L159
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0x1,(%rsp,%rax,4)
L159:
  mov    0x8(%rbp),%eax
  test   %eax,%eax
  jne    L21
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0x2,(%rsp,%rax,4)
L21:
  mov    0xc(%rbp),%eax
  test   %eax,%eax
  jne    L189
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0x3,(%rsp,%rax,4)
L189:
  mov    0x10(%rbp),%eax
  test   %eax,%eax
  jne    L197
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0x4,(%rsp,%rax,4)
L197:
  mov    0x14(%rbp),%eax
  test   %eax,%eax
  jne    L199
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0x5,(%rsp,%rax,4)
L199:
  mov    0x18(%rbp),%eax
  test   %eax,%eax
  jne    L20
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0x6,(%rsp,%rax,4)
L20:
  mov    0x1c(%rbp),%r12d
  test   %r12d,%r12d
  jne    L51
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0x7,(%rsp,%rax,4)
L51:
  mov    0x20(%rbp),%r11d
  test   %r11d,%r11d
  jne    L147
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0x8,(%rsp,%rax,4)
L147:
  mov    0x24(%rbp),%r10d
  test   %r10d,%r10d
  jne    L95
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0x9,(%rsp,%rax,4)
L95:
  mov    0x28(%rbp),%r9d
  test   %r9d,%r9d
  jne    L66
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0xa,(%rsp,%rax,4)
L66:
  mov    0x2c(%rbp),%r8d
  test   %r8d,%r8d
  jne    L42
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0xb,(%rsp,%rax,4)
L42:
  mov    0x30(%rbp),%edi
  test   %edi,%edi
  jne    L23
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0xc,(%rsp,%rax,4)
L23:
  mov    0x34(%rbp),%esi
  test   %esi,%esi
  jne    L135
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0xd,(%rsp,%rax,4)
L135:
  mov    0x38(%rbp),%ecx
  test   %ecx,%ecx
  je     L3
  mov    0x3c(%rbp),%eax
  test   %eax,%eax
  je     L10
  test   %ebx,%ebx
  jne    L134
L90:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L114
  add    $0x50,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L3:
  mov    0x3c(%rbp),%edx
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0xe,(%rsp,%rax,4)
  test   %edx,%edx
  jne    L134
L10:
  movslq %ebx,%rax
  add    $0x1,%ebx
  movl   $0xf,(%rsp,%rax,4)
L134:
  xor    %eax,%eax
  call   <random@plt>
  imul   $0xcccccccd,%eax,%eax
  add    $0x19999998,%eax
  ror    %eax
  cmp    $0x19999999,%eax
  sbb    %r12d,%r12d
  xor    %eax,%eax
  call   <random@plt>
  and    $0x2,%r12d
  cltd
  add    $0x2,%r12d
  idiv   %ebx
  movslq %edx,%rdx
  movslq (%rsp,%rdx,4),%rax
  mov    %r12d,0x0(%rbp,%rax,4)
  jmp    L90
L114:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void place_tile(int tile[16]) {
  int i;
  int empty_loc;
  int tile_loc;
  int tile_num;
  int empty_tile[16];
  int empty_num = 0;
  srandom(time(NULL));
  for (i = 0; i < 16; i++)
    if (0 == tile[i]) {
      empty_tile[empty_num] = i;
      ++empty_num;
    }
  if (empty_num > 0) {
    tile_num = random() % 10 ? 2 : 4;
    empty_loc = random() % (empty_num);
    tile_loc = empty_tile[empty_loc];
    tile[tile_loc] = tile_num;
  }
}
```