It turns out Super Mario 64 contains references from Tokimeki Memorial, a dating sim from two years before the former came out.