// File: pokorj54[P]Pathfinder-utilities/src/SGsearch.cpp
// Function: main
int main(void)
{
    for(int currentNoDices = 1; currentNoDices <= maxDices; ++currentNoDices)
    {   
        SGCategory s1 = SGCategory(currentNoDices, 1);
        SGCategory s2 = SGCategory(currentNoDices, 2);
        SGCategory s3 = SGCategory(currentNoDices, 3);
        SGCategory s4 = SGCategory(currentNoDices, 4);
        SGCategory s5 = SGCategory(currentNoDices, 5);
        SGCategory s6 = SGCategory(currentNoDices, 6);
        SGCategory s7 = SGCategory(currentNoDices, 7);
        SGCategory s8 = SGCategory(currentNoDices, 8);
        SGCategory s9 = SGCategory(currentNoDices, 9);
        thread t1 = thread(SGCategory::Execute, ref(s1));
        thread t2 = thread(SGCategory::Execute, ref(s2));
        thread t3 = thread(SGCategory::Execute, ref(s3));
        thread t4 = thread(SGCategory::Execute, ref(s4));
        thread t5 = thread(SGCategory::Execute, ref(s5));
        thread t6 = thread(SGCategory::Execute, ref(s6));
        thread t7 = thread(SGCategory::Execute, ref(s7));
        thread t8 = thread(SGCategory::Execute, ref(s8));
        thread t9 = thread(SGCategory::Execute, ref(s9));
        t1.join();
        s1.Print();
        t2.join();
        s2.Print();
        t3.join();
        s3.Print();
        t4.join();
        s4.Print();
        t5.join();
        s5.Print();
        t6.join();
        s6.Print();
        t7.join();
        s7.Print();
        t8.join();
        s8.Print();
        t9.join();
        s9.Print();
    }
}

// Assembly:
subq $0x1e8, %rsp            # imm = 0x1E8
movl $0x0, 0x1e4(%rsp)
movl $0x1, 0x1e0(%rsp)
cmpl $0x14, 0x1e0(%rsp)
jg 0x5280
movl 0x1e0(%rsp), %esi
leaq 0x1c0(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movl $0x1, %edx
callq 0x52c0
movl 0x1e0(%rsp), %esi
leaq 0x1a0(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movl $0x2, %edx
callq 0x52c0
movl 0x1e0(%rsp), %esi
leaq 0x180(%rsp), %rdi
movl $0x3, %edx
callq 0x52c0
movl 0x1e0(%rsp), %esi
leaq 0x160(%rsp), %rdi
movl $0x4, %edx
callq 0x52c0
movl 0x1e0(%rsp), %esi
leaq 0x140(%rsp), %rdi
movl $0x5, %edx
callq 0x52c0
movl 0x1e0(%rsp), %esi
leaq 0x120(%rsp), %rdi
movl $0x6, %edx
callq 0x52c0
movl 0x1e0(%rsp), %esi
leaq 0x100(%rsp), %rdi
movl $0x7, %edx
callq 0x52c0
movl 0x1e0(%rsp), %esi
leaq 0xe0(%rsp), %rdi
movl $0x8, %edx
callq 0x52c0
movl 0x1e0(%rsp), %esi
leaq 0xc0(%rsp), %rdi
movl $0x9, %edx
callq 0x52c0
movq 0x8(%rsp), %rdi
callq 0x5300
movq %rax, 0xb0(%rsp)
leaq -0x13f(%rip), %rsi      # 0x4d20
movq %rsi, 0x18(%rsp)
leaq 0xb8(%rsp), %rdi
leaq 0xb0(%rsp), %rdx
callq 0x5330
movq 0x10(%rsp), %rdi
callq 0x5300
movq 0x18(%rsp), %rsi
movq %rax, 0xa0(%rsp)
leaq 0xa8(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x5330
jmp 0x4ea7
leaq 0x180(%rsp), %rdi
callq 0x5300
movq %rax, 0x80(%rsp)
leaq -0x1a3(%rip), %rsi      # 0x4d20
leaq 0x88(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0x5330
jmp 0x4eda
leaq 0x160(%rsp), %rdi
callq 0x5300
movq %rax, 0x70(%rsp)
leaq -0x1d3(%rip), %rsi      # 0x4d20
leaq 0x78(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x5330
jmp 0x4f04
leaq 0x140(%rsp), %rdi
callq 0x5300
movq %rax, 0x60(%rsp)
leaq -0x1fd(%rip), %rsi      # 0x4d20
leaq 0x68(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x5330
jmp 0x4f2e
leaq 0x120(%rsp), %rdi
callq 0x5300
movq %rax, 0x50(%rsp)
leaq -0x227(%rip), %rsi      # 0x4d20
leaq 0x58(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x5330
jmp 0x4f58
leaq 0x100(%rsp), %rdi
callq 0x5300
movq %rax, 0x40(%rsp)
leaq -0x251(%rip), %rsi      # 0x4d20
leaq 0x48(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x5330
jmp 0x4f82
leaq 0xe0(%rsp), %rdi
callq 0x5300
movq %rax, 0x30(%rsp)
leaq -0x27b(%rip), %rsi      # 0x4d20
leaq 0x38(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x5330
jmp 0x4fac
leaq 0xc0(%rsp), %rdi
callq 0x5300
movq %rax, 0x20(%rsp)
leaq -0x2a5(%rip), %rsi      # 0x4d20
leaq 0x28(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x5330
jmp 0x4fd6
leaq 0xb8(%rsp), %rdi
callq 0x2230
jmp 0x4fe5
leaq 0x1c0(%rsp), %rdi
callq 0x4b90
jmp 0x4ff4
leaq 0xa8(%rsp), %rdi
callq 0x2230
jmp 0x5003
leaq 0x1a0(%rsp), %rdi
callq 0x4b90
jmp 0x5012
leaq 0x88(%rsp), %rdi
callq 0x2230
jmp 0x5021
leaq 0x180(%rsp), %rdi
callq 0x4b90
jmp 0x5030
leaq 0x78(%rsp), %rdi
callq 0x2230
jmp 0x503c
leaq 0x160(%rsp), %rdi
callq 0x4b90
jmp 0x504b
leaq 0x68(%rsp), %rdi
callq 0x2230
jmp 0x5057
leaq 0x140(%rsp), %rdi
callq 0x4b90
jmp 0x5066
leaq 0x58(%rsp), %rdi
callq 0x2230
jmp 0x5072
leaq 0x120(%rsp), %rdi
callq 0x4b90
jmp 0x5081
leaq 0x48(%rsp), %rdi
callq 0x2230
jmp 0x508d
leaq 0x100(%rsp), %rdi
callq 0x4b90
jmp 0x509c
leaq 0x38(%rsp), %rdi
callq 0x2230
jmp 0x50a8
leaq 0xe0(%rsp), %rdi
callq 0x4b90
jmp 0x50b7
leaq 0x28(%rsp), %rdi
callq 0x2230
jmp 0x50c3
leaq 0xc0(%rsp), %rdi
callq 0x4b90
jmp 0x50d2
leaq 0x28(%rsp), %rdi
callq 0x5400
leaq 0x38(%rsp), %rdi
callq 0x5400
leaq 0x48(%rsp), %rdi
callq 0x5400
leaq 0x58(%rsp), %rdi
callq 0x5400
leaq 0x68(%rsp), %rdi
callq 0x5400
leaq 0x78(%rsp), %rdi
callq 0x5400
leaq 0x88(%rsp), %rdi
callq 0x5400
leaq 0xa8(%rsp), %rdi
callq 0x5400
leaq 0xb8(%rsp), %rdi
callq 0x5400
movl 0x1e0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1e0(%rsp)
jmp 0x4d4d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
jmp 0x5271
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
jmp 0x5264
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
jmp 0x5257
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
jmp 0x524d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
jmp 0x5243
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
jmp 0x5239
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
jmp 0x522f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
jmp 0x5225
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x5400
leaq 0x38(%rsp), %rdi
callq 0x5400
leaq 0x48(%rsp), %rdi
callq 0x5400
leaq 0x58(%rsp), %rdi
callq 0x5400
leaq 0x68(%rsp), %rdi
callq 0x5400
leaq 0x78(%rsp), %rdi
callq 0x5400
leaq 0x88(%rsp), %rdi
callq 0x5400
leaq 0xa8(%rsp), %rdi
callq 0x5400
leaq 0xb8(%rsp), %rdi
callq 0x5400
jmp 0x528f
movl 0x1e4(%rsp), %eax
addq $0x1e8, %rsp            # imm = 0x1E8
retq
movq 0x98(%rsp), %rdi
callq 0x2270
nopl (%rax)