// File: /workspace/github_c_makefile_star2_O0/k0n10pl4tr[P]minimal_crafter/aabb.c
// Function: checkCollisionWorld
AABBCollisionBit
checkCollisionWorld(const AABBCollisor* a)
{
	int xInt = (int)a->x;
	int yInt = (int)a->y;
	int zInt = (int)a->z;
	
	int wInt = (int)a->w;
	int hInt = (int)a->h;
	int dInt = (int)a->d;

	union {
		struct {
			unsigned int topLeftBackBlock;   
			unsigned int topRightBackBlock;
			unsigned int topLeftFrontBlock;    
			unsigned int topRightFrontBlock;   
			unsigned int bottomLeftBackBlock;  
			unsigned int bottomRightBackBlock; 
			unsigned int bottomLeftFrontBlock;
			unsigned int bottomRightFrontBlock;
		};
		unsigned int data[8];
	} blocks;

	blocks.topLeftBackBlock      = getWorldBlock(xInt, yInt + hInt, zInt);
	blocks.topRightBackBlock     = getWorldBlock(xInt + wInt, yInt + hInt, zInt);
	blocks.topLeftFrontBlock     = getWorldBlock(xInt, yInt + hInt, zInt + dInt);
	blocks.topRightFrontBlock    = getWorldBlock(xInt + wInt, yInt + hInt, zInt + dInt);
	blocks.bottomLeftBackBlock   = getWorldBlock(xInt, yInt, zInt);
	blocks.bottomRightBackBlock  = getWorldBlock(xInt + wInt, yInt, zInt);
	blocks.bottomLeftFrontBlock  = getWorldBlock(xInt, yInt, zInt + dInt);
	blocks.bottomRightFrontBlock = getWorldBlock(xInt + wInt, yInt, zInt + dInt);

	for(unsigned int i = 0; i < 8; i++) {
		if(blocks.data[i] != 0)
			return 1;
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cvttss2si (%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
cvttss2si 0x4(%rax), %eax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
cvttss2si 0x8(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
cvttss2si 0xc(%rax), %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
cvttss2si 0x10(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
cvttss2si 0x14(%rax), %eax
movl %eax, -0x28(%rbp)
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
addl -0x24(%rbp), %esi
movl -0x1c(%rbp), %edx
callq 0x8b80
movl %eax, -0x48(%rbp)
movl -0x14(%rbp), %edi
addl -0x20(%rbp), %edi
movl -0x18(%rbp), %esi
addl -0x24(%rbp), %esi
movl -0x1c(%rbp), %edx
callq 0x8b80
movl %eax, -0x44(%rbp)
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
addl -0x24(%rbp), %esi
movl -0x1c(%rbp), %edx
addl -0x28(%rbp), %edx
callq 0x8b80
movl %eax, -0x40(%rbp)
movl -0x14(%rbp), %edi
addl -0x20(%rbp), %edi
movl -0x18(%rbp), %esi
addl -0x24(%rbp), %esi
movl -0x1c(%rbp), %edx
addl -0x28(%rbp), %edx
callq 0x8b80
movl %eax, -0x3c(%rbp)
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
movl -0x1c(%rbp), %edx
callq 0x8b80
movl %eax, -0x38(%rbp)
movl -0x14(%rbp), %edi
addl -0x20(%rbp), %edi
movl -0x18(%rbp), %esi
movl -0x1c(%rbp), %edx
callq 0x8b80
movl %eax, -0x34(%rbp)
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
movl -0x1c(%rbp), %edx
addl -0x28(%rbp), %edx
callq 0x8b80
movl %eax, -0x30(%rbp)
movl -0x14(%rbp), %edi
addl -0x20(%rbp), %edi
movl -0x18(%rbp), %esi
movl -0x1c(%rbp), %edx
addl -0x28(%rbp), %edx
callq 0x8b80
movl %eax, -0x2c(%rbp)
movl $0x0, -0x4c(%rbp)
cmpl $0x8, -0x4c(%rbp)
jae 0x8e89
movl -0x4c(%rbp), %eax
cmpl $0x0, -0x48(%rbp,%rax,4)
je 0x8e7c
movb $0x1, -0x1(%rbp)
jmp 0x8e8d
jmp 0x8e7e
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x8e66
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x50, %rsp
popq %rbp
retq