// File: /workspace/github_cpp_makefile_star2_O3/logicx24[P]RayTracer/raytracer.cpp
// Function: parseObj(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<Polygon*, std::allocator<Polygon*>>*, std::vector<mat4, std::allocator<mat4>>*, Material&)
void parseObj(string fileName, vector<Polygon*> *sceneObjects, vector<mat4> *transforms, Material &curMat) {
	vector<vec3> verts;
	vector<vec3>normals;
	verts.push_back(vec3(0, 0, 0)); // Kill index 0, since vertices are numbered 1 ... n
	normals.push_back(vec3(0, 0, 0)); // Kill index 0, since normals are numbered 1 ... n
	ifstream objFile(fileName);
	string currentLine;
	string argument;
    if (!objFile.is_open()) {
    	cerr << "Error opening obj file" << endl;
    	return;
    }
    while (getline(objFile, currentLine)) {
    	istringstream iss;
    	iss.str(currentLine);
    	iss >> argument;
        if (currentLine.empty() || argumentMatches(argument, "#")) {
        	continue;
        } else if (argumentMatches(argument, "v")) {
        	float args[3];
            parseArgs(args, &iss, 3, "Incorrect number of arguments for vertex in obj file.");
            verts.push_back(vec3(args[0], args[1], args[2]));
        } else if (argumentMatches(argument, "vn")) {
        	float args[3];
            parseArgs(args, &iss, 3, "Incorrect number of arguments for vertex normal in obj file.");
            vec3 norm = vec3(args[0], args[1], args[2]);
            normals.push_back(norm);
        } else if (argumentMatches(argument, "f")) {
        	bool normalSpecified = false;
            int vertArgs[3];
            int normalArgs[3];
            string temp;
            int index = 0;
            while (iss >> temp) {
            	normalSpecified = (temp.find("//") != string::npos);
                /*
            	std::string s = "scott>=tiger>=mushroom";
            	std::string delimiter = ">=";

            	size_t pos = 0;
            	std::string token;
                while ((pos = s.find(delimiter)) != std::string::npos) {
                	    token = s.substr(0, pos);
                	        std::cout << token << std::endl;
                	            s.erase(0, pos + delimiter.length());

                }
                std::cout << s << std::endl;
                */
                if (normalSpecified) {
                	string delimeter = "//";
                	int pos = temp.find(delimeter);
                    string face = temp.substr(0, pos);
                    vertArgs[index] = stoi(face);
                    temp.erase(0, pos + delimeter.length());
                    normalArgs[index] = stoi(temp);
                } else {
                    vertArgs[index] = atoi(temp.c_str());
                }
                index++;
            }
            Triangle *t;
            mat4 currentTransform = reduceTransforms(transforms);
            if (normalSpecified) {
            	vec3 n1 = normals[normalArgs[0]];
            	vec3 n2 = normals[normalArgs[1]];
            	vec3 n3 = normals[normalArgs[2]];
                t = new Triangle(verts[vertArgs[0]], verts[vertArgs[1]], verts[vertArgs[2]], 
                              curMat, currentTransform, n1, n2, n3);
            } else {
                t = new Triangle(verts[vertArgs[0]], verts[vertArgs[1]], verts[vertArgs[2]], 
                                    curMat, currentTransform);
            }
            sceneObjects->push_back(t);
        } else {
        	cerr << "Unknown input in obj file: " << fileName << "." << endl;
        }
    }
    objFile.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x6f8, %rsp            # imm = 0x6F8
movq %rcx, -0xd8(%rbp)
movq %rdx, -0x1f8(%rbp)
movq %rsi, -0x1f0(%rbp)
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq -0x140(%rbp), %rdi
movaps %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movq %rax, -0xc0(%rbp)
movaps %xmm0, -0xd0(%rbp)
leaq -0x720(%rbp), %rsi
movq %rax, 0x10(%rsi)
movaps %xmm0, (%rsi)
callq 0x9ebe
leaq -0x720(%rbp), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
leaq -0xd0(%rbp), %rdi
callq 0x9ebe
leaq -0x720(%rbp), %r15
movq %r15, %rdi
movq %rbx, -0x200(%rbp)
movq %rbx, %rsi
movl $0x8, %edx
callq 0x33d0
leaq -0x88(%rbp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq -0x68(%rbp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq -0x6a8(%rbp), %rdi
callq 0x30a0
testb %al, %al
je 0x4bf5
leaq -0x518(%rbp), %rbx
movq -0x720(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %edx
movq %r15, %rdi
leaq -0x98(%rbp), %rsi
callq 0x3490
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4c3d
movq %rbx, %rdi
callq 0x3190
leaq -0x508(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x3370
movq %rbx, %rdi
leaq -0x78(%rbp), %rsi
callq 0x32c0
cmpq $0x0, -0x90(%rbp)
je 0x4bd5
leaq -0x210(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0x220(%rbp), %rdi
callq 0x9e20
movq -0x220(%rbp), %rdi
cmpb $0x23, (%rdi)
jne 0x439f
movb 0x1(%rdi), %bl
leaq -0x210(%rbp), %rax
cmpq %rax, %rdi
je 0x438f
movq -0x210(%rbp), %rsi
incq %rsi
callq 0x3220
testb %bl, %bl
leaq -0x518(%rbp), %rbx
jne 0x43ba
jmp 0x4bd5
leaq -0x210(%rbp), %rax
cmpq %rax, %rdi
je 0x43ba
movq -0x210(%rbp), %rsi
incq %rsi
callq 0x3220
leaq -0x270(%rbp), %rax
movq %rax, -0x280(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0x280(%rbp), %rdi
callq 0x9e20
movq -0x280(%rbp), %rdi
cmpb $0x76, (%rdi)
jne 0x43f4
cmpb $0x0, 0x1(%rdi)
sete %bl
jmp 0x43f6
xorl %ebx, %ebx
leaq -0x120(%rbp), %rcx
leaq -0x270(%rbp), %rax
cmpq %rax, %rdi
je 0x441f
movq -0x270(%rbp), %rsi
incq %rsi
callq 0x3220
leaq -0x120(%rbp), %rcx
testb %bl, %bl
je 0x44ca
leaq -0x110(%rbp), %rax
movq %rax, -0x120(%rbp)
movq %rcx, %rdi
leaq 0x12c7e(%rip), %rsi     # 0x170bd
leaq 0x12cac(%rip), %rdx     # 0x170f2
movq %rcx, %r14
callq 0xa0b6
leaq -0x518(%rbp), %rbx
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
movl $0x3, %edx
movq %r14, %rcx
callq 0x3925
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x448b
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x3220
cvtss2sd -0x48(%rbp), %xmm0
cvtss2sd -0x44(%rbp), %xmm1
cvtss2sd -0x40(%rbp), %xmm2
movsd %xmm0, -0x1e8(%rbp)
movsd %xmm1, -0x1e0(%rbp)
movsd %xmm2, -0x1d8(%rbp)
leaq -0x140(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0x9ebe
jmp 0x4bd5
leaq -0x250(%rbp), %rax
movq %rax, -0x260(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0x260(%rbp), %rdi
callq 0x9e20
movq -0x260(%rbp), %rdi
cmpb $0x76, (%rdi)
jne 0x4511
cmpb $0x6e, 0x1(%rdi)
leaq -0x100(%rbp), %rcx
jne 0x451c
cmpb $0x0, 0x2(%rdi)
sete %bl
jmp 0x451e
xorl %ebx, %ebx
leaq -0x100(%rbp), %rcx
jmp 0x451e
xorl %ebx, %ebx
leaq -0x250(%rbp), %rax
cmpq %rax, %rdi
je 0x4540
movq -0x250(%rbp), %rsi
incq %rsi
callq 0x3220
leaq -0x100(%rbp), %rcx
testb %bl, %bl
je 0x45eb
leaq -0xf0(%rbp), %rax
movq %rax, -0x100(%rbp)
movq %rcx, %rdi
leaq 0x12b93(%rip), %rsi     # 0x170f3
leaq 0x12bc8(%rip), %rdx     # 0x1712f
movq %rcx, %r14
callq 0xa0b6
leaq -0x518(%rbp), %rbx
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
movl $0x3, %edx
movq %r14, %rcx
callq 0x3925
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x45ac
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x3220
cvtss2sd -0x48(%rbp), %xmm0
cvtss2sd -0x44(%rbp), %xmm1
cvtss2sd -0x40(%rbp), %xmm2
movsd %xmm0, -0x1e8(%rbp)
movsd %xmm1, -0x1e0(%rbp)
movsd %xmm2, -0x1d8(%rbp)
leaq -0xd0(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0x6b32
jmp 0x4bd5
leaq -0x230(%rbp), %rax
movq %rax, -0x240(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0x240(%rbp), %rdi
callq 0x9e20
movq -0x240(%rbp), %rdi
cmpb $0x66, (%rdi)
jne 0x4625
cmpb $0x0, 0x1(%rdi)
sete %bl
jmp 0x4627
xorl %ebx, %ebx
leaq -0x230(%rbp), %rax
cmpq %rax, %rdi
je 0x4642
movq -0x230(%rbp), %rsi
incq %rsi
callq 0x3220
testb %bl, %bl
je 0x4864
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq $0x0, -0x40(%rbp)
movb $0x0, -0x38(%rbp)
xorl %r13d, %r13d
movq $0x0, -0xe0(%rbp)
leaq -0x518(%rbp), %rbx
movq %rbx, %rdi
leaq -0x48(%rbp), %rsi
callq 0x32c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x48e0
movl $0x2, %ecx
leaq -0x48(%rbp), %rdi
leaq 0x12a8f(%rip), %r14     # 0x17130
movq %r14, %rsi
xorl %edx, %edx
callq 0x3430
cmpq $-0x1, %rax
setne %al
movq %rax, -0xe0(%rbp)
je 0x484d
leaq -0x1d8(%rbp), %rax
movq %rax, -0x1e8(%rbp)
leaq -0x1e8(%rbp), %rdi
movq %r14, %rsi
leaq 0x12a54(%rip), %rdx     # 0x17132
callq 0xa0b6
movq -0x1e8(%rbp), %rsi
movq -0x1e0(%rbp), %rcx
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3430
movslq %eax, %r12
leaq -0xb8(%rbp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0x3230
movq -0xb8(%rbp), %r15
callq 0x3050
movq %rax, %r14
movl (%rax), %ebx
movl $0x0, (%rax)
movq %r15, %rdi
leaq -0x158(%rbp), %rsi
movl $0xa, %edx
callq 0x3310
cmpq %r15, -0x158(%rbp)
je 0x4ccd
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x4ce5
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x4ce5
testl %ecx, %ecx
jne 0x477b
movl %ebx, (%r14)
movl %eax, -0x54(%rbp,%r13)
addq -0x1e0(%rbp), %r12
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x3090
movq -0x48(%rbp), %r15
movl (%r14), %ebx
movl $0x0, (%r14)
movq %r15, %rdi
leaq -0x158(%rbp), %rsi
movl $0xa, %edx
callq 0x3310
cmpq %r15, -0x158(%rbp)
je 0x4cd9
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
leaq -0x720(%rbp), %r15
jb 0x4cf1
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x4cf1
testl %ecx, %ecx
jne 0x47f8
movl %ebx, (%r14)
movl %eax, -0x164(%rbp,%r13)
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x4822
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3220
movq -0x1e8(%rbp), %rdi
leaq -0x1d8(%rbp), %rax
cmpq %rax, %rdi
leaq -0x518(%rbp), %rbx
je 0x485b
movq -0x1d8(%rbp), %rsi
incq %rsi
callq 0x3220
jmp 0x485b
movq -0x48(%rbp), %rdi
callq 0x33b0
movl %eax, -0x54(%rbp,%r13)
addq $0x4, %r13
jmp 0x4673
movl $0x1b, %edx
movq 0x19780(%rip), %rdi     # 0x1dff0
leaq 0x128bc(%rip), %rsi     # 0x17133
callq 0x3260
leaq -0x518(%rbp), %rbx
movq -0x200(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x19758(%rip), %rdi     # 0x1dff0
callq 0x3260
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x12b26(%rip), %rsi     # 0x173d5
callq 0x3260
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3170
jmp 0x4bd5
leaq -0x1e8(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
callq 0x3b2a
testb $0x1, -0xe0(%rbp)
je 0x4ab5
movslq -0x164(%rbp), %rax
movq -0xd0(%rbp), %rcx
leaq (%rax,%rax,2), %rax
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, -0xb8(%rbp)
movsd 0x8(%rcx,%rax,8), %xmm0
movsd %xmm0, -0xb0(%rbp)
movsd 0x10(%rcx,%rax,8), %xmm0
movsd %xmm0, -0xa8(%rbp)
movslq -0x160(%rbp), %rax
leaq (%rax,%rax,2), %rax
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, -0x158(%rbp)
movsd 0x8(%rcx,%rax,8), %xmm0
movsd %xmm0, -0x150(%rbp)
movsd 0x10(%rcx,%rax,8), %xmm0
movsd %xmm0, -0x148(%rbp)
movslq -0x15c(%rbp), %rax
leaq (%rax,%rax,2), %rax
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, -0x298(%rbp)
movsd 0x8(%rcx,%rax,8), %xmm0
movsd %xmm0, -0x290(%rbp)
movsd 0x10(%rcx,%rax,8), %xmm0
movsd %xmm0, -0x288(%rbp)
movl $0x2b8, %edi            # imm = 0x2B8
leaq -0x88(%rbp), %r12
leaq -0x68(%rbp), %r13
callq 0x3210
movq %rax, %r14
movslq -0x54(%rbp), %rax
movq -0x140(%rbp), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rsi
movslq -0x50(%rbp), %rax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdx
movslq -0x4c(%rbp), %rax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rcx
movsd -0x1e8(%rbp), %xmm0
movsd %xmm0, -0x398(%rbp)
movups -0x1e0(%rbp), %xmm0
movups %xmm0, -0x390(%rbp)
movups -0x1d0(%rbp), %xmm0
movups %xmm0, -0x380(%rbp)
movups -0x1c0(%rbp), %xmm0
movups %xmm0, -0x370(%rbp)
movups -0x1b0(%rbp), %xmm0
movups %xmm0, -0x360(%rbp)
movsd -0x1a0(%rbp), %xmm0
movsd %xmm0, -0x350(%rbp)
movsd -0x198(%rbp), %xmm0
movsd %xmm0, -0x348(%rbp)
movsd -0x190(%rbp), %xmm0
movsd %xmm0, -0x340(%rbp)
movups -0x188(%rbp), %xmm0
movups %xmm0, -0x338(%rbp)
movups -0x178(%rbp), %xmm0
movups %xmm0, -0x328(%rbp)
subq $0x8, %rsp
movq %r14, %rdi
movq -0xd8(%rbp), %r8
leaq -0x398(%rbp), %r9
leaq -0x298(%rbp), %rax
pushq %rax
leaq -0x158(%rbp), %rax
pushq %rax
leaq -0xb8(%rbp), %rax
pushq %rax
callq 0x6b70
addq $0x20, %rsp
jmp 0x4ba2
movl $0x2b8, %edi            # imm = 0x2B8
leaq -0x88(%rbp), %r12
leaq -0x68(%rbp), %r13
callq 0x3210
movq %rax, %r14
movslq -0x54(%rbp), %rax
movq -0x140(%rbp), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rsi
movslq -0x50(%rbp), %rax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdx
movslq -0x4c(%rbp), %rax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rcx
movsd -0x1e8(%rbp), %xmm0
movsd %xmm0, -0x318(%rbp)
movups -0x1e0(%rbp), %xmm0
movups %xmm0, -0x310(%rbp)
movups -0x1d0(%rbp), %xmm0
movups %xmm0, -0x300(%rbp)
movups -0x1c0(%rbp), %xmm0
movups %xmm0, -0x2f0(%rbp)
movups -0x1b0(%rbp), %xmm0
movups %xmm0, -0x2e0(%rbp)
movsd -0x1a0(%rbp), %xmm0
movsd %xmm0, -0x2d0(%rbp)
movsd -0x198(%rbp), %xmm0
movsd %xmm0, -0x2c8(%rbp)
movsd -0x190(%rbp), %xmm0
movsd %xmm0, -0x2c0(%rbp)
movups -0x188(%rbp), %xmm0
movups %xmm0, -0x2b8(%rbp)
movups -0x178(%rbp), %xmm0
movups %xmm0, -0x2a8(%rbp)
movq %r14, %rdi
movq -0xd8(%rbp), %r8
leaq -0x318(%rbp), %r9
callq 0x6d00
movq %r14, -0xb8(%rbp)
movq -0x1f0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0xa2a2
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4bd5
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3220
movq %rbx, %rdi
movq 0x193e9(%rip), %rsi     # 0x1dfc8
callq 0x3320
leaq -0x4a0(%rbp), %rdi
callq 0x30d0
jmp 0x42cf
movq 0x193f4(%rip), %rbx     # 0x1dff0
leaq 0x124a3(%rip), %rsi     # 0x170a6
movl $0x16, %edx
movq %rbx, %rdi
callq 0x3260
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq 0x193c2(%rip), %rdi     # 0x1dff0
callq 0x3040
movq %rax, %rdi
callq 0x3170
jmp 0x4c49
leaq -0x720(%rbp), %rdi
callq 0x3070
movq -0x78(%rbp), %rdi
cmpq %r13, %rdi
je 0x4c5e
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3220
movq -0x98(%rbp), %rdi
cmpq %r12, %rdi
je 0x4c79
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3220
leaq -0x720(%rbp), %rdi
callq 0x30b0
movq -0xd0(%rbp), %rdi
testq %rdi, %rdi
je 0x4ca0
movq -0xc0(%rbp), %rsi
subq %rdi, %rsi
callq 0x3220
movq -0x140(%rbp), %rdi
testq %rdi, %rdi
je 0x4cbb
movq -0x130(%rbp), %rsi
subq %rdi, %rsi
callq 0x3220
addq $0x6f8, %rsp            # imm = 0x6F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x12720(%rip), %rdi     # 0x173f4
callq 0x3140
leaq 0x12714(%rip), %rdi     # 0x173f4
callq 0x3140
leaq 0x12708(%rip), %rdi     # 0x173f4
callq 0x3330
leaq 0x126fc(%rip), %rdi     # 0x173f4
callq 0x3330
jmp 0x4cff
movq %rax, %r15
movl $0x2b8, %esi            # imm = 0x2B8
movq %r14, %rdi
jmp 0x4dee
jmp 0x4d94
jmp 0x4d94
jmp 0x4d94
jmp 0x4d1c
jmp 0x4d1c
movq %rax, %r15
jmp 0x4e77
jmp 0x4e19
jmp 0x4e19
movq %rax, %r15
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x4e1c
movq -0xf0(%rbp), %rsi
jmp 0x4e0f
jmp 0x4d99
jmp 0x4e19
movq %rax, %r15
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x4e1c
movq -0x110(%rbp), %rsi
jmp 0x4e0f
jmp 0x4e19
jmp 0x4d99
movq %rax, %r15
jmp 0x4dd1
jmp 0x4d94
movq %rax, %r15
jmp 0x4daf
movq %rax, %r15
jmp 0x4df3
movq %rax, %r15
jmp 0x4e3b
jmp 0x4da3
movq %rax, %r15
cmpl $0x0, (%r14)
jne 0x4daf
movl %ebx, (%r14)
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x4dd1
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3220
movq -0x1e8(%rbp), %rdi
leaq -0x1d8(%rbp), %rax
cmpq %rax, %rdi
je 0x4df3
movq -0x1d8(%rbp), %rsi
incq %rsi
callq 0x3220
leaq -0x88(%rbp), %r12
leaq -0x68(%rbp), %r13
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4e1c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3220
jmp 0x4e1c
movq %rax, %r15
movq 0x191a5(%rip), %rsi     # 0x1dfc8
leaq -0x518(%rbp), %rdi
callq 0x3320
leaq -0x4a0(%rbp), %rdi
callq 0x30d0
movq -0x78(%rbp), %rdi
cmpq %r13, %rdi
je 0x4e50
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3220
movq -0x98(%rbp), %rdi
cmpq %r12, %rdi
je 0x4e6b
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3220
leaq -0x720(%rbp), %rdi
callq 0x30b0
movq -0xd0(%rbp), %rdi
testq %rdi, %rdi
je 0x4e92
movq -0xc0(%rbp), %rsi
subq %rdi, %rsi
callq 0x3220
movq -0x140(%rbp), %rdi
testq %rdi, %rdi
je 0x4ead
movq -0x130(%rbp), %rsi
subq %rdi, %rsi
callq 0x3220
movq %r15, %rdi
callq 0x3450