You could try decompiling the DOS version of Pharkas, and then pasting the disassembly you listed into script 270 in the right places (there will need to be some fixing up of syntax, since ScummVM asm output is different than Companion asm), then compile 270, and then re-decompile script 270 and see what you get.
Note, there are some problems with decompiling Freddy Pharkas script 270... to get around it, I changed bubbleSound to be of type Sound instead of FPSound. Not sure exactly what's going on, but that seemed to let it compile.