x86: fix issue relating to prototypes
prototypes and local function arguments were using the same
symbol table, so declaring a prototype within a function
definition clobbered the function's arguments, leading to
crazy erroneous data and crashes.