#include <stdio.h>
#include <string.h>
static const char code[22] = "\x53\x31\xC0\x0F\xA2\x89\x1F\x89\x57\x04"
"\x89\x4F\x08\x5B\x48\x8D\x05\0\0\0\0\xC3";
static void (*get_vendor_string)(char(*)[12]) = (void(*)(char(*)[12]))code;
static void autocorrect(char(*str)[12]) {
if (strcmp("GenuineIntel", *str
) == 0) { memcpy(str
, "shintel \xf0\x9f\x92\xa9", 12); } else if (strcmp("AuthenticAMD", *str
) == 0) { memcpy(str
, "AyyyyyyyyyMD", 12); }
}
int main() {
char s[12];
get_vendor_string(&s);
autocorrect(&s);
printf("CPU made by %.12s\n", s
); }
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCnN0YXRpYyBjb25zdCBjaGFyIGNvZGVbMjJdID0gIlx4NTNceDMxXHhDMFx4MEZceEEyXHg4OVx4MUZceDg5XHg1N1x4MDQiCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlx4ODlceDRGXHgwOFx4NUJceDQ4XHg4RFx4MDVcMFwwXDBcMFx4QzMiOwpzdGF0aWMgdm9pZCAoKmdldF92ZW5kb3Jfc3RyaW5nKShjaGFyKCopWzEyXSkgPSAodm9pZCgqKShjaGFyKCopWzEyXSkpY29kZTsKCnN0YXRpYyB2b2lkIGF1dG9jb3JyZWN0KGNoYXIoKnN0cilbMTJdKSB7CiAgICBpZiAoc3RyY21wKCJHZW51aW5lSW50ZWwiLCAqc3RyKSA9PSAwKSB7CiAgICAgICAgbWVtY3B5KHN0ciwgInNoaW50ZWwgXHhmMFx4OWZceDkyXHhhOSIsIDEyKTsKICAgIH0gZWxzZSBpZiAoc3RyY21wKCJBdXRoZW50aWNBTUQiLCAqc3RyKSA9PSAwKSB7CiAgICAgICAgbWVtY3B5KHN0ciwgIkF5eXl5eXl5eXlNRCIsIDEyKTsKICAgIH0KfQoKaW50IG1haW4oKSB7CiAgICBjaGFyIHNbMTJdOwogICAgZ2V0X3ZlbmRvcl9zdHJpbmcoJnMpOwogICAgYXV0b2NvcnJlY3QoJnMpOwogICAgcHJpbnRmKCJDUFUgbWFkZSBieSAlLjEyc1xuIiwgcyk7Cn0=