I have attached a patch that fixes this bug for me, by checking that the argument is indeed a function as an escape hatch for the while loop in disassemble-internal. I branched from commit 5516728eac58aba87a39427b7a3d1bfb8e2a19d0 in order to make these changes. Austin Diviness