// File: /workspace/github_cpp_makefile_star2_O1/aronszanto[P]strassen/main.cpp
// Function: strassenMultThread(Matrix*, Matrix*, Matrix*, int, int, int, int, int, int, int)
void strassenMultThread(Matrix* A, Matrix* B, Matrix* C, int topA, int leftA, int topB, int leftB, int topC, int leftC, int dimension) {
    
    {
    // 1. C12 = A21 - A11
    thread t1(subtract, A, A, C, topA + dimension/2, leftA, topA, leftA, topC, leftC + dimension/2, dimension/2);
    // 2. C21 = B11 + B12
    add(B,B,C,topB,leftB,topB,leftB + dimension/2,topC + dimension/2,leftC,dimension/2);
    t1.join();
    //threads++;
    }

    // 3. C22 = C12 * C21
    multiply(C,C,C,topC,leftC + dimension/2,topC + dimension/2,leftC,topC + dimension/2,leftC + dimension/2,dimension/2);
    
    {
    // 4. C12 = A12 - A22
    thread t2(subtract, A,A,C,topA,leftA + dimension/2,topA + dimension/2,leftA + dimension/2,topC,leftC + dimension/2,dimension/2);
    // 5. C21 = B21 + B22
    add(B, B, C, topB + dimension/2,leftB,topB + dimension/2,leftB + dimension/2,topC + dimension/2,leftC,dimension/2);
    t2.join();
    //threads++;
    }

    //6. C11 = C12 * C21
    multiply(C,C,C,topC,leftC + dimension/2,topC + dimension/2,leftC,topC,leftC,dimension/2);
    
    Matrix* T2 = new Matrix();
    initMatrix(T2, dimension/2); // TODO deal with non-power of 2 case
    {
        
    // 7. C12 = A11 + A22
    thread t3(add,A, A, C, topA, leftA, topA + dimension/2, leftA + dimension/2, topC, leftC + dimension/2, dimension/2);
    //8. C21 = B11 + B22
    thread t4(add,B,B,C,topB,leftB,topB + dimension/2,leftB + dimension/2,topC + dimension/2,leftC,dimension/2);
    //12. T2 = A21 + A22
    add(A,A,T2,topA + dimension/2,leftA,topA + dimension/2,leftA + dimension/2,0,0,dimension/2);
    t3.join();
    t4.join();
    //threads++;
    //threads++;
    }
    

    Matrix* T1 = new Matrix();
    initMatrix(T1, dimension/2); // TODO deal with non-power of 2 case
    //9. T1 = C12*C21
    multiply(C,C,T1,topC,leftC + dimension/2,topC + dimension/2,leftC,0,0,dimension/2);
    
    {
    //10. C11 = T1 + C11
    thread t5(add,T1,C,C,0,0,topC,leftC,topC,leftC,dimension/2);
    //11. C22 = T1 + C22
    thread t6(add,T1,C,C,0,0,topC + dimension/2,leftC + dimension/2,topC + dimension/2,leftC + dimension/2,dimension/2);
    //13. C21 = T2 * B11
    multiply(T2,B,C,0,0,topB,leftB,topC + dimension/2,leftC,dimension/2);
    t5.join();
    t6.join();
    //threads++;
    //threads++;
    }

    {
    //14. C22 = C22 - C21
    thread t7(subtract,C,C,C,topC + dimension/2,leftC + dimension/2,topC + dimension/2,leftC,topC + dimension/2,leftC + dimension/2,dimension/2);
    //15. T1 = B21 - B11
    subtract(B,B,T1,topB + dimension/2,leftB,topB,leftB,0,0,dimension/2);
    t7.join();
    //threads++;
    }

    //16. T2 = A22 * T1
    multiply(A,T1,T2,topA + dimension/2,leftA + dimension/2,0,0,0,0,dimension/2);
    
    {
    //17. C21 = C21 + T2
    thread t8(add,C,T2,C,topC + dimension/2,leftC,0,0,topC + dimension/2,leftC,dimension/2);
    //18. C11 = C11 + T2
    thread t9(add,C,T2,C,topC,leftC,0,0,topC,leftC,dimension/2);
    //19. T1 = B12 - B22
    subtract(B,B,T1,topB,leftB + dimension/2,topB + dimension/2,leftB + dimension/2,0,0,dimension/2);
    t8.join();
    t9.join();
    }
    //threads++;
    //threads++;
    
    //20. C12 = A11 * T1
    multiply(A,T1,C,topA,leftA,0,0,topC,leftC + dimension/2,dimension/2);
    
    {
    //21. C22 = C22 + C12
    thread t10(add,C,C,C,topC + dimension/2,leftC + dimension/2,topC,leftC + dimension/2,topC + dimension/2,leftC + dimension/2,dimension/2);
    //22. T2 = A11 + A12
    add(A,A,T2,topA,leftA,topA,leftA + dimension/2,0,0,dimension/2);
    t10.join();
    //threads++;
    }

    //23. T1 = T2 * B22
    multiply(T2,B,T1,0,0,topB + dimension/2,leftB + dimension/2,0,0,dimension/2);
    {
    //24. C12 = C12 + T1
    thread t11(add,C,T1,C,topC,leftC + dimension/2,0,0,topC,leftC + dimension/2,dimension/2);
    //25. C11 = C11 - T1
    subtract(C,T1,C,topC,leftC,0,0,topC,leftC,dimension/2);
    t11.join();
    }
    
    //threads++;
    
    
    delete(T1);
    delete(T2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, %eax
movl 0xb8(%rsp), %r11d
leaq 0x58(%rsp), %rcx
movq %rdi, (%rcx)
movq %rsi, 0x48(%rsp)
leaq 0x40(%rsp), %r13
movq %rdx, (%r13)
leaq 0x3c(%rsp), %r10
movl %eax, (%r10)
leaq 0x24(%rsp), %r15
movl %r8d, (%r15)
movl %r9d, 0x20(%rsp)
movl %r11d, %ebx
shrl $0x1f, %ebx
addl %r11d, %ebx
sarl %ebx
movl 0xb0(%rsp), %edx
addl %ebx, %edx
addl %ebx, %eax
leaq 0x28(%rsp), %r9
movl %eax, (%r9)
leaq 0x8(%rsp), %rax
movl %edx, (%rax)
leaq 0x18(%rsp), %rbp
movl %ebx, (%rbp)
leaq 0xa8(%rsp), %r14
leaq -0x803(%rip), %rsi      # 0x277a
leaq 0x30(%rsp), %r12
movq %r12, %rdi
movq %rcx, %rdx
movq %r13, %r8
pushq %rbp
pushq %rax
pushq %r14
pushq %r15
pushq %r10
pushq %r15
callq 0x7208
addq $0x30, %rsp
movq 0x48(%rsp), %rdi
movq (%r13), %rdx
movl 0x20(%rsp), %ecx
movl 0xa0(%rsp), %r8d
leal (%r8,%rbx), %eax
movl (%r14), %r10d
addl %ebx, %r10d
movl 0xb0(%rsp), %r11d
movq %rdi, %rsi
movl %ecx, %r9d
pushq %rbx
pushq %r11
pushq %r10
pushq %rax
callq 0x26d2
addq $0x20, %rsp
movq %r12, %rdi
callq 0x2290
cmpq $0x0, 0x30(%rsp)
jne 0x3807
leaq 0x40(%rsp), %r12
movq (%r12), %rdi
movl 0xa8(%rsp), %ecx
movl 0xb0(%rsp), %eax
leal (%rax,%rbx), %r8d
leal (%rcx,%rbx), %r9d
movq %rdi, %rsi
movq %rdi, %rdx
pushq %rbx
pushq %r8
pushq %r9
pushq %rax
callq 0x2eb7
addq $0x20, %rsp
movl 0x24(%rsp), %eax
addl %ebx, %eax
movl %eax, 0x28(%rsp)
leaq 0x3c(%rsp), %r9
movl (%r9), %ecx
addl %ebx, %ecx
movl %ecx, 0x8(%rsp)
movl %eax, 0x18(%rsp)
movl 0xb0(%rsp), %eax
addl %ebx, %eax
leaq 0x4(%rsp), %r10
movl %eax, (%r10)
movq %rsp, %rax
movl %ebx, (%rax)
leaq -0x8e1(%rip), %rsi      # 0x277a
leaq 0x30(%rsp), %r13
leaq 0x58(%rsp), %rcx
movq %r13, %rdi
movq %rcx, %rdx
movq %r12, %r8
pushq %rax
pushq %r10
leaq 0xb8(%rsp), %rax
pushq %rax
pushq %rbp
leaq 0x28(%rsp), %rax
pushq %rax
leaq 0x50(%rsp), %rax
pushq %rax
callq 0x72f6
addq $0x30, %rsp
movq 0x48(%rsp), %rdi
movq (%r12), %rdx
movl 0x20(%rsp), %ecx
addl %ebx, %ecx
movl 0xa0(%rsp), %r8d
leal (%r8,%rbx), %eax
movl 0xa8(%rsp), %r10d
addl %ebx, %r10d
movl 0xb0(%rsp), %r11d
movq %rdi, %rsi
movl %ecx, %r9d
pushq %rbx
pushq %r11
pushq %r10
pushq %rax
callq 0x26d2
addq $0x20, %rsp
movq %r13, %rdi
callq 0x2290
cmpq $0x0, 0x30(%rsp)
jne 0x380c
leaq 0x40(%rsp), %r15
movq (%r15), %rdi
movl 0xa8(%rsp), %ecx
leaq 0xb0(%rsp), %rdx
movl (%rdx), %eax
movq %rdx, %r14
leal (%rax,%rbx), %r8d
leal (%rcx,%rbx), %r9d
movq %rdi, %rsi
movq %rdi, %rdx
pushq %rbx
pushq %rax
pushq %rcx
pushq %rax
callq 0x2eb7
addq $0x20, %rsp
movl $0x20, %edi
callq 0x21b0
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, 0x30(%rsp)
movq %rax, %rdi
movl %ebx, %esi
callq 0x245c
leaq 0x3c(%rsp), %r9
movl (%r9), %eax
addl %ebx, %eax
leaq 0x8(%rsp), %r12
movl %eax, (%r12)
movl 0x24(%rsp), %eax
addl %ebx, %eax
movl %eax, 0x18(%rsp)
movl (%r14), %eax
addl %ebx, %eax
movl %eax, 0x4(%rsp)
movl %ebx, (%rsp)
leaq -0xa9f(%rip), %r13      # 0x26d2
leaq 0x28(%rsp), %rdi
leaq 0x58(%rsp), %rcx
movq %r13, %rsi
movq %rcx, %rdx
movq %r15, %r8
movq %rsp, %r14
pushq %r14
leaq 0xc(%rsp), %r15
pushq %r15
leaq 0xb8(%rsp), %rax
pushq %rax
leaq 0x30(%rsp), %rbp
pushq %rbp
leaq 0x28(%rsp), %rax
pushq %rax
leaq 0x4c(%rsp), %rax
pushq %rax
callq 0x73e4
addq $0x30, %rsp
leaq 0x20(%rsp), %r9
movl (%r9), %eax
addl %ebx, %eax
movl %eax, 0x18(%rsp)
leaq 0xa0(%rsp), %rax
movl (%rax), %ecx
addl %ebx, %ecx
movl %ecx, 0x4(%rsp)
movl 0xa8(%rsp), %ecx
addl %ebx, %ecx
movl %ecx, (%rsp)
leaq 0x14(%rsp), %r10
movl %ebx, (%r10)
leaq 0x48(%rsp), %rcx
movq %r12, %rdi
movq %r13, %rsi
movq %rcx, %rdx
leaq 0x40(%rsp), %r8
pushq %r10
leaq 0xb8(%rsp), %r10
pushq %r10
pushq %r14
pushq %r15
pushq %rbp
pushq %rax
callq 0x74d2
addq $0x30, %rsp
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rdx
movl 0x3c(%rsp), %ecx
addl %ebx, %ecx
movl 0x24(%rsp), %r8d
leal (%r8,%rbx), %eax
xorl %r10d, %r10d
movq %rdi, %rsi
movl %ecx, %r9d
pushq %rbx
pushq %r10
pushq %r10
pushq %rax
callq 0x26d2
addq $0x20, %rsp
leaq 0x28(%rsp), %rdi
callq 0x2290
leaq 0x8(%rsp), %rdi
callq 0x2290
cmpq $0x0, 0x8(%rsp)
jne 0x3811
cmpq $0x0, 0x28(%rsp)
jne 0x3816
movl $0x20, %edi
callq 0x21b0
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
leaq 0x28(%rsp), %r14
movq %rax, (%r14)
movq %rax, %rdi
movl %ebx, %esi
callq 0x245c
leaq 0x40(%rsp), %r13
movq (%r13), %rdi
movq (%r14), %rdx
movl 0xa8(%rsp), %ecx
movl 0xb0(%rsp), %eax
leal (%rax,%rbx), %r8d
leal (%rcx,%rbx), %r9d
xorl %r15d, %r15d
movq %rdi, %rsi
pushq %rbx
pushq %r15
pushq %r15
pushq %rax
callq 0x2eb7
addq $0x20, %rsp
leaq 0x18(%rsp), %r9
movl %r15d, (%r9)
leaq 0x4(%rsp), %r12
movl %r15d, (%r12)
movl %ebx, (%rsp)
leaq -0xc17(%rip), %rbp      # 0x26d2
leaq 0x8(%rsp), %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %r13, %rcx
movq %r13, %r8
movq %rsp, %r14
pushq %r14
leaq 0xb8(%rsp), %r10
pushq %r10
leaq 0xb8(%rsp), %rax
pushq %rax
pushq %r10
pushq %rax
leaq 0x2c(%rsp), %rax
pushq %rax
callq 0x75c0
addq $0x30, %rsp
movl %r15d, (%r12)
movl %r15d, (%rsp)
movl 0xa8(%rsp), %eax
addl %ebx, %eax
movl %eax, 0x14(%rsp)
movl 0xb0(%rsp), %ecx
addl %ebx, %ecx
leaq 0x38(%rsp), %rdx
movl %ecx, (%rdx)
leaq 0x54(%rsp), %r15
movl %eax, (%r15)
leaq 0x64(%rsp), %rax
movl %ecx, (%rax)
leaq 0x60(%rsp), %r10
movl %ebx, (%r10)
leaq 0x18(%rsp), %rdi
movq %rbp, %rsi
movq %rdx, %rbp
leaq 0x28(%rsp), %rdx
movq %r13, %rcx
movq %r13, %r8
movq %r12, %r9
pushq %r10
pushq %rax
pushq %r15
pushq %rbp
leaq 0x34(%rsp), %rax
pushq %rax
pushq %r14
callq 0x76ae
addq $0x30, %rsp
movq 0x30(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
movl 0x20(%rsp), %r9d
movl 0xa0(%rsp), %eax
movl 0xa8(%rsp), %r10d
addl %ebx, %r10d
movl 0xb0(%rsp), %r11d
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %rbx
pushq %r11
pushq %r10
pushq %rax
callq 0x2eb7
addq $0x20, %rsp
leaq 0x8(%rsp), %rdi
callq 0x2290
leaq 0x18(%rsp), %rdi
callq 0x2290
cmpq $0x0, 0x18(%rsp)
jne 0x381b
cmpq $0x0, 0x8(%rsp)
jne 0x3820
movl 0xa8(%rsp), %eax
addl %ebx, %eax
leaq 0x18(%rsp), %r9
movl %eax, (%r9)
movl 0xb0(%rsp), %ecx
addl %ebx, %ecx
movl %ecx, 0x4(%rsp)
movl %eax, (%rsp)
movl %eax, 0x14(%rsp)
movl %ecx, 0x38(%rsp)
movl %ebx, 0x54(%rsp)
leaq -0xcb8(%rip), %rsi      # 0x277a
leaq 0x8(%rsp), %r12
leaq 0x40(%rsp), %rcx
movq %r12, %rdi
movq %rcx, %rdx
movq %rcx, %r8
pushq %r15
pushq %rbp
leaq 0x24(%rsp), %rax
pushq %rax
leaq 0xc8(%rsp), %rax
pushq %rax
leaq 0x20(%rsp), %rax
pushq %rax
leaq 0x2c(%rsp), %rax
pushq %rax
callq 0x779c
addq $0x30, %rsp
movq 0x48(%rsp), %rdi
movq 0x28(%rsp), %rdx
movl 0x20(%rsp), %r9d
leal (%r9,%rbx), %ecx
movl 0xa0(%rsp), %r8d
xorl %eax, %eax
movq %rdi, %rsi
pushq %rbx
pushq %rax
pushq %rax
pushq %r8
callq 0x277a
addq $0x20, %rsp
movq %r12, %rdi
callq 0x2290
cmpq $0x0, 0x8(%rsp)
jne 0x3825
movq 0x58(%rsp), %rdi
movq 0x28(%rsp), %rsi
leaq 0x30(%rsp), %r14
movq (%r14), %rdx
movl 0x3c(%rsp), %ecx
addl %ebx, %ecx
movl 0x24(%rsp), %r8d
addl %ebx, %r8d
xorl %r15d, %r15d
xorl %r9d, %r9d
pushq %rbx
pushq %r15
pushq %r15
pushq %r15
callq 0x2eb7
addq $0x20, %rsp
movl 0xa8(%rsp), %eax
addl %ebx, %eax
leaq 0x18(%rsp), %r9
movl %eax, (%r9)
movl %r15d, 0x4(%rsp)
movl %r15d, (%rsp)
movl %eax, 0x14(%rsp)
movl %ebx, 0x38(%rsp)
leaq -0xe3b(%rip), %rsi      # 0x26d2
leaq 0x8(%rsp), %rdi
leaq 0x40(%rsp), %r13
movq %r13, %rdx
movq %r14, %rcx
movq %r13, %r8
pushq %rbp
leaq 0xb8(%rsp), %rbp
pushq %rbp
leaq 0x24(%rsp), %r12
pushq %r12
leaq 0x18(%rsp), %r14
pushq %r14
leaq 0x24(%rsp), %rax
pushq %rax
pushq %rbp
callq 0x788a
addq $0x30, %rsp
movl %r15d, 0x4(%rsp)
movl %r15d, (%rsp)
movl %ebx, 0x14(%rsp)
leaq 0x18(%rsp), %rdi
leaq -0xe8f(%rip), %rsi      # 0x26d2
movq %r13, %rdx
leaq 0x30(%rsp), %rcx
movq %r13, %r8
leaq 0xa8(%rsp), %r9
pushq %r12
pushq %rbp
pushq %r9
pushq %r14
leaq 0x24(%rsp), %rax
pushq %rax
pushq %rbp
callq 0x7978
addq $0x30, %rsp
movq 0x48(%rsp), %rdi
movq 0x28(%rsp), %rdx
movl 0x20(%rsp), %ecx
movl 0xa0(%rsp), %r8d
addl %ebx, %r8d
leal (%rcx,%rbx), %r9d
movq %rdi, %rsi
pushq %rbx
pushq %r15
pushq %r15
pushq %r8
callq 0x277a
addq $0x20, %rsp
leaq 0x8(%rsp), %rdi
callq 0x2290
leaq 0x18(%rsp), %rdi
callq 0x2290
cmpq $0x0, 0x18(%rsp)
leaq 0x54(%rsp), %r15
jne 0x382a
cmpq $0x0, 0x8(%rsp)
jne 0x382f
movq 0x58(%rsp), %rdi
movq 0x28(%rsp), %rsi
leaq 0x40(%rsp), %rbp
movq (%rbp), %rdx
movl 0x3c(%rsp), %ecx
movl 0x24(%rsp), %r8d
movl 0xa8(%rsp), %eax
movl 0xb0(%rsp), %r10d
addl %ebx, %r10d
xorl %r14d, %r14d
xorl %r9d, %r9d
pushq %rbx
pushq %r10
pushq %rax
pushq %r14
callq 0x2eb7
addq $0x20, %rsp
movl 0xa8(%rsp), %eax
addl %ebx, %eax
leaq 0x18(%rsp), %r12
movl %eax, (%r12)
movl 0xb0(%rsp), %ecx
addl %ebx, %ecx
movl %ecx, 0x4(%rsp)
movl %ecx, (%rsp)
movl %eax, 0x14(%rsp)
movl %ecx, 0x38(%rsp)
movl %ebx, 0x54(%rsp)
leaq -0xf92(%rip), %rsi      # 0x26d2
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rdx
movq %rbp, %rcx
movq %rbp, %r8
movq %r12, %r9
pushq %r15
leaq 0x40(%rsp), %rax
pushq %rax
leaq 0x24(%rsp), %rax
pushq %rax
leaq 0x18(%rsp), %rax
pushq %rax
leaq 0xc8(%rsp), %rax
pushq %rax
leaq 0x2c(%rsp), %rax
pushq %rax
callq 0x7a66
addq $0x30, %rsp
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rdx
movl 0x3c(%rsp), %ecx
movl 0x24(%rsp), %r8d
leal (%r8,%rbx), %eax
movq %rdi, %rsi
movl %ecx, %r9d
pushq %rbx
pushq %r14
pushq %r14
pushq %rax
callq 0x26d2
addq $0x20, %rsp
movq %r13, %rdi
callq 0x2290
cmpq $0x0, 0x8(%rsp)
jne 0x3834
movq 0x30(%rsp), %rdi
movq 0x48(%rsp), %rsi
leaq 0x28(%rsp), %r13
movq (%r13), %rdx
movl 0x20(%rsp), %r9d
addl %ebx, %r9d
movl 0xa0(%rsp), %eax
addl %ebx, %eax
xorl %r15d, %r15d
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %rbx
pushq %r15
pushq %r15
pushq %rax
callq 0x2eb7
addq $0x20, %rsp
movl 0xb0(%rsp), %eax
addl %ebx, %eax
movl %eax, 0x18(%rsp)
movl %r15d, 0x4(%rsp)
movl %r15d, (%rsp)
movl %eax, 0x14(%rsp)
movl %ebx, 0x38(%rsp)
leaq -0x1072(%rip), %rsi     # 0x26d2
leaq 0x8(%rsp), %rbp
leaq 0x40(%rsp), %r14
movq %rbp, %rdi
movq %r14, %rdx
movq %r13, %rcx
movq %r14, %r8
leaq 0xa8(%rsp), %r9
leaq 0x38(%rsp), %rax
pushq %rax
leaq 0x1c(%rsp), %rax
pushq %rax
pushq %r9
leaq 0x18(%rsp), %rax
pushq %rax
leaq 0x24(%rsp), %rax
pushq %rax
pushq %r12
callq 0x72f6
addq $0x30, %rsp
movq (%r14), %rdi
movq (%r13), %rsi
movl 0xa8(%rsp), %ecx
movl 0xb0(%rsp), %r8d
movq %rdi, %rdx
xorl %r9d, %r9d
pushq %rbx
pushq %r8
pushq %rcx
pushq %r15
callq 0x277a
addq $0x20, %rsp
movq %rbp, %rdi
callq 0x2290
cmpq $0x0, 0x8(%rsp)
jne 0x3839
movq 0x28(%rsp), %rbx
testq %rbx, %rbx
je 0x37dd
leaq 0x8(%rbx), %rdi
callq 0x7bfc
movq %rbx, %rdi
callq 0x2190
movq 0x30(%rsp), %rbx
testq %rbx, %rbx
je 0x37f8
leaq 0x8(%rbx), %rdi
callq 0x7bfc
movq %rbx, %rdi
callq 0x2190
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2080
callq 0x2080
callq 0x2080
callq 0x2080
callq 0x2080
callq 0x2080
callq 0x2080
callq 0x2080
callq 0x2080
callq 0x2080
callq 0x2080
cmpq $0x0, 0x8(%rsp)
je 0x38cd
callq 0x2080
cmpq $0x0, 0x8(%rsp)
je 0x38cd
callq 0x2080
jmp 0x3891
cmpq $0x0, 0x8(%rsp)
je 0x38cd
callq 0x2080
jmp 0x38c5
jmp 0x38ab
cmpq $0x0, 0x30(%rsp)
je 0x38cd
callq 0x2080
cmpq $0x0, 0x30(%rsp)
je 0x38cd
callq 0x2080
cmpq $0x0, 0x18(%rsp)
jne 0x389e
cmpq $0x0, 0x8(%rsp)
je 0x38cd
callq 0x2080
callq 0x2080
cmpq $0x0, 0x8(%rsp)
jne 0x38b8
cmpq $0x0, 0x28(%rsp)
je 0x38cd
callq 0x2080
callq 0x2080
cmpq $0x0, 0x18(%rsp)
jne 0x38d5
cmpq $0x0, 0x8(%rsp)
jne 0x38da
movq %rax, %rdi
callq 0x22b0
callq 0x2080
callq 0x2080