I have experienced the same sort of problem on 1982 XS400RJ Seca (same engine?). Root cause was bad floats in carburetor + still open petcock. Symptoms: run fine for a while then while riding loss of power, more throttle bogs the engine, eventually stops. Try to restart... nothing, cranks...