// File: /workspace/github_cpp_makefile_star2_O2/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, %r10d
movq %rsi, %r13
movl 0xb0(%rsp), %r12d
movl 0xc0(%rsp), %r14d
movl 0xc8(%rsp), %eax
leaq 0x60(%rsp), %rcx
movq %rdi, (%rcx)
movq %rsi, 0x58(%rsp)
leaq 0x48(%rsp), %rsi
movq %rdx, (%rsi)
leaq 0x2c(%rsp), %rdx
movl %r10d, (%rdx)
leaq 0x28(%rsp), %r11
movl %r8d, (%r11)
movl %r9d, 0x3c(%rsp)
pushq $0x2
popq %rsi
cltd
idivl %esi
movl %eax, %ebx
addl %eax, %r10d
leaq 0x30(%rsp), %r9
movl %r10d, (%r9)
leal (%rbx,%r14), %eax
leaq 0x10(%rsp), %r10
movl %eax, (%r10)
leaq 0x18(%rsp), %rax
movl %ebx, (%rax)
leaq 0xb8(%rsp), %r15
leaq -0x7c6(%rip), %rsi      # 0x26a1
leaq 0x40(%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 0x690a
addq $0x30, %rsp
leaq 0x48(%rsp), %rax
movq (%rax), %rdx
leal (%rbx,%r12), %eax
movl (%r15), %r10d
addl %ebx, %r10d
movq %r13, %rdi
movq %r13, %rsi
movl %ebp, %ecx
movl %r12d, %r8d
movl %ebp, %r9d
pushq %rbx
pushq %r14
pushq %r10
pushq %rax
callq 0x25eb
addq $0x20, %rsp
leaq 0x40(%rsp), %rdi
callq 0x2250
leaq 0x40(%rsp), %rdi
callq 0x69d4
leaq 0x48(%rsp), %r12
movq (%r12), %rdi
movl 0xb8(%rsp), %ecx
movl 0xc0(%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 0x2d93
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, 0x18(%rsp)
movl 0xc0(%rsp), %eax
addl %ebx, %eax
leaq 0xc(%rsp), %r10
movl %eax, (%r10)
leaq 0x8(%rsp), %rax
movl %ebx, (%rax)
leaq -0x89d(%rip), %rsi      # 0x26a1
leaq 0x40(%rsp), %r13
leaq 0x60(%rsp), %rcx
movq %r13, %rdi
movq %rcx, %rdx
movq %r12, %r8
pushq %rax
pushq %r10
leaq 0xc8(%rsp), %rax
pushq %rax
leaq 0x30(%rsp), %rax
pushq %rax
leaq 0x30(%rsp), %rax
pushq %rax
leaq 0x58(%rsp), %rax
pushq %rax
callq 0x69e2
addq $0x30, %rsp
movq 0x58(%rsp), %rdi
movq (%r12), %rdx
movl 0x3c(%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 0x25eb
addq $0x20, %rsp
movq %r13, %rdi
callq 0x2250
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x69d4
leaq 0x48(%rsp), %r13
movq (%r13), %rdi
movl 0xb8(%rsp), %ecx
leaq 0xc0(%rsp), %r15
movl (%r15), %eax
leal (%rax,%rbx), %r8d
leal (%rcx,%rbx), %r9d
movq %rdi, %rsi
movq %rdi, %rdx
pushq %rbx
pushq %rax
pushq %rcx
pushq %rax
callq 0x2d93
addq $0x20, %rsp
pushq $0x20
popq %rdi
callq 0x2190
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, (%r14)
movq %rax, %rdi
movl %ebx, %esi
callq 0x23cc
leaq 0x2c(%rsp), %r9
movl (%r9), %eax
addl %ebx, %eax
leaq 0x10(%rsp), %rbp
movl %eax, (%rbp)
movl 0x28(%rsp), %eax
addl %ebx, %eax
movl %eax, 0x18(%rsp)
movl (%r15), %eax
addl %ebx, %eax
movl %eax, 0xc(%rsp)
movl %ebx, 0x8(%rsp)
leaq -0xa6d(%rip), %r14      # 0x25eb
leaq 0x30(%rsp), %rdi
leaq 0x60(%rsp), %rcx
movq %r14, %rsi
movq %rcx, %rdx
movq %r13, %r8
leaq 0x8(%rsp), %r13
pushq %r13
leaq 0x14(%rsp), %rax
pushq %rax
leaq 0xc8(%rsp), %r10
pushq %r10
leaq 0x30(%rsp), %r15
pushq %r15
leaq 0x30(%rsp), %rax
pushq %rax
leaq 0x50(%rsp), %rax
pushq %rax
callq 0x6aac
addq $0x30, %rsp
leaq 0x3c(%rsp), %r9
movl (%r9), %eax
addl %ebx, %eax
movl %eax, 0x18(%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 0x24(%rsp), %r10
movl %ebx, (%r10)
leaq 0x58(%rsp), %rcx
movq %rbp, %rdi
movq %r14, %rsi
movq %rcx, %rdx
leaq 0x48(%rsp), %r8
pushq %r10
leaq 0xc8(%rsp), %r10
pushq %r10
pushq %r13
leaq 0x24(%rsp), %r10
pushq %r10
pushq %r15
pushq %rax
callq 0x6b76
addq $0x30, %rsp
movq 0x60(%rsp), %rdi
movl 0x2c(%rsp), %ecx
addl %ebx, %ecx
movl 0x28(%rsp), %r8d
leal (%r8,%rbx), %eax
movq %rdi, %rsi
movq %r12, 0x68(%rsp)
movq %r12, %rdx
movl %ecx, %r9d
pushq %rbx
pushq $0x0
pushq $0x0
pushq %rax
callq 0x25eb
addq $0x20, %rsp
leaq 0x30(%rsp), %rdi
callq 0x2250
leaq 0x10(%rsp), %rdi
callq 0x2250
leaq 0x10(%rsp), %rdi
callq 0x69d4
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x69d4
pushq $0x20
popq %rdi
callq 0x2190
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, (%r14)
movq %rax, %rdi
movl %ebx, %esi
callq 0x23cc
leaq 0x48(%rsp), %r13
movq (%r13), %rdi
movl 0xb8(%rsp), %ecx
movl 0xc0(%rsp), %eax
leal (%rax,%rbx), %r8d
leal (%rcx,%rbx), %r9d
movq %rdi, %rsi
movq %r15, %rdx
pushq %rbx
pushq $0x0
pushq $0x0
pushq %rax
callq 0x2d93
addq $0x20, %rsp
leaq 0x18(%rsp), %r9
andl $0x0, (%r9)
leaq 0xc(%rsp), %rbp
andl $0x0, (%rbp)
movl %ebx, 0x8(%rsp)
leaq -0xbe9(%rip), %rsi      # 0x25eb
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %r12
movq %r12, %rdx
movq %r13, %rcx
movq %r13, %r8
leaq 0x8(%rsp), %r14
pushq %r14
leaq 0xc8(%rsp), %r15
pushq %r15
leaq 0xc8(%rsp), %rax
pushq %rax
pushq %r15
pushq %rax
leaq 0x34(%rsp), %rax
pushq %rax
callq 0x6c40
addq $0x30, %rsp
andl $0x0, (%rbp)
andl $0x0, 0x8(%rsp)
movl 0xb8(%rsp), %eax
addl %ebx, %eax
movl %eax, 0x24(%rsp)
movl 0xc0(%rsp), %ecx
addl %ebx, %ecx
leaq 0x38(%rsp), %r8
movl %ecx, (%r8)
leaq 0x54(%rsp), %r11
movl %eax, (%r11)
leaq 0x74(%rsp), %rax
movl %ecx, (%rax)
leaq 0x70(%rsp), %r10
movl %ebx, (%r10)
leaq 0x18(%rsp), %rdi
leaq -0xc72(%rip), %rsi      # 0x25eb
movq %r12, %rdx
movq %r8, %r12
movq %r13, %rcx
movq %r13, %r8
movq %rbp, %r9
pushq %r10
pushq %rax
pushq %r11
pushq %r12
leaq 0x44(%rsp), %r13
pushq %r13
pushq %r14
callq 0x6d0a
addq $0x30, %rsp
movq 0x58(%rsp), %rsi
movq 0x48(%rsp), %rdx
movl 0x3c(%rsp), %r9d
movl 0xb0(%rsp), %eax
movl 0xb8(%rsp), %r10d
addl %ebx, %r10d
movl 0xc0(%rsp), %r11d
movq 0x68(%rsp), %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %rbx
pushq %r11
pushq %r10
pushq %rax
callq 0x2d93
addq $0x20, %rsp
leaq 0x10(%rsp), %rdi
callq 0x2250
leaq 0x18(%rsp), %rdi
callq 0x2250
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x69d4
leaq 0x10(%rsp), %rdi
callq 0x69d4
movl 0xb8(%rsp), %eax
addl %ebx, %eax
movl %eax, (%r14)
movl 0xc0(%rsp), %ecx
addl %ebx, %ecx
movl %ecx, 0xc(%rsp)
movl %eax, 0x8(%rsp)
movl %eax, 0x24(%rsp)
movl %ecx, 0x38(%rsp)
movl %ebx, 0x54(%rsp)
leaq -0xc81(%rip), %rsi      # 0x26a1
leaq 0x10(%rsp), %r14
leaq 0x48(%rsp), %rcx
leaq 0x18(%rsp), %r9
movq %r14, %rdi
movq %rcx, %rdx
movq %rcx, %r8
leaq 0x54(%rsp), %rax
pushq %rax
pushq %r12
pushq %r13
pushq %r15
leaq 0x28(%rsp), %rax
pushq %rax
pushq %rbp
callq 0x6dd4
addq $0x30, %rsp
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rdx
movl 0x3c(%rsp), %r9d
leal (%r9,%rbx), %ecx
movl 0xb0(%rsp), %r8d
movq %rdi, %rsi
pushq %rbx
pushq $0x0
pushq $0x0
pushq %r8
callq 0x26a1
addq $0x20, %rsp
movq %r14, %rdi
callq 0x2250
movq %r12, %rbp
movq %r15, %r12
movq %r13, %r15
leaq 0x10(%rsp), %rdi
callq 0x69d4
movq 0x60(%rsp), %rdi
movq 0x30(%rsp), %rsi
movl 0x2c(%rsp), %ecx
addl %ebx, %ecx
movl 0x28(%rsp), %r8d
addl %ebx, %r8d
subq $0x20, %rsp
andl $0x0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
andl $0x0, (%rsp)
movl %ebx, 0x18(%rsp)
movq 0x88(%rsp), %rdx
xorl %r9d, %r9d
callq 0x2d93
addq $0x20, %rsp
movl 0xb8(%rsp), %eax
andl $0x0, 0xc(%rsp)
addl %ebx, %eax
andl $0x0, 0x8(%rsp)
leaq 0x18(%rsp), %r9
movl %eax, (%r9)
movl %eax, 0x24(%rsp)
movl %ebx, 0x38(%rsp)
leaq -0xe20(%rip), %r14      # 0x25eb
leaq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rcx
leaq 0x48(%rsp), %r13
movq %r14, %rsi
movq %r13, %rdx
movq %r13, %r8
pushq %rbp
pushq %r12
pushq %r15
leaq 0x20(%rsp), %rbp
pushq %rbp
leaq 0x2c(%rsp), %r15
pushq %r15
pushq %r12
callq 0x6e9e
addq $0x30, %rsp
andl $0x0, 0xc(%rsp)
andl $0x0, 0x8(%rsp)
movl %ebx, 0x24(%rsp)
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
leaq 0x40(%rsp), %rcx
movq %r13, %r8
leaq 0xb8(%rsp), %r14
movq %r14, %r9
leaq 0x24(%rsp), %rax
pushq %rax
pushq %r12
pushq %r14
pushq %rbp
pushq %r15
pushq %r12
callq 0x6f68
addq $0x30, %rsp
movq %rbp, %r15
movq %r14, %rbp
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rdx
movl 0x3c(%rsp), %ecx
movl 0xb0(%rsp), %r8d
addl %ebx, %r8d
leal (%rcx,%rbx), %r9d
movq %rdi, %rsi
pushq %rbx
pushq $0x0
pushq $0x0
pushq %r8
callq 0x26a1
addq $0x20, %rsp
leaq 0x10(%rsp), %rdi
callq 0x2250
leaq 0x18(%rsp), %rdi
callq 0x2250
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x69d4
leaq 0x10(%rsp), %rdi
callq 0x69d4
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), %r9d
addl %ebx, %r9d
subq $0x20, %rsp
movl %ebx, 0x18(%rsp)
andl $0x0, (%rsp)
movl %r9d, 0x10(%rsp)
movl %eax, 0x8(%rsp)
xorl %r9d, %r9d
callq 0x2d93
addq $0x20, %rsp
movl 0xb8(%rsp), %eax
addl %ebx, %eax
movl %eax, (%r14)
movl 0xc0(%rsp), %ecx
addl %ebx, %ecx
movl %ecx, 0xc(%rsp)
movl %ecx, 0x8(%rsp)
movl %eax, 0x24(%rsp)
movl %ecx, 0x38(%rsp)
movl %ebx, 0x54(%rsp)
leaq -0xf79(%rip), %rsi      # 0x25eb
leaq 0x10(%rsp), %r14
leaq 0x18(%rsp), %r9
movq %r14, %rdi
movq %r13, %rdx
movq %r13, %rcx
movq %r13, %r8
leaq 0x54(%rsp), %rax
pushq %rax
leaq 0x40(%rsp), %rax
pushq %rax
leaq 0x34(%rsp), %r12
pushq %r12
pushq %r15
pushq %rbp
leaq 0x34(%rsp), %rax
pushq %rax
callq 0x7032
addq $0x30, %rsp
movq 0x60(%rsp), %rdi
movq 0x40(%rsp), %rdx
movl 0x2c(%rsp), %ecx
movl 0x28(%rsp), %r8d
movl %ebx, %eax
addl %r8d, %eax
movq %rdi, %rsi
movl %ecx, %r9d
pushq %rbx
pushq $0x0
pushq $0x0
pushq %rax
callq 0x25eb
addq $0x20, %rsp
movq %r14, %rdi
callq 0x2250
movq %rbp, %r15
leaq 0x10(%rsp), %rdi
callq 0x69d4
movq 0x40(%rsp), %rdi
movq 0x58(%rsp), %rsi
leaq 0x30(%rsp), %r13
movq (%r13), %rdx
movl 0x3c(%rsp), %r9d
addl %ebx, %r9d
movl 0xb0(%rsp), %eax
addl %ebx, %eax
subq $0x20, %rsp
andl $0x0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
movl %ebx, 0x18(%rsp)
movl %eax, (%rsp)
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2d93
addq $0x20, %rsp
andl $0x0, 0xc(%rsp)
movl 0xc0(%rsp), %eax
andl $0x0, 0x8(%rsp)
addl %ebx, %eax
movl %eax, 0x18(%rsp)
movl %eax, 0x24(%rsp)
movl %ebx, 0x38(%rsp)
leaq -0x1063(%rip), %rsi     # 0x25eb
leaq 0x10(%rsp), %r14
leaq 0x48(%rsp), %rbp
movq %r14, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq %rbp, %r8
movq %r15, %r9
leaq 0x38(%rsp), %rax
pushq %rax
pushq %r12
pushq %r15
leaq 0x20(%rsp), %rax
pushq %rax
leaq 0x2c(%rsp), %rax
pushq %rax
leaq 0x40(%rsp), %rax
pushq %rax
callq 0x69e2
addq $0x30, %rsp
movq (%rbp), %rdi
movq (%r13), %rsi
movl 0xb8(%rsp), %ecx
movl 0xc0(%rsp), %r8d
movq %rdi, %rdx
xorl %r9d, %r9d
pushq %rbx
pushq %r8
pushq %rcx
pushq $0x0
callq 0x26a1
addq $0x20, %rsp
movq %r14, %rdi
callq 0x2250
leaq 0x10(%rsp), %rdi
callq 0x69d4
movq 0x30(%rsp), %rbx
testq %rbx, %rbx
je 0x36dd
leaq 0x8(%rbx), %rdi
callq 0x71bc
movq %rbx, %rdi
callq 0x2170
movq 0x40(%rsp), %rbx
testq %rbx, %rbx
je 0x36f8
leaq 0x8(%rbx), %rdi
callq 0x71bc
movq %rbx, %rdi
callq 0x2170
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3717
jmp 0x3717
jmp 0x3717
jmp 0x3717
movq %rax, %rbx
jmp 0x3750
movq %rax, %rbx
jmp 0x373c
jmp 0x3723
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
jmp 0x3755
jmp 0x3743
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x69d4
leaq 0x30(%rsp), %rdi
jmp 0x3755
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x69d4
leaq 0x10(%rsp), %rdi
callq 0x69d4
movq %rbx, %rdi
callq 0x2270