// File: /workspace/github_cpp_makefile_star2_O3/i32ropie[P]n-queen-microservice/./extra_functions.hpp
// Function: exportar_soluciones[abi:cxx11](std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>> const&)
std::string exportar_soluciones(const std::vector<std::vector<int>> &soluciones){
    struct stat st = {0};
    tablero t;
    if(stat("soluciones", &st) == -1){
        mkdir("soluciones", 0700);
    }
    time_t epoch = std::time(0);
    std::string carpeta_salida = "soluciones/" + std::to_string(epoch);
    mkdir(carpeta_salida.c_str(), 0700);
    for(int k = 0 ; k < soluciones.size() ; ++k){
        std::string fichero_salida = carpeta_salida + "/" + std::to_string(k) + ".sol";
        std::ofstream f(fichero_salida.c_str());
        std::vector<int> sol = soluciones[k];
        for(int i = 0 ; i < sol.size() ; ++i){
            for(int j = 0 ; j < sol.size() ; ++j){
                if(j == sol[i]){
                    f << t.reina;
                }
                else if((i+j)%2==0){
                    f << t.blanco;
                }
                else{
                    f << t.negro;
                }
            }
            f << std::endl;
        }
        f.close();
    }
    return carpeta_salida;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x388, %rsp            # imm = 0x388
movq %rsi, -0x68(%rbp)
movq %rdi, -0x30(%rbp)
leaq -0x3a8(%rbp), %rbx
xorl %r14d, %r14d
movl $0x90, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x20b0
leaq -0x108(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movl $0x20a096e2, (%rcx)     # imm = 0x20A096E2
movl $0x4, %eax
movq %rax, -0x8(%rcx)
movb %r14b, 0x4(%rcx)
leaq -0xe8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movl $0x20a196e2, (%rcx)     # imm = 0x20A196E2
movq %rax, -0x8(%rcx)
movb %r14b, 0x4(%rcx)
leaq -0xc8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movl $0x209b99e2, (%rcx)     # imm = 0x209B99E2
movq %rax, -0x8(%rcx)
movb %r14b, 0x4(%rcx)
leaq 0x196c(%rip), %rdi      # 0x402c
movq %rbx, %rsi
callq 0x2120
cmpl $-0x1, %eax
jne 0x26de
leaq 0x1958(%rip), %rdi      # 0x402c
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x2090
xorl %edi, %edi
callq 0x2130
movq %rax, %r13
movq %rax, %r12
negq %r12
cmovsq %rax, %r12
movl $0x1, %ebx
cmpq $0xa, %r12
jb 0x274c
movl $0x4, %ebx
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %r12, %rcx
cmpq $0x63, %rcx
jbe 0x2745
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x274a
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x274c
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %ebx
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x270f
addl $-0x3, %ebx
jmp 0x274c
addl $-0x2, %ebx
jmp 0x274c
decl %ebx
shrq $0x3f, %r13
leal (%rbx,%r13), %esi
leaq -0x308(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x318(%rbp), %rdi
movl $0x2d, %edx
callq 0x21a0
leaq -0x318(%rbp), %r15
addq (%r15), %r13
movq %r13, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x3046
leaq 0x18a9(%rip), %rcx      # 0x4037
movl $0xb, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2180
movq -0x30(%rbp), %r13
leaq 0x10(%r13), %rsi
movq %rsi, (%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq -0x308(%rbp), %r8
movq %rsi, -0x60(%rbp)
je 0x27d3
movq %rdx, (%r13)
movq (%rcx), %rdx
movq %rdx, 0x10(%r13)
jmp 0x27d9
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%r13)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x318(%rbp), %rdi
cmpq %r8, %rdi
je 0x2801
callq 0x2140
movq (%r13), %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x2090
movq -0x68(%rbp), %rcx
movq 0x8(%rcx), %rax
cmpq (%rcx), %rax
je 0x2bd7
leaq -0xf0(%rbp), %r14
leaq -0xd0(%rbp), %r12
movq 0x379b(%rip), %rax      # 0x5fd0
movq (%rax), %rcx
movq %rcx, -0x98(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x90(%rbp)
movq $0x0, -0x38(%rbp)
leaq -0x58(%rbp), %rbx
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x356c
movq %rbx, %rdi
leaq 0x17c6(%rip), %rsi      # 0x4041
callq 0x2240
movl $0x1, %ebx
cmpq $0xa, -0x38(%rbp)
jb 0x28cf
movl $0x4, %ebx
movq -0x38(%rbp), %rax
cmpl $0x63, %eax
jbe 0x28c8
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x28cd
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x28cf
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x2895
addl $-0x3, %ebx
jmp 0x28cf
addl $-0x2, %ebx
jmp 0x28cf
decl %ebx
movl %ebx, %esi
leaq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq -0x88(%rbp), %rdi
movl $0x2d, %edx
callq 0x21a0
movq -0x88(%rbp), %rdi
movl %ebx, %esi
movq -0x38(%rbp), %rdx
callq 0x30c6
movq -0x58(%rbp), %rcx
movl $0xf, %edi
leaq -0x48(%rbp), %rax
cmpq %rax, %rcx
je 0x2915
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %r8
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
leaq -0x308(%rbp), %rbx
jbe 0x294b
movl $0xf, %edi
leaq -0x78(%rbp), %r9
cmpq %r9, %rsi
je 0x2946
movq -0x78(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x2956
leaq -0x58(%rbp), %rdi
callq 0x2050
jmp 0x2966
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2180
movq %rbx, -0x318(%rbp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x298c
movq %rdx, -0x318(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x308(%rbp)
jmp 0x2992
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x310(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %r15, %rdi
leaq 0x1688(%rip), %rsi      # 0x4043
callq 0x2240
leaq -0xa8(%rbp), %rsi
movq %rsi, -0xb8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x29f0
movq %rdx, -0xb8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa8(%rbp)
jmp 0x29f6
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xb0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x318(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2a21
callq 0x2140
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
leaq -0x58(%rbp), %rbx
je 0x2a3a
callq 0x2140
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x2a4c
callq 0x2140
movq -0xb8(%rbp), %rsi
movq %r15, %rdi
movl $0x10, %edx
callq 0x2170
movq -0x38(%rbp), %rax
leaq (%rax,%rax,2), %rsi
shlq $0x3, %rsi
movq -0x68(%rbp), %rax
addq (%rax), %rsi
movq %rbx, %rdi
callq 0x2e42
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rcx
cmpq %rax, %rcx
je 0x2b37
xorl %ebx, %ebx
cmpq %rax, %rcx
je 0x2aee
xorl %r13d, %r13d
movl (%rax,%rbx,4), %eax
cmpq %rax, %r13
jne 0x2aaa
movq -0xd8(%rbp), %rsi
movq %r12, %rax
jmp 0x2acc
leal (%rbx,%r13), %eax
testb $0x1, %al
jne 0x2abe
movq -0xf8(%rbp), %rsi
movq %r14, %rax
jmp 0x2acc
movq -0x118(%rbp), %rsi
leaq -0x110(%rbp), %rax
movq (%rax), %rdx
movq %r15, %rdi
callq 0x2190
incq %r13
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r13, %rcx
ja 0x2a96
movq -0x318(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
incq %rbx
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %rbx, %rdx
ja 0x2a8e
movq %r15, %rdi
callq 0x21b0
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
movq -0x30(%rbp), %r13
je 0x2b51
callq 0x2140
movq -0x98(%rbp), %rax
movq %rax, -0x318(%rbp)
movq -0x18(%rax), %rax
movq -0x90(%rbp), %rcx
movq %rcx, -0x318(%rbp,%rax)
leaq -0x310(%rbp), %rdi
callq 0x2100
leaq -0x220(%rbp), %rdi
callq 0x2060
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
leaq -0x58(%rbp), %rbx
je 0x2ba6
callq 0x2140
movq -0x68(%rbp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
movq -0x38(%rbp), %rdx
incq %rdx
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
movq %rdx, -0x38(%rbp)
cmpq %rdx, %rax
ja 0x2856
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x2bef
callq 0x2140
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x2c07
callq 0x2140
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x2c1f
callq 0x2140
movq %r13, %rax
addq $0x388, %rsp            # imm = 0x388
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x318(%rbp), %rdi
leaq -0x308(%rbp), %rax
jmp 0x2d24
movq %rax, %r14
jmp 0x2d2e
jmp 0x2cb6
movq %rax, %r14
jmp 0x2ca0
jmp 0x2c5b
movq %rax, %r14
jmp 0x2c8e
movq %rax, %r14
jmp 0x2c79
movq %rax, %r14
movq -0x318(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2c79
callq 0x2140
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x2c8e
callq 0x2140
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x2ca0
callq 0x2140
movq -0x30(%rbp), %r13
jmp 0x2d1c
movq %rax, %r14
jmp 0x2d04
movq %rax, %r14
movq -0x30(%rbp), %r13
jmp 0x2ccb
jmp 0x2cb6
movq %rax, %r14
movq -0x30(%rbp), %r13
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x2ccb
callq 0x2140
movq -0x98(%rbp), %rax
movq %rax, -0x318(%rbp)
movq -0x18(%rax), %rax
movq -0x90(%rbp), %rcx
movq %rcx, -0x318(%rbp,%rax)
leaq -0x310(%rbp), %rdi
callq 0x2100
leaq -0x220(%rbp), %rdi
callq 0x2060
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x2d1c
callq 0x2140
movq -0x60(%rbp), %rax
movq (%r13), %rdi
cmpq %rax, %rdi
je 0x2d2e
callq 0x2140
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x2d46
callq 0x2140
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x2d5e
callq 0x2140
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x2d76
callq 0x2140
movq %r14, %rdi
callq 0x2220