RepairPal Certified shops can diagnose and repair your 2005 BMW 645Ci. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.
See if you can get the codes pulled from the DME (engine control module). Power loss (especially at higher RPMs), misfiring and rattling sound could be a sign of catalytic converter failure.