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2RlZmluZSBBRkVfQVBJX1ZFUlNJT05fSTJTX0NPTkZJRwkweDEKLyoJRW51bWVyYXRpb24gZm9yIHNldHRpbmcgdGhlIEkyUyBjb25maWd1cmF0aW9uCiAqIGNoYW5uZWxfbW9kZSBwYXJhbWV0ZXIgdG8KICogc2VyaWFsIGRhdGEgd2lyZSBudW1iZXIgMS0zIChTRDMpLgogKi8KI2RlZmluZSBBRkVfUE9SVF9JMlNfU0QwICAgICAgICAgICAgICAgICAgICAgMHgxCiNkZWZpbmUgQUZFX1BPUlRfSTJTX1NEMSAgICAgICAgICAgICAgICAgICAgIDB4MgojZGVmaW5lIEFGRV9QT1JUX0kyU19TRDIgICAgICAgICAgICAgICAgICAgICAweDMKI2RlZmluZSBBRkVfUE9SVF9JMlNfU0QzICAgICAgICAgICAgICAgICAgICAgMHg0CiNkZWZpbmUgQUZFX1BPUlRfSTJTX1FVQUQwMSAgICAgICAgICAgICAgICAgIDB4NQojZGVmaW5lIEFGRV9QT1JUX0kyU19RVUFEMjMgICAgICAgICAgICAgICAgICAweDYKI2RlZmluZSBBRkVfUE9SVF9JMlNfNkNIUyAgICAgICAgICAgICAgICAgICAgMHg3CiNkZWZpbmUgQUZFX1BPUlRfSTJTXzhDSFMgICAgICAgICAgICAgICAgICAgIDB4OAojZGVmaW5lIEFGRV9QT1JUX0kyU19NT05PICAgICAgICAgICAgICAgICAgICAweDAKI2RlZmluZSBBRkVfUE9SVF9JMlNfU1RFUkVPICAgICAgICAgICAgICAgICAgMHgxCiNkZWZpbmUgQUZFX1BPUlRfQ09ORklHX0kyU19XU19TUkNfRVhURVJOQUwgIDB4MAojZGVmaW5lIEFGRV9QT1JUX0NPTkZJR19JMlNfV1NfU1JDX0lOVEVSTkFMICAweDEKCi8qICBQYXlsb2FkIG9mIHRoZSAjQUZFX1BBUkFNX0lEX0kyU19DT05GSUcKICogY29tbWFuZCdzIChJMlMgY29uZmlndXJhdGlvbgogKiBwYXJhbWV0ZXIpLgogKi8Kc3RydWN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gICAweDAwMDEwREVGCiNkZWZpbmUgQVNNX01FRElBX0ZNVF9EVFMgICAgICAgICAgICAgICAgICAgIDB4MDAwMTBEODgKI2RlZmluZSBBU01fTUVESUFfRk1UX01QMiAgICAgICAgICAgICAgICAgICAgMHgwMDAxMERFOQojZGVmaW5lIEFTTV9NRURJQV9GTVRfRkxBQyAgICAgICAgICAgICAgICAgICAweDAwMDEwQzE2CiNkZWZpbmUgQVNNX01FRElBX0ZNVF9BTEFDICAgICAgICAgICAgICAgICAgIDB4MDAwMTJGMzEKI2RlZmluZSBBU01fTUVESUFfRk1UX1ZPUkJJUyAgICAgICAgICAgICAgICAgMHgwMDAxMEMxNQojZGVmaW5lIEFTTV9NRURJQV9GTVRfQVBFICAgICAgICAgICAgICAgICAgICAweDAwMDEyRjMyCiNkZWZpbmUgQVNNX01FRElBX0ZNVF9EU0QgICAgICAgICAgICAgICAgICAgIDB4MDAwMTJGM0UKI2RlZmluZSBBU01fTUVESUFfRk1UX1RSVUVIRCAgICAgICAgICAgICAgICAgMHgwMDAxMzIxNQovKiAweDAgaXMgdXNlZCBmb3IgZm9tYXQgSUQgc2luY2UgQURTUCBkeW5hbWljYWxseSBkZXRlcm1pbmVzIHRoZQogKiBmb3JtYXQgZW5jYXBzdWxhdGVkIGluIHRoZSBJRUM2MTkzNyAoY29tcHJlc3NlZCkgb3IgSUVDNjA5NTgKICogKHBjbSkgcGFja2V0cy4KICovCiNkZWZpbmUgQVNNX01FRElBX0ZNVF9JRUMgICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwMDAKCi8qIE1lZGlhIGZvcm1hdCBJRCBmb3IgYWRhcHRpdmUgdHJhbnNmb3JtIGFjb3VzdGljIGNvZGluZy4gVGhpcwogKiBJRCBpcyB1c2VkIGJ5IHRoZSAjQVNNX1NUUkVBTV9DTURfT1BFTl9XUklURV9DT01QUkVTU0VEIGNvbW1hbmQKICogb25seS4KICovCgojZGVmaW5lIEFTTV9NRURJQV9GTVRfQVRSQUMgICAgIC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B4MTAzCi8qIENsb2NrIElEIGZvciBUZXJ0aWFyeSBJMlMgSUJJVCAqLwojZGVmaW5lIFE2QUZFX0xQQVNTX0NMS19JRF9URVJfTUkyU19JQklUICAgICAgICAgICAgICAgICAgICAgICAgICAweDEwNAovKiBDbG9jayBJRCBmb3IgVGVydGlhcnkgSTJTIEVCSVQgKi8KI2RlZmluZSBRNkFGRV9MUEFTU19DTEtfSURfVEVSX01JMlNfRUJJVCAgICAgICAgICAgICAgICAgICAgICAgICAgMHgxMDUKLyogQ2xvY2sgSUQgZm9yIFF1YXJ0bmVyeSBJMlMgSUJJVCAqLwojZGVmaW5lIFE2QUZFX0xQQVNTX0NMS19JRF9RVUFEX01JMlNfSUJJVCAgICAgICAgICAgICAgICAgICAgICAgICAweDEwNgovKiBDbG9jayBJRCBmb3IgUXVhcnRuZXJ5IEkyUyBFQklUICovCiNkZWZpbmUgUTZBRkVfTFBBU1NfQ0xLX0lEX1FVQURfTUkyU19FQklUICAgICAgICAgICAgICAgICAgICAgICAgIDB4MTA3Ci8qIENsb2NrIElEIGZvciBTcGVha2VyIEkyUyBJQklUICovCiNkZWZpbmUgUTZBRkVfTFBBU1NfQ0xLX0lEX1NQRUFLRVJfSTJTX0lCSVQgICAgICAgICAgICAgICAgICAgICAgIDB4MTA4Ci8qIENsb2NrIElEIGZvciBTcGVha2VyIEkyUyBFQklUICovCiNkZWZpbmUgUTZBRkVfTFBBU1NfQ0xLX0lEX1NQRUFLRVJfSTJTX0VCSVQgICAgICAgICAgICAgICAgICAgICAgIDB4MTA5Ci8qIENsb2NrIElEIGZvciBTcGVha2VyIEkyUyBPU1IgKi8KI2RlZmluZSBRNkFGRV9MUEFTU19DTEtfSURfU1BFQUtFUl9JMlNfT1NSICAgICAgICAgICAgICAgICAgICAgICAgMHgxMEEKCi8qIENsb2NrIElEIGZvciBRVUlOQVJZICBJMlMgSUJJVCAqLwojZGVmaW5lIFE2QUZFX0xQQVNTX0NMS19JRF9RVUlfTUkyU19JQklUC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TU19DTEtfSURfSU5UNV9NSTJTX0lCSVQgICAgICAgICAgICAgICAgICAgICAgIDB4MTE0Ci8qIENsb2NrIElEIGZvciBJTlQ2IEkyUyBJQklUICAqLwojZGVmaW5lIFE2QUZFX0xQQVNTX0NMS19JRF9JTlQ2X01JMlNfSUJJVCAgICAgICAgICAgICAgICAgICAgICAgMHgxMTUKCi8qIENsb2NrIElEIGZvciBQcmltYXJ5IFBDTSBJQklUICovCiNkZWZpbmUgUTZBRkVfTFBBU1NfQ0xLX0lEX1BSSV9QQ01fSUJJVCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MjAwCi8qIENsb2NrIElEIGZvciBQcmltYXJ5IFBDTSBFQklUICovCiNkZWZpbmUgUTZBRkVfTFBBU1NfQ0xLX0lEX1BSSV9QQ01fRUJJVCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MjAxCi8qIENsb2NrIElEIGZvciBTZWNvbmRhcnkgUENNIElCSVQgKi8KI2RlZmluZSBRNkFGRV9MUEFTU19DTEtfSURfU0VDX1BDTV9JQklUICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgyMDIKLyogQ2xvY2sgSUQgZm9yIFNlY29uZGFyeSBQQ00gRUJJVCAqLwojZGVmaW5lIFE2QUZFX0xQQVNTX0NMS19JRF9TRUNfUENNX0VCSVQgICAgICAgICAgICAgICAgICAgICAgICAgICAweDIwMwovKiBDbG9jayBJRCBmb3IgVGVydGlhcnkgUENNIElCSVQgKi8KI2RlZmluZSBRNkFGRV9MUEFTU19DTEtfSURfVEVSX1BDTV9JQklUICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgyMDQKLyogQ2xvY2sgSUQgZm9yIFRlcnRpYXJ5IFBDTSBFQklUICovCiNkZWZpbmUgUTZBRkVfTFBBU1NfQ0xLX0lEX1RFUl9QQ01fRUJJVCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MjA1Ci8qIENsb2NrIElEIGZvciBRdWFydGVyeSBQQ00gSUJJVCAqLwojZGVmaW5lIFE2QUZFX0xQQVNTX0NMS19JRF9RVUFEX1BDTV9JQklUICAgICAgICAgICAgICAgICAgICAgICAgICAweDIwNgovKiBDbG9jayBJRCBmb3IgUXVhcnRlcnkgUENNIEVCSVQgKi8KI2RlZmluZSBRNkFGRV9MUEFTU19DTEtfSURfUVVBRF9QQ01fRUJJVCAgICAgICAgICAgICAgICAgICAgICAgICAgMHgyMDcKCi8qKiBDbG9jayBJRCBmb3IgUHJpbWFyeSBURE0gSUJJVCAqLwojZGVmaW5lIFE2QUZFX0xQQVNTX0NMS19JRF9QUklfVERNX0lCSVQgICAgICAgICAgICAgICAgICAgICAgICAgICAweDIwMAovKiogQ2xvY2sgSUQgZm9yIFByaW1hcnkgVERNIEVCSVQgKi8KI2RlZmluZSBRNkFGRV9MUEFTU19DTEtfSURfUFJJX1RETV9FQklUICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgyMDEKLyoqIENsb2NrIElEIGZvciBTZWNvbmRhcnkgVERNIElCSVQgKi8KI2RlZmluZSBRNkFGRV9MUEFTU19DTEtfSURfU0VDX1RETV9JQklUICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgyMDIKLyoqIENsb2NrIElEIGZvciBTZWNvbmRhcnkgVERNIEVCSVQgKi8KI2RlZmluZSBRNkFGRV9MUEFTU19DTEtfSURfU0VDX1RETV9FQklUICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgyMDMKLyoqIENsb2NrIElEIGZvciBUZXJ0aWFyeSBURE0gSUJJVCAqLwojZGVmaW5lIFE2QUZFX0xQQVNTX0NMS19JRF9URVJfVERNX0lCSVQgICAgICAgICAgICAgICAgICAgICAgICAgICAweDIwNAovKiogQ2xvY2sgSUQgZm9yIFRlcnRpYXJ5IFRETSBFQklUICovCiNkZWZpbmUgUTZBRkVfTFBBU1NfQ0xLX0lEX1RFUl9URE1fRUJJVCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MjA1Ci8qKiBDbG9jayBJRCBmb3IgUXVhcnRlcnkgVERNIElCSVQgKi8KI2RlZmluZSBRNkFGRV9MUEFTU19DTEtfSURfUVVBRF9URE1fSUJJVCAgICAgICAgICAgICAgICAgICAgICAgICAgMHgyMDYKLyoqIENsb2NrIElEIGZvciBRdWFydGVyeSBURE0gRUJJVCAqLwojZGVmaW5lIFE2QUZFX0xQQVNTX0NMS19JRF9RVUFEX1RETV9FQklUICAgICAgICAgICAgICAgICAgICAgICAgICAweDIwNwoKLyogQ2xvY2sgSUQgZm9yIE1DTEsxICovCiNkZWZpbmUgUTZBRkVfTFBBU1NfQ0xLX0lEX01DTEtfMSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MzAwCi8qIENsb2NrIElEIGZvciBNQ0xLMiAqLwojZGVmaW5lIFE2QUZFX0xQQVNTX0NMS19JRF9NQ0xLXzIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDMwMQovKiBDbG9jayBJRCBmb3IgTUNMSzMgKi8KI2RlZmluZSBRNkFGRV9MUEFTU19DTEtfSURfTUNMS18zICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgzMDIKLyogQ2xvY2sgSUQgZm9yIE1DTEs0ICovCiNkZWZpbmUgUTZBRkVfTFBBU1NfQ0xLX0lEX01DTEtfNCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MzA0Ci8qIENsb2NrIElEIGZvciBJbnRlcm5hbCBEaWdpdGFsIENvZGVjIENvcmUgKi8KI2RlZmluZSBRNkFGRV9MUEFTU19DTEtfSURfSU5URVJOQUxfRElHSVRBTF9DT0RFQ19DT1JFICAgICAgICAgICAgMHgzMDMKLyogQ2xvY2sgSUQgZm9yIElOVCBNQ0xLMCAqLwojZGVmaW5lIFE2QUZFX0xQQVNTX0NMS19JRF9JTlRfTUNMS18wICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDMwNQovKiBDbG9jayBJRCBmb3IgSU5UIE1DTEsxICovCiNkZWZpbmUgUTZBRkVfTFBBU1NfQ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