LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/wenzhelu[P]RUDP/sender.cpp
// Function: Sender::send(char const*)
void Sender::send(const char *file) {
    busy.lock();
    std::fstream fs(file);
    struct stat st;
    stat(file, &st);
    userBuff = new char[st.st_size];
    size_t pt = 0;

    while (fs.good()) {
        fs.read(userBuff + pt, 4096);
        pt += fs.gcount();
    }

    if (!fs.eof())
        std::cout << "read file error" << std::endl;

    userDataLen = st.st_size;
    fs.close();
    
    // after data copying
    beginTask();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x2a0, %rsp            # imm = 0x2A0
movq %rsi, %r14
movq %rdi, %rbx
addq $0x10, %rdi
callq 0x3546
leaq -0x230(%rbp), %rdi
pushq $0x18
popq %rdx
movq %r14, %rsi
callq 0x22d0
leaq -0x2c0(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x21f0
movq 0x30(%r15), %r15
testq %r15, %r15
pushq $-0x1
popq %rdi
cmovnsq %r15, %rdi
callq 0x2030
movq %rax, (%rbx)
xorl %r12d, %r12d
leaq -0x230(%rbp), %r14
movq -0x230(%rbp), %rax
movq -0x18(%rax), %rax
movl -0x210(%rbp,%rax), %eax
testl %eax, %eax
jne 0x3221
movq (%rbx), %rsi
addq %r12, %rsi
movl $0x1000, %edx           # imm = 0x1000
movq %r14, %rdi
callq 0x22a0
addq -0x228(%rbp), %r12
jmp 0x31ef
testb $0x2, %al
jne 0x3240
movq 0x3dac(%rip), %rdi      # 0x6fd8
leaq 0xea5(%rip), %rsi       # 0x40d8
callq 0x2240
movq %rax, %rdi
callq 0x2140
movl %r15d, 0x8(%rbx)
leaq -0x230(%rbp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2fe8
leaq -0x230(%rbp), %rdi
callq 0x20a0
addq $0x2a0, %rsp            # imm = 0x2A0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3278
jmp 0x3278
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O2/wenzhelu[P]RUDP/sender.cpp
// Function: Sender::send(char const*, unsigned long)
void Sender::send(const char *buffer, size_t len) {
    busy.lock();
    userBuff = new char[len];
    memcpy(userBuff, buffer, len);
    userDataLen = len;
    
    // after data copying
    beginTask();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq $0x10, %rdi
callq 0x3546
movq %rbx, %rdi
callq 0x2030
movq %rax, (%r15)
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x21d0
movl %ebx, 0x8(%r15)
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2fe8
nop
// File: /workspace/github_cpp_makefile_star2_O2/wenzhelu[P]RUDP/UDPSock.cpp
// Function: Usock::init(char const*, char const*, char const*)
int Usock::init(const char *localPort, const char *remoteIp, const char *remotePort) {
    
    // init of the usock do three things:
    // 1.setup socket
    // 2.bind socket to certain port
    // 3.initialize remote information
    
    if ((socket_fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
        printf("socket setup error\n");
        return -1;
    }
    
    local.sin_addr.s_addr = INADDR_ANY;
    local.sin_family = AF_INET;
    local.sin_port = htons(atoi(localPort));
    if (bind(socket_fd, (struct sockaddr *) &local, sizeof(local)) < 0) {
        printf("server binding error\n");
        return -1;
    }
    
    remote.sin_addr.s_addr = inet_addr(remoteIp);
    remote.sin_family = AF_INET;
    remote.sin_port = htons(atoi(remotePort));
    
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
pushq $0x2
popq %rdi
pushq $0x11
popq %rdx
movl %edi, %esi
callq 0x20b0
movl %eax, (%rbx)
testl %eax, %eax
js 0x38ac
movl %eax, %r13d
movq %r14, -0x30(%rbp)
leaq 0x4(%rbx), %r14
andl $0x0, 0x8(%rbx)
movw $0x2, 0x4(%rbx)
movq %r12, %rdi
callq 0x2340
rolw $0x8, %ax
movw %ax, 0x6(%rbx)
pushq $0x10
popq %rdx
movl %r13d, %edi
movq %r14, %rsi
callq 0x2080
testl %eax, %eax
js 0x38b5
movq %r15, %rdi
callq 0x2260
movl %eax, 0x18(%rbx)
movw $0x2, 0x14(%rbx)
movq -0x30(%rbp), %rdi
callq 0x2340
rolw $0x8, %ax
movw %ax, 0x16(%rbx)
xorl %eax, %eax
jmp 0x38c4
leaq 0x84b(%rip), %rdi       # 0x40fe
jmp 0x38bc
leaq 0x82d(%rip), %rdi       # 0x40e9
callq 0x2330
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/eschwabe[P]interview-practice/src/zeromatrix.cpp
// Function: PropogateZeros(int**, int, int)
void PropogateZeros(int* matrix[], int M, int N) {
    bool* zrows = new bool[M];
    bool* zcols = new bool[N];
    for(int row = 0; row < M; row++) {
        for(int col = 0; col < N; col++) {
            if(matrix[row][col] == 0) {
                zrows[row] = true;
                zcols[col] = true;
            }
        }
    }

    // zero rows
    for(int row = 0; row < M; row++) {
        if(zrows[row]) {
            for(int col = 0; col < N; col++) {
                matrix[row][col] = 0;
            }
        }
    }

    // zero cols
    for(int col = 0; col < N; col++) {
        if(zcols[col]) {
            for(int row = 0; row < M; row++) {
                matrix[row][col] = 0;
            }
        }
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rdi, %rbx
movslq %esi, %r14
movq %r14, %rdi
callq 0x1030
movq %rax, %r12
movslq %ebp, %r15
movq %r15, %rdi
callq 0x1030
xorl %ecx, %ecx
testl %r15d, %r15d
cmovlel %ecx, %r15d
testl %r14d, %r14d
cmovlel %ecx, %r14d
movb $0x1, %dl
cmpq %r14, %rcx
je 0x121b
xorl %esi, %esi
cmpq %rsi, %r15
je 0x1216
movq (%rbx,%rcx,8), %rdi
cmpl $0x0, (%rdi,%rsi,4)
jne 0x1211
movb %dl, (%r12,%rcx)
movb %dl, (%rax,%rsi)
incq %rsi
jmp 0x11fb
incq %rcx
jmp 0x11f4
xorl %ecx, %ecx
cmpq %r14, %rcx
je 0x1242
cmpb $0x1, (%r12,%rcx)
jne 0x123d
xorl %edx, %edx
cmpq %rdx, %r15
je 0x123d
movq (%rbx,%rcx,8), %rsi
andl $0x0, (%rsi,%rdx,4)
incq %rdx
jmp 0x122b
incq %rcx
jmp 0x121d
xorl %ecx, %ecx
cmpq %r15, %rcx
je 0x1268
cmpb $0x1, (%rax,%rcx)
jne 0x1263
xorl %edx, %edx
cmpq %rdx, %r14
je 0x1263
movq (%rbx,%rdx,8), %rsi
andl $0x0, (%rsi,%rcx,4)
incq %rdx
jmp 0x1251
incq %rcx
jmp 0x1244
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/eschwabe[P]interview-practice/src/zeromatrix.cpp
// Function: PrintMatrix(int**, int, int)
void PrintMatrix(int* matrix[], int M, int N) {
    for(int row = 0; row < M; row++) {
        for(int col = 0; col < N; col++) {
            cout << setw(3) << matrix[row][col] << " ";
        }
        cout << endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r15
xorl %ebp, %ebp
testl %edx, %edx
cmovlel %ebp, %ebx
testl %esi, %esi
cmovlel %ebp, %esi
movq %rsi, (%rsp)
movq 0x2d40(%rip), %r12      # 0x3fd8
leaq 0xd65(%rip), %r13       # 0x2004
cmpq (%rsp), %rbp
je 0x12eb
xorl %r14d, %r14d
cmpq %r14, %rbx
je 0x12de
movq (%r12), %rax
movq -0x18(%rax), %rax
movq $0x3, 0x10(%r12,%rax)
movq (%r15,%rbp,8), %rax
movl (%rax,%r14,4), %esi
movq %r12, %rdi
callq 0x1080
movq %rax, %rdi
movq %r13, %rsi
callq 0x1060
incq %r14
jmp 0x12a8
movq %r12, %rdi
callq 0x1040
incq %rbp
jmp 0x129f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/eschwabe[P]interview-practice/src/zeromatrix.cpp
// Function: main
int main()
{
    // allocate matrix
    const int ROWS = 10;
    const int COLS = 7;
    int* matrix[ROWS];
    for(int r = 0; r < ROWS; r++) {
        matrix[r] = new int[COLS];
    }

    // initialize matrix
    for(int r = 0; r < ROWS; r++) {
        for(int c = 0; c < COLS; c++) {
            matrix[r][c] = r+c;
        }
    }
    matrix[ROWS/2][COLS/2+2] = 0;

    // print and set zeros
    PrintMatrix(matrix, ROWS, COLS);
    PropogateZeros(matrix, ROWS, COLS);
    PrintMatrix(matrix, ROWS, COLS);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
xorl %r14d, %r14d
pushq $0x1c
popq %rbx
cmpq $0xa, %r14
je 0x131f
movq %rbx, %rdi
callq 0x1030
movq %rax, (%rsp,%r14,8)
incq %r14
jmp 0x1308
xorl %eax, %eax
cmpq $0xa, %rax
je 0x1343
movq (%rsp,%rax,8), %rcx
xorl %edx, %edx
cmpq $0x7, %rdx
je 0x133e
leal (%rax,%rdx), %esi
movl %esi, (%rcx,%rdx,4)
incq %rdx
jmp 0x132d
incq %rax
jmp 0x1321
movq %rsp, %rbx
movq 0x28(%rbx), %rax
andl $0x0, 0x14(%rax)
pushq $0xa
popq %rbp
pushq $0x7
popq %r14
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x1271
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x11bc
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x1271
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/zheng-ji[P]lruCache/example.cpp
// Function: Process(int, int&)
int Process(int32_t iKey, int32_t & iValue) 
{
    static LRUCache<int32_t, int32_t> tCache(100000, 3600);
    if (tCache.GetCache(iKey, iValue) > 0)
        return 1;
    iValue = random(); // δ����cache�����в�ѯ�������õ���������cache
    tCache.UpdateCache(iKey, iValue);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movl %edi, -0x14(%rbp)
movb 0x3e4d(%rip), %al       # 0x61c0
testb %al, %al
je 0x23be
leaq 0x3dba(%rip), %rdi      # 0x6138
leaq -0x14(%rbp), %rsi
pushq $0x1
popq %r14
movq %rbx, %rdx
movl %r14d, %ecx
callq 0x2672
testl %eax, %eax
jg 0x23b2
callq 0x2090
movl %eax, (%rbx)
leaq 0x3d95(%rip), %rdi      # 0x6138
leaq -0x14(%rbp), %rsi
movq %rbx, %rdx
callq 0x274c
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x3dfb(%rip), %rdi      # 0x61c0
callq 0x2210
testl %eax, %eax
je 0x2377
leaq 0x3d63(%rip), %r14      # 0x6138
movq %r14, %rdi
movl $0x186a0, %esi          # imm = 0x186A0
movl $0xe10, %edx            # imm = 0xE10
callq 0x2600
leaq 0x264(%rip), %rdi       # 0x2652
leaq 0x3d23(%rip), %rdx      # 0x6118
movq %r14, %rsi
callq 0x20f0
leaq 0x3dbc(%rip), %rdi      # 0x61c0
callq 0x20b0
jmp 0x2377
// File: /workspace/github_cpp_makefile_star2_O2/zheng-ji[P]lruCache/example.cpp
// Function: TestCacheUpdateThread()
void TestCacheUpdateThread() 
{
    int iCnt = 10000;
    int iHit = 0;
    for (auto i = 0; i < iCnt; i++) 
    {
        int32_t iKey = random() % 200000;
        int32_t iValue = 0;
        if (Process(iKey, iValue) > 0) 
        {
            iHit++;
        }
    }
    std::cout << "Process cnt:" << iCnt << " hitcache:" << iHit << std::endl;;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
xorl %ebx, %ebx
movl $0x2710, %r15d          # imm = 0x2710
movl $0x30d40, %r12d         # imm = 0x30D40
leaq -0x24(%rbp), %r14
subl $0x1, %r15d
jb 0x2452
callq 0x2090
cqto
idivq %r12
movq %rdx, %rdi
andl $0x0, -0x24(%rbp)
movq %r14, %rsi
callq 0x235c
addl %eax, %ebx
jmp 0x242f
movq 0x3b7f(%rip), %rdi      # 0x5fd8
leaq 0x1ba4(%rip), %rsi      # 0x4004
callq 0x2150
movq %rax, %rdi
movl $0x2710, %esi           # imm = 0x2710
callq 0x21f0
leaq 0x1b98(%rip), %rsi      # 0x4011
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
movl %ebx, %esi
callq 0x21f0
movq %rax, %rdi
callq 0x2080
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/zheng-ji[P]lruCache/example.cpp
// Function: main
int main(int argc, char ** argv) 
{
    struct timeval tStart;
    gettimeofday(&tStart, NULL);

    srand(time(NULL));

    std::thread threads[50];

    for (auto i = 0; i < 50; i++) 
    {
        threads[i] = std::thread(TestCacheUpdateThread);
    }

    for (auto & th : threads) 
    {
        th.join();
    }

    struct timeval tEnd;
    gettimeofday(&tEnd, NULL);
    std::cout << "cost" << 1000*(tEnd.tv_sec-tStart.tv_sec) + (tEnd.tv_usec-tStart.tv_usec)/1000 << " ms" << std::endl;

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
xorl %r15d, %r15d
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x21b0
xorl %edi, %edi
callq 0x2110
movl %eax, %edi
callq 0x2140
leaq -0x1d0(%rbp), %rdi
movl $0x190, %edx            # imm = 0x190
xorl %esi, %esi
callq 0x20a0
leaq -0xd8(%rip), %rbx       # 0x240e
leaq -0x28(%rbp), %r14
cmpq $0x190, %r15            # imm = 0x190
je 0x251f
movq %r14, %rdi
movq %rbx, %rsi
callq 0x289c
leaq (%r15,%rbp), %rdi
addq $-0x1d0, %rdi           # imm = 0xFE30
movq %r14, %rsi
callq 0x290a
movq %r14, %rdi
callq 0x2928
addq $0x8, %r15
jmp 0x24ea
xorl %ebx, %ebx
cmpq $0x190, %rbx            # imm = 0x190
je 0x2540
leaq (%rbx,%rbp), %rdi
addq $-0x1d0, %rdi           # imm = 0xFE30
callq 0x21e0
addq $0x8, %rbx
jmp 0x2521
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
callq 0x21b0
movq 0x3a86(%rip), %rdi      # 0x5fd8
leaq 0x1ac3(%rip), %rsi      # 0x401c
callq 0x2150
movq %rax, %rdi
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
subq -0x38(%rbp), %rcx
imulq $0x3e8, %rcx, %rsi      # imm = 0x3E8
subq -0x30(%rbp), %rax
movl $0x3e8, %ecx            # imm = 0x3E8
cqto
idivq %rcx
addq %rax, %rsi
callq 0x2130
leaq 0x1a90(%rip), %rsi      # 0x4021
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x2080
movl $0x188, %ebx            # imm = 0x188
leaq (%rbx,%rbp), %rdi
addq $-0x1d0, %rdi           # imm = 0xFE30
callq 0x2928
addq $-0x8, %rbx
cmpq $-0x8, %rbx
jne 0x25a6
xorl %eax, %eax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25d4
jmp 0x25d4
movq %rax, %rbx
movl $0x188, %r14d           # imm = 0x188
leaq (%r14,%rbp), %rdi
addq $-0x1d0, %rdi           # imm = 0xFE30
callq 0x2928
addq $-0x8, %r14
cmpq $-0x8, %r14
jne 0x25dd
movq %rbx, %rdi
callq 0x2200
nop
// File: /workspace/github_cpp_makefile_star2_O2/zheng-ji[P]lruCache/./lrucache.h
// Function: LRUCache<int, int>::GetCache(int const&, int&, bool)
int GetCache(const T & t, Value & value, bool bUpdate = true) 
        {
            std::lock_guard<std::mutex> lck(mt);
            HashMapIter mapIter = m_LRUCache.find(t);

            if (mapIter == m_LRUCache.end())
                return -1;

            mapIter = m_LRUCache.find(t);

            if (mapIter != m_LRUCache.end()) 
            {
                if (m_iTimeLimit > 0) 
                {
                    time_t tNow = time(NULL);
                    if (tNow - mapIter->second.updatetime > m_iTimeLimit) 
                    {
                        return -2;
                    }
                }

                value = mapIter->second.value;

                if (bUpdate) 
                {
                    m_List.erase(mapIter->second.listiter);
                    m_List.push_front(t);
                    mapIter->second.listiter = m_List.begin();
                }

                return m_iCacheSize;
            }

            return -3;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, -0x2c(%rbp)
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r14
leaq 0x60(%rdi), %rbx
movq %rbx, %rdi
callq 0x2a34
leaq 0x18(%r14), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x2a4a
testq %rax, %rax
je 0x26df
movq %r12, %rdi
movq %r15, %rsi
callq 0x2a4a
movq %rax, %r12
testq %rax, %rax
je 0x2718
cmpl $0x0, 0x5c(%r14)
jle 0x26e3
xorl %edi, %edi
callq 0x2110
subq 0x20(%r12), %rax
movslq 0x5c(%r14), %rcx
cmpq %rcx, %rax
jle 0x26e3
pushq $-0x2
jmp 0x271a
pushq $-0x1
jmp 0x271a
movl 0x10(%r12), %eax
movl %eax, (%r13)
cmpb $0x0, -0x2c(%rbp)
je 0x2712
movq 0x18(%r12), %rsi
movq %r14, %rdi
callq 0x2a0c
movq %r14, %rdi
movq %r15, %rsi
callq 0x2a24
movq (%r14), %rax
movq %rax, 0x18(%r12)
movl 0x50(%r14), %r14d
jmp 0x271c
pushq $-0x3
popq %r14
movq %rbx, %rdi
callq 0x20d0
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2738
movq %rax, %r14
movq %rbx, %rdi
callq 0x20d0
movq %r14, %rdi
callq 0x2200
nop
// File: /workspace/github_cpp_makefile_star2_O2/zheng-ji[P]lruCache/./lrucache.h
// Function: LRUCache<int, int>::UpdateCache(int const&, int const&)
int UpdateCache(const T & t, const Value & value) 
        {
            std::lock_guard<std::mutex> lck(mt);
            HashMapIter mapIter = m_LRUCache.find(t);
            if (mapIter != m_LRUCache.end()) 
            {
                m_List.erase(mapIter->second.listiter);
                m_List.push_front(t);
                mapIter->second.listiter = m_List.begin();
                mapIter->second.updatetime = time(NULL);
                mapIter->second.value = value;
                return m_iCacheSize;
            }
            if (m_iCacheLimit > 0) 
            {
                while (m_iCacheLimit < m_iCacheSize) 
                {
                    T t = m_List.back();
                    m_List.pop_back();
                    HashMapIter mapIter = m_LRUCache.find(t);
                    if (mapIter == m_LRUCache.end())
                        break;
                    m_LRUCache.erase(mapIter);
                    m_iCacheSize--;
                    m_iEraseCnt++;
                }
            }
            m_List.push_front(t);
            CacheItem mapItem(value, m_List.begin());
            m_LRUCache.insert(std::make_pair(t, mapItem));
            m_iCacheSize++;
            return m_iCacheSize;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, -0x38(%rbp)
movq %rsi, %r12
movq %rdi, %r14
leaq 0x60(%rdi), %rbx
movq %rbx, %rdi
callq 0x2a34
leaq 0x18(%r14), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x2a4a
movq %rax, %r15
testq %rax, %rax
je 0x27c6
movq 0x18(%r15), %rsi
movq %r14, %rdi
callq 0x2a0c
movq %r14, %rdi
movq %r12, %rsi
callq 0x2a24
movq (%r14), %rax
movq %rax, 0x18(%r15)
xorl %edi, %edi
callq 0x2110
movq %rax, 0x20(%r15)
movq -0x38(%rbp), %rax
movl (%rax), %eax
movl %eax, 0x10(%r15)
movl 0x50(%r14), %r15d
jmp 0x2866
movl 0x54(%r14), %ecx
testl %ecx, %ecx
movq %rbx, -0x30(%rbp)
jle 0x281f
movl 0x50(%r14), %eax
leaq -0x58(%rbp), %r15
cmpl %eax, %ecx
jge 0x281f
movq 0x8(%r14), %rax
movl 0x10(%rax), %eax
movl %eax, -0x58(%rbp)
movq %r14, %rdi
callq 0x2bce
movq %r13, %rdi
movq %r15, %rsi
callq 0x2a4a
testq %rax, %rax
je 0x281f
movq %r13, %rdi
movq %rax, %rsi
callq 0x2bdc
movl 0x50(%r14), %eax
decl %eax
movl %eax, 0x50(%r14)
incl 0x58(%r14)
movl 0x54(%r14), %ecx
jmp 0x27da
movq %r14, %rdi
movq %r12, %rsi
callq 0x2a24
movq (%r14), %r15
movq -0x38(%rbp), %rax
movl (%rax), %ebx
xorl %edi, %edi
callq 0x2110
movl (%r12), %ecx
leaq -0x58(%rbp), %rsi
movl %ecx, (%rsi)
movl %ebx, 0x8(%rsi)
movq %r15, 0x10(%rsi)
movq %rax, 0x18(%rsi)
movq %r13, %rdi
callq 0x2cf0
movl 0x50(%r14), %r15d
incl %r15d
movl %r15d, 0x50(%r14)
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x20d0
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2888
movq %rbx, -0x30(%rbp)
jmp 0x2888
movq %rax, %r14
movq -0x30(%rbp), %rdi
callq 0x20d0
movq %r14, %rdi
callq 0x2200
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: transformNormal(vec3&, Polygon*)
vec3 transformNormal(vec3 &normal, Polygon *poly) {
	vec4 tmpNormal = vec4(normal, 1.0f);
	tmpNormal = tmpNormal * poly->inverseTranspose;
	vec3 retNormal = vec3(tmpNormal);
	return retNormal;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movsd (%rsi), %xmm0
leaq -0x50(%rbp), %rax
movsd %xmm0, (%rax)
movsd 0x8(%rsi), %xmm0
movsd %xmm0, 0x8(%rax)
movsd 0x10(%rsi), %xmm0
movsd %xmm0, 0x10(%rax)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x18(%rax)
addq $0x170, %rdx            # imm = 0x170
leaq -0x30(%rbp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x552f
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm3
divsd %xmm3, %xmm0
movsd %xmm0, (%rbx)
divsd %xmm3, %xmm1
movsd %xmm1, 0x8(%rbx)
divsd %xmm3, %xmm2
movsd %xmm2, 0x10(%rbx)
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: parseArgs(float*, std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char>>*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void parseArgs(float args[], istringstream *iss, int numArgs, string errMessage) {
    string temp;
    int index = 0;
    while (*iss >> temp){
        args[index] = atof(temp.c_str());
        index++;
    }

    if (index != numArgs){
        cerr << errMessage << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, -0x30(%rbp)
movl %edx, %r14d
movq %rsi, %r15
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, %r12
movb $0x0, (%rax)
xorl %ebx, %ebx
leaq -0x50(%rbp), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x3290
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3818
movq -0x50(%rbp), %rdi
callq 0x3270
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r12,%rbx,4)
incq %rbx
jmp 0x37e7
cmpl %ebx, %r14d
je 0x3835
movq 0x167cc(%rip), %rdi     # 0x19ff0
movq -0x30(%rbp), %rsi
callq 0x31c0
movq %rax, %rdi
callq 0x3120
leaq -0x50(%rbp), %rdi
callq 0x3100
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x384f
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: parseArgs(int*, std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char>>*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void parseArgs(int args[], istringstream *iss, int numArgs, string errMessage) {
    string temp;
    int index = 0;
    while (*iss >> temp){
        args[index] = atoi(temp.c_str());
        index++;
    }

    if (index != numArgs){
        cerr << errMessage << endl;
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, -0x30(%rbp)
movl %edx, %r14d
movq %rsi, %r15
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, %r12
movb $0x0, (%rax)
xorl %ebx, %ebx
leaq -0x50(%rbp), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x3290
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x38c2
movq -0x50(%rbp), %rdi
callq 0x3360
movl %eax, (%r12,%rbx,4)
incq %rbx
jmp 0x3897
cmpl %ebx, %r14d
je 0x38df
movq 0x16722(%rip), %rdi     # 0x19ff0
movq -0x30(%rbp), %rsi
callq 0x31c0
movq %rax, %rdi
callq 0x3120
leaq -0x50(%rbp), %rdi
callq 0x3100
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x38f9
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: reduceTransforms(std::vector<mat4, std::allocator<mat4>>*)
mat4 reduceTransforms(vector<mat4> *transforms) {
    mat4 tMatrix = identity3D();
    for (int i = 0; i < transforms->size(); i++) {
        tMatrix = tMatrix * transforms->at(i);
    }
    return tMatrix;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x5576
xorl %r15d, %r15d
leaq -0xa0(%rbp), %r12
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x7, %rax
cmpq %r15, %rax
jbe 0x3980
movq %r14, %rdi
movq %r15, %rsi
callq 0x5a48
movq %r12, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x55e8
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5a6a
incq %r15
jmp 0x3947
movq %rbx, %rax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: main
int main(int argc, char* argv[]) {

    cout << "Ray Tracer!" << endl;

    string outFile = "output.png";

    float eps = 0.05f;
    int width = 1000;
    int height = 1000;

    Scene *scene = parseSceneFile(argv[1], eps, width, height);

    cout << "Rendering Scene..." << endl;

    scene->render();

    cout << "Scene render completed." << endl;
    cout << "Writing to file..." << endl;

    if (argc > 2) outFile = argv[2];
    scene->writeFile(outFile, width, height);

    cout << "Image saved as " << outFile << "." << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movl %edi, %r14d
movq 0x14c0a(%rip), %rdi     # 0x19fc8
leaq 0xdfc6(%rip), %rsi      # 0x1338b
callq 0x31d0
movq %rax, %rdi
callq 0x3120
leaq 0xdfbe(%rip), %rsi      # 0x13397
leaq -0x40(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x5b12
movq 0x8(%rbx), %rsi
leaq -0x80(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x5b12
leaq -0x80(%rbp), %rdi
movss 0xdc7d(%rip), %xmm0     # 0x13080
movl $0x3e8, %esi            # imm = 0x3E8
movl $0x3e8, %edx            # imm = 0x3E8
callq 0x41f9
movq %rax, %r15
leaq -0x80(%rbp), %rdi
callq 0x3100
movq 0x14ba3(%rip), %rdi     # 0x19fc8
leaq 0xdf76(%rip), %rsi      # 0x133a2
callq 0x31d0
movq %rax, %rdi
callq 0x3120
movq %r15, %rdi
callq 0x6384
movq 0x14b80(%rip), %rdi     # 0x19fc8
leaq 0xdf66(%rip), %rsi      # 0x133b5
callq 0x31d0
movq %rax, %rdi
callq 0x3120
movq 0x14b65(%rip), %rdi     # 0x19fc8
leaq 0xdf63(%rip), %rsi      # 0x133cd
callq 0x31d0
movq %rax, %rdi
callq 0x3120
cmpl $0x3, %r14d
jl 0x548a
movq 0x10(%rbx), %rsi
leaq -0x40(%rbp), %rdi
callq 0x3450
leaq -0x60(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x32d0
leaq -0x60(%rbp), %rsi
movq %r15, %rdi
movl $0x3e8, %edx            # imm = 0x3E8
movl $0x3e8, %ecx            # imm = 0x3E8
callq 0x648e
leaq -0x60(%rbp), %rdi
callq 0x3100
movq 0x14b0b(%rip), %rdi     # 0x19fc8
leaq 0xdf1c(%rip), %rsi      # 0x133e0
callq 0x31d0
leaq -0x40(%rbp), %rsi
movq %rax, %rdi
callq 0x31c0
leaq 0xdf02(%rip), %rsi      # 0x133de
movq %rax, %rdi
callq 0x31d0
movq %rax, %rdi
callq 0x3120
leaq -0x40(%rbp), %rdi
callq 0x3100
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
jmp 0x5512
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x3100
jmp 0x551e
jmp 0x551b
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Film::Film(int, int)
Film(int _width, int _height) {
    	width = _width;
    	height = _height;
        for (int i = 0; i < width * height; i++) {
        	film.push_back(vec3(0, 0, 0));
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r14
leaq 0x8(%rdi), %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
andq $0x0, 0x18(%rdi)
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
xorl %r12d, %r12d
leaq -0x40(%rbp), %r15
imull %esi, %edx
cmpl %edx, %r12d
jge 0x5f3f
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
andq $0x0, -0x30(%rbp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8f2e
incl %r12d
movl (%r14), %esi
movl 0x4(%r14), %edx
jmp 0x5f14
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x8f06
movq %r14, %rdi
callq 0x33f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Scene::Scene(Camera&, Film&, float, int, int)
Scene(Camera &_cam, Film &_film, float _eps, int _width, int _height)  {
		cam = _cam;
		film = _film;
		vec3 defaultAmbientColor = vec3(0, 0, 0);
		Light ambientLight = Light(defaultAmbientColor);
		width = _width;
		height = _height;
		maxDepth = 6; //6 or 7 ideal says GSI
		eps = _eps;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r15d
movl %ecx, %r12d
movss %xmm0, -0x2c(%rbp)
movq %rdx, %r13
movq %rdi, %rbx
leaq 0x80(%rdi), %r14
leaq 0x88(%rdi), %rax
movq %rax, -0x38(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0xb8(%rdi)
movups %xmm0, 0xa8(%rdi)
movups %xmm0, 0x98(%rdi)
movups %xmm0, 0x88(%rdi)
andq $0x0, 0xc8(%rdi)
callq 0x7368
movq %r14, %rdi
movq %r13, %rsi
callq 0x740e
movl %r12d, 0x108(%rbx)
movl %r15d, 0x10c(%rbx)
movl $0x6, 0x110(%rbx)
movss -0x2c(%rbp), %xmm0
movss %xmm0, 0x114(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0xb8(%rbx), %rdi
addq $0xa0, %rbx
callq 0x9138
movq %rbx, %rdi
callq 0x9116
movq -0x38(%rbp), %rdi
callq 0x8f06
movq %r14, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/./algebra3.h
// Function: scaling3D(vec3 const&)
inline mat4 scaling3D(const vec3& scaleVector)
{   return mat4(
		vec4(scaleVector[VX], 0.0, 0.0, 0.0),
		vec4(0.0, scaleVector[VY], 0.0, 0.0),
		vec4(0.0, 0.0, scaleVector[VZ], 0.0),
		vec4(0.0, 0.0, 0.0, 1.0));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x88, %rsp
movsd (%rsi), %xmm0
leaq -0x90(%rbp), %rax
movsd %xmm0, (%rax)
andq $0x0, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movsd 0x8(%rsi), %xmm1
leaq -0x70(%rbp), %rdx
andq $0x0, (%rdx)
movsd %xmm1, 0x8(%rdx)
movups %xmm0, 0x10(%rdx)
movsd 0x10(%rsi), %xmm1
leaq -0x50(%rbp), %rcx
movaps %xmm0, (%rcx)
movsd %xmm1, 0x10(%rcx)
andq $0x0, 0x18(%rcx)
leaq -0x30(%rbp), %r8
andq $0x0, 0x10(%r8)
movq %rdi, %rbx
movaps %xmm0, (%r8)
movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000
movq %rsi, 0x18(%r8)
movq %rax, %rsi
callq 0x66a4
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/./algebra3.h
// Function: translation3D(vec3 const&)
inline mat4 translation3D(const vec3& v)
{   return mat4(vec4(1.0, 0.0, 0.0, v[VX]),
		vec4(0.0, 1.0, 0.0, v[VY]),
		vec4(0.0, 0.0, 1.0, v[VZ]),
		vec4(0.0, 0.0, 0.0, 1.0)); }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movsd (%rsi), %xmm0
movabsq $0x3ff0000000000000, %rdi # imm = 0x3FF0000000000000
leaq -0x90(%rbp), %rax
movq %rdi, (%rax)
xorps %xmm1, %xmm1
movups %xmm1, 0x8(%rax)
movsd %xmm0, 0x18(%rax)
movsd 0x8(%rsi), %xmm0
leaq -0x70(%rbp), %rdx
andq $0x0, (%rdx)
movq %rdi, 0x8(%rdx)
andq $0x0, 0x10(%rdx)
movsd %xmm0, 0x18(%rdx)
movsd 0x10(%rsi), %xmm0
leaq -0x50(%rbp), %rcx
movaps %xmm1, (%rcx)
movq %rdi, 0x10(%rcx)
movsd %xmm0, 0x18(%rcx)
leaq -0x30(%rbp), %r8
movaps %xmm1, (%r8)
andq $0x0, 0x10(%r8)
movq %rdi, 0x18(%r8)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x66a4
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/./algebra3.h
// Function: rotation3D(vec3, double)
inline mat4 rotation3D(vec3 Axis, const double angleDeg) {
    double  angleRad = angleDeg * M_PI / 180.0,
	    c = cos(angleRad),
	    s = sin(angleRad),
	    t = 1.0 - c;

    Axis.normalize();
    return mat4(vec4(t * Axis[VX] * Axis[VX] + c,
		     t * Axis[VX] * Axis[VY] - s * Axis[VZ],
		     t * Axis[VX] * Axis[VZ] + s * Axis[VY],
		     0.0),
		vec4(t * Axis[VX] * Axis[VY] + s * Axis[VZ],
		     t * Axis[VY] * Axis[VY] + c,
		     t * Axis[VY] * Axis[VZ] - s * Axis[VX],
		     0.0),
		vec4(t * Axis[VX] * Axis[VZ] - s * Axis[VY],
		     t * Axis[VY] * Axis[VZ] + s * Axis[VX],
		     t * Axis[VZ] * Axis[VZ] + c,
		     0.0),
		vec4(0.0, 0.0, 0.0, 1.0));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %r14
movq %rdi, %rbx
mulsd 0xce4c(%rip), %xmm0     # 0x13010
divsd 0xce4c(%rip), %xmm0     # 0x13018
movsd %xmm0, -0x18(%rbp)
callq 0x3430
movsd %xmm0, -0x20(%rbp)
movsd -0x18(%rbp), %xmm0
callq 0x3080
movsd %xmm0, -0x18(%rbp)
movsd 0xce2e(%rip), %xmm0     # 0x13020
subsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x28(%rbp)
movq %r14, %rdi
callq 0x7286
movsd (%r14), %xmm3
movsd 0x8(%r14), %xmm2
movsd -0x28(%rbp), %xmm11
movapd %xmm11, %xmm0
mulsd %xmm3, %xmm0
movapd %xmm0, %xmm4
mulsd %xmm3, %xmm4
movsd -0x20(%rbp), %xmm10
addsd %xmm10, %xmm4
movsd 0x10(%r14), %xmm1
movapd %xmm0, %xmm5
mulsd %xmm2, %xmm5
movsd -0x18(%rbp), %xmm9
movapd %xmm9, %xmm6
mulsd %xmm1, %xmm6
movapd %xmm5, %xmm7
subsd %xmm6, %xmm7
movapd %xmm9, %xmm8
movapd %xmm9, %xmm12
mulsd %xmm2, %xmm8
mulsd %xmm1, %xmm0
movapd %xmm0, %xmm9
addsd %xmm8, %xmm9
leaq -0xb0(%rbp), %rsi
movsd %xmm4, (%rsi)
movsd %xmm7, 0x8(%rsi)
movsd %xmm9, 0x10(%rsi)
andq $0x0, 0x18(%rsi)
addsd %xmm5, %xmm6
movapd %xmm11, %xmm4
mulsd %xmm2, %xmm4
mulsd %xmm4, %xmm2
addsd %xmm10, %xmm2
mulsd %xmm1, %xmm4
movapd %xmm12, %xmm5
mulsd %xmm3, %xmm5
movapd %xmm4, %xmm3
subsd %xmm5, %xmm3
leaq -0x90(%rbp), %rdx
movsd %xmm6, (%rdx)
movsd %xmm2, 0x8(%rdx)
movsd %xmm3, 0x10(%rdx)
andq $0x0, 0x18(%rdx)
subsd %xmm8, %xmm0
addsd %xmm4, %xmm5
movapd %xmm11, %xmm2
mulsd %xmm1, %xmm2
mulsd %xmm1, %xmm2
addsd %xmm10, %xmm2
leaq -0x70(%rbp), %rcx
movsd %xmm0, (%rcx)
movsd %xmm5, 0x8(%rcx)
movsd %xmm2, 0x10(%rcx)
andq $0x0, 0x18(%rcx)
leaq -0x50(%rbp), %r8
andq $0x0, 0x10(%r8)
xorpd %xmm0, %xmm0
movapd %xmm0, (%r8)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x18(%r8)
movq %rbx, %rdi
callq 0x66a4
movq %rbx, %rax
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Scene::render()
void render() {
        Sampler sampler = Sampler(width, height);
        Sample sample = Sample();
        int count = 0;
        int tenthPixels = width * height / 10;
        while (sampler.generateSample(&sample)) {
            Ray testRay = cam.generateRay(sample);
            vec3 color = traceRay(testRay, maxDepth);
            film.writeToFilm(sample, color);
            if (count > tenthPixels) {
                cout << sampler.percentage() << "\% completed." << endl;
                count = 0;
            }
            count++;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movl 0x108(%rdi), %eax
movl 0x10c(%rdi), %ecx
leaq -0x30(%rbp), %rdx
movl %eax, -0x8(%rdx)
movl %ecx, -0x4(%rdx)
andq $0x0, (%rdx)
imull %ecx, %eax
pushq $0xa
popq %rsi
cltd
idivl %esi
movl %eax, -0x3c(%rbp)
leaq 0x80(%rdi), %rax
movq %rax, -0x50(%rbp)
xorl %eax, %eax
leaq -0xa0(%rbp), %r12
leaq -0x44(%rbp), %r13
leaq -0x68(%rbp), %r14
xorl %r15d, %r15d
cmpl %ecx, %eax
je 0x647f
movl -0x38(%rbp), %esi
movl -0x30(%rbp), %ecx
movl %ecx, -0x44(%rbp)
movl %eax, -0x40(%rbp)
decl %esi
leaq -0x30(%rbp), %rdx
cmpl %esi, %ecx
jne 0x6405
andl $0x0, -0x30(%rbp)
movl %eax, %ecx
leaq -0x2c(%rbp), %rdx
incl %ecx
movl %ecx, (%rdx)
movq %r12, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x7cbe
movl 0x110(%rbx), %ecx
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x7dda
movq -0x50(%rbp), %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x81de
cmpl -0x3c(%rbp), %r15d
jle 0x6471
leaq -0x38(%rbp), %rdi
callq 0x82a8
movq 0x13b78(%rip), %rdi     # 0x19fc8
movl %eax, %esi
callq 0x33c0
movq %rax, %rdi
leaq 0xcfdc(%rip), %rsi      # 0x1343d
callq 0x31d0
movq %rax, %rdi
callq 0x3120
xorl %r15d, %r15d
incl %r15d
movl -0x34(%rbp), %ecx
movl -0x2c(%rbp), %eax
jmp 0x63dd
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/./algebra3.h
// Function: operator*(mat4 const&, vec4 const&)
inline vec4 operator * (const mat4& a, const vec4& v) {
#define ROWCOL(i) a.v[i].n[0]*v.n[VX] + a.v[i].n[1]*v.n[VY] \
    + a.v[i].n[2]*v.n[VZ] + a.v[i].n[3]*v.n[VW]
    return vec4(ROWCOL(0), ROWCOL(1), ROWCOL(2), ROWCOL(3));
#undef ROWCOL // (i)
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movsd (%rdx), %xmm0
movsd 0x8(%rdx), %xmm1
movsd 0x8(%rsi), %xmm2
mulsd %xmm1, %xmm2
movsd (%rsi), %xmm3
mulsd %xmm0, %xmm3
addsd %xmm2, %xmm3
movsd 0x10(%rdx), %xmm2
movsd 0x10(%rsi), %xmm5
mulsd %xmm2, %xmm5
addsd %xmm3, %xmm5
movsd 0x18(%rdx), %xmm3
movsd 0x18(%rsi), %xmm4
mulsd %xmm3, %xmm4
addsd %xmm5, %xmm4
movsd 0x28(%rsi), %xmm5
mulsd %xmm1, %xmm5
movsd 0x20(%rsi), %xmm6
mulsd %xmm0, %xmm6
addsd %xmm5, %xmm6
movsd 0x30(%rsi), %xmm7
mulsd %xmm2, %xmm7
addsd %xmm6, %xmm7
movsd 0x38(%rsi), %xmm5
mulsd %xmm3, %xmm5
addsd %xmm7, %xmm5
movsd 0x48(%rsi), %xmm6
mulsd %xmm1, %xmm6
movsd 0x40(%rsi), %xmm7
mulsd %xmm0, %xmm7
addsd %xmm6, %xmm7
movsd 0x50(%rsi), %xmm6
mulsd %xmm2, %xmm6
addsd %xmm7, %xmm6
movsd 0x58(%rsi), %xmm7
mulsd %xmm3, %xmm7
addsd %xmm6, %xmm7
mulsd 0x68(%rsi), %xmm1
mulsd 0x60(%rsi), %xmm0
addsd %xmm1, %xmm0
mulsd 0x70(%rsi), %xmm2
addsd %xmm0, %xmm2
mulsd 0x78(%rsi), %xmm3
addsd %xmm2, %xmm3
movsd %xmm4, (%rdi)
movsd %xmm5, 0x8(%rdi)
movsd %xmm7, 0x10(%rdi)
movsd %xmm3, 0x18(%rdi)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/./algebra3.h
// Function: mat4::transpose() const
inline mat4 mat4::transpose() const{
    return mat4(vec4(v[0][0], v[1][0], v[2][0], v[3][0]),
		vec4(v[0][1], v[1][1], v[2][1], v[3][1]),
		vec4(v[0][2], v[1][2], v[2][2], v[3][2]),
		vec4(v[0][3], v[1][3], v[2][3], v[3][3]));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x88, %rsp
movq %rsi, %rax
movq %rdi, %rbx
movsd (%rsi), %xmm0
movsd 0x20(%rsi), %xmm1
movsd 0x40(%rsi), %xmm2
movsd 0x60(%rsi), %xmm3
leaq -0x88(%rbp), %rsi
movsd %xmm0, (%rsi)
movsd %xmm1, 0x8(%rsi)
movsd %xmm2, 0x10(%rsi)
movsd %xmm3, 0x18(%rsi)
movsd 0x8(%rax), %xmm0
movsd 0x28(%rax), %xmm1
movsd 0x48(%rax), %xmm2
movsd 0x68(%rax), %xmm3
leaq -0x68(%rbp), %rdx
movsd %xmm0, (%rdx)
movsd %xmm1, 0x8(%rdx)
movsd %xmm2, 0x10(%rdx)
movsd %xmm3, 0x18(%rdx)
movsd 0x10(%rax), %xmm0
movsd 0x30(%rax), %xmm1
movsd 0x50(%rax), %xmm2
movsd 0x70(%rax), %xmm3
leaq -0x48(%rbp), %rcx
movsd %xmm0, (%rcx)
movsd %xmm1, 0x8(%rcx)
movsd %xmm2, 0x10(%rcx)
movsd %xmm3, 0x18(%rcx)
movsd 0x18(%rax), %xmm0
movsd 0x38(%rax), %xmm1
movsd 0x58(%rax), %xmm2
movsd 0x78(%rax), %xmm3
leaq -0x28(%rbp), %r8
movsd %xmm0, (%r8)
movsd %xmm1, 0x8(%r8)
movsd %xmm2, 0x10(%r8)
movsd %xmm3, 0x18(%r8)
callq 0x66a4
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Polygon::Polygon(mat4&, Material&)
Polygon(mat4 &_transform, Material &_mat) {
    	mat = _mat;
    	transform= _transform;
    	inverseTransform = transform.inverse();
    	inverseTranspose = inverseTransform.transpose();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x134ab(%rip), %rax     # 0x19ce8
movq %rax, (%rdi)
addq $0x8, %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movups %xmm0, 0x18(%rbx)
movups %xmm0, 0x28(%rbx)
movups %xmm0, 0x38(%rbx)
movups %xmm0, 0x48(%rbx)
andl $0x0, 0x68(%rbx)
movups %xmm0, 0x58(%rbx)
leaq 0x70(%rbx), %r15
leaq 0xf0(%rbx), %r12
addq $0x170, %rbx            # imm = 0x170
movq %rdx, %rsi
callq 0x6ea2
movq %r15, %rdi
movq %r14, %rsi
callq 0x5a6a
leaq -0xa0(%rbp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x6f2c
movq %r12, %rdi
movq %r14, %rsi
callq 0x5a6a
movq %r14, %rdi
movq %r12, %rsi
callq 0x65ce
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5a6a
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Camera::generateRay(Sample&)
Ray generateRay(Sample &sample) {
        float u = float(sample.x) / float(width);
        float v = float(sample.y) / float(height);
        vec3 c = (ll*(1-u) + lr*u)*(1-v) + (ul*(1-u) + ur*u)*v;
        vec3 testRayVec = c - eye;
	    return Ray(eye, testRayVec);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
cvtsi2ssl (%rdx), %xmm0
cvtsi2ssl 0x78(%rsi), %xmm2
cvtsi2ssl 0x4(%rdx), %xmm1
cvtsi2ssl 0x7c(%rsi), %xmm3
movq %rdi, %rbx
divss %xmm2, %xmm0
divss %xmm3, %xmm1
movss 0xb39f(%rip), %xmm6     # 0x1308c
movaps %xmm6, %xmm2
subss %xmm0, %xmm2
cvtss2sd %xmm2, %xmm2
movsd 0x48(%rsi), %xmm4
mulsd %xmm2, %xmm4
movsd 0x50(%rsi), %xmm5
mulsd %xmm2, %xmm5
movsd 0x58(%rsi), %xmm7
mulsd %xmm2, %xmm7
cvtss2sd %xmm0, %xmm0
movsd 0x60(%rsi), %xmm3
mulsd %xmm0, %xmm3
addsd %xmm4, %xmm3
movsd 0x68(%rsi), %xmm4
mulsd %xmm0, %xmm4
addsd %xmm5, %xmm4
movsd 0x70(%rsi), %xmm5
mulsd %xmm0, %xmm5
addsd %xmm7, %xmm5
subss %xmm1, %xmm6
cvtss2sd %xmm6, %xmm6
mulsd %xmm6, %xmm3
mulsd %xmm6, %xmm4
mulsd %xmm6, %xmm5
movsd 0x18(%rsi), %xmm7
mulsd %xmm2, %xmm7
movsd 0x20(%rsi), %xmm8
mulsd %xmm2, %xmm8
mulsd 0x28(%rsi), %xmm2
movsd 0x30(%rsi), %xmm6
mulsd %xmm0, %xmm6
addsd %xmm7, %xmm6
movsd 0x38(%rsi), %xmm7
mulsd %xmm0, %xmm7
addsd %xmm8, %xmm7
mulsd 0x40(%rsi), %xmm0
addsd %xmm2, %xmm0
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm6
addsd %xmm3, %xmm6
mulsd %xmm1, %xmm7
addsd %xmm4, %xmm7
mulsd %xmm1, %xmm0
addsd %xmm5, %xmm0
subsd (%rsi), %xmm6
subsd 0x8(%rsi), %xmm7
subsd 0x10(%rsi), %xmm0
leaq -0x20(%rbp), %rdx
movsd %xmm6, (%rdx)
movsd %xmm7, 0x8(%rdx)
movsd %xmm0, 0x10(%rdx)
callq 0x82d6
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Film::writeToFilm(Sample&, vec3&)
void writeToFilm(Sample &sample, vec3 &fColor) {
    	vec3 color = floatToByte(fColor);
    	if (color[RED] > 255) {color[RED] = 255;}
    	if (color[GREEN] > 255) {color[GREEN] = 255;}
    	if (color[BLUE] > 255) {color[BLUE] = 255;}
        film.at(sample.y * width + sample.x)[RED] = color[RED];
        film.at(sample.y * width + sample.x)[GREEN] = color[GREEN];
        film.at(sample.y * width + sample.x)[BLUE] = color[BLUE];
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x48(%rbp), %r15
movq %r15, %rdi
movq %rdx, %rsi
callq 0x36db
movsd 0xae00(%rip), %xmm0     # 0x13008
movapd %xmm0, %xmm1
minsd (%r15), %xmm1
movsd %xmm1, -0x20(%rbp)
movapd %xmm0, %xmm1
minsd 0x8(%r15), %xmm1
movsd %xmm1, -0x28(%rbp)
minsd 0x10(%r15), %xmm0
movsd %xmm0, -0x30(%rbp)
leaq 0x8(%r14), %r15
movslq 0x4(%rbx), %rax
movslq (%r14), %rcx
imulq %rax, %rcx
movslq (%rbx), %rsi
addq %rcx, %rsi
movq %r15, %rdi
callq 0x8aa4
movsd -0x20(%rbp), %xmm0
movsd %xmm0, (%rax)
movslq 0x4(%rbx), %rax
movslq (%r14), %rcx
imulq %rax, %rcx
movslq (%rbx), %rsi
addq %rcx, %rsi
movq %r15, %rdi
callq 0x8aa4
movsd -0x28(%rbp), %xmm0
movsd %xmm0, 0x8(%rax)
movslq 0x4(%rbx), %rax
movslq (%r14), %rcx
imulq %rax, %rcx
movslq (%rbx), %rsi
addq %rcx, %rsi
movq %r15, %rdi
callq 0x8aa4
movsd -0x30(%rbp), %xmm0
movsd %xmm0, 0x10(%rax)
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Polygon::transformRay(Ray&)
Ray transformRay(Ray &ray) {
        vec4 tmpPos = vec4(ray.pos, 1.0f);
        tmpPos = inverseTransform * tmpPos;
        vec3 rayPos = vec3(tmpPos);
        vec4 tmpVec = vec4(ray.vec, 0.0f);
        tmpVec = inverseTransform * tmpVec;
        vec3 rayVec = vec3(tmpVec, VW);
        return Ray(rayPos, rayVec);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movsd (%rdx), %xmm0
leaq -0xa0(%rbp), %r12
movsd %xmm0, (%r12)
movsd 0x8(%rdx), %xmm0
movsd %xmm0, 0x8(%r12)
movsd 0x10(%rdx), %xmm0
movsd %xmm0, 0x10(%r12)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x18(%r12)
addq $0xf0, %r14
leaq -0x60(%rbp), %r13
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x64ef
movsd (%r13), %xmm1
movsd 0x8(%r13), %xmm2
movsd %xmm1, (%r12)
movsd %xmm2, 0x8(%r12)
movsd 0x10(%r13), %xmm3
movsd %xmm3, 0x10(%r12)
movsd 0x18(%r13), %xmm0
movsd %xmm0, 0x18(%r12)
divsd %xmm0, %xmm1
movsd %xmm1, -0x40(%rbp)
divsd %xmm0, %xmm2
movsd %xmm2, -0x38(%rbp)
divsd %xmm0, %xmm3
movsd %xmm3, -0x30(%rbp)
movsd 0x18(%r15), %xmm0
movsd %xmm0, (%r13)
movsd 0x20(%r15), %xmm0
movsd %xmm0, 0x8(%r13)
movsd 0x28(%r15), %xmm0
movsd %xmm0, 0x10(%r13)
andq $0x0, 0x18(%r13)
leaq -0x80(%rbp), %r15
leaq -0x60(%rbp), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x64ef
movups (%r15), %xmm0
movsd 0x10(%r15), %xmm1
movsd -0x40(%rbp), %xmm2
movsd %xmm2, (%rbx)
movsd -0x38(%rbp), %xmm2
movsd %xmm2, 0x8(%rbx)
movsd -0x30(%rbp), %xmm2
movsd %xmm2, 0x10(%rbx)
movups %xmm0, 0x18(%rbx)
movsd %xmm1, 0x28(%rbx)
movabsq $0x7f7fffff3a83126f, %rax # imm = 0x7F7FFFFF3A83126F
movq %rax, 0x30(%rbx)
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Polygon::transformIntersection(vec3&)
vec3 transformIntersection(vec3 &intersection) {
    	vec4 tmpIntersection = vec4(intersection, 1.0f);
    	tmpIntersection = transform * tmpIntersection;
    	vec3 intersection3 = vec3(tmpIntersection);
        return intersection3;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movsd (%rdx), %xmm0
leaq -0x50(%rbp), %rax
movsd %xmm0, (%rax)
movsd 0x8(%rdx), %xmm0
movsd %xmm0, 0x8(%rax)
movsd 0x10(%rdx), %xmm0
movsd %xmm0, 0x10(%rax)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x18(%rax)
addq $0x70, %rsi
leaq -0x30(%rbp), %r14
movq %r14, %rdi
movq %rax, %rdx
callq 0x64ef
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm3
divsd %xmm3, %xmm0
movsd %xmm0, (%rbx)
divsd %xmm3, %xmm1
movsd %xmm1, 0x8(%rbx)
divsd %xmm3, %xmm2
movsd %xmm2, 0x10(%rbx)
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Polygon::transformNormal(vec3&)
vec3 transformNormal(vec3 &normal) {

        vec4 normal4= vec4(normal, 0.0f);
        normal4 = inverseTranspose * normal4;
        vec3 normal3  = vec3(normal4, VW);
        return normal3;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movsd (%rdx), %xmm0
leaq -0x50(%rbp), %rax
movsd %xmm0, (%rax)
movsd 0x8(%rdx), %xmm0
movsd %xmm0, 0x8(%rax)
movsd 0x10(%rdx), %xmm0
movsd %xmm0, 0x10(%rax)
andq $0x0, 0x18(%rax)
addq $0x170, %rsi            # imm = 0x170
leaq -0x30(%rbp), %r14
movq %r14, %rdi
movq %rax, %rdx
callq 0x64ef
movups (%r14), %xmm0
movsd 0x10(%r14), %xmm1
movups %xmm0, (%rbx)
movsd %xmm1, 0x10(%rbx)
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Light::intensityAt(vec3&)
vec3 intensityAt(vec3 &point) {
        if (falloff == 0) {
        	return color;
        } else {
        	float d = distance(pos, point);
            return color / pow(d, falloff);
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x30(%rsi), %r15d
testl %r15d, %r15d
je 0x893e
leaq 0x18(%r14), %rdi
movq %rdx, %rsi
callq 0x363a
cvtss2sd %xmm0, %xmm0
cvtsi2sd %r15d, %xmm1
callq 0x33e0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8a6a
jmp 0x895d
movsd (%r14), %xmm0
movsd %xmm0, (%rbx)
movsd 0x8(%r14), %xmm0
movsd %xmm0, 0x8(%rbx)
movsd 0x10(%r14), %xmm0
movsd %xmm0, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Scene::traceShadowRay(Ray&, Polygon*)
bool traceShadowRay(Ray &ray, Polygon *source) {
        for (int i = 0; i < objects.size(); i++) {
            if (objects[i]->intersects(ray) && objects[i] != source) {
                return true;
            }
        }
        return false;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
movq 0xa0(%r15), %rax
movq 0xa8(%r15), %r13
subq %rax, %r13
sarq $0x3, %r13
cmpq %r12, %r13
jbe 0x8a22
movq (%rax,%r12,8), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *(%rax)
testb %al, %al
je 0x8a1d
movq 0xa0(%r15), %rax
cmpq %rbx, (%rax,%r12,8)
jne 0x8a22
incq %r12
jmp 0x89e6
cmpq %r12, %r13
seta %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/logicx24[P]RayTracer/raytracer.cpp
// Function: Light::lightVec(vec3&)
vec3 lightVec(vec3 &point) {
        if (pointLight) {
        	return (pos - point);
        } else {
        	return -pos;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rax
movq %rdi, %rbx
addq $0x18, %rsi
cmpb $0x1, 0x34(%rax)
jne 0x8a58
movq %rbx, %rdi
callq 0x68cb
jmp 0x8a60
movq %rbx, %rdi
callq 0x7961
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq