Complex sentence: Dr. Tenma built Astro in memories of Tobio, and treated him as lovingly as if he was the real Tobio.
Split into simpler sentences: Dr. Tenma built Astro in memories of Tobio. Dr.Tenma treated the robot Astro as lovingly as if he was the real Tobio.