Roughly-made, unsophisticated, decrepit (from the use of haywire for temporary repairs).
Behaving erratically or uncontrollably, especially of a machine or mechanical process; usually used with the verb "go".
It was working fine until it went haywire and wouldn't stop printing blank sheets.