CHKSTAT macro func, qiaoya's two func
compiled
shit