I've been working with philip_petev on this very issue... and... I have my own version of this script.
Change log:
- it will work with a (newer) otool where the disassembler writes immediates in decimal
- it will not patch an already patched AppleIntelCPUPowerManagement binary
- there is a bit more debug info (as I was using it to figure out what the changes should be...)
Code follows:
I tried to bracket my changes with #rehabman/#rehabman end. Hope you find it useful.