#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int floor(double);
unsigned int rnd_xor(unsigned int);
int /*<<< orphan*/ vol_draw_fill_box(float, float, float, float);
void vol_draw_self_sim_cubes(float x, float y, float z, float size,
                             unsigned int corners, unsigned int seed,
                             unsigned short lvl) {
  if (lvl >= 1) {
    if (corners > 7)
      corners = 7;
    unsigned char corner_mask = 0x0;
    int i;
    unsigned int rnd = rnd_xor(seed);
    for (i = 0; i < corners; i++) {
      double val = (double)rnd / (double)0xFFFFFFFF;
      int corner = floor((val - 0.00000001) * 8.);
      while (corner_mask & (1 << corner))
        corner = (corner + 1) % 8;
      corner_mask |= 1 << corner;
      rnd = rnd_xor(rnd);
    }
    float cntr = size / 2;
    if (!(corner_mask & (1 << 0)))
      vol_draw_self_sim_cubes(x, y, z, cntr, corners, rnd = rnd_xor(rnd),
                              lvl - 1);
    if (!(corner_mask & (1 << 1)))
      vol_draw_self_sim_cubes(x, y, z + cntr, cntr, corners, rnd = rnd_xor(rnd),
                              lvl - 1);
    if (!(corner_mask & (1 << 2)))
      vol_draw_self_sim_cubes(x + cntr, y, z, cntr, corners, rnd = rnd_xor(rnd),
                              lvl - 1);
    if (!(corner_mask & (1 << 3)))
      vol_draw_self_sim_cubes(x + cntr, y, z + cntr, cntr, corners,
                              rnd = rnd_xor(rnd), lvl - 1);
    if (!(corner_mask & (1 << 4)))
      vol_draw_self_sim_cubes(x, y + cntr, z, cntr, corners, rnd = rnd_xor(rnd),
                              lvl - 1);
    if (!(corner_mask & (1 << 5)))
      vol_draw_self_sim_cubes(x, y + cntr, z + cntr, cntr, corners,
                              rnd = rnd_xor(rnd), lvl - 1);
    if (!(corner_mask & (1 << 6)))
      vol_draw_self_sim_cubes(x + cntr, y + cntr, z, cntr, corners,
                              rnd = rnd_xor(rnd), lvl - 1);
    if (!(corner_mask & (1 << 7)))
      vol_draw_self_sim_cubes(x + cntr, y + cntr, z + cntr, cntr, corners,
                              rnd = rnd_xor(rnd), lvl - 1);
  } else
    vol_draw_fill_box(x, y, z, size);
}


x86 assembly (clang, -O0):
<vol_draw_self_sim_cubes>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %dx,%ax
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
mov    %edi,-0x14(%rbp)
mov    %esi,-0x18(%rbp)
mov    %ax,-0x1a(%rbp)
movzwl -0x1a(%rbp),%eax
cmp    $0x1,%eax
jl     16ae <vol_draw_self_sim_cubes+0x56e>
cmpl   $0x7,-0x14(%rbp)
jbe    118a <vol_draw_self_sim_cubes+0x4a>
movl   $0x7,-0x14(%rbp)
movb   $0x0,-0x1b(%rbp)
mov    -0x18(%rbp),%edi
call   1030 <rnd_xor@plt>
mov    %eax,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1249 <vol_draw_self_sim_cubes+0x109>
mov    -0x24(%rbp),%eax
cvtsi2sd %rax,%xmm0
movsd  0xe5c(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xe3e(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xe2a(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,-0x34(%rbp)
movzbl -0x1b(%rbp),%eax
mov    -0x34(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     121b <vol_draw_self_sim_cubes+0xdb>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %edx,-0x34(%rbp)
jmp    11ea <vol_draw_self_sim_cubes+0xaa>
mov    -0x34(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,%ecx
movzbl -0x1b(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x1b(%rbp)
mov    -0x24(%rbp),%edi
call   1030 <rnd_xor@plt>
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11a0 <vol_draw_self_sim_cubes+0x60>
movss  -0x10(%rbp),%xmm0
movss  0xdaa(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x38(%rbp)
movzbl -0x1b(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
jne    12d0 <vol_draw_self_sim_cubes+0x190>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x24(%rbp),%edi
call   1030 <rnd_xor@plt>
movss  -0x4c(%rbp),%xmm0
movss  -0x48(%rbp),%xmm1
movss  -0x44(%rbp),%xmm2
movss  -0x40(%rbp),%xmm3
mov    -0x3c(%rbp),%edi
mov    %eax,%esi
mov    %esi,-0x24(%rbp)
movzwl -0x1a(%rbp),%eax
sub    $0x1,%eax
movzwl %ax,%edx
call   1040 <vol_draw_self_sim_cubes@plt>
movzbl -0x1b(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
jne    1346 <vol_draw_self_sim_cubes+0x206>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x60(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  -0xc(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x58(%rbp)
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x24(%rbp),%edi
call   1030 <rnd_xor@plt>
movss  -0x60(%rbp),%xmm0
movss  -0x5c(%rbp),%xmm1
movss  -0x58(%rbp),%xmm2
movss  -0x54(%rbp),%xmm3
mov    -0x50(%rbp),%edi
mov    %eax,%esi
mov    %esi,-0x24(%rbp)
movzwl -0x1a(%rbp),%eax
sub    $0x1,%eax
movzwl %ax,%edx
call   1040 <vol_draw_self_sim_cubes@plt>
movzbl -0x1b(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
jne    13bc <vol_draw_self_sim_cubes+0x27c>
movss  -0x4(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x6c(%rbp)
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x68(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x24(%rbp),%edi
call   1030 <rnd_xor@plt>
movss  -0x74(%rbp),%xmm0
movss  -0x70(%rbp),%xmm1
movss  -0x6c(%rbp),%xmm2
movss  -0x68(%rbp),%xmm3
mov    -0x64(%rbp),%edi
mov    %eax,%esi
mov    %esi,-0x24(%rbp)
movzwl -0x1a(%rbp),%eax
sub    $0x1,%eax
movzwl %ax,%edx
call   1040 <vol_draw_self_sim_cubes@plt>
movzbl -0x1b(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
jne    1443 <vol_draw_self_sim_cubes+0x303>
movss  -0x4(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x88(%rbp)
ff
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0xc(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x80(%rbp)
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x7c(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x24(%rbp),%edi
call   1030 <rnd_xor@plt>
movss  -0x88(%rbp),%xmm0
ff
movss  -0x84(%rbp),%xmm1
ff
movss  -0x80(%rbp),%xmm2
movss  -0x7c(%rbp),%xmm3
mov    -0x78(%rbp),%edi
mov    %eax,%esi
mov    %esi,-0x24(%rbp)
movzwl -0x1a(%rbp),%eax
sub    $0x1,%eax
movzwl %ax,%edx
call   1040 <vol_draw_self_sim_cubes@plt>
movzbl -0x1b(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
jne    14d7 <vol_draw_self_sim_cubes+0x397>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x9c(%rbp)
ff
movss  -0x8(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x98(%rbp)
ff
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x94(%rbp)
ff
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x90(%rbp)
ff
mov    -0x14(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x24(%rbp),%edi
call   1030 <rnd_xor@plt>
movss  -0x9c(%rbp),%xmm0
ff
movss  -0x98(%rbp),%xmm1
ff
movss  -0x94(%rbp),%xmm2
ff
movss  -0x90(%rbp),%xmm3
ff
mov    -0x8c(%rbp),%edi
mov    %eax,%esi
mov    %esi,-0x24(%rbp)
movzwl -0x1a(%rbp),%eax
sub    $0x1,%eax
movzwl %ax,%edx
call   1040 <vol_draw_self_sim_cubes@plt>
movzbl -0x1b(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
jne    1570 <vol_draw_self_sim_cubes+0x430>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0xb0(%rbp)
ff
movss  -0x8(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0xac(%rbp)
ff
movss  -0xc(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0xa8(%rbp)
ff
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
mov    -0x14(%rbp),%eax
mov    %eax,-0xa0(%rbp)
mov    -0x24(%rbp),%edi
call   1030 <rnd_xor@plt>
movss  -0xb0(%rbp),%xmm0
ff
movss  -0xac(%rbp),%xmm1
ff
movss  -0xa8(%rbp),%xmm2
ff
movss  -0xa4(%rbp),%xmm3
ff
mov    -0xa0(%rbp),%edi
mov    %eax,%esi
mov    %esi,-0x24(%rbp)
movzwl -0x1a(%rbp),%eax
sub    $0x1,%eax
movzwl %ax,%edx
call   1040 <vol_draw_self_sim_cubes@plt>
movzbl -0x1b(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
jne    1609 <vol_draw_self_sim_cubes+0x4c9>
movss  -0x4(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0xc4(%rbp)
ff
movss  -0x8(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0xc0(%rbp)
ff
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xbc(%rbp)
ff
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0xb8(%rbp)
ff
mov    -0x14(%rbp),%eax
mov    %eax,-0xb4(%rbp)
mov    -0x24(%rbp),%edi
call   1030 <rnd_xor@plt>
movss  -0xc4(%rbp),%xmm0
ff
movss  -0xc0(%rbp),%xmm1
ff
movss  -0xbc(%rbp),%xmm2
ff
movss  -0xb8(%rbp),%xmm3
ff
mov    -0xb4(%rbp),%edi
mov    %eax,%esi
mov    %esi,-0x24(%rbp)
movzwl -0x1a(%rbp),%eax
sub    $0x1,%eax
movzwl %ax,%edx
call   1040 <vol_draw_self_sim_cubes@plt>
movzbl -0x1b(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    16a9 <vol_draw_self_sim_cubes+0x569>
movss  -0x4(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0xd8(%rbp)
ff
movss  -0x8(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0xd4(%rbp)
ff
movss  -0xc(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0xd0(%rbp)
ff
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0xcc(%rbp)
ff
mov    -0x14(%rbp),%eax
mov    %eax,-0xc8(%rbp)
mov    -0x24(%rbp),%edi
call   1030 <rnd_xor@plt>
movss  -0xd8(%rbp),%xmm0
ff
movss  -0xd4(%rbp),%xmm1
ff
movss  -0xd0(%rbp),%xmm2
ff
movss  -0xcc(%rbp),%xmm3
ff
mov    -0xc8(%rbp),%edi
mov    %eax,%esi
mov    %esi,-0x24(%rbp)
movzwl -0x1a(%rbp),%eax
sub    $0x1,%eax
movzwl %ax,%edx
call   1040 <vol_draw_self_sim_cubes@plt>
jmp    16c7 <vol_draw_self_sim_cubes+0x587>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x10(%rbp),%xmm3
call   1050 <vol_draw_fill_box@plt>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vol_draw_self_sim_cubes>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movss  %xmm2,0x10(%rsp)
movss  %xmm1,0xc(%rsp)
movss  %xmm0,0x8(%rsp)
test   %edx,%edx
movss  %xmm3,(%rsp)
je     155c <vol_draw_self_sim_cubes+0x41c>
mov    %edx,%r14d
mov    %esi,%eax
mov    %edi,%r12d
cs nopw 0x0(%rax,%rax,1)
nop
cmp    $0x7,%r12d
mov    $0x7,%ecx
cmovae %ecx,%r12d
mov    %eax,%edi
call   1030 <rnd_xor@plt>
mov    %eax,%r13d
test   %r12d,%r12d
je     12b0 <vol_draw_self_sim_cubes+0x170>
xor    %ebp,%ebp
xor    %ebx,%ebx
jmp    11c9 <vol_draw_self_sim_cubes+0x89>
cs nopw 0x0(%rax,%rax,1)
mov    %r13d,%edi
call   1030 <rnd_xor@plt>
mov    %eax,%r13d
add    $0x1,%ebx
movzbl %r15b,%eax
or     %eax,%ebp
cmp    %r12d,%ebx
je     1240 <vol_draw_self_sim_cubes+0x100>
mov    %r13d,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0xe24(%rip),%xmm0
addsd  0xe24(%rip),%xmm0
mulsd  0xe24(%rip),%xmm0
call   1060 <floor@plt>
mov    %eax,%ecx
mov    $0x1,%r15d
shl    %cl,%r15d
bt     %eax,%ebp
jae    11b0 <vol_draw_self_sim_cubes+0x70>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0x1(%rcx),%eax
lea    0x8(%rcx),%edx
test   %eax,%eax
cmovns %eax,%edx
and    $0xfffffff8,%edx
neg    %edx
add    %edx,%ecx
add    $0x1,%ecx
mov    $0x1,%r15d
shl    %cl,%r15d
bt     %ecx,%ebp
jb     1210 <vol_draw_self_sim_cubes+0xd0>
jmp    11b0 <vol_draw_self_sim_cubes+0x70>
nopl   0x0(%rax,%rax,1)
movss  (%rsp),%xmm0
mulss  0xdcb(%rip),%xmm0
movss  %xmm0,(%rsp)
test   $0x1,%bpl
je     12c4 <vol_draw_self_sim_cubes+0x184>
test   $0x2,%bpl
je     1302 <vol_draw_self_sim_cubes+0x1c2>
test   $0x4,%bpl
je     1351 <vol_draw_self_sim_cubes+0x211>
test   $0x8,%bpl
je     13a0 <vol_draw_self_sim_cubes+0x260>
test   $0x10,%bpl
je     1403 <vol_draw_self_sim_cubes+0x2c3>
test   $0x20,%bpl
je     1452 <vol_draw_self_sim_cubes+0x312>
test   $0x40,%bpl
je     14b5 <vol_draw_self_sim_cubes+0x375>
test   $0x80,%bpl
je     1514 <vol_draw_self_sim_cubes+0x3d4>
jmp    1586 <vol_draw_self_sim_cubes+0x446>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  (%rsp),%xmm0
mulss  0xd5b(%rip),%xmm0
movss  %xmm0,(%rsp)
xor    %ebp,%ebp
mov    %r13d,%edi
call   1030 <rnd_xor@plt>
mov    %eax,%r13d
lea    -0x1(%r14),%eax
movzwl %ax,%edx
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
movss  (%rsp),%xmm3
mov    %r12d,%edi
mov    %r13d,%esi
call   1040 <vol_draw_self_sim_cubes@plt>
test   $0x2,%bpl
jne    1262 <vol_draw_self_sim_cubes+0x122>
movss  0x10(%rsp),%xmm0
addss  (%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
mov    %r13d,%edi
call   1030 <rnd_xor@plt>
mov    %eax,%r13d
lea    -0x1(%r14),%eax
movzwl %ax,%edx
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
movss  0x4(%rsp),%xmm2
movss  (%rsp),%xmm3
mov    %r12d,%edi
mov    %r13d,%esi
call   1040 <vol_draw_self_sim_cubes@plt>
test   $0x4,%bpl
jne    126c <vol_draw_self_sim_cubes+0x12c>
movss  0x8(%rsp),%xmm0
addss  (%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
mov    %r13d,%edi
call   1030 <rnd_xor@plt>
mov    %eax,%r13d
lea    -0x1(%r14),%eax
movzwl %ax,%edx
movss  0x4(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
movss  (%rsp),%xmm3
mov    %r12d,%edi
mov    %r13d,%esi
call   1040 <vol_draw_self_sim_cubes@plt>
test   $0x8,%bpl
jne    1276 <vol_draw_self_sim_cubes+0x136>
movss  0x8(%rsp),%xmm1
movss  (%rsp),%xmm0
addss  %xmm0,%xmm1
movss  %xmm1,0x14(%rsp)
movss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x4(%rsp)
mov    %r13d,%edi
call   1030 <rnd_xor@plt>
mov    %eax,%r13d
lea    -0x1(%r14),%eax
movzwl %ax,%edx
movss  0x14(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
movss  0x4(%rsp),%xmm2
movss  (%rsp),%xmm3
mov    %r12d,%edi
mov    %r13d,%esi
call   1040 <vol_draw_self_sim_cubes@plt>
test   $0x10,%bpl
jne    1280 <vol_draw_self_sim_cubes+0x140>
movss  0xc(%rsp),%xmm0
addss  (%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
mov    %r13d,%edi
call   1030 <rnd_xor@plt>
mov    %eax,%r13d
lea    -0x1(%r14),%eax
movzwl %ax,%edx
movss  0x8(%rsp),%xmm0
movss  0x4(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
movss  (%rsp),%xmm3
mov    %r12d,%edi
mov    %r13d,%esi
call   1040 <vol_draw_self_sim_cubes@plt>
test   $0x20,%bpl
jne    128a <vol_draw_self_sim_cubes+0x14a>
movss  0xc(%rsp),%xmm1
movss  (%rsp),%xmm0
addss  %xmm0,%xmm1
movss  %xmm1,0x4(%rsp)
movss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x14(%rsp)
mov    %r13d,%edi
call   1030 <rnd_xor@plt>
mov    %eax,%r13d
lea    -0x1(%r14),%eax
movzwl %ax,%edx
movss  0x8(%rsp),%xmm0
movss  0x4(%rsp),%xmm1
movss  0x14(%rsp),%xmm2
movss  (%rsp),%xmm3
mov    %r12d,%edi
mov    %r13d,%esi
call   1040 <vol_draw_self_sim_cubes@plt>
test   $0x40,%bpl
jne    1294 <vol_draw_self_sim_cubes+0x154>
movss  0x8(%rsp),%xmm1
movss  (%rsp),%xmm0
addss  %xmm0,%xmm1
movss  %xmm1,0x4(%rsp)
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x14(%rsp)
mov    %r13d,%edi
call   1030 <rnd_xor@plt>
mov    %eax,%r13d
lea    -0x1(%r14),%eax
movzwl %ax,%edx
movss  0x4(%rsp),%xmm0
movss  0x14(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
movss  (%rsp),%xmm3
mov    %r12d,%edi
mov    %r13d,%esi
call   1040 <vol_draw_self_sim_cubes@plt>
test   $0x80,%bpl
jne    1586 <vol_draw_self_sim_cubes+0x446>
movss  (%rsp),%xmm0
movss  0x8(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x10(%rsp)
mov    %r13d,%edi
call   1030 <rnd_xor@plt>
add    $0xffff,%r14w
jne    1180 <vol_draw_self_sim_cubes+0x40>
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
movss  (%rsp),%xmm3
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <vol_draw_fill_box@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @vol_draw_self_sim_cubes(float %0, float %1, float %2, float %3, i32 %4, i32 %5, i16 zeroext %6) {
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca i32
%13 = alloca i32
%14 = alloca i16
%15 = alloca i8
%16 = alloca i32
%17 = alloca i32
%18 = alloca double
%19 = alloca i32
%20 = alloca float
store float %0, float* %8
store float %1, float* %9
store float %2, float* %10
store float %3, float* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i16 %6, i16* %14
%21 = load i16, i16* %14
%22 = zext i16 %21 to i32
%23 = icmp sge i32 %22, 1
br i1 %23, label %24, label %229
24: ; preds = %7
%25 = load i32, i32* %12
%26 = icmp ugt i32 %25, 7
br i1 %26, label %27, label %28
27: ; preds = %24
store i32 7, i32* %12
br label %28
28: ; preds = %27, %24
store i8 0, i8* %15
%29 = load i32, i32* %13
%30 = call i32 @rnd_xor(i32 %29)
store i32 %30, i32* %17
store i32 0, i32* %16
br label %31
31: ; preds = %63, %28
%32 = load i32, i32* %16
%33 = load i32, i32* %12
%34 = icmp ult i32 %32, %33
br i1 %34, label %35, label %66
35: ; preds = %31
%36 = load i32, i32* %17
%37 = uitofp i32 %36 to double
%38 = fdiv double %37, 0x41EFFFFFFFE00000
store double %38, double* %18
%39 = load double, double* %18
%40 = fsub double %39, 1.000000e-08
%41 = fmul double %40, 8.000000e+00
%42 = call i32 @floor(double %41)
store i32 %42, i32* %19
br label %43
43: ; preds = %50, %35
%44 = load i8, i8* %15
%45 = zext i8 %44 to i32
%46 = load i32, i32* %19
%47 = shl i32 1, %46
%48 = and i32 %45, %47
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %43
%51 = load i32, i32* %19
%52 = add nsw i32 %51, 1
%53 = srem i32 %52, 8
store i32 %53, i32* %19
br label %43
54: ; preds = %43
%55 = load i32, i32* %19
%56 = shl i32 1, %55
%57 = load i8, i8* %15
%58 = zext i8 %57 to i32
%59 = or i32 %58, %56
%60 = trunc i32 %59 to i8
store i8 %60, i8* %15
%61 = load i32, i32* %17
%62 = call i32 @rnd_xor(i32 %61)
store i32 %62, i32* %17
br label %63
63: ; preds = %54
%64 = load i32, i32* %16
%65 = add nsw i32 %64, 1
store i32 %65, i32* %16
br label %31
66: ; preds = %31
%67 = load float, float* %11
%68 = fdiv float %67, 2.000000e+00
store float %68, float* %20
%69 = load i8, i8* %15
%70 = zext i8 %69 to i32
%71 = and i32 %70, 1
%72 = icmp ne i32 %71, 0
br i1 %72, label %85, label %73
73: ; preds = %66
%74 = load float, float* %8
%75 = load float, float* %9
%76 = load float, float* %10
%77 = load float, float* %20
%78 = load i32, i32* %12
%79 = load i32, i32* %17
%80 = call i32 @rnd_xor(i32 %79)
store i32 %80, i32* %17
%81 = load i16, i16* %14
%82 = zext i16 %81 to i32
%83 = sub nsw i32 %82, 1
%84 = trunc i32 %83 to i16
br label %85
85: ; preds = %73, %66
%86 = load i8, i8* %15
%87 = zext i8 %86 to i32
%88 = and i32 %87, 2
%89 = icmp ne i32 %88, 0
br i1 %89, label %104, label %90
90: ; preds = %85
%91 = load float, float* %8
%92 = load float, float* %9
%93 = load float, float* %10
%94 = load float, float* %20
%95 = fadd float %93, %94
%96 = load float, float* %20
%97 = load i32, i32* %12
%98 = load i32, i32* %17
%99 = call i32 @rnd_xor(i32 %98)
store i32 %99, i32* %17
%100 = load i16, i16* %14
%101 = zext i16 %100 to i32
%102 = sub nsw i32 %101, 1
%103 = trunc i32 %102 to i16
br label %104
104: ; preds = %90, %85
%105 = load i8, i8* %15
%106 = zext i8 %105 to i32
%107 = and i32 %106, 4
%108 = icmp ne i32 %107, 0
br i1 %108, label %123, label %109
109: ; preds = %104
%110 = load float, float* %8
%111 = load float, float* %20
%112 = fadd float %110, %111
%113 = load float, float* %9
%114 = load float, float* %10
%115 = load float, float* %20
%116 = load i32, i32* %12
%117 = load i32, i32* %17
%118 = call i32 @rnd_xor(i32 %117)
store i32 %118, i32* %17
%119 = load i16, i16* %14
%120 = zext i16 %119 to i32
%121 = sub nsw i32 %120, 1
%122 = trunc i32 %121 to i16
br label %123
123: ; preds = %109, %104
%124 = load i8, i8* %15
%125 = zext i8 %124 to i32
%126 = and i32 %125, 8
%127 = icmp ne i32 %126, 0
br i1 %127, label %144, label %128
128: ; preds = %123
%129 = load float, float* %8
%130 = load float, float* %20
%131 = fadd float %129, %130
%132 = load float, float* %9
%133 = load float, float* %10
%134 = load float, float* %20
%135 = fadd float %133, %134
%136 = load float, float* %20
%137 = load i32, i32* %12
%138 = load i32, i32* %17
%139 = call i32 @rnd_xor(i32 %138)
store i32 %139, i32* %17
%140 = load i16, i16* %14
%141 = zext i16 %140 to i32
%142 = sub nsw i32 %141, 1
%143 = trunc i32 %142 to i16
br label %144
144: ; preds = %128, %123
%145 = load i8, i8* %15
%146 = zext i8 %145 to i32
%147 = and i32 %146, 16
%148 = icmp ne i32 %147, 0
br i1 %148, label %163, label %149
149: ; preds = %144
%150 = load float, float* %8
%151 = load float, float* %9
%152 = load float, float* %20
%153 = fadd float %151, %152
%154 = load float, float* %10
%155 = load float, float* %20
%156 = load i32, i32* %12
%157 = load i32, i32* %17
%158 = call i32 @rnd_xor(i32 %157)
store i32 %158, i32* %17
%159 = load i16, i16* %14
%160 = zext i16 %159 to i32
%161 = sub nsw i32 %160, 1
%162 = trunc i32 %161 to i16
br label %163
163: ; preds = %149, %144
%164 = load i8, i8* %15
%165 = zext i8 %164 to i32
%166 = and i32 %165, 32
%167 = icmp ne i32 %166, 0
br i1 %167, label %184, label %168
168: ; preds = %163
%169 = load float, float* %8
%170 = load float, float* %9
%171 = load float, float* %20
%172 = fadd float %170, %171
%173 = load float, float* %10
%174 = load float, float* %20
%175 = fadd float %173, %174
%176 = load float, float* %20
%177 = load i32, i32* %12
%178 = load i32, i32* %17
%179 = call i32 @rnd_xor(i32 %178)
store i32 %179, i32* %17
%180 = load i16, i16* %14
%181 = zext i16 %180 to i32
%182 = sub nsw i32 %181, 1
%183 = trunc i32 %182 to i16
br label %184
184: ; preds = %168, %163
%185 = load i8, i8* %15
%186 = zext i8 %185 to i32
%187 = and i32 %186, 64
%188 = icmp ne i32 %187, 0
br i1 %188, label %205, label %189
189: ; preds = %184
%190 = load float, float* %8
%191 = load float, float* %20
%192 = fadd float %190, %191
%193 = load float, float* %9
%194 = load float, float* %20
%195 = fadd float %193, %194
%196 = load float, float* %10
%197 = load float, float* %20
%198 = load i32, i32* %12
%199 = load i32, i32* %17
%200 = call i32 @rnd_xor(i32 %199)
store i32 %200, i32* %17
%201 = load i16, i16* %14
%202 = zext i16 %201 to i32
%203 = sub nsw i32 %202, 1
%204 = trunc i32 %203 to i16
br label %205
205: ; preds = %189, %184
%206 = load i8, i8* %15
%207 = zext i8 %206 to i32
%208 = and i32 %207, 128
%209 = icmp ne i32 %208, 0
br i1 %209, label %228, label %210
210: ; preds = %205
%211 = load float, float* %8
%212 = load float, float* %20
%213 = fadd float %211, %212
%214 = load float, float* %9
%215 = load float, float* %20
%216 = fadd float %214, %215
%217 = load float, float* %10
%218 = load float, float* %20
%219 = fadd float %217, %218
%220 = load float, float* %20
%221 = load i32, i32* %12
%222 = load i32, i32* %17
%223 = call i32 @rnd_xor(i32 %222)
store i32 %223, i32* %17
%224 = load i16, i16* %14
%225 = zext i16 %224 to i32
%226 = sub nsw i32 %225, 1
%227 = trunc i32 %226 to i16
br label %228
228: ; preds = %210, %205
br label %235
229: ; preds = %7
%230 = load float, float* %8
%231 = load float, float* %9
%232 = load float, float* %10
%233 = load float, float* %11
%234 = call i32 @vol_draw_fill_box(float %230, float %231, float %232, float %233)
br label %235
235: ; preds = %229, %228
ret void
}

LLVM IR (-O2):
define void @vol_draw_self_sim_cubes(float %0, float %1, float %2, float %3, i32 %4, i32 %5, i16 zeroext %6) {
%8 = icmp eq i16 %6, 0
br i1 %8, label %123, label %9
9: ; preds = %7, %116
%10 = phi i16 [ %121, %116 ], [ %6, %7 ]
%11 = phi i32 [ %120, %116 ], [ %5, %7 ]
%12 = phi i32 [ %18, %116 ], [ %4, %7 ]
%13 = phi float [ %60, %116 ], [ %3, %7 ]
%14 = phi float [ %119, %116 ], [ %2, %7 ]
%15 = phi float [ %118, %116 ], [ %1, %7 ]
%16 = phi float [ %117, %116 ], [ %0, %7 ]
%17 = icmp ult i32 %12, 7
%18 = select i1 %17, i32 %12, i32 7
%19 = tail call i32 @rnd_xor(i32 %11)
%20 = icmp eq i32 %18, 0
br i1 %20, label %21, label %23
21: ; preds = %9
%22 = fmul float %13, 5.000000e-01
br label %53
23: ; preds = %9, %42
%24 = phi i32 [ %47, %42 ], [ 0, %9 ]
%25 = phi i32 [ %44, %42 ], [ %19, %9 ]
%26 = phi i32 [ %45, %42 ], [ 0, %9 ]
%27 = uitofp i32 %25 to double
%28 = fdiv double %27, 0x41EFFFFFFFE00000
%29 = fadd double %28, -1.000000e-08
%30 = fmul double %29, 8.000000e+00
%31 = tail call i32 @floor(double %30)
%32 = shl nuw i32 1, %31
%33 = and i32 %32, %24
%34 = icmp eq i32 %33, 0
br i1 %34, label %42, label %35
35: ; preds = %23, %35
%36 = phi i32 [ %38, %35 ], [ %31, %23 ]
%37 = add nsw i32 %36, 1
%38 = srem i32 %37, 8
%39 = shl nuw nsw i32 1, %38
%40 = and i32 %39, %24
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %35
42: ; preds = %35, %23
%43 = phi i32 [ %32, %23 ], [ %39, %35 ]
%44 = tail call i32 @rnd_xor(i32 %25)
%45 = add nuw nsw i32 %26, 1
%46 = and i32 %43, 255
%47 = or i32 %46, %24
%48 = icmp eq i32 %45, %18
br i1 %48, label %49, label %23
49: ; preds = %42
%50 = fmul float %13, 5.000000e-01
%51 = and i32 %47, 1
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %59
53: ; preds = %21, %49
%54 = phi float [ %22, %21 ], [ %50, %49 ]
%55 = phi i32 [ 0, %21 ], [ %47, %49 ]
%56 = phi i32 [ %19, %21 ], [ %44, %49 ]
%57 = tail call i32 @rnd_xor(i32 %56)
%58 = add i16 %10, -1
tail call void @vol_draw_self_sim_cubes(float %16, float %15, float %14, float %54, i32 %18, i32 %57, i16 zeroext %58)
br label %59
59: ; preds = %53, %49
%60 = phi float [ %50, %49 ], [ %54, %53 ]
%61 = phi i32 [ %47, %49 ], [ %55, %53 ]
%62 = phi i32 [ %44, %49 ], [ %57, %53 ]
%63 = and i32 %61, 2
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %59
%66 = fadd float %14, %60
%67 = tail call i32 @rnd_xor(i32 %62)
%68 = add i16 %10, -1
tail call void @vol_draw_self_sim_cubes(float %16, float %15, float %66, float %60, i32 %18, i32 %67, i16 zeroext %68)
br label %69
69: ; preds = %65, %59
%70 = phi i32 [ %62, %59 ], [ %67, %65 ]
%71 = and i32 %61, 4
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %69
%74 = fadd float %16, %60
%75 = tail call i32 @rnd_xor(i32 %70)
%76 = add i16 %10, -1
tail call void @vol_draw_self_sim_cubes(float %74, float %15, float %14, float %60, i32 %18, i32 %75, i16 zeroext %76)
br label %77
77: ; preds = %73, %69
%78 = phi i32 [ %70, %69 ], [ %75, %73 ]
%79 = and i32 %61, 8
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %86
81: ; preds = %77
%82 = fadd float %16, %60
%83 = fadd float %14, %60
%84 = tail call i32 @rnd_xor(i32 %78)
%85 = add i16 %10, -1
tail call void @vol_draw_self_sim_cubes(float %82, float %15, float %83, float %60, i32 %18, i32 %84, i16 zeroext %85)
br label %86
86: ; preds = %81, %77
%87 = phi i32 [ %78, %77 ], [ %84, %81 ]
%88 = and i32 %61, 16
%89 = icmp eq i32 %88, 0
br i1 %89, label %90, label %94
90: ; preds = %86
%91 = fadd float %15, %60
%92 = tail call i32 @rnd_xor(i32 %87)
%93 = add i16 %10, -1
tail call void @vol_draw_self_sim_cubes(float %16, float %91, float %14, float %60, i32 %18, i32 %92, i16 zeroext %93)
br label %94
94: ; preds = %90, %86
%95 = phi i32 [ %87, %86 ], [ %92, %90 ]
%96 = and i32 %61, 32
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %103
98: ; preds = %94
%99 = fadd float %15, %60
%100 = fadd float %14, %60
%101 = tail call i32 @rnd_xor(i32 %95)
%102 = add i16 %10, -1
tail call void @vol_draw_self_sim_cubes(float %16, float %99, float %100, float %60, i32 %18, i32 %101, i16 zeroext %102)
br label %103
103: ; preds = %98, %94
%104 = phi i32 [ %95, %94 ], [ %101, %98 ]
%105 = and i32 %61, 64
%106 = icmp eq i32 %105, 0
br i1 %106, label %107, label %112
107: ; preds = %103
%108 = fadd float %16, %60
%109 = fadd float %15, %60
%110 = tail call i32 @rnd_xor(i32 %104)
%111 = add i16 %10, -1
tail call void @vol_draw_self_sim_cubes(float %108, float %109, float %14, float %60, i32 %18, i32 %110, i16 zeroext %111)
br label %112
112: ; preds = %107, %103
%113 = phi i32 [ %104, %103 ], [ %110, %107 ]
%114 = and i32 %61, 128
%115 = icmp eq i32 %114, 0
br i1 %115, label %116, label %129
116: ; preds = %112
%117 = fadd float %16, %60
%118 = fadd float %15, %60
%119 = fadd float %14, %60
%120 = tail call i32 @rnd_xor(i32 %113)
%121 = add i16 %10, -1
%122 = icmp eq i16 %121, 0
br i1 %122, label %123, label %9
123: ; preds = %116, %7
%124 = phi float [ %0, %7 ], [ %117, %116 ]
%125 = phi float [ %1, %7 ], [ %118, %116 ]
%126 = phi float [ %2, %7 ], [ %119, %116 ]
%127 = phi float [ %3, %7 ], [ %60, %116 ]
%128 = tail call i32 @vol_draw_fill_box(float %124, float %125, float %126, float %127)
br label %129
129: ; preds = %112, %123
ret void
}