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

```asm
<unir_cuatro_imagenes>:
  endbr64
  push   %r15
  lea    (%r8,%r8,1),%eax
  mov    %rcx,%r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %rdi,%r12
  lea    (%r9,%r9,1),%edi
  push   %rbp
  imul   %eax,%edi
  movslq %eax,%rbp
  push   %rbx
  mov    %r9d,%ebx
  shl    $0x2,%edi
  sub    $0x18,%rsp
  mov    %r8d,0xc(%rsp)
  call   <malloc@plt>
  mov    0xc(%rsp),%r8d
  mov    %rax,%r9
  mov    %r8d,%eax
  imul   %ebx,%eax
  mov    %eax,0xc(%rsp)
  test   %r8d,%r8d
  jle    L161
  movslq %r8d,%r10
  mov    %r9,%r11
  shl    $0x2,%rbp
  xor    %edi,%edi
  lea    0x0(,%r10,4),%rax
  sub    %r14,%r11
  nopw   0x0(%rax,%rax,1)
L94:
  lea    (%r11,%r14,1),%rsi
  mov    %r14,%rcx
  xor    %edx,%edx
  test   %ebx,%ebx
  jle    L41
  nopl   (%rax)
L154:
  movss  (%rcx),%xmm0
  add    $0x1,%edx
  add    %rax,%rcx
  movss  %xmm0,(%rsi)
  add    %rbp,%rsi
  cmp    %edx,%ebx
  jne    L154
L41:
  lea    0x1(%rdi),%edx
  add    $0x4,%r14
  cmp    %edx,%r8d
  je     L134
  mov    %edx,%edi
  jmp    L94
  nopl   (%rax)
L161:
  add    $0x18,%rsp
  mov    %r9,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L134:
  mov    %rax,%r11
  xor    %r8d,%r8d
  sub    %r15,%r11
  add    %r9,%r11
  nopl   0x0(%rax)
L46:
  lea    (%r15,%r11,1),%rsi
  mov    %r15,%rcx
  xor    %edx,%edx
  test   %ebx,%ebx
  jle    L124
  nopl   (%rax)
L16:
  movss  (%rcx),%xmm0
  add    $0x1,%edx
  add    %rax,%rcx
  movss  %xmm0,(%rsi)
  add    %rbp,%rsi
  cmp    %edx,%ebx
  jne    L16
L124:
  lea    0x1(%r8),%edx
  add    $0x4,%r15
  cmp    %r8d,%edi
  je     L52
  mov    %edx,%r8d
  jmp    L46
  nopw   0x0(%rax,%rax,1)
L52:
  mov    0xc(%rsp),%r11d
  xor    %r8d,%r8d
  add    %r11d,%r11d
  movslq %r11d,%r11
  lea    (%r9,%r11,4),%r14
  sub    %r12,%r14
  nopl   (%rax)
L147:
  lea    (%r12,%r14,1),%rsi
  mov    %r12,%rcx
  xor    %edx,%edx
  test   %ebx,%ebx
  jle    L136
  nopl   (%rax)
L82:
  movss  (%rcx),%xmm0
  add    $0x1,%edx
  add    %rax,%rcx
  movss  %xmm0,(%rsi)
  add    %rbp,%rsi
  cmp    %edx,%ebx
  jne    L82
L136:
  lea    0x1(%r8),%edx
  add    $0x4,%r12
  cmp    %r8d,%edi
  je     L135
  mov    %edx,%r8d
  jmp    L147
  nop
L135:
  add    %r10,%r11
  xor    %r8d,%r8d
  lea    (%r9,%r11,4),%r10
  sub    %r13,%r10
  nopl   (%rax)
L164:
  lea    (%r10,%r13,1),%rsi
  mov    %r13,%rcx
  xor    %edx,%edx
  test   %ebx,%ebx
  jle    L102
  nopl   (%rax)
L89:
  movss  (%rcx),%xmm0
  add    $0x1,%edx
  add    %rax,%rcx
  movss  %xmm0,(%rsi)
  add    %rbp,%rsi
  cmp    %edx,%ebx
  jne    L89
L102:
  lea    0x1(%r8),%edx
  add    $0x4,%r13
  cmp    %r8d,%edi
  je     L161
  mov    %edx,%r8d
  jmp    L164
```

assistant: ```c
float *unir_cuatro_imagenes(float *a, float *b, float *c, float *d, int width, int height) {
  int i, j;
  float *output = (float *)malloc(sizeof(float) * (width * 2) * (height * 2));
  float *tmp = output + (width * 2) * height;
  for (i = 0; i < width; i++) {
    for (j = 0; j < height; j++) {
      int index = (width * 2) * j + i;
      output[index] = c[width * j + i];
    }
  }
  for (i = 0; i < width; i++) {
    for (j = 0; j < height; j++) {
      int index = (width * 2) * j + i + width;
      output[index] = d[width * j + i];
    }
  }
  for (i = 0; i < width; i++) {
    for (j = 0; j < height; j++) {
      int index = (height * width * 2) + (width * 2) * j + i;
      output[index] = a[width * j + i];
    }
  }
  for (i = 0; i < width; i++) {
    for (j = 0; j < height; j++) {
      int index = (height * width * 2) + (width * 2) * j + i + width;
      output[index] = b[width * j + i];
    }
  }
  return output;
}
```