// File: /workspace/github_cpp_makefile_star2_O1/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 0x1978(%rip), %rdi      # 0x402c
movq %rbx, %rsi
callq 0x2120
cmpl $-0x1, %eax
jne 0x26d2
leaq 0x1964(%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 0x2740
movl $0x4, %ebx
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %r12, %rcx
cmpq $0x63, %rcx
jbe 0x2739
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x273e
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x2740
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %ebx
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x2703
addl $-0x3, %ebx
jmp 0x2740
addl $-0x2, %ebx
jmp 0x2740
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 0x3064
leaq 0x18b5(%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 0x27c7
movq %rdx, (%r13)
movq (%rcx), %rdx
movq %rdx, 0x10(%r13)
jmp 0x27cd
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 0x27f5
callq 0x2140
movq (%r13), %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x2090
movq -0x68(%rbp), %rcx
movq 0x8(%rcx), %rax
cmpq (%rcx), %rax
je 0x2bcb
leaq -0xf0(%rbp), %r14
leaq -0xd0(%rbp), %r12
movq 0x37a7(%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 0x3598
movq %rbx, %rdi
leaq 0x17d2(%rip), %rsi      # 0x4041
callq 0x2240
movl $0x1, %ebx
cmpq $0xa, -0x38(%rbp)
jb 0x28c3
movl $0x4, %ebx
movq -0x38(%rbp), %rax
cmpl $0x63, %eax
jbe 0x28bc
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x28c1
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x28c3
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 0x2889
addl $-0x3, %ebx
jmp 0x28c3
addl $-0x2, %ebx
jmp 0x28c3
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 0x30e4
movq -0x58(%rbp), %rcx
movl $0xf, %esi
leaq -0x48(%rbp), %rax
cmpq %rax, %rcx
je 0x2909
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %r8
movq -0x80(%rbp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
leaq -0x308(%rbp), %rbx
jbe 0x293c
movl $0xf, %esi
leaq -0x78(%rbp), %rdi
cmpq %rdi, -0x88(%rbp)
je 0x2937
movq -0x78(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x294e
movq -0x88(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0x2050
jmp 0x295e
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 0x2984
movq %rdx, -0x318(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x308(%rbp)
jmp 0x298a
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 0x1690(%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 0x29e8
movq %rdx, -0xb8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa8(%rbp)
jmp 0x29ee
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 0x2a19
callq 0x2140
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
leaq -0x58(%rbp), %rbx
je 0x2a32
callq 0x2140
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x2a44
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 0x2e34
movq -0x50(%rbp), %rax
cmpq -0x58(%rbp), %rax
je 0x2b2b
xorl %ebx, %ebx
movq -0x58(%rbp), %rax
cmpq %rax, -0x50(%rbp)
je 0x2ae8
xorl %r13d, %r13d
movl (%rax,%rbx,4), %eax
cmpq %rax, %r13
jne 0x2aa4
movq -0xd8(%rbp), %rsi
movq %r12, %rax
jmp 0x2ac6
leal (%rbx,%r13), %eax
testb $0x1, %al
jne 0x2ab8
movq -0xf8(%rbp), %rsi
movq %r14, %rax
jmp 0x2ac6
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 0x2a90
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 -0x50(%rbp), %rax
subq -0x58(%rbp), %rax
sarq $0x2, %rax
cmpq %rbx, %rax
ja 0x2a83
movq %r15, %rdi
callq 0x21b0
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
movq -0x30(%rbp), %r13
je 0x2b45
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 0x2b9a
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 0x284a
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x2be3
callq 0x2140
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x2bfb
callq 0x2140
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x2c13
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 0x2d15
movq %rax, %r14
jmp 0x2d1f
jmp 0x2caa
movq %rax, %r14
jmp 0x2c94
jmp 0x2c4f
movq %rax, %r14
jmp 0x2c82
movq %rax, %r14
jmp 0x2c6d
movq %rax, %r14
movq -0x318(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2c6d
callq 0x2140
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x2c82
callq 0x2140
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x2c94
callq 0x2140
movq -0x30(%rbp), %r13
jmp 0x2d0d
movq %rax, %r14
jmp 0x2cf5
movq %rax, %r14
movq -0x30(%rbp), %r13
jmp 0x2cbf
jmp 0x2caa
movq %rax, %r14
movq -0x30(%rbp), %r13
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x2cbf
callq 0x2140
leaq -0x310(%rbp), %rdi
movq -0x98(%rbp), %rax
movq %rax, -0x8(%rdi)
movq -0x18(%rax), %rax
movq -0x90(%rbp), %rcx
movq %rcx, -0x318(%rbp,%rax)
callq 0x2100
leaq -0x220(%rbp), %rdi
callq 0x2060
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x2d0d
callq 0x2140
movq -0x60(%rbp), %rax
movq (%r13), %rdi
cmpq %rax, %rdi
je 0x2d1f
callq 0x2140
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x2d37
callq 0x2140
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x2d4f
callq 0x2140
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x2d67
callq 0x2140
movq %r14, %rdi
callq 0x2220