// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/voro++/src/v_compute.cc
// Function: voro::voro_compute<voro::container>::scan_bits_mask_add(unsigned int, unsigned int*, int, int, int, int*&)
inline void voro_compute<c_class>::scan_bits_mask_add(unsigned int q,unsigned int *mijk,int ei,int ej,int ek,int *&qu_e) {
	const unsigned int b1=1<<21,b2=1<<22,b3=1<<24,b4=1<<25,b5=1<<27,b6=1<<28;
	if((q&b2)==b2) {
		if(ei>0) {*(mijk-1)=mv;*(qu_e++)=ei-1;*(qu_e++)=ej;*(qu_e++)=ek;}
		if((q&b1)==0&&ei<hx-1) {*(mijk+1)=mv;*(qu_e++)=ei+1;*(qu_e++)=ej;*(qu_e++)=ek;}
	} else if((q&b1)==b1&&ei<hx-1) {*(mijk+1)=mv;*(qu_e++)=ei+1;*(qu_e++)=ej;*(qu_e++)=ek;}
	if((q&b4)==b4) {
		if(ej>0) {*(mijk-hx)=mv;*(qu_e++)=ei;*(qu_e++)=ej-1;*(qu_e++)=ek;}
		if((q&b3)==0&&ej<hy-1) {*(mijk+hx)=mv;*(qu_e++)=ei;*(qu_e++)=ej+1;*(qu_e++)=ek;}
	} else if((q&b3)==b3&&ej<hy-1) {*(mijk+hx)=mv;*(qu_e++)=ei;*(qu_e++)=ej+1;*(qu_e++)=ek;}
	if((q&b6)==b6) {
		if(ek>0) {*(mijk-hxy)=mv;*(qu_e++)=ei;*(qu_e++)=ej;*(qu_e++)=ek-1;}
		if((q&b5)==0&&ek<hz-1) {*(mijk+hxy)=mv;*(qu_e++)=ei;*(qu_e++)=ej;*(qu_e++)=ek+1;}
	} else if((q&b5)==b5&&ek<hz-1) {*(mijk+hxy)=mv;*(qu_e++)=ei;*(qu_e++)=ej;*(qu_e++)=ek+1;}
}

// Assembly:
pushq %rbx
movq 0x10(%rsp), %rax
btl $0x16, %esi
jb 0x1844e
btl $0x15, %esi
jb 0x18487
jmp 0x184c2
testl %ecx, %ecx
jle 0x18481
movl 0x70(%rdi), %r10d
movl %r10d, -0x4(%rdx)
leal -0x1(%rcx), %r10d
movq (%rax), %r11
leaq 0x4(%r11), %rbx
movq %rbx, (%rax)
movl %r10d, (%r11)
leaq 0x8(%r11), %r10
movq %r10, (%rax)
movl %r8d, 0x4(%r11)
leaq 0xc(%r11), %r10
movq %r10, (%rax)
movl %r9d, 0x8(%r11)
btl $0x15, %esi
jb 0x184c2
movl 0x38(%rdi), %r10d
decl %r10d
cmpl %ecx, %r10d
jle 0x184c2
movl 0x70(%rdi), %r10d
movl %r10d, 0x4(%rdx)
leal 0x1(%rcx), %r10d
movq (%rax), %r11
leaq 0x4(%r11), %rbx
movq %rbx, (%rax)
movl %r10d, (%r11)
leaq 0x8(%r11), %r10
movq %r10, (%rax)
movl %r8d, 0x4(%r11)
leaq 0xc(%r11), %r10
movq %r10, (%rax)
movl %r9d, 0x8(%r11)
btl $0x19, %esi
jb 0x184d3
btl $0x18, %esi
jb 0x1851a
jmp 0x18559
testl %r8d, %r8d
jle 0x18514
movl 0x70(%rdi), %r10d
movslq 0x38(%rdi), %r11
shlq $0x2, %r11
movq %rdx, %rbx
subq %r11, %rbx
movl %r10d, (%rbx)
movq (%rax), %r10
leaq 0x4(%r10), %r11
movq %r11, (%rax)
movl %ecx, (%r10)
leal -0x1(%r8), %r11d
leaq 0x8(%r10), %rbx
movq %rbx, (%rax)
movl %r11d, 0x4(%r10)
leaq 0xc(%r10), %r11
movq %r11, (%rax)
movl %r9d, 0x8(%r10)
btl $0x18, %esi
jb 0x18559
movl 0x3c(%rdi), %r10d
decl %r10d
cmpl %r8d, %r10d
jle 0x18559
movl 0x70(%rdi), %r10d
movslq 0x38(%rdi), %r11
movl %r10d, (%rdx,%r11,4)
movq (%rax), %r10
leaq 0x4(%r10), %r11
movq %r11, (%rax)
movl %ecx, (%r10)
leal 0x1(%r8), %r11d
leaq 0x8(%r10), %rbx
movq %rbx, (%rax)
movl %r11d, 0x4(%r10)
leaq 0xc(%r10), %r11
movq %r11, (%rax)
movl %r9d, 0x8(%r10)
btl $0x1c, %esi
jb 0x1856a
btl $0x1b, %esi
jb 0x185b1
jmp 0x185ea
testl %r9d, %r9d
jle 0x185ab
movl 0x70(%rdi), %r10d
movslq 0x44(%rdi), %r11
shlq $0x2, %r11
movq %rdx, %rbx
subq %r11, %rbx
movl %r10d, (%rbx)
movq (%rax), %r10
leaq 0x4(%r10), %r11
movq %r11, (%rax)
movl %ecx, (%r10)
leaq 0x8(%r10), %r11
movq %r11, (%rax)
movl %r8d, 0x4(%r10)
leal -0x1(%r9), %r11d
leaq 0xc(%r10), %rbx
movq %rbx, (%rax)
movl %r11d, 0x8(%r10)
btl $0x1b, %esi
jb 0x185ea
movl 0x40(%rdi), %esi
decl %esi
cmpl %r9d, %esi
jle 0x185ea
movl 0x70(%rdi), %esi
movslq 0x44(%rdi), %rdi
movl %esi, (%rdx,%rdi,4)
movq (%rax), %rdx
leaq 0x4(%rdx), %rsi
movq %rsi, (%rax)
movl %ecx, (%rdx)
leaq 0x8(%rdx), %rcx
movq %rcx, (%rax)
movl %r8d, 0x4(%rdx)
incl %r9d
leaq 0xc(%rdx), %rcx
movq %rcx, (%rax)
movl %r9d, 0x8(%rdx)
popq %rbx
retq