// File: /workspace/github_cpp_makefile_star2_O1/kaityo256[P]minlex/minlex.cpp
// Function: MinlexSearcher::perm_columns(Sudoku&)
void perm_columns(Sudoku &g) {
    int h1, h2, h3;
    g.headline_bits(h1, h2, h3);
    for (int k = 0; k < 6; k++) {
      if (!hlb_table[h3][k]) continue;
      int *ak = perm3[k];
      for (int j = 0; j < 6; j++) {
        if (!hlb_table[h2][j]) continue;
        int *aj = perm3[j];
        for (int i = 0; i < 6; i++) {
          if (!hlb_table[h1][i]) continue;
          int *ai = perm3[i];
          Sudoku g2 = g.perm_columns(ai, aj, ak).renumbering();
          if (min.head() < g2.head()) continue;
          perm_restrbox(g2);
        }
      }
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3a8, %rsp            # imm = 0x3A8
movq %rsi, %rax
movq %rdi, %r14
movl $0x1ffff, %ebx          # imm = 0x1FFFF
movabsq $-0x40000000000000, %r15 # imm = 0xFFC0000000000000
leaq 0x14(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0xc(%rsp), %rcx
movq %rax, 0x28(%rsp)
movq %rax, %rdi
callq 0x407c
leaq 0x310(%rsp), %r12
xorl %ecx, %ecx
leaq 0x32f1(%rip), %r13      # 0x7100
movslq 0xc(%rsp), %rax
leaq (%rax,%rax,2), %rax
leaq (%r13,%rax,2), %rax
movq %rcx, 0x18(%rsp)
cmpb $0x1, (%rcx,%rax)
jne 0x4058
movq 0x18(%rsp), %rax
leaq (%rax,%rax,2), %rax
leaq 0x32f4(%rip), %rcx      # 0x7130
leaq (%rcx,%rax,4), %rax
movq %rax, 0x30(%rsp)
xorl %ecx, %ecx
movslq 0x10(%rsp), %rax
leaq (%rax,%rax,2), %rax
leaq (%r13,%rax,2), %rax
movq %rcx, 0x20(%rsp)
cmpb $0x1, (%rcx,%rax)
jne 0x4046
movq 0x20(%rsp), %rax
leaq (%rax,%rax,2), %rax
leaq 0x32bc(%rip), %rcx      # 0x7130
leaq (%rcx,%rax,4), %rax
movq %rax, 0x38(%rsp)
xorl %ebp, %ebp
movslq 0x14(%rsp), %rax
leaq (%rax,%rax,2), %rax
leaq (%r13,%rax,2), %rax
cmpb $0x1, (%rbp,%rax)
jne 0x4039
leaq (%rbp,%rbp,2), %rax
leaq 0x328c(%rip), %rcx      # 0x7130
leaq (%rcx,%rax,4), %rdx
leaq 0x2b0(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x38(%rsp), %rcx
movq 0x30(%rsp), %r8
callq 0x416a
vmovups (%r12), %zmm0
vmovups 0x40(%r12), %zmm1
vmovups 0x50(%r12), %zmm2
vmovups %zmm2, 0x90(%rsp)
vmovups %zmm1, 0x80(%rsp)
vmovups %zmm0, 0x40(%rsp)
leaq 0x40(%rsp), %rdi
vzeroupper
callq 0x233c
vmovups 0x40(%rsp), %zmm0
vmovups 0x80(%rsp), %zmm1
vmovups 0x90(%rsp), %zmm2
leaq 0x220(%rsp), %rax
vmovups %zmm2, 0x50(%rax)
vmovups %zmm1, 0x40(%rax)
vmovups %zmm0, (%rax)
movl $0x60, %eax
movl 0x8(%r14,%rax), %ecx
andl %ebx, %ecx
movq (%r14,%rax), %rdx
andq %r15, %rdx
movq %rdx, -0x20(%rsp,%rax)
movq %rcx, -0x18(%rsp,%rax)
addq $0x10, %rax
cmpq $0xf0, %rax
jne 0x3f45
vmovups 0x40(%rsp), %zmm0
vmovups 0x80(%rsp), %zmm1
vmovups 0x90(%rsp), %zmm2
vmovups %zmm2, 0x50(%r12)
vmovups %zmm1, 0x40(%r12)
vmovups %zmm0, (%r12)
movl $0x60, %eax
movl 0x1c8(%rsp,%rax), %ecx
andl %ebx, %ecx
movq 0x1c0(%rsp,%rax), %rdx
andq %r15, %rdx
movq %rdx, 0xd0(%rsp,%rax)
movq %rcx, 0xd8(%rsp,%rax)
addq $0x10, %rax
cmpq $0xf0, %rax
jne 0x3fa3
vmovups 0x130(%rsp), %zmm0
vmovups 0x170(%rsp), %zmm1
vmovups 0x180(%rsp), %zmm2
leaq 0xa0(%rsp), %rax
vmovups %zmm2, 0x50(%rax)
vmovups %zmm1, 0x40(%rax)
vmovups %zmm0, (%rax)
leaq 0x2b0(%rsp), %rdi
leaq 0x40(%rsp), %rsi
vzeroupper
callq 0x43f8
testb %al, %al
jne 0x4039
movq %r14, %rdi
leaq 0x1c0(%rsp), %rsi
callq 0x44a4
incq %rbp
cmpq $0x6, %rbp
jne 0x3e7f
movq 0x20(%rsp), %rcx
incq %rcx
cmpq $0x6, %rcx
jne 0x3e47
movq 0x18(%rsp), %rcx
incq %rcx
cmpq $0x6, %rcx
jne 0x3e0f
addq $0x3a8, %rsp            # imm = 0x3A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq