// File: /workspace/github_cpp_makefile_star2_O3/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 $0x78, %rsp
movl %r9d, %ebp
movl %ecx, %eax
movq %rsi, %r13
movl 0xc0(%rsp), %r10d
movq %r10, 0x68(%rsp)
movl 0xb0(%rsp), %r14d
movl 0xc8(%rsp), %esi
leaq 0x60(%rsp), %rcx
movq %rdi, (%rcx)
movq %r13, 0x58(%rsp)
leaq 0x48(%rsp), %rdi
movq %rdx, (%rdi)
leaq 0x2c(%rsp), %rdx
movl %eax, (%rdx)
leaq 0x28(%rsp), %r11
movl %r8d, (%r11)
movl %r9d, 0x44(%rsp)
movl %esi, %ebx
shrl $0x1f, %ebx
addl %esi, %ebx
sarl %ebx
addl %ebx, %eax
leaq 0x30(%rsp), %r9
movl %eax, (%r9)
leal (%rbx,%r10), %r12d
leaq 0x10(%rsp), %r10
movl %r12d, (%r10)
leaq 0x20(%rsp), %rax
movl %ebx, (%rax)
leaq 0xb8(%rsp), %r15
leaq -0x7f8(%rip), %rsi      # 0x2755
leaq 0x38(%rsp), %rdi
movq %rcx, %rdx
leaq 0x48(%rsp), %r8
pushq %rax
pushq %r10
pushq %r15
pushq %r11
leaq 0x4c(%rsp), %rax
pushq %rax
pushq %r11
callq 0x7056
addq $0x30, %rsp
leaq 0x48(%rsp), %rax
movq (%rax), %rdx
leal (%rbx,%r14), %eax
movl (%r15), %r10d
addl %ebx, %r10d
movq %r13, %rdi
movq %r13, %rsi
movl %ebp, %ecx
movl %r14d, %r8d
movq 0x68(%rsp), %r14
movl %ebp, %r9d
pushq %rbx
pushq %r14
pushq %r10
pushq %rax
callq 0x26ad
addq $0x20, %rsp
leaq 0x38(%rsp), %rdi
callq 0x2290
cmpq $0x0, 0x38(%rsp)
jne 0x37e7
leaq 0x48(%rsp), %r13
movq (%r13), %rdi
movl 0xb8(%rsp), %ecx
leal (%rcx,%rbx), %r9d
movq %rdi, %rsi
movq %rdi, %rdx
movl %r12d, %r8d
pushq %rbx
pushq %r12
pushq %r9
pushq %r14
callq 0x2e76
addq $0x20, %rsp
movl 0x28(%rsp), %eax
addl %ebx, %eax
movl %eax, 0x30(%rsp)
leaq 0x2c(%rsp), %r9
movl (%r9), %ecx
addl %ebx, %ecx
movl %ecx, 0x10(%rsp)
movl %eax, 0x20(%rsp)
movl 0xc0(%rsp), %eax
addl %ebx, %eax
leaq 0xc(%rsp), %r10
movl %eax, (%r10)
leaq 0x8(%rsp), %rax
movl %ebx, (%rax)
leaq -0x8cf(%rip), %rsi      # 0x2755
leaq 0x38(%rsp), %r14
leaq 0x60(%rsp), %rcx
movq %r14, %rdi
movq %rcx, %rdx
movq %r13, %r8
pushq %rax
pushq %r10
leaq 0xc8(%rsp), %rax
pushq %rax
leaq 0x38(%rsp), %rax
pushq %rax
leaq 0x30(%rsp), %rax
pushq %rax
leaq 0x58(%rsp), %rax
pushq %rax
callq 0x7134
addq $0x30, %rsp
movq 0x58(%rsp), %rdi
movq (%r13), %rdx
movl 0x44(%rsp), %ecx
addl %ebx, %ecx
movl 0xb0(%rsp), %r8d
leal (%r8,%rbx), %eax
movl 0xb8(%rsp), %r10d
addl %ebx, %r10d
movl 0xc0(%rsp), %r11d
movq %rdi, %rsi
movl %ecx, %r9d
pushq %rbx
pushq %r11
pushq %r10
pushq %rax
callq 0x26ad
addq $0x20, %rsp
movq %r14, %rdi
callq 0x2290
cmpq $0x0, 0x38(%rsp)
jne 0x37ec
leaq 0x48(%rsp), %r13
movq (%r13), %rdi
movl 0xb8(%rsp), %ecx
leaq 0xc0(%rsp), %rdx
movl (%rdx), %eax
movq %rdx, %r15
leal (%rax,%rbx), %r8d
leal (%rcx,%rbx), %r9d
movq %rdi, %rsi
movq %rdi, %rdx
pushq %rbx
pushq %rax
pushq %rcx
pushq %rax
callq 0x2e76
addq $0x20, %rsp
movl $0x20, %edi
callq 0x21b0
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, 0x38(%rsp)
movq %rax, %rdi
movl %ebx, %esi
callq 0x245c
leaq 0x2c(%rsp), %r9
movl (%r9), %eax
addl %ebx, %eax
leaq 0x10(%rsp), %r14
movl %eax, (%r14)
movl 0x28(%rsp), %eax
addl %ebx, %eax
movl %eax, 0x20(%rsp)
movl (%r15), %eax
addl %ebx, %eax
movl %eax, 0xc(%rsp)
movl %ebx, 0x8(%rsp)
leaq -0xa93(%rip), %r12      # 0x26ad
leaq 0x30(%rsp), %rdi
leaq 0x60(%rsp), %rcx
movq %r12, %rsi
movq %rcx, %rdx
movq %r13, %r8
leaq 0x8(%rsp), %r13
pushq %r13
leaq 0x14(%rsp), %r15
pushq %r15
leaq 0xc8(%rsp), %rax
pushq %rax
leaq 0x38(%rsp), %rbp
pushq %rbp
leaq 0x30(%rsp), %rax
pushq %rax
leaq 0x50(%rsp), %rax
pushq %rax
callq 0x7212
addq $0x30, %rsp
leaq 0x44(%rsp), %r9
movl (%r9), %eax
addl %ebx, %eax
movl %eax, 0x20(%rsp)
leaq 0xb0(%rsp), %rax
movl (%rax), %ecx
addl %ebx, %ecx
movl %ecx, 0xc(%rsp)
movl 0xb8(%rsp), %ecx
addl %ebx, %ecx
movl %ecx, 0x8(%rsp)
leaq 0x1c(%rsp), %r10
movl %ebx, (%r10)
leaq 0x58(%rsp), %rcx
movq %r14, %rdi
movq %r12, %rsi
movq %rcx, %rdx
leaq 0x48(%rsp), %r8
pushq %r10
leaq 0xc8(%rsp), %r10
pushq %r10
pushq %r13
pushq %r15
pushq %rbp
pushq %rax
callq 0x72f0
addq $0x30, %rsp
movq 0x60(%rsp), %rdi
movq 0x38(%rsp), %rdx
movl 0x2c(%rsp), %ecx
addl %ebx, %ecx
movl 0x28(%rsp), %r8d
leal (%r8,%rbx), %eax
xorl %r10d, %r10d
movq %rdi, %rsi
movl %ecx, %r9d
pushq %rbx
pushq %r10
pushq %r10
pushq %rax
callq 0x26ad
addq $0x20, %rsp
leaq 0x30(%rsp), %rdi
callq 0x2290
leaq 0x10(%rsp), %rdi
callq 0x2290
cmpq $0x0, 0x10(%rsp)
jne 0x37f1
cmpq $0x0, 0x30(%rsp)
jne 0x37f6
movl $0x20, %edi
callq 0x21b0
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
leaq 0x30(%rsp), %rbp
movq %rax, (%rbp)
movq %rax, %rdi
movl %ebx, %esi
callq 0x245c
leaq 0x48(%rsp), %r13
movq (%r13), %rdi
movq (%rbp), %rdx
movl 0xb8(%rsp), %ecx
movl 0xc0(%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 0x2e76
addq $0x20, %rsp
leaq 0x20(%rsp), %r9
movl %r15d, (%r9)
leaq 0xc(%rsp), %r12
movl %r15d, (%r12)
movl %ebx, 0x8(%rsp)
leaq -0xc11(%rip), %r14      # 0x26ad
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r13, %rcx
movq %r13, %r8
leaq 0x8(%rsp), %rbp
pushq %rbp
leaq 0xc8(%rsp), %r10
pushq %r10
leaq 0xc8(%rsp), %rax
pushq %rax
pushq %r10
pushq %rax
leaq 0x34(%rsp), %rax
pushq %rax
callq 0x73ce
addq $0x30, %rsp
movl %r15d, (%r12)
movl %r15d, 0x8(%rsp)
movl 0xb8(%rsp), %eax
addl %ebx, %eax
movl %eax, 0x1c(%rsp)
movl 0xc0(%rsp), %ecx
addl %ebx, %ecx
leaq 0x40(%rsp), %r9
movl %ecx, (%r9)
leaq 0x54(%rsp), %r15
movl %eax, (%r15)
leaq 0x74(%rsp), %rax
movl %ecx, (%rax)
leaq 0x70(%rsp), %r10
movl %ebx, (%r10)
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
leaq 0x30(%rsp), %rdx
movq %r13, %rcx
movq %r13, %r8
movq %r9, %r13
movq %r12, %r9
pushq %r10
pushq %rax
pushq %r15
pushq %r13
leaq 0x3c(%rsp), %rax
pushq %rax
pushq %rbp
callq 0x74ac
addq $0x30, %rsp
movq 0x38(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x48(%rsp), %rdx
movl 0x44(%rsp), %r9d
movl 0xb0(%rsp), %eax
movl 0xb8(%rsp), %r10d
addl %ebx, %r10d
movl 0xc0(%rsp), %r11d
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %rbx
pushq %r11
pushq %r10
pushq %rax
callq 0x2e76
addq $0x20, %rsp
leaq 0x10(%rsp), %rdi
callq 0x2290
leaq 0x20(%rsp), %rdi
callq 0x2290
cmpq $0x0, 0x20(%rsp)
jne 0x37fb
cmpq $0x0, 0x10(%rsp)
jne 0x3800
movl 0xb8(%rsp), %eax
addl %ebx, %eax
leaq 0x20(%rsp), %r9
movl %eax, (%r9)
movl 0xc0(%rsp), %ecx
addl %ebx, %ecx
movl %ecx, 0xc(%rsp)
movl %eax, 0x8(%rsp)
movl %eax, 0x1c(%rsp)
movl %ecx, 0x40(%rsp)
movl %ebx, 0x54(%rsp)
leaq -0xcb6(%rip), %rsi      # 0x2755
leaq 0x10(%rsp), %r14
leaq 0x48(%rsp), %rcx
movq %r14, %rdi
movq %rcx, %rdx
movq %rcx, %r8
pushq %r15
pushq %r13
leaq 0x2c(%rsp), %rax
pushq %rax
leaq 0xd8(%rsp), %rax
pushq %rax
leaq 0x28(%rsp), %rax
pushq %rax
leaq 0x34(%rsp), %rax
pushq %rax
callq 0x758a
addq $0x30, %rsp
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rdx
movl 0x44(%rsp), %r9d
leal (%r9,%rbx), %ecx
movl 0xb0(%rsp), %r8d
xorl %eax, %eax
movq %rdi, %rsi
pushq %rbx
pushq %rax
pushq %rax
pushq %r8
callq 0x2755
addq $0x20, %rsp
movq %r14, %rdi
callq 0x2290
cmpq $0x0, 0x10(%rsp)
jne 0x3805
movq 0x60(%rsp), %rdi
movq 0x30(%rsp), %rsi
leaq 0x38(%rsp), %r12
movq (%r12), %rdx
movl 0x2c(%rsp), %ecx
addl %ebx, %ecx
movl 0x28(%rsp), %r8d
addl %ebx, %r8d
xorl %r15d, %r15d
xorl %r9d, %r9d
pushq %rbx
pushq %r15
pushq %r15
pushq %r15
callq 0x2e76
addq $0x20, %rsp
movl 0xb8(%rsp), %eax
addl %ebx, %eax
leaq 0x20(%rsp), %r9
movl %eax, (%r9)
movl %r15d, 0xc(%rsp)
movl %r15d, 0x8(%rsp)
movl %eax, 0x1c(%rsp)
movl %ebx, 0x40(%rsp)
leaq -0xe3c(%rip), %rsi      # 0x26ad
leaq 0x10(%rsp), %rdi
leaq 0x48(%rsp), %r14
movq %r14, %rdx
movq %r12, %rcx
movq %r14, %r8
pushq %r13
leaq 0xc8(%rsp), %r13
pushq %r13
leaq 0x2c(%rsp), %r12
pushq %r12
leaq 0x20(%rsp), %rbp
pushq %rbp
leaq 0x2c(%rsp), %rax
pushq %rax
pushq %r13
callq 0x7668
addq $0x30, %rsp
movl %r15d, 0xc(%rsp)
movl %r15d, 0x8(%rsp)
movl %ebx, 0x1c(%rsp)
leaq 0x20(%rsp), %rdi
leaq -0xe93(%rip), %rsi      # 0x26ad
movq %r14, %rdx
leaq 0x38(%rsp), %rcx
movq %r14, %r8
leaq 0xb8(%rsp), %r9
pushq %r12
pushq %r13
pushq %r9
pushq %rbp
leaq 0x2c(%rsp), %rax
pushq %rax
pushq %r13
callq 0x7746
addq $0x30, %rsp
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rdx
movl 0x44(%rsp), %ecx
movl 0xb0(%rsp), %r8d
addl %ebx, %r8d
leal (%rcx,%rbx), %r9d
movq %rdi, %rsi
pushq %rbx
pushq %r15
pushq %r15
pushq %r8
callq 0x2755
addq $0x20, %rsp
leaq 0x10(%rsp), %rdi
callq 0x2290
leaq 0x20(%rsp), %rdi
callq 0x2290
cmpq $0x0, 0x20(%rsp)
jne 0x380a
cmpq $0x0, 0x10(%rsp)
jne 0x380f
movq 0x60(%rsp), %rdi
movq 0x30(%rsp), %rsi
leaq 0x48(%rsp), %r13
movq (%r13), %rdx
movl 0x2c(%rsp), %ecx
movl 0x28(%rsp), %r8d
movl 0xb8(%rsp), %eax
movl 0xc0(%rsp), %r10d
addl %ebx, %r10d
xorl %r15d, %r15d
xorl %r9d, %r9d
pushq %rbx
pushq %r10
pushq %rax
pushq %r15
callq 0x2e76
addq $0x20, %rsp
movl 0xb8(%rsp), %eax
addl %ebx, %eax
leaq 0x20(%rsp), %r12
movl %eax, (%r12)
movl 0xc0(%rsp), %ecx
addl %ebx, %ecx
movl %ecx, 0xc(%rsp)
movl %ecx, 0x8(%rsp)
movl %eax, 0x1c(%rsp)
movl %ecx, 0x40(%rsp)
movl %ebx, 0x54(%rsp)
leaq -0xf93(%rip), %rsi      # 0x26ad
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r13, %rdx
movq %r13, %rcx
movq %r13, %r8
movq %r12, %r9
leaq 0x54(%rsp), %rax
pushq %rax
leaq 0x48(%rsp), %rax
pushq %rax
leaq 0x2c(%rsp), %rax
pushq %rax
leaq 0x20(%rsp), %rax
pushq %rax
leaq 0xd8(%rsp), %rax
pushq %rax
leaq 0x34(%rsp), %rax
pushq %rax
callq 0x7824
addq $0x30, %rsp
movq 0x60(%rsp), %rdi
movq 0x38(%rsp), %rdx
movl 0x2c(%rsp), %ecx
movl 0x28(%rsp), %r8d
leal (%r8,%rbx), %eax
movq %rdi, %rsi
movl %ecx, %r9d
pushq %rbx
pushq %r15
pushq %r15
pushq %rax
callq 0x26ad
addq $0x20, %rsp
movq %r14, %rdi
callq 0x2290
cmpq $0x0, 0x10(%rsp)
jne 0x3814
movq 0x38(%rsp), %rdi
movq 0x58(%rsp), %rsi
leaq 0x30(%rsp), %r14
movq (%r14), %rdx
movl 0x44(%rsp), %r9d
addl %ebx, %r9d
movl 0xb0(%rsp), %eax
addl %ebx, %eax
xorl %r15d, %r15d
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %rbx
pushq %r15
pushq %r15
pushq %rax
callq 0x2e76
addq $0x20, %rsp
movl 0xc0(%rsp), %eax
addl %ebx, %eax
movl %eax, 0x20(%rsp)
movl %r15d, 0xc(%rsp)
movl %r15d, 0x8(%rsp)
movl %eax, 0x1c(%rsp)
movl %ebx, 0x40(%rsp)
leaq -0x1077(%rip), %rsi     # 0x26ad
leaq 0x10(%rsp), %r13
leaq 0x48(%rsp), %rbp
movq %r13, %rdi
movq %rbp, %rdx
movq %r14, %rcx
movq %rbp, %r8
leaq 0xb8(%rsp), %r9
leaq 0x40(%rsp), %rax
pushq %rax
leaq 0x24(%rsp), %rax
pushq %rax
pushq %r9
leaq 0x20(%rsp), %rax
pushq %rax
leaq 0x2c(%rsp), %rax
pushq %rax
pushq %r12
callq 0x7134
addq $0x30, %rsp
movq (%rbp), %rdi
movq (%r14), %rsi
movl 0xb8(%rsp), %ecx
movl 0xc0(%rsp), %r8d
movq %rdi, %rdx
xorl %r9d, %r9d
pushq %rbx
pushq %r8
pushq %rcx
pushq %r15
callq 0x2755
addq $0x20, %rsp
movq %r13, %rdi
callq 0x2290
cmpq $0x0, 0x10(%rsp)
jne 0x3819
movq 0x30(%rsp), %rbx
testq %rbx, %rbx
je 0x37b5
leaq 0x8(%rbx), %rdi
callq 0x79aa
movq %rbx, %rdi
callq 0x2190
movq 0x38(%rsp), %rbx
testq %rbx, %rbx
je 0x37d0
leaq 0x8(%rbx), %rdi
callq 0x79aa
movq %rbx, %rdi
callq 0x2190
addq $0x78, %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, 0x10(%rsp)
je 0x38ad
callq 0x2080
cmpq $0x0, 0x10(%rsp)
je 0x38ad
callq 0x2080
jmp 0x3871
cmpq $0x0, 0x10(%rsp)
je 0x38ad
callq 0x2080
jmp 0x38a5
jmp 0x388b
cmpq $0x0, 0x38(%rsp)
je 0x38ad
callq 0x2080
cmpq $0x0, 0x38(%rsp)
je 0x38ad
callq 0x2080
cmpq $0x0, 0x20(%rsp)
jne 0x387e
cmpq $0x0, 0x10(%rsp)
je 0x38ad
callq 0x2080
callq 0x2080
cmpq $0x0, 0x10(%rsp)
jne 0x3898
cmpq $0x0, 0x30(%rsp)
je 0x38ad
callq 0x2080
callq 0x2080
cmpq $0x0, 0x20(%rsp)
jne 0x38b5
cmpq $0x0, 0x10(%rsp)
jne 0x38ba
movq %rax, %rdi
callq 0x22b0
callq 0x2080
callq 0x2080