// File: ticky[P]ps2iconsys/src/../include/../src/obj_loader.impl.hpp
// Function: void OBJ_Mesh::GetMeshGeometryUnindexed<float>(float*, float*, float*, float) const
void OBJ_Mesh::GetMeshGeometryUnindexed(T* mesh_geometry, T* mesh_normals, T* mesh_texture, T scale) const {
	int index = 0;		//index of the current triangle
	for(std::vector<Face>::const_iterator iter = m_faces.begin(); iter != m_faces.end(); ++iter, ++index) {
		if(mesh_geometry) {
			mesh_geometry[(index*9)]     = static_cast<T>( m_geometry[ (*iter).vert1 * 3 ])    * scale;
			mesh_geometry[(index*9) + 1] = static_cast<T>( m_geometry[ (*iter).vert1 * 3 + 1]) * scale;
			mesh_geometry[(index*9) + 2] = static_cast<T>( m_geometry[ (*iter).vert1 * 3 + 2]) * scale;
			mesh_geometry[(index*9) + 3] = static_cast<T>( m_geometry[ (*iter).vert2 * 3 ])    * scale;
			mesh_geometry[(index*9) + 4] = static_cast<T>( m_geometry[ (*iter).vert2 * 3 + 1]) * scale;
			mesh_geometry[(index*9) + 5] = static_cast<T>( m_geometry[ (*iter).vert2 * 3 + 2]) * scale;
			mesh_geometry[(index*9) + 6] = static_cast<T>( m_geometry[ (*iter).vert3 * 3 ])    * scale;
			mesh_geometry[(index*9) + 7] = static_cast<T>( m_geometry[ (*iter).vert3 * 3 + 1]) * scale;
			mesh_geometry[(index*9) + 8] = static_cast<T>( m_geometry[ (*iter).vert3 * 3 + 2]) * scale;
		}
		if(mesh_normals) {
			mesh_normals[(index*9)]      = static_cast<T>( m_normals[ (*iter).normal1 * 3 ] );
			mesh_normals[(index*9) + 1]  = static_cast<T>( m_normals[ (*iter).normal1 * 3 + 1] );
			mesh_normals[(index*9) + 2]  = static_cast<T>( m_normals[ (*iter).normal1 * 3 + 2] );
			mesh_normals[(index*9) + 3]  = static_cast<T>( m_normals[ (*iter).normal2 * 3] );
			mesh_normals[(index*9) + 4]  = static_cast<T>( m_normals[ (*iter).normal2 * 3 + 1] );
			mesh_normals[(index*9) + 5]  = static_cast<T>( m_normals[ (*iter).normal2 * 3 + 2] );
			mesh_normals[(index*9) + 6]  = static_cast<T>( m_normals[ (*iter).normal3 * 3] );
			mesh_normals[(index*9) + 7]  = static_cast<T>( m_normals[ (*iter).normal3 * 3 + 1] );
			mesh_normals[(index*9) + 8]  = static_cast<T>( m_normals[ (*iter).normal3 * 3 + 2] );
		}
		if(mesh_texture) {
			mesh_texture[(index*9)]      = static_cast<T>( m_texcoords[ (*iter).texture1 * 3 ] );
			mesh_texture[(index*9) + 1]  = static_cast<T>( m_texcoords[ (*iter).texture1 * 3 + 1] );
			mesh_texture[(index*9) + 2]  = static_cast<T>( m_texcoords[ (*iter).texture1 * 3 + 2] );
			mesh_texture[(index*9) + 3]  = static_cast<T>( m_texcoords[ (*iter).texture2 * 3] );
			mesh_texture[(index*9) + 4]  = static_cast<T>( m_texcoords[ (*iter).texture2 * 3 + 1] );
			mesh_texture[(index*9) + 5]  = static_cast<T>( m_texcoords[ (*iter).texture2 * 3 + 2] );
			mesh_texture[(index*9) + 6]  = static_cast<T>( m_texcoords[ (*iter).texture3 * 3] );
			mesh_texture[(index*9) + 7]  = static_cast<T>( m_texcoords[ (*iter).texture3 * 3 + 1] );
			mesh_texture[(index*9) + 8]  = static_cast<T>( m_texcoords[ (*iter).texture3 * 3 + 2] );
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movss %xmm0, -0x24(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movl $0x0, -0x28(%rbp)
addq $0x48, %rdi
callq 0x6c50
movq %rax, -0x30(%rbp)
movq -0x40(%rbp), %rdi
addq $0x48, %rdi
callq 0x6cc0
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x6c80
testb $0x1, %al
jne 0xc793
jmp 0xcee4
cmpq $0x0, -0x10(%rbp)
je 0xc9ab
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x40(%rbp), %rdi
imull $0x3, (%rax), %eax
movslq %eax, %rsi
callq 0x50d0
movsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
mulss -0x24(%rbp), %xmm0
movq -0x10(%rbp), %rax
imull $0x9, -0x28(%rbp), %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x40(%rbp), %rdi
imull $0x3, (%rax), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x50d0
movsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
mulss -0x24(%rbp), %xmm0
movq -0x10(%rbp), %rax
imull $0x9, -0x28(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x40(%rbp), %rdi
imull $0x3, (%rax), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x50d0
movsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
mulss -0x24(%rbp), %xmm0
movq -0x10(%rbp), %rax
imull $0x9, -0x28(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x40(%rbp), %rdi
imull $0x3, 0x4(%rax), %eax
movslq %eax, %rsi
callq 0x50d0
movsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
mulss -0x24(%rbp), %xmm0
movq -0x10(%rbp), %rax
imull $0x9, -0x28(%rbp), %ecx
addl $0x3, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x40(%rbp), %rdi
imull $0x3, 0x4(%rax), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x50d0
movsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
mulss -0x24(%rbp), %xmm0
movq -0x10(%rbp), %rax
imull $0x9, -0x28(%rbp), %ecx
addl $0x4, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x40(%rbp), %rdi
imull $0x3, 0x4(%rax), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x50d0
movsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
mulss -0x24(%rbp), %xmm0
movq -0x10(%rbp), %rax
imull $0x9, -0x28(%rbp), %ecx
addl $0x5, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x40(%rbp), %rdi
imull $0x3, 0x8(%rax), %eax
movslq %eax, %rsi
callq 0x50d0
movsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
mulss -0x24(%rbp), %xmm0
movq -0x10(%rbp), %rax
imull $0x9, -0x28(%rbp), %ecx
addl $0x6, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x40(%rbp), %rdi
imull $0x3, 0x8(%rax), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x50d0
movsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
mulss -0x24(%rbp), %xmm0
movq -0x10(%rbp), %rax
imull $0x9, -0x28(%rbp), %ecx
addl $0x7, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x40(%rbp), %rdi
imull $0x3, 0x8(%rax), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x50d0
movsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
mulss -0x24(%rbp), %xmm0
movq -0x10(%rbp), %rax
imull $0x9, -0x28(%rbp), %ecx
addl $0x8, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
cmpq $0x0, -0x18(%rbp)
je 0xcc23
movq -0x40(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x88(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x88(%rbp), %rdi
imull $0x3, 0xc(%rax), %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x18(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x18, %rax
movq %rax, -0x80(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x80(%rbp), %rdi
imull $0x3, 0xc(%rax), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x18(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x18, %rax
movq %rax, -0x78(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x78(%rbp), %rdi
imull $0x3, 0xc(%rax), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x18(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x18, %rax
movq %rax, -0x70(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x70(%rbp), %rdi
imull $0x3, 0x10(%rax), %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x18(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x3, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x18, %rax
movq %rax, -0x68(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x68(%rbp), %rdi
imull $0x3, 0x10(%rax), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x18(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x18, %rax
movq %rax, -0x60(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x60(%rbp), %rdi
imull $0x3, 0x10(%rax), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x18(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x5, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x18, %rax
movq %rax, -0x58(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x58(%rbp), %rdi
imull $0x3, 0x14(%rax), %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x18(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x18, %rax
movq %rax, -0x50(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x50(%rbp), %rdi
imull $0x3, 0x14(%rax), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x18(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x7, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x18, %rax
movq %rax, -0x48(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x48(%rbp), %rdi
imull $0x3, 0x14(%rax), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x50d0
movsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x18(%rbp), %rax
imull $0x9, -0x28(%rbp), %ecx
addl $0x8, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
cmpq $0x0, -0x20(%rbp)
je 0xcecb
movq -0x40(%rbp), %rax
addq $0x30, %rax
movq %rax, -0xd0(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0xd0(%rbp), %rdi
imull $0x3, 0x18(%rax), %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x20(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x30, %rax
movq %rax, -0xc8(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0xc8(%rbp), %rdi
imull $0x3, 0x18(%rax), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x20(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x30, %rax
movq %rax, -0xc0(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0xc0(%rbp), %rdi
imull $0x3, 0x18(%rax), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x20(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x30, %rax
movq %rax, -0xb8(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0xb8(%rbp), %rdi
imull $0x3, 0x1c(%rax), %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x20(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x3, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x30, %rax
movq %rax, -0xb0(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0xb0(%rbp), %rdi
imull $0x3, 0x1c(%rax), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x20(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x30, %rax
movq %rax, -0xa8(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0xa8(%rbp), %rdi
imull $0x3, 0x1c(%rax), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x20(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x5, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x30, %rax
movq %rax, -0xa0(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0xa0(%rbp), %rdi
imull $0x3, 0x20(%rax), %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x20(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x30, %rax
movq %rax, -0x98(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x98(%rbp), %rdi
imull $0x3, 0x20(%rax), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x50d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movsd (%rcx), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x20(%rbp), %rcx
imull $0x9, -0x28(%rbp), %edx
addl $0x7, %edx
movslq %edx, %rdx
movss %xmm0, (%rcx,%rdx,4)
addq $0x30, %rax
movq %rax, -0x90(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6d60
movq -0x90(%rbp), %rdi
imull $0x3, 0x20(%rax), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x50d0
movsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x20(%rbp), %rax
imull $0x9, -0x28(%rbp), %ecx
addl $0x8, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
jmp 0xcecd
leaq -0x30(%rbp), %rdi
callq 0x6d80
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xc76c
addq $0xd0, %rsp
popq %rbp
retq
nopl (%rax)