user: Translate the below assembly code into C programming language:

```asm
<ExplodeBox1>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  mov    %edx,-0x3c(%rbp)
  mov    %ecx,-0x40(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x1b58,-0x14(%rbp)
  mov    -0x3c(%rbp),%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  sub    $0x1,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x40(%rbp),%edx
  mov    -0x38(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  sub    $0x1,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x2c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x28(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x28(%rbp),%esi
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edi
  call   <XDrawBox1@plt>
  movl   $0x0,-0x18(%rbp)
  jmp    L105
L15:
  movl   $0x0,-0x1c(%rbp)
  cmpl   $0x1,-0x18(%rbp)
  jne    L85
  movl   $0x0,-0x18(%rbp)
  jmp    L39
L85:
  movl   $0x1,-0x18(%rbp)
L39:
  mov    -0x2c(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jle    L159
  subl   $0x1,-0x2c(%rbp)
  jmp    L65
L159:
  addl   $0x1,-0x1c(%rbp)
L65:
  mov    -0x24(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jge    L26
  addl   $0x1,-0x24(%rbp)
  jmp    L30
L26:
  addl   $0x1,-0x1c(%rbp)
L30:
  mov    -0x28(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jle    L155
  cmpl   $0x0,-0x18(%rbp)
  jle    L155
  subl   $0x1,-0x28(%rbp)
  jmp    L80
L155:
  addl   $0x1,-0x1c(%rbp)
L80:
  mov    -0x20(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jge    L150
  cmpl   $0x0,-0x18(%rbp)
  jle    L150
  addl   $0x1,-0x20(%rbp)
  jmp    L23
L150:
  addl   $0x1,-0x1c(%rbp)
L23:
  mov    $0x0,%ebx
  jmp    L103
L123:
  add    $0x1,%ebx
L103:
  cmp    -0x14(%rbp),%ebx
  jl     L123
  subl   $0x2bc,-0x14(%rbp)
  mov    -0x20(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x24(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    -0x2c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <BlockErase@plt>
  mov    -0x20(%rbp),%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x28(%rbp),%esi
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edi
  call   <XDrawBox1@plt>
L105:
  cmpl   $0x3,-0x1c(%rbp)
  jle    L15
  mov    -0x40(%rbp),%ecx
  mov    -0x3c(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x34(%rbp),%eax
  mov    %eax,%edi
  call   <BlockErase@plt>
  mov    -0x40(%rbp),%ecx
  mov    -0x3c(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x34(%rbp),%eax
  mov    %eax,%edi
  call   <XDrawBox1@plt>
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void ExplodeBox1(int x, int y, int xx, int yy) {
  register int i;
  int midx1, midy1, midx2, midy2;
  int num = 0;
  int flag;
  int Inc = 7000;
  midx1 = (xx + x) / 2 - 1;
  midy1 = (yy + y) / 2 - 1;
  midx2 = midx1 + 1;
  midy2 = midy1 + 1;
  XDrawBox1(midx1, midy1, midx2, midy2);
  flag = 0;
  while (num < 4) {
    num = 0;
    if (flag == 1)
      flag = 0;
    else
      flag = 1;
    if (midx1 > x)
      midx1--;
    else
      num++;
    if (midx2 < xx)
      midx2++;
    else
      num++;
    if (midy1 > y && flag > 0)
      midy1--;
    else
      num++;
    if (midy2 < yy && flag > 0)
      midy2++;
    else
      num++;
    for (i = 0; i < Inc; ++i)
      ;
    Inc -= 700;
    BlockErase(midx1 + 1, midy1 + 1, midx2 - 1, midy2 - 1);
    XDrawBox1(midx1, midy1, midx2, midy2);
  }
  BlockErase(x, y, xx, yy);
  XDrawBox1(x, y, xx, yy);
}
```