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gICAgICAgICBpZm5lcSAoJChDUk9TU19DT01QSUxFKSwkKHNhdmVkX2Nyb3NzKSkKLSAgICAgICAgICAgICAgICAgICAgICAgICQoZXJyb3IgQ1JPU1NfQ09NUElMRSBjaGFuZ2VkIGZyb20gXAotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiJChzYXZlZF9jcm9zcykiIHRvIFwKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvICIkKENST1NTX0NPTVBJTEUpIi4gXAotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVXNlICJtYWtlIG1ycHJvcGVyIiB0byBmaXggaXQgdXApCi0gICAgICAgICAgICAgICAgZW5kaWYKLSAgICAgICAgZW5kaWYKLWVsc2UKLSAgICBDUk9TU19DT01QSUxFIDo9ICQoc2F2ZWRfY3Jvc3MpCi1lbmRpZgotCi1pZm5lcSAoJChBUkNIKSwpCi0gICAgICAgIGlmbmVxICgkKHNhdmVkX2FyY2gpLCkKLSAgICAgICAgICAgICAgICBpZm5lcSAoJChzYXZlZF9hcmNoKSwkKEFSQ0gpKQotICAgICAgICAgICAgICAgICAgICAgICAgJChlcnJvciBBUkNIIGNoYW5nZWQgZnJvbSBcCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICIkKHNhdmVkX2FyY2gpIiB0byAiJChBUkNIKSIuIFwKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFVzZSAibWFrZSBtcnByb3BlciIgdG8gZml4IGl0IHVwKQotICAgICAgICAgICAgICAgIGVuZGlmCi0gICAgICAgIGVuZGlmCi1lbHNlCi0gICAgICAgIGlmbmVxICgkKHNhdmVkX2FyY2gpLCkKLSAgICAgICAgICAgICAgICBBUkNIIDo9ICQoc2F2ZWRfYXJjaCkKLSAgICAgICAgZWxzZQotICAgICAgICAgICAgICAgIEFSQ0ggOj0gJChTVUJBUkNIKQotICAgICAgICBlbmRpZgotZW5kaWYKK0FSQ0gJCT89ICQoU1VCQVJDSCk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b2lkKQoreworCWlmIChtYWNoaW5lX2lzX21pY3JvOSgpKQorCQlfX21pY3JvOV9yZWdpc3Rlcl9mbGFzaCg0KTsKKwllbHNlIGlmIChtYWNoaW5lX2lzX21pY3JvOW0oKSB8fCBtYWNoaW5lX2lzX21pY3JvOXMoKSkKKwkJX19taWNybzlfcmVnaXN0ZXJfZmxhc2gobWljcm85X2RldGVjdF9ib290d2lkdGgoKSk7Cit9CisKKworLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKKyAqIE1pY3JvOSBFdGhlcm5ldAorICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovCitzdGF0aWMgc3RydWN0IGVwOTN4eF9ldGhfZGF0YSBtaWNybzlfZXRoX2RhdGEgPSB7CisJLnBoeV9pZAkJPSAweDFmLAorfTsKKworCitzdGF0aWMgdm9pZCBfX2luaXQgbWljcm85X2luaXRfbWFjaGluZSh2b2lkKQogewogCWVwOTN4eF9pbml0X2RldmljZXMoKTsKLQltaWNybzlfaW5pdCgpOwotCW1pY3JvOWhfaW5pdCgpOworCWVwOTN4eF9yZWdpc3Rlcl9ldGgoJm1pY3JvOV9ldGhfZGF0YSwgMSk7CisJbWljcm85X3JlZ2lzdGVyX2ZsYXNoKCk7CiB9CiAKLU1BQ0hJTkVfU1RBUlQoTUlDUk85LCAiQ29udGVjIEh5cGVyY29udHJvbCBNaWNybzktSCIpCi0JLyogTWFpbnRhaW5lcjogTWFuZnJlZCBHcnViZXIgPG1hbmZyZWQuZ3J1YmVyQGNvbnRlYy5hdD4gKi8KKworI2lmZGVmIENPTkZJR19NQUNIX01JQ1JPOUgKK01BQ0hJTkVfU1RBUlQoTUlDUk85LCAiQ29udGVjIE1pY3JvOS1IaWdoIikKKwkvKiBNYWludGFpbmVyOiBIdWJlcnQgRmV1cnN0ZWluIDxodWJlc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iBhbG9uZyB3aXRoIHRoaXMgcHJvZ3JhbTsgc2VlIHRoZSBmaWxlIENPUFlJTkcuCi0gKiBJZiBub3QsIHdyaXRlIHRvIHRoZSBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb24sCi0gKiA1OSBUZW1wbGUgUGxhY2UgLSBTdWl0ZSAzMzAsIEJvc3RvbiwgTUEgMDIxMTEtMTMwNywgVVNBLgorICogTGljZW5zZWQgdW5kZXIgdGhlIEFESSBCU0QgbGljZW5zZSBvciB0aGUgR1BMLTIgKG9yIGxhdGVyKQogICovCiAKICNpZm5kZWYgX0RFRl9CRjUxOF9ICkBAIC02NDgsNCArNjI0LDMyIEBACiAKICNkZWZpbmUgICAgICAgICAgICAgICAgICAgICAgIFJXUiAgMHgxICAgICAgICAvKiBSZWFkIFdhaXQgUmVxdWVzdCAqLwogCisvKiBCaXQgbWFza3MgZm9yIEVNQUNfUFRQX0NUTCAqLworCisjZGVmaW5lICAgICAgICAgICAgICAgICAgICBQVFBfRU4gIDB4MSAgICAgICAgLyogRW5hYmxlIHRoZSBQVFBfVFNZTkMgbW9kdWxlICovCisjZGVmaW5lICAgICAgICAgICAgICAgICAgICAgICAgVEwgIDB4MiAgICAgICAgLyogVGltZXN0YW1wIGxvY2sgY29udHJvbCAqLworI2RlZmluZSAgICAgICAgICAgICAgICAgICAgICBBU0VOICAweDEwICAgICAgIC8qIEF1eGlsaWFyeSBzbmFwc2hvdCBjb250cm9sICovCisjZGVmaW5lICAgICAgICAgICAgICAgICAgICAgUFBTRU4gIDB4ODAgICAgICAgLyogUHVsc2UtcGVyLXNlY29uZCAoUFBTKSBjb250cm9sICovCisjZGVmaW5lICAgICAgICAgICAgICAgICAgICAgQ0tPRU4gIDB4MjAwMCAgICAgLyogQ2xvY2sgb3V0cHV0IGNvbnRyb2wgKi8KKworLyogQml0IG1hc2tzIGZvciBFTUFDX1BUUF9JRSAqLworCisjZGVmaW5lICAgICAgICAgICAgICAgICAgICAgIEFMSUUgIDB4MSAgICAgICAgLyogQWxhcm0gaW50ZXJydXB0IGVuYWJsZSAqLworI2RlZmluZSAgICAgICAgICAgICAgICAgICAgIFJYRUlFICAweDIgICAgICAgIC8qIFJlY2VpdmUgZXZlbnQgaW50ZXJydXB0IGVuYWJsZSAqLworI2RlZmluZSAgICAgICAgICAgICAgICAgICAgIFJYR0lFICAweDQgICAgICAgIC8qIFJlY2VpdmUgZ2VuZXJhbCBpbnRlcnJ1cHQgZW5hYmxlICovCisjZGVmaW5lICAgICAgICAgICAgICAgICAgICAgIFRYSUUgIDB4OCAgICAgICAgLyogVHJhbnNtaXQgaW50ZXJydXB0IGVuYWJsZSAqLworI2RlZmluZSAgICAgICAgICAgICAgICAgICAgIFJYT1ZFICAweDEwICAgICAgIC8qIFJlY2VpdmUgb3ZlcnJ1biBlcnJvciBpbnRlcnJ1cHQgZW5hYmxlICovCisjZGVmaW5lICAgICAgICAgICAgICAgICAgICAgVFhPVkUgIDB4MjAgICAgICAgLyogVHJhbnNtaXQgb3ZlcnJ1biBlcnJvciBpbnRlcnJ1cHQgZW5hYmxlICovCisjZGVmaW5lICAgICAgICAgICAgICAgICAgICAgIEFTSUUgIDB4NDAgICAgICAgLyogQXV4aWxpYXJ5IHNuYXBzaG90IGludGVycnVwdCBlbmFibGUgKi8KKworLyogQml0IG1hc2tzIGZvciBFTUFDX1BUUF9JU1RBVCAqLworCisjZGVmaW5lICAgICAgICAgICAgICAgICAgICAgICBBTFMgIDB4MSAgICAgICAgLyogQWxhcm0gc3RhdHVzICovCisjZGVmaW5lICAgICAgICAgICAgICAgICAgICAgIFJYRUwgIDB4MiAgICAgICAgLyogUmVjZWl2ZSBldmVudCBpbnRlcnJ1cHQgc3RhdHVzICovCisjZGVmaW5lICAgICAgICAgICAgICAgICAgICAgIFJYR0wgIDB4NCAgICAgICAgLyogUmVjZWl2ZSBnZW5lcmFsIGludGVycnVwdCBzdGF0dXMgKi8KKyNkZWZpbmUgICAgICAgICAgICAgICAgICAgICAgVFhUTCA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GlvbiksIHRoZW4gd2FpdGluZyB1bnRpbCB0aGUgaGVhZAogICogYmVjb21lcyBlcXVhbCB0byB0aGUgdGhlIGluaXRpYWwgdmFsdWUgb2YgdGhlIHRhaWwuCisgKiBUaGUgcGFkIGJpdHMgaW4gdGhlIG1pZGRsZSBhcmUgdXNlZCB0byBwcmV2ZW50IHRoZSBuZXh0X3RpY2tldCBudW1iZXIKKyAqIG92ZXJmbG93aW5nIGludG8gdGhlIG5vd19zZXJ2aW5nIG51bWJlci4KICAqCi0gKiAgIDYzICAgICAgICAgICAgICAgICAgICAgMzIgIDMxICAgICAgICAgICAgICAgICAgICAgIDAKKyAqICAgMzEgICAgICAgICAgICAgMTcgIDE2ICAgIDE1ICAxNCAgICAgICAgICAgICAgICAgICAgMAogICogICstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKwotICogIHwgIG5leHRfdGlja2V0X251bWJlciAgICAgIHwgICAgIG5vd19zZXJ2aW5nICAgICAgICAgfAorICogIHwgIG5vd19zZXJ2aW5nICAgICB8IHBhZGRpbmcgfCAgIG5leHRfdGlja2V0ICAgICAgICAgfAogICogICstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKwogICovCiAKLSNkZWZpbmUgVElDS0VUX1NISUZUCTMyCisjZGVmaW5lIFRJQ0tFVF9TSElGVAkxNworI2RlZmluZSBUSUNLRVRfQklUUwkxNQorI2RlZmluZQlUSUNLRVRfTUFTSwkoKDEgPDwgVElDS0VUX0JJVFMpIC0gMSkKIAogc3RhdGljIF9fYWx3YXlzX2lubGluZSB2b2lkIF9fdGlja2V0X3NwaW5fbG9jayhyYXdfc3BpbmxvY2tfdCAqbG9jaykKIHsKLQlpbnQJKnAgPSAoaW50ICopJmxvY2stPmxvY2ssIHR1cm4sIG5vd19zZXJ2aW5nOworCWludAkqcCA9IChpbnQgKikmbG9jay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CA9IChjaGFyICopX19kZXN0LCAqcyA9IChjaGFyICopX19zcmM7CisjaWZkZWYgQ09ORklHX0tFUk5FTF9HWklQCisjZGVmaW5lIEJPT1RfSEVBUF9TSVpFICAgICAgICAgICAgIDB4MTAwMDAKKyNpbmNsdWRlICIuLi8uLi8uLi8uLi9saWIvZGVjb21wcmVzc19pbmZsYXRlLmMiCisjZW5kaWYKIAotCWZvciAoaT0wO2k8X19uO2krKykgZFtpXSA9IHNbaV07Ci0JcmV0dXJuIF9fZGVzdDsKLX0KKyNpZmRlZiBDT05GSUdfS0VSTkVMX0JaSVAyCisjZGVmaW5lIEJPT1RfSEVBUF9TSVpFICAgICAgICAgICAgIDB4NDAwMDAwCisjaW5jbHVkZSAiLi4vLi4vLi4vLi4vbGliL2RlY29tcHJlc3NfYnVuemlwMi5jIgorI2VuZGlmCiAKLS8qID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotICogRmlsbCB0aGUgaW5wdXQgYnVmZmVyLiBUaGlzIGlzIGNhbGxlZCBvbmx5IHdoZW4gdGhlIGJ1ZmZlciBpcyBlbXB0eQotICogYW5kIGF0IGxlYXN0IG9uZSBieXRlIGlzIHJlYWxseSBuZWVkZWQuCi0gKi8KLXN0YXRpYyBpbnQgZmlsbF9pbmJ1Zih2b2lkKQotewotCWlmIChpbnNpemUgIT0gMCkgewotCQllcnJvcigicmFuIG91dCBvZiBpbnB1dCBkYXRhIik7Ci0JfQotCi0JaW5idWYgPSBpbnB1dF9kYXRhOwotCWluc2l6ZSA9IGlucHV0X2xlbjsKLQlpbnB0ciA9IDE7Ci0JcmV0dXJuIGluYnVmWzBdOwotfQotCi0vKiA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLSAqIFdyaXRlIHRoZSBvdXRwdXQgd2luZG93IHdpbmRvd1swLi5vdX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bm90IHNldAogQ09ORklHX01URF9QQVJUSVRJT05TPXkKLSMgQ09ORklHX01URF9URVNUUyBpcyBub3Qgc2V0CiAjIENPTkZJR19NVERfUkVEQk9PVF9QQVJUUyBpcyBub3Qgc2V0CiBDT05GSUdfTVREX0NNRExJTkVfUEFSVFM9eQogIyBDT05GSUdfTVREX0FSN19QQVJUUyBpcyBub3Qgc2V0CkBAIC0zNzYsOSArNDAwLDkgQEAKICMgVXNlciBNb2R1bGVzIEFuZCBUcmFuc2xhdGlvbiBMYXllcnMKICMKIENPTkZJR19NVERfQ0hBUj15Ci0jIENPTkZJR19NVERfQkxLREVWUyBpcyBub3Qgc2V0Ci0jIENPTkZJR19NVERfQkxPQ0sgaXMgbm90IHNldAotIyBDT05GSUdfTVREX0JMT0NLX1JPIGlzIG5vdCBzZXQKK0NPTkZJR19NVERfQkxLREVWUz1tCitDT05GSUdfTVREX0JMT0NLPW0KK0NPTkZJR19NVERfQkxPQ0tfUk89bQogIyBDT05GSUdfRlRMIGlzIG5vdCBzZXQKICMgQ09ORklHX05GVEwgaXMgbm90IHNldAogIyBDT05GSUdfSU5GVEwgaXMgbm90IHNldApAQCAtNDE0LDE2ICs0MzgsMjAgQEAKICMKICMgTWFwcGluZyBkcml2ZXJzIGZvciBjaGlwIGFjY2VzcwogIwotIyBDT05GSUdfTVREX0NPTVBMRVhfTUFQUElOR1MgaXMgbm90IHNldAorQ09ORklHX01URF9DT01QTEVYX01BUFBJTkdTPXkKIENPTkZJR19NVERfUEhZU01BUD15CiAjIENPTkZJR19NVERfUEhZU01BUF9DT01QQVQgaXMgbm90IHNldAorIyBDT05GSUdfTVREX1BDSSBpcyBub3Qgc2V0CisjIENPTkZJR19NVERfR1BJT19BRERSIGlzIG5vdCBzZXQKICMgQ09ORklHX01URF9JTlRFTF9WUl9OT1IgaXMgbm90IHNldAorQ09ORklHX01URF9SQlRYNDkzOT15CiAjIENPTkZJR19NVERfUExBVFJBTSBpcyBub3Qgc2V0CiAKICMKICMgU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eQogQ09ORklHX0ZXX0xPQURFUj15CkBAIC00MjcsOSArNDM0LDkgQEAKICMgQ09ORklHX0NPTk5FQ1RPUiBpcyBub3Qgc2V0CiBDT05GSUdfTVREPXkKICMgQ09ORklHX01URF9ERUJVRyBpcyBub3Qgc2V0CisjIENPTkZJR19NVERfVEVTVFMgaXMgbm90IHNldAogIyBDT05GSUdfTVREX0NPTkNBVCBpcyBub3Qgc2V0CiBDT05GSUdfTVREX1BBUlRJVElPTlM9eQotIyBDT05GSUdfTVREX1RFU1RTIGlzIG5vdCBzZXQKICMgQ09ORklHX01URF9SRURCT09UX1BBUlRTIGlzIG5vdCBzZXQKIENPTkZJR19NVERfQ01ETElORV9QQVJUUz15CiAjIENPTkZJR19NVERfT0ZfUEFSVFMgaXMgbm90IHNldApAQCAtNDkzLDYgKzUwMCw3IEBACiAjIENPTkZJR19NVERfUE1DNTUxIGlzIG5vdCBzZXQKICMgQ09ORklHX01URF9EQVRBRkxBU0ggaXMgbm90IHNldAogIyBDT05GSUdfTVREX00yNVA4MCBpcyBub3Qgc2V0CisjIENPTkZJR19NVERfU1NUMjVMIGlzIG5vdCBzZXQKICMgQ09ORklHX01URF9TTFJBTSBpcyBub3Qgc2V0CiAjIENPTkZJR19NVERfUEhSQU0gaXMgbm90IHNldAogIyBDT05GSUdfTVREX01URFJBTSBpcyBub3Qgc2V0CkBAIC02MzksNyArNjQ3LDYgQEAKIENPTkZJR19GU0xfUFFfTURJTz15CiAjIENPTkZJR19HSUFORkFSIGlzIG5vdCBzZXQKIENPTkZJR19VQ0NfR0VUSD15Ci0jIENPTkZJR19VR0VUSF9NQUdJQ19QQUNLRVQgaXMgbm90IHNldAogIyBDT05GSUdfVUdFVEhfVFhfT05fREVNQU5EIGlzIG5vdCBzZXQKICMgQ09ORklHX01WNjQzWFhfRVRIIGlzIG5vdCBzZXQKICMgQ09ORklHX1FMQTNYWFggaXMgbm90IHNldApAQCAtNjQ5LDEwICs2NTYsNyBAQAogIyBDT05GSUdfS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DIyLDkgKzQyOSw5IEBACiAjIENPTkZJR19DT05ORUNUT1IgaXMgbm90IHNldAogQ09ORklHX01URD15CiAjIENPTkZJR19NVERfREVCVUcgaXMgbm90IHNldAorIyBDT05GSUdfTVREX1RFU1RTIGlzIG5vdCBzZXQKIENPTkZJR19NVERfQ09OQ0FUPXkKIENPTkZJR19NVERfUEFSVElUSU9OUz15Ci0jIENPTkZJR19NVERfVEVTVFMgaXMgbm90IHNldAogIyBDT05GSUdfTVREX1JFREJPT1RfUEFSVFMgaXMgbm90IHNldAogQ09ORklHX01URF9DTURMSU5FX1BBUlRTPXkKIENPTkZJR19NVERfT0ZfUEFSVFM9eQpAQCAtNjUxLDcgKzY1OCw5IEBACiAjIENPTkZJR19ORVRfUENJIGlzIG5vdCBzZXQKICMgQ09ORklHX0I0NCBpcyBub3Qgc2V0CiAjIENPTkZJR19LUzg4NDIgaXMgbm90IHNldAorIyBDT05GSUdfS1M4ODUxX01MTCBpcyBub3Qgc2V0CiAjIENPTkZJR19BVEwyIGlzIG5vdCBzZXQKKyMgQ09ORklHX1hJTElOWF9FTUFDTElURSBpcyBub3Qgc2V0CiBDT05GSUdfTkVUREVWXzEwMDA9eQogIyBDT05GSUdfQUNFTklDIGlzIG5vdCBzZXQKICMgQ09ORklHX0RMMksgaXMgbm90IHNldApAQCAtNjgxLDEwICs2OTAsNyBAQAogIyBDT05GSUdfSk1FIGlzIG5vdCBzZXQKICMgQ09ORklHX05FVERFVl8xMDAwMCBpcyBub3Qgc2V0CiAjIENPTkZJR19UUiBpcyBub3Qgc2V0Ci0KLSMKLSMgV2lyZWxlc3MgTEFOCi0jCitDT05GSUdfV0xBTj15CiAjIENPTkZJR19XTEFOX1BSRTgwMjExIGlzIG5vdCBzZXQKICMgQ09ORklHX1dMQU5fODAyMTEgaXMgbm90IHNldAogCkBAIC03ODYsNiArNzkyLDcgQEAKIENPTkZJR19ERVZQT1JUPXkKIENPTkZJR19JMkM9eQogQ09ORklHX0kyQ19CT0FSRElOR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VEg9Ii9zYmluL2hvdHBsdWciCisjIENPTkZJR19ERVZUTVBGUyBpcyBub3Qgc2V0CiBDT05GSUdfU1RBTkRBTE9ORT15CiBDT05GSUdfUFJFVkVOVF9GSVJNV0FSRV9CVUlMRD15CiAjIENPTkZJR19GV19MT0FERVIgaXMgbm90IHNldApAQCAtNDIwLDkgKzQyOSw5IEBACiAjIENPTkZJR19DT05ORUNUT1IgaXMgbm90IHNldAogQ09ORklHX01URD15CiAjIENPTkZJR19NVERfREVCVUcgaXMgbm90IHNldAorIyBDT05GSUdfTVREX1RFU1RTIGlzIG5vdCBzZXQKICMgQ09ORklHX01URF9DT05DQVQgaXMgbm90IHNldAogQ09ORklHX01URF9QQVJUSVRJT05TPXkKLSMgQ09ORklHX01URF9URVNUUyBpcyBub3Qgc2V0CiAjIENPTkZJR19NVERfUkVEQk9PVF9QQVJUUyBpcyBub3Qgc2V0CiAjIENPTkZJR19NVERfQ01ETElORV9QQVJUUyBpcyBub3Qgc2V0CiBDT05GSUdfTVREX09GX1BBUlRTPXkKQEAgLTYzMCw3ICs2MzksOSBAQAogIyBDT05GSUdfTkVUX1BDSSBpcyBub3Qgc2V0CiAjIENPTkZJR19CNDQgaXMgbm90IHNldAogIyBDT05GSUdfS1M4ODQyIGlzIG5vdCBzZXQKKyMgQ09ORklHX0tTODg1MV9NTEwgaXMgbm90IHNldAogIyBDT05GSUdfQVRMMiBpcyBub3Qgc2V0CisjIENPTkZJR19YSUxJTlhfRU1BQ0xJVEUgaXMgbm90IHNldAogQ09ORklHX05FVERFVl8xMDAwPXkKICMgQ09ORklHX0FDRU5JQyBpcyBub3Qgc2V0CiAjIENPTkZJR19ETDJLIGlzIG5vdCBzZXQKQEAgLTY3OCwxMCArNjg5LDcgQEAKICMgQ09ORklHX1NGQyBpcyBub3Qgc2V0CiAjIENPTkZJR19CRTJORVQgaXMgbm90IHNldAogIyBDT05GSUdfVFIgaXMgbm90IHNldAotCi0jCi0jIFdpcmVsZXNzIExBTgotIworQ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ORklHX01MWDRfRU4gaXMgbm90IHNldAorIyBDT05GSUdfTUxYNF9DT1JFIGlzIG5vdCBzZXQKKyMgQ09ORklHX1RFSFVUSSBpcyBub3Qgc2V0CisjIENPTkZJR19CTlgyWCBpcyBub3Qgc2V0CisjIENPTkZJR19RTEdFIGlzIG5vdCBzZXQKKyMgQ09ORklHX1NGQyBpcyBub3Qgc2V0CisjIENPTkZJR19CRTJORVQgaXMgbm90IHNldAorQ09ORklHX1RSPXkKK0NPTkZJR19JQk1PTD15CisjIENPTkZJR18zQzM1OSBpcyBub3Qgc2V0CisjIENPTkZJR19UTVMzODBUUiBpcyBub3Qgc2V0CitDT05GSUdfV0xBTj15CisjIENPTkZJR19XTEFOX1BSRTgwMjExIGlzIG5vdCBzZXQKKyMgQ09ORklHX1dMQU5fODAyMTEgaXMgbm90IHNldAorCisjCisjIEVuYWJsZSBXaU1BWCAoTmV0d29ya2luZyBvcHRpb25zKSB0byBzZWUgdGhlIFdpTUFYIGRyaXZlcnMKKyMKKworIworIyBVU0IgTmV0d29yayBBZGFwdGVycworIworIyBDT05GSUdfVVNCX0NBVEMgaXMgbm90IHNldAorIyBDT05GSUdfVVNCX0tBV0VUSCBpcyBub3Qgc2V0CisjIENPTkZJR19VU0JfUEVHQVNVUyBpcyBub3Qgc2V0CisjIENPTkZJR19VU0JfUlRMODE1MCBpcyBub3Qgc2V0CisjIENPTkZJR19VU0JfVVNCTkVUIGlzIG5vdCBzZXQKKyMgQ09ORklHX05FVF9QQ01DSUEgaXMgbm90IHNldAorIyBDT05GSUdfV0FOIGlzIG5vdCBzZXQKKyMgQ09ORklHX0ZEREkgaXMgbm90IHNldAorIyBDT05GSUdfSElQUEkgaXMgbm90IHNldAorQ09ORklHX1BQUD1tCisjIENPTkZJR19QUFBfTVVMVElMSU5LIGlzIG5vdCBzZXQKKyMgQ09ORklHX1BQUF9GSUxURVIgaXMgbm90IHNldAorQ09ORklHX1BQUF9BU1lOQz1tCitDT05GSUdfUFBQX1NZTk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dID0gRmxhc2hST00gd3JpdGUgcHJvdGVjdCAgT04gICAgIDogd3JpdGUgcHJvdGVjdAorICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgT0ZGICAgIDogTm8gd3JpdGUgcHJvdGVjdAorICogRFMyWzJdID0gUk1JSSAvIFRTLCBTQ0lGICAgICAgICAgT04gICAgIDogUk1JSQorICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgT0ZGICAgIDogVFMsIFNDSUYzCisgKiBEUzJbM10gPSBDYW1lcmEgLyBWaWRlbyAgICAgICAgICBPTiAgICAgOiBDYW1lcmEKKyAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE9GRiAgICA6IE5UU0MvUEFMIChJTikKKyAqIERTMls1XSA9IE5UU0NfT1VUIENsb2NrICAgICAgICAgIE9OICAgICA6IE9uIGJvYXJkIE9TQworICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgT0ZGICAgIDogU0g3NzI0IERWX0NMSworICogRFMyWzYtN10gPSBNTUMgLyBTRCAgICAgICAgICAgICAgT04tT0ZGIDogU0QKKyAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE9GRi1PTiA6IE1NQworICovCisKIC8qIEhlYXJ0YmVhdCAqLwogc3RhdGljIHVuc2lnbmVkIGNoYXIgbGVkX3Bvc1tdID0geyAwLCAxLCAyLCAzIH07CiBzdGF0aWMgc3RydWN0IGhlYXJ0YmVhdF9kYXRhIGhlYXJ0YmVhdF9kYXRhID0gewpAQCAtNzAsNyArODUsNyBAQAogCQkubmFtZSA9ICJib290IGxvYWRlciIsCiAJCS5vZmZzZXQgPSAwLAogCQkuc2l6ZSA9ICg1ICogMTAyNCAqIDEwMjQpLAotCQkubWFza19mbGFncyA9IE1URF9DQVBfUk9NLAorCQkubWFza19mbGFncyA9IE1URF9XUklURUFCTEUsICAvKiBmb3JjZSByZWFkLW9ubHkgKi8KIAl9LCB7CiAJCS5uYW1lID0gImZyZWUtYXJlYS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AmJgorCQkgICAgbXNrMiA9PSAoUElDX1VQUEVSIHwgUElDX0xPV0VSKSkKKwkJCXJldHVybiAwOworCQlpZiAoKG1zazIgPT0gUElDX1VQUEVSIHx8IG1zazIgPT0gUElDX0xPV0VSKSAmJgorCQkgICAgbXNrMSA9PSAoUElDX1VQUEVSIHwgUElDX0xPV0VSKSkKKwkJCXJldHVybiAwOworCisJCS8qIElmIHRoZSBldmVudHMgYXJlIGZpeGVkIHRvIGRpZmZlcmVudCBjb3VudGVycywgT0suICAqLworCQlpZiAoKG1zazEgPT0gUElDX1VQUEVSICYmIG1zazIgPT0gUElDX0xPV0VSKSB8fAorCQkgICAgKG1zazEgPT0gUElDX0xPV0VSICYmIG1zazIgPT0gUElDX1VQUEVSKSkKKwkJCXJldHVybiAwOworCisJCS8qIE90aGVyd2lzZSwgdGhlcmUgaXMgYSBjb25mbGljdC4gICovCisJfQorCisJcmV0dXJuIC0xOworfQorCitzdGF0aWMgaW50IGNoZWNrX2V4Y2x1ZGVzKHN0cnVjdCBwZXJmX2V2ZW50ICoqZXZ0cywgaW50IG5fcHJldiwgaW50IG5fbmV3KQoreworCWludCBldSA9IDAsIGVrID0gMCwgZWggPSAwOworCXN0cnVjdCBwZXJmX2V2ZW50ICpldmVudDsKKwlpbnQgaSwgbiwgZmlyc3Q7CisKKwluID0gbl9wcmV2ICsgbl9uZXc7CisJaWYgKG4gPD0gMSkKKwkJcmV0dXJuIDA7CisKKwlmaXJzdCA9IDE7CisJZm9yIChpID0gMDsgaSA8IG47IGkrKykgeworCQlldmVudCA9IGV2dHNbaV07CisJCWlmIChmaXJzdCkgeworCQkJZXUgPSBldmVudC0+YXR0ci5leGNsdWRlX3VzZXI7CisJCQllayA9IGV2ZW50LT5hdHRyLmV4Y2x1ZGVfa2VybmVsOworCQkJZWggPSBldmVudC0+YXR0ci5leGNsdWRlX2h2OworCQkJZmlyc3QgPSAwOworCQl9IGVsc2UgaWYgKGV2ZW50LT5hdHRyLmV4Y2x1ZGVf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NTRfVkNSVENfSURYX01BU1RFUiAgICAgICAgICAgICAgICAgICAgMHg4MEZGRkZGRgorI2RlZmluZSBSXzAwMDE0OF9NQ19GQl9MT0NBVElPTiAgICAgICAgICAgICAgICAgICAgICAweDAwMDE0OAorI2RlZmluZSAgIFNfMDAwMTQ4X01DX0ZCX1NUQVJUKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHhGRkZGKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwMTQ4X01DX0ZCX1NUQVJUKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHhGRkZGKQorI2RlZmluZSAgIENfMDAwMTQ4X01DX0ZCX1NUQVJUICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRjAwMDAKKyNkZWZpbmUgICBTXzAwMDE0OF9NQ19GQl9UT1AoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4RkZGRikgPDwgMTYpCisjZGVmaW5lICAgR18wMDAxNDhfTUNfRkJfVE9QKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTYpICYgMHhGRkZGKQorI2RlZmluZSAgIENfMDAwMTQ4X01DX0ZCX1RPUCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMEZGRkYKKyNkZWZpbmUgUl8wMDAxNENfTUNfQUdQX0xPQ0FUSU9OICAgICAgICAgICAgICAgICAgICAgMHgwMDAxNEMKKyNkZWZpbmUgICBTXzAwMDE0Q19NQ19BR1BfU1RBUlQoeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4RkZGRikgPDwgMCkKKyNkZWZpbmUgICBHXzAwMDE0Q19NQ19BR1BfU1RBUlQoeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAwKSAmIDB4RkZGRikKKyNkZWZpbmUgICBDXzAwMDE0Q19NQ19BR1BfU1RBUlQgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkYwMDAwCisjZGVmaW5lICAgU18wMDAxNENfTUNfQUdQX1RPUCh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweEZGRkYpIDw8IDE2KQorI2RlZmluZSAgIEdfMDAwMTRDX01DX0FHUF9UT1AoeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDE2KSAmIDB4RkZGRikKKyNkZWZpbmUgICBDXzAwMDE0Q19NQ19BR1BfVE9QICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDBGRkZGCisjZGVmaW5lIFJfMDAwMTcwX0FHUF9CQVNFICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTcwCisjZGVmaW5lICAgU18wMDAxNzBfQUdQX0JBU0VfQUREUih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweEZGRkZGRkZGKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwMTcwX0FHUF9CQVNFX0FERFIoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHhGRkZGRkZGRikKKyNkZWZpbmUgICBDXzAwMDE3MF9BR1BfQkFTRV9BRERSICAgICAgICAgICAgICAgICAgICAgICAweDAwMDAwMDAwCiAjZGVmaW5lIFJfMDAwMjNDX0RJU1BMQVlfQkFTRV9BRERSICAgICAgICAgICAgICAgICAgIDB4MDAwMjNDCiAjZGVmaW5lICAgU18wMDAyM0NfRElTUExBWV9CQVNFX0FERFIoeCkgICAgICAgICAgICAgICAgKCgoeCkgJiAweEZGRkZGRkZGKSA8PCAwKQogI2RlZmluZSAgIEdfMDAwMjNDX0RJU1BMQVlfQkFTRV9BRERSKHgpICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHhGRkZGRkZGRikKQEAgLTQwMywyNSArNDIxLDI1IEBACiAjZGVmaW5lICAgU18wMDAzNjBfQ1VSMl9MT0NLKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDMxKQogI2RlZmluZSAgIEdfMDAwMzYwX0NVUjJfTE9DSyh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDMxKSAmIDB4MSkKICNkZWZpbmUgICBDXzAwMDM2MF9DVVIyX0xPQ0sgICAgICAgICAgICAgICAgICAgICAgICAgICAweDdGRkZGRkZGCi0jZGVmaW5lIFJfMDAwM0MwX0dFTk1PX1dUICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwM0MwCi0jZGVmaW5lICAgU18wMDAzQzBfR0VOTU9fTU9OT19BRERSRVNTX0IoeCkgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDApCi0jZGVmaW5lICAgR18wMDAzQzBfR0VOTU9fTU9OT19BRERSRVNTX0IoeCkgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweDEpCi0jZGVmaW5lICAgQ18wMDAzQzBfR0VOTU9fTU9OT19BRERSRVNTX0IgICAgICAgICAgICAgICAgMHhGRkZGRkZGRQotI2RlZmluZSAgIFNfMDAwM0MwX1ZHQV9SQU1fRU4oeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxKQotI2RlZmluZSAgIEdfMDAwM0MwX1ZHQV9SQU1fRU4oeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDEpICYgMHgxKQotI2RlZmluZSAgIENfMDAwM0MwX1ZHQV9SQU1fRU4gICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGRkQKLSNkZWZpbmUgICBTXzAwMDNDMF9WR0FfQ0tTRUwoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MykgPDwgMikKLSNkZWZpbmUgICBHXzAwMDNDMF9WR0FfQ0tTRUwoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyKSAmIDB4MykKLSNkZWZpbmUgICBDXzAwMDNDMF9WR0FfQ0tTRUwgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkYzCi0jZGVmaW5lICAgU18wMDAzQzBfT0REX0VWRU5fTURfUEdTRUwoeCkgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDUpCi0jZGVmaW5lICAgR18wMDAzQzBfT0REX0VWRU5fTURfUEdTRUwoeCkgICAgICAgICAgICAgICAgKCgoeCkgPj4gNSkgJiAweDEpCi0jZGVmaW5lICAgQ18wMDAzQzBfT0REX0VWRU5fTURfUEdTRUwgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZERgotI2RlZmluZSAgIFNfMDAwM0MwX1ZHQV9IU1lOQ19QT0woeCkgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCA2KQotI2RlZmluZSAgIEdfMDAwM0MwX1ZHQV9IU1lOQ19QT0woeCkgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDYpICYgMHgxKQotI2RlZmluZSAgIENfMDAwM0MwX1ZHQV9IU1lOQ19QT0wgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGQkYKLSNkZWZpbmUgICBTXzAwMDNDMF9WR0FfVlNZTkNfUE9MKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgNykKLSNkZWZpbmUgICBHXzAwMDNDMF9WR0FfVlNZTkNfUE9MKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiA3KSAmIDB4MSkKLSNkZWZpbmUgICBDXzAwMDNDMF9WR0FfVlNZTkNfUE9MICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRjdGCisjZGVmaW5lIFJfMDAwM0MyX0dFTk1PX1dUICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwM0MwCisjZGVmaW5lICAgU18wMDAzQzJfR0VOTU9fTU9OT19BRERSRVNTX0IoeCkgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDApCisjZGVmaW5lICAgR18wMDAzQzJfR0VOTU9fTU9OT19BRERSRVNTX0IoeCkgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAzQzJfR0VOTU9fTU9OT19BRERSRVNTX0IgICAgICAgICAgICAgICAgMHhGRQorI2RlZmluZSAgIFNfMDAwM0MyX1ZHQV9SQU1fRU4oeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxKQorI2RlZmluZSAgIEdfMDAwM0MyX1ZHQV9SQU1fRU4oeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwM0MyX1ZHQV9SQU1fRU4gICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkQKKyNkZWZpbmUgICBTXzAwMDNDMl9WR0FfQ0tTRUwoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MykgPDwgMikKKyNkZWZpbmUgICBHXzAwMDNDMl9WR0FfQ0tTRUwoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyKSAmIDB4MykKKyNkZWZpbmUgICBDXzAwMDNDMl9WR0FfQ0tTRUwgICAgICAgICAgICAgICAgICAgICAgICAgICAweEYzCisjZGVmaW5lICAgU18wMDAzQzJfT0REX0VWRU5fTURfUEdTRUwoeCkgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDUpCisjZGVmaW5lICAgR18wMDAzQzJfT0REX0VWRU5fTURfUEdTRUwoeCkgICAgICAgICAgICAgICAgKCgoeCkgPj4gNSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAzQzJfT0REX0VWRU5fTURfUEdTRUwgICAgICAgICAgICAgICAgICAgMHhERgorI2RlZmluZSAgIFNfMDAwM0MyX1ZHQV9IU1lOQ19QT0woeCkgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCA2KQorI2RlZmluZSAgIEdfMDAwM0MyX1ZHQV9IU1lOQ19QT0woeCkgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDYpICYgMHgxKQorI2RlZmluZSAgIENfMDAwM0MyX1ZHQV9IU1lOQ19QT0wgICAgICAgICAgICAgICAgICAgICAgIDB4QkYKKyNkZWZpbmUgICBTXzAwMDNDMl9WR0FfVlNZTkNfUE9MKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgNykKKyNkZWZpbmUgICBHXzAwMDNDMl9WR0FfVlNZTkNfUE9MKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiA3KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDNDMl9WR0FfVlNZTkNfUE9MICAgICAgICAgICAgICAgICAgICAgICAweDdGCiAjZGVmaW5lIFJfMDAwM0Y4X0NSVEMyX0dFTl9DTlRMICAgICAgICAgICAgICAgICAgICAgIDB4MDAwM0Y4CiAjZGVmaW5lICAgU18wMDAzRjhfQ1JUQzJfREJMX1NDQU5fRU4oeCkgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDApCiAjZGVmaW5lICAgR18wMDAzRjhfQ1JUQzJfREJMX1NDQU5fRU4oeCkgICAgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweDEpCkBAIC01NDUsNiArNTYzLDQ2IEBACiAjZGVmaW5lICAgU18wMDA3NzRfU0NSQVRDSF9BRERSKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDdGRkZGRkYpIDw8IDUpCiAjZGVmaW5lICAgR18wMDA3NzRfU0NSQVRDSF9BRERSKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gNSkgJiAweDdGRkZGRkYpCiAjZGVmaW5lICAgQ18wMDA3NzRfU0NSQVRDSF9BRERSICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwMDAxRgorI2RlZmluZSBSXzAwMDdDMF9DUF9TVEFUICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDdDMAorI2RlZmluZSAgIFNfMDAwN0MwX01SVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwN0MwX01SVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX01SVV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGRkUKKyNkZWZpbmUgICBTXzAwMDdDMF9NV1VfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMSkKKyNkZWZpbmUgICBHXzAwMDdDMF9NV1VfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9NV1VfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkZECisjZGVmaW5lICAgU18wMDA3QzBfUlNJVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIpCisjZGVmaW5lICAgR18wMDA3QzBfUlNJVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMikgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfUlNJVV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZGQgorI2RlZmluZSAgIFNfMDAwN0MwX1JDSVVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAzKQorI2RlZmluZSAgIEdfMDAwN0MwX1JDSVVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDMpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX1JDSVVfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGRjcKKyNkZWZpbmUgICBTXzAwMDdDMF9DU0ZfUFJJTUFSWV9CVVNZKHgpICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgOSkKKyNkZWZpbmUgICBHXzAwMDdDMF9DU0ZfUFJJTUFSWV9CVVNZKHgpICAgICAgICAgICAgICAgICAoKCh4KSA+PiA5KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU0ZfUFJJTUFSWV9CVVNZICAgICAgICAgICAgICAgICAgICAweEZGRkZGREZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NGX0lORElSRUNUX0JVU1koeCkgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEwKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTRl9JTkRJUkVDVF9CVVNZKHgpICAgICAgICAgICAgICAgICgoKHgpID4+IDEwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU0ZfSU5ESVJFQ1RfQlVTWSAgICAgICAgICAgICAgICAgICAweEZGRkZGQkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NRX1BSSU1BUllfQlVTWSh4KSAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDExKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTUV9QUklNQVJZX0JVU1koeCkgICAgICAgICAgICAgICAgICgoKHgpID4+IDExKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU1FfUFJJTUFSWV9CVVNZICAgICAgICAgICAgICAgICAgICAweEZGRkZGN0ZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NRX0lORElSRUNUX0JVU1koeCkgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEyKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTUV9JTkRJUkVDVF9CVVNZKHgpICAgICAgICAgICAgICAgICgoKHgpID4+IDEyKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU1FfSU5ESVJFQ1RfQlVTWSAgICAgICAgICAgICAgICAgICAweEZGRkZFRkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NJX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEzKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTSV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDEzKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU0lfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZERkZGCisjZGVmaW5lICAgU18wMDA3QzBfR1VJRE1BX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDI4KQorI2RlZmluZSAgIEdfMDAwN0MwX0dVSURNQV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDI4KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9HVUlETUFfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAweEVGRkZGRkZGCisjZGVmaW5lICAgU18wMDA3QzBfVklERE1BX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDI5KQorI2RlZmluZSAgIEdfMDAwN0MwX1ZJRERNQV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDI5KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9WSURETUFfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAweERGRkZGRkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ01EU1RSTV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDMwKQorI2RlZmluZSAgIEdfMDAwN0MwX0NNRFNUUk1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDMwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DTURTVFJNX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAweEJGRkZGRkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1BfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDMxKQorI2RlZmluZSAgIEdfMDAwN0MwX0NQX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDMxKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DUF9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDdGRkZGRkZGCiAjZGVmaW5lIFJfMDAwRTQwX1JCQk1fU1RBVFVTICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwRTQwCiAjZGVmaW5lICAgU18wMDBFNDBfQ01ERklGT19BVkFJTCh4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDdGKSA8PCAwKQogI2RlZmluZSAgIEdfMDAwRTQwX0NNREZJRk9fQVZBSUwoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHg3RikKQEAgLTYwNCw0ICs2NjIsNTMgQEAKICNkZWZpbmUgICBHXzAwMEU0MF9HVUlfQUNUSVZFKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAzMSkgJiAweDEpCiAjZGVmaW5lICAgQ18wMDBFNDBfR1VJX0FDVElWRSAgICAgICAgICAgICAgICAgICAgICAgICAgMHg3RkZGRkZGRgogCisKKyNkZWZpbmUgUl8wMDAwMERfU0NMS19DTlRMICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwMEQKKyNkZWZpbmUgICBTXzAwMDAwRF9TQ0xLX1NSQ19TRUwoeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4NykgPDwgMCkKKyNkZWZpbmUgICBHXzAwMDAwRF9TQ0xLX1NSQ19TRUwoeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAwKSAmIDB4NykKKyNkZWZpbmUgICBDXzAwMDAwRF9TQ0xLX1NSQ19TRUwgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkY4CisjZGVmaW5lICAgU18wMDAwMERfVENMS19TUkNfU0VMKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDcpIDw8IDgpCisjZGVmaW5lICAgR18wMDAwMERfVENMS19TUkNfU0VMKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gOCkgJiAweDcpCisjZGVmaW5lICAgQ18wMDAwMERfVENMS19TUkNfU0VMICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRjhGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX0NQKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxNikKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9DUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxNikgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfQ1AgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZFRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX0hEUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxNykKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9IRFAoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxNykgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfSERQICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZERkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX0RJU1AoeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxOCkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9ESVNQKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxOCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfRElTUCAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZCRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1RPUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxOSkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9UT1AoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxOSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVE9QICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkY3RkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX0UyKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMCkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9FMih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfRTIgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkVGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1NFKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMSkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9TRSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfU0UgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkRGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX0lEQ1QoeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMikKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9JRENUKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMikgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfSURDVCAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkJGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1ZJUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMykKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9WSVAoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMykgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVklQICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRjdGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1JFKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNCkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9SRSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfUkUgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRUZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1BCKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNSkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9QQih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfUEIgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGREZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1RBTSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNikKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9UQU0oeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNikgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVEFNICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGQkZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUk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RlZmluZSAgIEdfMDAwN0MwX01SVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX01SVV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGRkUKKyNkZWZpbmUgICBTXzAwMDdDMF9NV1VfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMSkKKyNkZWZpbmUgICBHXzAwMDdDMF9NV1VfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9NV1VfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkZECisjZGVmaW5lICAgU18wMDA3QzBfUlNJVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIpCisjZGVmaW5lICAgR18wMDA3QzBfUlNJVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMikgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfUlNJVV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZGQgorI2RlZmluZSAgIFNfMDAwN0MwX1JDSVVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAzKQorI2RlZmluZSAgIEdfMDAwN0MwX1JDSVVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDMpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX1JDSVVfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGRjcKKyNkZWZpbmUgICBTXzAwMDdDMF9DU0ZfUFJJTUFSWV9CVVNZKHgpICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgOSkKKyNkZWZpbmUgICBHXzAwMDdDMF9DU0ZfUFJJTUFSWV9CVVNZKHgpICAgICAgICAgICAgICAgICAoKCh4KSA+PiA5KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU0ZfUFJJTUFSWV9CVVNZICAgICAgICAgICAgICAgICAgICAweEZGRkZGREZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NGX0lORElSRUNUX0JVU1koeCkgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEwKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTRl9JTkRJUkVDVF9CVVNZKHgpICAgICAgICAgICAgICAgICgoKHgpID4+IDEwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU0ZfSU5ESVJFQ1RfQlVTWSAgICAgICAgICAgICAgICAgICAweEZGRkZGQkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NRX1BSSU1BUllfQlVTWSh4KSAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDExKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTUV9QUklNQVJZX0JVU1koeCkgICAgICAgICAgICAgICAgICgoKHgpID4+IDExKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU1FfUFJJTUFSWV9CVVNZICAgICAgICAgICAgICAgICAgICAweEZGRkZGN0ZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NRX0lORElSRUNUX0JVU1koeCkgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEyKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTUV9JTkRJUkVDVF9CVVNZKHgpICAgICAgICAgICAgICAgICgoKHgpID4+IDEyKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU1FfSU5ESVJFQ1RfQlVTWSAgICAgICAgICAgICAgICAgICAweEZGRkZFRkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NJX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEzKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTSV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDEzKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU0lfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZERkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NGX0lORElSRUNUMl9CVVNZKHgpICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE0KQorI2RlZmluZSAgIEdfMDAwN0MwX0NTRl9JTkRJUkVDVDJfQlVTWSh4KSAgICAgICAgICAgICAgICgoKHgpID4+IDE0KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU0ZfSU5ESVJFQ1QyX0JVU1kgICAgICAgICAgICAgICAgICAweEZGRkZCRkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NRX0lORElSRUNUMl9CVVNZKHgpICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE1KQorI2RlZmluZSAgIEdfMDAwN0MwX0NTUV9JTkRJUkVDVDJfQlVTWSh4KSAgICAgICAgICAgICAgICgoKHgpID4+IDE1KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU1FfSU5ESVJFQ1QyX0JVU1kgICAgICAgICAgICAgICAgICAweEZGRkY3RkZGCisjZGVmaW5lICAgU18wMDA3QzBfR1VJRE1BX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDI4KQorI2RlZmluZSAgIEdfMDAwN0MwX0dVSURNQV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDI4KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9HVUlETUFfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAweEVGRkZGRkZGCisjZGVmaW5lICAgU18wMDA3QzBfVklERE1BX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDI5KQorI2RlZmluZSAgIEdfMDAwN0MwX1ZJRERNQV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDI5KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9WSURETUFfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAweERGRkZGRkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ01EU1RSTV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDMwKQorI2RlZmluZSAgIEdfMDAwN0MwX0NNRFNUUk1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDMwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DTURTVFJNX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAweEJGRkZGRkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1BfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDMxKQorI2RlZmluZSAgIEdfMDAwN0MwX0NQX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDMxKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DUF9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDdGRkZGRkZGCisjZGVmaW5lIFJfMDAwRTQwX1JCQk1fU1RBVFVTICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwRTQwCisjZGVmaW5lICAgU18wMDBFNDBfQ01ERklGT19BVkFJTCh4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDdGKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwRTQwX0NNREZJRk9fQVZBSUwoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHg3RikKKyNkZWZpbmUgICBDXzAwMEU0MF9DTURGSUZPX0FWQUlMICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRjgwCisjZGVmaW5lICAgU18wMDBFNDBfSElSUV9PTl9SQkIoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDgpCisjZGVmaW5lICAgR18wMDBFNDBfSElSUV9PTl9SQkIoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gOCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfSElSUV9PTl9SQkIgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkVGRgorI2RlZmluZSAgIFNfMDAwRTQwX0NQUlFfT05fUkJCKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCA5KQorI2RlZmluZSAgIEdfMDAwRTQwX0NQUlFfT05fUkJCKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NQUlFfT05fUkJCICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZERkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DRlJRX09OX1JCQih4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTApCisjZGVmaW5lICAgR18wMDBFNDBfQ0ZSUV9PTl9SQkIoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTApICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NGUlFfT05fUkJCICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZCRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9ISVJRX0lOX1JUQlVGKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTEpCisjZGVmaW5lICAgR18wMDBFNDBfSElSUV9JTl9SVEJVRih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0hJUlFfSU5fUlRCVUYgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkY3RkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DUFJRX0lOX1JUQlVGKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTIpCisjZGVmaW5lICAgR18wMDBFNDBfQ1BSUV9JTl9SVEJVRih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTIpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NQUlFfSU5fUlRCVUYgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkVGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DRlJRX0lOX1JUQlVGKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTMpCisjZGVmaW5lICAgR18wMDBFNDBfQ0ZSUV9JTl9SVEJVRih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTMpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NGUlFfSU5fUlRCVUYgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkRGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DRl9QSVBFX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTQpCisjZGVmaW5lICAgR18wMDBFNDBfQ0ZfUElQRV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTQpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NGX1BJUEVfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkJGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9FTkdfRVZfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTUpCisjZGVmaW5lICAgR18wMDBFNDBfRU5HX0VWX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTUpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0VOR19FVl9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRjdGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DUF9DTURTVFJNX0JVU1koeCkgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTYpCisjZGVmaW5lICAgR18wMDBFNDBfQ1BfQ01EU1RSTV9CVVNZKHgpICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTYpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NQX0NNRFNUUk1fQlVTWSAgICAgICAgICAgICAgICAgICAgIDB4RkZGRUZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9FMl9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTcpCisjZGVmaW5lICAgR18wMDBFNDBfRTJfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0UyX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGREZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9SQjJEX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTgpCisjZGVmaW5lICAgR18wMDBFNDBfUkIyRF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTgpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1JCMkRfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGQkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9SQjNEX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTkpCisjZGVmaW5lICAgR18wMDBFNDBfUkIzRF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1JCM0RfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGN0ZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9WQVBfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjApCisjZGVmaW5lICAgR18wMDBFNDBfVkFQX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjApICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1ZBUF9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZFRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9SRV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjEpCisjZGVmaW5lICAgR18wMDBFNDBfUkVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1JFX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZERkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9UQU1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjIpCisjZGVmaW5lICAgR18wMDBFNDBfVEFNX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjIpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1RBTV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZCRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9URE1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjMpCisjZGVmaW5lICAgR18wMDBFNDBfVERNX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjMpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1RETV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkY3RkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9QQl9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjQpCisjZGVmaW5lICAgR18wMDBFNDBfUEJfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjQpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1BCX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkVGRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9USU1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjUpCisjZGVmaW5lICAgR18wMDBFNDBfVElNX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjUpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1RJTV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkRGRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9HQV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjYpCisjZGVmaW5lICAgR18wMDBFNDBfR0FfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjYpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0dBX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkJGRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DQkEyRF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjcpCisjZGVmaW5lICAgR18wMDBFNDBfQ0JBMkRfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NCQTJEX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RjdGRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9HVUlfQUNUSVZFKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMzEpCisjZGVmaW5lICAgR18wMDBFNDBfR1VJX0FDVElWRSh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMzEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0dVSV9BQ1RJVkUgICAgICAgICAgICAgICAgICAgICAgICAgIDB4N0ZGRkZGRkYKIAogCisjZGVmaW5lIFJfMDAwMDBEX1NDTEtfQ05UTCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMDBECisjZGVmaW5lICAgU18wMDAwMERfU0NMS19TUkNfU0VMKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDcpIDw8IDApCisjZGVmaW5lICAgR18wMDAwMERfU0NMS19TUkNfU0VMKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweDcpCisjZGVmaW5lICAgQ18wMDAwMERfU0NMS19TUkNfU0VMICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZGOAorI2RlZmluZSAgIFNfMDAwMDBEX0NQX01BWF9EWU5fU1RPUF9MQVQoeCkgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAzKQorI2RlZmluZSAgIEdfMDAwMDBEX0NQX01BWF9EWU5fU1RPUF9MQVQoeCkgICAgICAgICAgICAgICgoKHgpID4+IDMpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0NQX01BWF9EWU5fU1RPUF9MQVQgICAgICAgICAgICAgICAgIDB4RkZGRkZGRjcKKyNkZWZpbmUgICBTXzAwMDAwRF9IRFBfTUFYX0RZTl9TVE9QX0xBVCh4KSAgICAgICAgICAgICAo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RJU1AyICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRjdGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9DUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTYpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfQ1AoeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTYpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX0NQICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRUZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9IRFAoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTcpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfSERQKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX0hEUCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGREZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9ESVNQMSh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTgpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfRElTUDEoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTgpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX0RJU1AxICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGQkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9UT1AoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTkpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfVE9QKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX1RPUCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGN0ZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9FMih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjApCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfRTIoeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjApICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX0UyICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZFRkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9TRSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjEpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfU0UoeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX1NFICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZERkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9JRENUKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjIpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfSURDVCh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjIpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX0lEQ1QgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZCRkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9WSVAoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjMpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfVklQKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjMpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX1ZJUCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkY3RkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9SRSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjQpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfUkUoeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjQpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX1JFICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkVGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9QQih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjUpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfUEIoeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjUpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX1BCICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkRGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9UQU0oeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjYpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfVEFNKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjYpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX1RBTSAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkJGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9URE0oeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjcpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfVERNKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX1RETSAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RjdGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9SQih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjgpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfUkIoeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjgpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX1JCICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RUZGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9UVl9TQ0xLKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjkpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfVFZfU0NMSyh4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX1RWX1NDTEsgICAgICAgICAgICAgICAgICAgICAgIDB4REZGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9TVUJQSUMoeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMzApCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfU1VCUElDKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMzApICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX0ZPUkNFX1NVQlBJQyAgICAgICAgICAgICAgICAgICAgICAgIDB4QkZGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDAwRF9GT1JDRV9PVjAoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMzEpCisjZGVmaW5lICAgR18wMDAwMERfRk9SQ0VfT1YwKHgpICAgICAgICAgICAgIC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IwKSAmIDB4MSkKICNkZWZpbmUgICBDXzAwMDAwRF9GT1JDRV9FMiAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRUZGRkZGCi0jZGVmaW5lICAgU18wMDAwMERfRk9SQ0VfU0UoeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIxKQotI2RlZmluZSAgIEdfMDAwMDBEX0ZPUkNFX1NFKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDIxKSAmIDB4MSkKLSNkZWZpbmUgICBDXzAwMDAwRF9GT1JDRV9TRSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGREZGRkZGCisjZGVmaW5lICAgU18wMDAwMERfRk9SQ0VfVkFQKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIxKQorI2RlZmluZSAgIEdfMDAwMDBEX0ZPUkNFX1ZBUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDIxKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDAwRF9GT1JDRV9WQVAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGREZGRkZGCiAjZGVmaW5lICAgU18wMDAwMERfRk9SQ0VfSURDVCh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIyKQogI2RlZmluZSAgIEdfMDAwMDBEX0ZPUkNFX0lEQ1QoeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDIyKSAmIDB4MSkKICNkZWZpbmUgICBDXzAwMDAwRF9GT1JDRV9JRENUICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGQkZGRkZGCkBAIC0yMjQsMjQgKzIyNCwyNCBAQAogI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1JFKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNCkKICNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9SRSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNCkgJiAweDEpCiAjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfUkUgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRUZGRkZGRgotI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1BCKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNSkKLSNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9QQih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNSkgJiAweDEpCi0jZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfUEIgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGREZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1NSKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNSkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9TUih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfU1IgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGREZGRkZGRgogI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1BYKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNikKICNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9QWCh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNikgJiAweDEpCiAjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfUFggICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGQkZGRkZGRgogI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1RYKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNykKICNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9UWCh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNykgJiAweDEpCiAjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVFggICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGN0ZGRkZGRgotI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1JCKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyOCkKLSNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9SQih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyOCkgJiAweDEpCi0jZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfUkIgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhFRkZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1VTKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyOCkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9VUyh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyOCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVVMgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhFRkZGRkZGRgogI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1RWX1NDTEsoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyOSkKICNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9UVl9TQ0xLKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyOSkgJiAweDEpCiAjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVFZfU0NMSyAgICAgICAgICAgICAgICAgICAgICAgMHhERkZGRkZGRgotI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1NVQlBJQyh4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAzMCkKLSNkZW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gICAgICAgICAgICAgICAoMSA8PCAyMCkKICMgICAgICAgZGVmaW5lIEFWSVZPX0QxR1JQSF9NQUNST19BRERSRVNTX01PREUgICAgICAgICAgICAgICAgICAoMSA8PCAyMSkKIAorLyogVGhlIFI3eHggKl9ISUdIIHN1cmZhY2UgcmVncyBhcmUgYmFja3dhcmRzOyB0aGUgRDEgcmVncyBhcmUgaW4gdGhlIEQyCisgKiBibG9jayBhbmQgdmljZSB2ZXJzYS4gIFRoaXMgYXBwbGllcyB0byBHUlBILCBDVVIsIGV0Yy4KKyAqLwogI2RlZmluZSBBVklWT19EMUdSUEhfTFVUX1NFTCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4NjEwOAogI2RlZmluZSBBVklWT19EMUdSUEhfUFJJTUFSWV9TVVJGQUNFX0FERFJFU1MgICAgICAgICAgICAgICAgICAgIDB4NjExMAorI2RlZmluZSBSNzAwX0QxR1JQSF9QUklNQVJZX1NVUkZBQ0VfQUREUkVTU19ISUdIICAgICAgICAgICAgICAgIDB4NjkxNAorI2RlZmluZSBSNzAwX0QyR1JQSF9QUklNQVJZX1NVUkZBQ0VfQUREUkVTU19ISUdIICAgICAgICAgICAgICAgIDB4NjExNAogI2RlZmluZSBBVklWT19EMUdSUEhfU0VDT05EQVJZX1NVUkZBQ0VfQUREUkVTUyAgICAgICAgICAgICAgICAgIDB4NjExOAorI2RlZmluZSBSNzAwX0QxR1JQSF9TRUNPTkRBUllfU1VSRkFDRV9BRERSRVNTX0hJR0ggICAgICAgICAgICAgIDB4NjkxYworI2RlZmluZSBSNzAwX0QyR1JQSF9TRUNPTkRBUllfU1VSRkFDRV9BRERSRVNTX0hJR0ggICAgICAgICAgICAgIDB4NjExYwogI2RlZmluZSBBVklWT19EMUdSUEhfUElUQ0ggICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4NjEyMAogI2RlZmluZSBBVklWT19EMUdSUEhfU1VSRkFDRV9PRkZTRVRfWCAgICAgICAgICA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TRQkJCQkJMHgyODAwQworI2RlZmluZQlEQl9IVElMRV9EQVRBX0JBU0UJCQkJMHgyODAxNAogI2RlZmluZQlEQl9XQVRFUk1BUktTCQkJCQkweDk4MzgKICNkZWZpbmUJCURFUFRIX0ZSRUUoeCkJCQkJCSgoeCkgPDwgMCkKICNkZWZpbmUJCURFUFRIX0ZMVVNIKHgpCQkJCQkoKHgpIDw8IDUpCkBAIC0xNzEsNiArMTcyLDE0IEBACiAjZGVmaW5lIFNRX1NUQUNLX1JFU09VUkNFX01HTVRfMiAgICAgICAgICAgICAgICAgICAgICAgICAgMHg4YzE0CiAjICAgICAgIGRlZmluZSBOVU1fR1NfU1RBQ0tfRU5UUklFUyh4KSAgICAgICAgICAgICAgICAgICAgKCh4KSA8PCAwKQogIyAgICAgICBkZWZpbmUgTlVNX0VTX1NUQUNLX0VOVFJJRVMoeCkgICAgICAgICAgICAgICAgICAgICgoeCkgPDwgMTYpCisjZGVmaW5lIFNRX0VTR1NfUklOR19CQVNFICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4OGM0MAorI2RlZmluZSBTUV9HU1ZTX1JJTkdfQkFTRSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDhjNDgKKyNkZWZpbmUgU1FfRVNUTVBfUklOR19CQVNFICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHg4YzUwCisjZGVmaW5lIFNRX0dTVE1QX1JJTkdfQkFTRSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4OGM1OAorI2RlZmluZSBTUV9WU1RNUF9SSU5HX0JBU0UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDhjNjAKKyNkZWZpbmUgU1FfUFNUTVBfUklOR19CQVNFICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHg4YzY4CisjZGVmaW5lIFNRX0ZCVUZfUklOR19CQVNFICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4OGM3MAorI2RlZmluZSBTUV9SRURVQ19SSU5HX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bWVtb3J5IGNvbnRyb2xsZXIgKGFsc28gdGVzdCBBR1ApICovCisJciA9IHJzNDAwX21jX2luaXQocmRldik7CisJaWYgKHIpCisJCXJldHVybiByOworCS8qIEZlbmNlIGRyaXZlciAqLworCXIgPSByYWRlb25fZmVuY2VfZHJpdmVyX2luaXQocmRldik7CisJaWYgKHIpCisJCXJldHVybiByOworCXIgPSByYWRlb25faXJxX2ttc19pbml0KHJkZXYpOworCWlmIChyKQorCQlyZXR1cm4gcjsKKwkvKiBNZW1vcnkgbWFuYWdlciAqLworCXIgPSByYWRlb25fb2JqZWN0X2luaXQocmRldik7CisJaWYgKHIpCisJCXJldHVybiByOworCXIgPSByczQwMF9nYXJ0X2luaXQocmRldik7CisJaWYgKHIpCisJCXJldHVybiByOworCXIzMDBfc2V0X3JlZ19zYWZlKHJkZXYpOworCXJkZXYtPmFjY2VsX3dvcmtpbmcgPSB0cnVlOworCXIgPSByczQwMF9zdGFydHVwKHJkZXYpOworCWlmIChyKSB7CisJCS8qIFNvbWV0aGluZ3Mgd2FudCB3cm9udCB3aXRoIHRoZSBhY2NlbCBpbml0IHN0b3AgYWNjZWwgKi8KKwkJZGV2X2VycihyZGV2LT5kZXYsICJEaXNhYmxpbmcgR1BVIGFjY2VsZXJhdGlvblxuIik7CisJCXJzNDAwX3N1c3BlbmQocmRldik7CisJCXIxMDBfY3BfZmluaShyZGV2KTsKKwkJcjEwMF93Yl9maW5pKHJkZXYpOworCQlyMTAwX2liX2ZpbmkocmRldik7CisJCXJzNDAwX2dhcnRfZmluaShyZGV2KTsKKwkJcmFkZW9uX2lycV9rbXNfZmluaShyZGV2KTsKKwkJcmRldi0+YWNjZWxfd29ya2luZyA9IGZhbHNlOworCX0KKwlyZXR1cm4gMDsKK30KZGlmZiAtLWdpdCBhL2RyaXZlcnMvZ3B1L2RybS9yYWRlb24vcnM0MDBkLmggYi9kcml2ZXJzL2dwdS9kcm0vcmFkZW9uL3JzNDAwZC5oCm5ldyBmaWxlIG1vZGU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4X01DX0ZCX1NUQVJUKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHhGRkZGKQorI2RlZmluZSAgIENfMDAwMTQ4X01DX0ZCX1NUQVJUICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRjAwMDAKKyNkZWZpbmUgICBTXzAwMDE0OF9NQ19GQl9UT1AoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4RkZGRikgPDwgMTYpCisjZGVmaW5lICAgR18wMDAxNDhfTUNfRkJfVE9QKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTYpICYgMHhGRkZGKQorI2RlZmluZSAgIENfMDAwMTQ4X01DX0ZCX1RPUCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMEZGRkYKKyNkZWZpbmUgUl8wMDAxNUNfTkJfVE9NICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxNUMKKyNkZWZpbmUgICBTXzAwMDE1Q19NQ19GQl9TVEFSVCh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4RkZGRikgPDwgMCkKKyNkZWZpbmUgICBHXzAwMDE1Q19NQ19GQl9TVEFSVCh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAwKSAmIDB4RkZGRikKKyNkZWZpbmUgICBDXzAwMDE1Q19NQ19GQl9TVEFSVCAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkYwMDAwCisjZGVmaW5lICAgU18wMDAxNUNfTUNfRkJfVE9QKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweEZGRkYpIDw8IDE2KQorI2RlZmluZSAgIEdfMDAwMTVDX01DX0ZCX1RPUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDE2KSAmIDB4RkZGRikKKyNkZWZpbmUgICBDXzAwMDE1Q19NQ19GQl9UT1AgICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDBGRkZGCisjZGVmaW5lIFJfMDAwN0MwX0NQX1NUQVQgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwN0MwCisjZGVmaW5lICAgU18wMDA3QzBfTVJVX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDApCisjZGVmaW5lICAgR18wMDA3QzBfTVJVX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfTVJVX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZGRQorI2RlZmluZSAgIFNfMDAwN0MwX01XVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxKQorI2RlZmluZSAgIEdfMDAwN0MwX01XVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX01XVV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGRkQKKyNkZWZpbmUgICBTXzAwMDdDMF9SU0lVX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMikKKyNkZWZpbmUgICBHXzAwMDdDMF9SU0lVX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9SU0lVX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkZCCisjZGVmaW5lICAgU18wMDA3QzBfUkNJVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDMpCisjZGVmaW5lICAgR18wMDA3QzBfUkNJVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMykgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfUkNJVV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZGNworI2RlZmluZSAgIFNfMDAwN0MwX0NTRl9QUklNQVJZX0JVU1koeCkgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCA5KQorI2RlZmluZSAgIEdfMDAwN0MwX0NTRl9QUklNQVJZX0JVU1koeCkgICAgICAgICAgICAgICAgICgoKHgpID4+IDkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX0NTRl9QUklNQVJZX0JVU1kgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZERkYKKyNkZWZpbmUgICBTXzAwMDdDMF9DU0ZfSU5ESVJFQ1RfQlVTWSh4KSAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTApCisjZGVmaW5lICAgR18wMDA3QzBfQ1NGX0lORElSRUNUX0JVU1koeCkgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTApICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX0NTRl9JTkRJUkVDVF9CVVNZICAgICAgICAgICAgICAgICAgIDB4RkZGRkZCRkYKKyNkZWZpbmUgICBTXzAwMDdDMF9DU1FfUFJJTUFSWV9CVVNZKHgpICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTEpCisjZGVmaW5lICAgR18wMDA3QzBfQ1NRX1BSSU1BUllfQlVTWSh4KSAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX0NTUV9QUklNQVJZX0JVU1kgICAgICAgICAgICAgICAgICAgIDB4RkZGRkY3RkYKKyNkZWZpbmUgICBTXzAwMDdDMF9DU1FfSU5ESVJFQ1RfQlVTWSh4KSAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTIpCisjZGVmaW5lICAgR18wMDA3QzBfQ1NRX0lORElSRUNUX0JVU1koeCkgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTIpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX0NTUV9JTkRJUkVDVF9CVVNZICAgICAgICAgICAgICAgICAgIDB4RkZGRkVGRkYKKyNkZWZpbmUgICBTXzAwMDdDMF9DU0lfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTMpCisjZGVmaW5lICAgR18wMDA3QzBfQ1NJX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTMpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX0NTSV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkRGRkYKKyNkZWZpbmUgICBTXzAwMDdDMF9DU0ZfSU5ESVJFQ1QyX0JVU1koeCkgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTQpCisjZGVmaW5lICAgR18wMDA3QzBfQ1NGX0lORElSRUNUMl9CVVNZKHgpICAgICAgICAgICAgICAgKCgoeCkgPj4gMTQpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX0NTRl9JTkRJUkVDVDJfQlVTWSAgICAgICAgICAgICAgICAgIDB4RkZGRkJGRkYKKyNkZWZpbmUgICBTXzAwMDdDMF9DU1FfSU5ESVJFQ1QyX0JVU1koeCkgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTUpCisjZGVmaW5lICAgR18wMDA3QzBfQ1NRX0lORElSRUNUMl9CVVNZKHgpICAgICAgICAgICAgICAgKCgoeCkgPj4gMTUpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX0NTUV9JTkRJUkVDVDJfQlVTWSAgICAgICAgICAgICAgICAgIDB4RkZGRjdGRkYKKyNkZWZpbmUgICBTXzAwMDdDMF9HVUlETUFfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjgpCisjZGVmaW5lICAgR18wMDA3QzBfR1VJRE1BX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjgpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX0dVSURNQV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgIDB4RUZGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDdDMF9WSURETUFfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjkpCisjZGVmaW5lICAgR18wMDA3QzBfVklERE1BX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX1ZJRERNQV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgIDB4REZGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDdDMF9DTURTVFJNX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMzApCisjZGVmaW5lICAgR18wMDA3QzBfQ01EU1RSTV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMzApICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX0NNRFNUUk1fQlVTWSAgICAgICAgICAgICAgICAgICAgICAgIDB4QkZGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDdDMF9DUF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMzEpCisjZGVmaW5lICAgR18wMDA3QzBfQ1BfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMzEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX0NQX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4N0ZGRkZGRkYKKyNkZWZpbmUgUl8wMDBFNDBfUkJCTV9TVEFUVVMgICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDBFNDAKKyNkZWZpbmUgICBTXzAwMEU0MF9DTURGSUZPX0FWQUlMKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4N0YpIDw8IDApCisjZGVmaW5lICAgR18wMDBFNDBfQ01ERklGT19BVkFJTCh4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweDdGKQorI2RlZmluZSAgIENfMDAwRTQwX0NNREZJRk9fQVZBSUwgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGODAKKyNkZWZpbmUgICBTXzAwMEU0MF9ISVJRX09OX1JCQih4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgOCkKKyNkZWZpbmUgICBHXzAwMEU0MF9ISVJRX09OX1JCQih4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiA4KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9ISVJRX09OX1JCQiAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRUZGCisjZGVmaW5lICAgU18wMDBFNDBfQ1BSUV9PTl9SQkIoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDkpCisjZGVmaW5lICAgR18wMDBFNDBfQ1BSUV9PTl9SQkIoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gOSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfQ1BSUV9PTl9SQkIgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkRGRgorI2RlZmluZSAgIFNfMDAwRTQwX0NGUlFfT05fUkJCKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxMCkKKyNkZWZpbmUgICBHXzAwMEU0MF9DRlJRX09OX1JCQih4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxMCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfQ0ZSUV9PTl9SQkIgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkJGRgorI2RlZmluZSAgIFNfMDAwRTQwX0hJUlFfSU5fUlRCVUYoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxMSkKKyNkZWZpbmUgICBHXzAwMEU0MF9ISVJRX0lOX1JUQlVGKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxMSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfSElSUV9JTl9SVEJVRiAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRjdGRgorI2RlZmluZSAgIFNfMDAwRTQwX0NQUlFfSU5fUlRCVUYoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxMikKKyNkZWZpbmUgICBHXzAwMEU0MF9DUFJRX0lOX1JUQlVGKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxMikgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfQ1BSUV9JTl9SVEJVRiAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRUZGRgorI2RlZmluZSAgIFNfMDAwRTQwX0NGUlFfSU5fUlRCVUYoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxMykKKyNkZWZpbmUgICBHXzAwMEU0MF9DRlJRX0lOX1JUQlVGKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxMykgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfQ0ZSUV9JTl9SVEJVRiAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGREZGRgorI2RlZmluZSAgIFNfMDAwRTQwX0NGX1BJUEVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxNCkKKyNkZWZpbmUgICBHXzAwMEU0MF9DRl9QSVBFX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxNCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfQ0ZfUElQRV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGQkZGRgorI2RlZmluZSAgIFNfMDAwRTQwX0VOR19FVl9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxNSkKKyNkZWZpbmUgICBHXzAwMEU0MF9FTkdfRVZfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxNSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfRU5HX0VWX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGN0ZGRgorI2RlZmluZSAgIFNfMDAwRTQwX0NQX0NNRFNUUk1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxNikKKyNkZWZpbmUgICBHXzAwMEU0MF9DUF9DTURTVFJNX0JVU1koeCkgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxNikgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfQ1BfQ01EU1RSTV9CVVNZICAgICAgICAgICAgICAgICAgICAgMHhGRkZFRkZGRgorI2RlZmluZSAgIFNfMDAwRTQwX0UyX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxNykKKyNkZWZpbmUgICBHXzAwMEU0MF9FMl9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxNykgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfRTJfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZERkZGRgorI2RlZmluZSAgIFNfMDAwRTQwX1JCMkRfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxOCkKKyNkZWZpbmUgICBHXzAwMEU0MF9SQjJEX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxOCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfUkIyRF9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZCRkZGRgorI2RlZmluZSAgIFNfMDAwRTQwX1JCM0RfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxOSkKKyNkZWZpbmUgICBHXzAwMEU0MF9SQjNEX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxOSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfUkIzRF9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkY3RkZGRgorI2RlZmluZSAgIFNfMDAwRTQwX1ZBUF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMCkKKyNkZWZpbmUgICBHXzAwMEU0MF9WQVBfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfVkFQX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkVGRkZGRgorI2RlZmluZSAgIFNfMDAwRTQwX1JFX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMSkKKyNkZWZpbmUgICBHXzAwMEU0MF9SRV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfUkVfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkRGRkZGRgorI2RlZmluZSAgIFNfMDAwRTQwX1RBTV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMikKKyNkZWZpbmUgICBHXzAwMEU0MF9UQU1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMikgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfVEFNX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkJGRkZGRgorI2RlZmluZSAgIFNfMDAwRTQwX1RETV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMykKKyNkZWZpbmUgICBHXzAwMEU0MF9URE1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMykgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfVERNX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRjdGRkZGRgorI2RlZmluZSAgIFNfMDAwRTQwX1BCX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNCkKKyNkZWZpbmUgICBHXzAwMEU0MF9QQl9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfUEJfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRUZGRkZGRgorI2RlZmluZSAgIFNfMDAwRTQwX1RJTV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNSkKKyNkZWZpbmUgICBHXzAwMEU0MF9USU1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfVElNX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGREZGRkZGRgorI2RlZmluZSAgIFNfMDAwRTQwX0dBX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNikKKyNkZWZpbmUgICBHXzAwMEU0MF9HQV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNikgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfR0FfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHh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kZXYtPmRkZXYpOworCS8qIEluaXRpYWxpemUgcG93ZXIgbWFuYWdlbWVudCAqLworCXJhZGVvbl9wbV9pbml0KHJkZXYpOworCS8qIEdldCB2cmFtIGluZm9ybWF0aW9ucyAqLworCXJzNjAwX3ZyYW1faW5mbyhyZGV2KTsKKwkvKiBJbml0aWFsaXplIG1lbW9yeSBjb250cm9sbGVyIChhbHNvIHRlc3QgQUdQKSAqLworCXIgPSByNDIwX21jX2luaXQocmRldik7CisJaWYgKHIpCisJCXJldHVybiByOworCXJzNjAwX2RlYnVnZnMocmRldik7CisJLyogRmVuY2UgZHJpdmVyICovCisJciA9IHJhZGVvbl9mZW5jZV9kcml2ZXJfaW5pdChyZGV2KTsKKwlpZiAocikKKwkJcmV0dXJuIHI7CisJciA9IHJhZGVvbl9pcnFfa21zX2luaXQocmRldik7CisJaWYgKHIpCisJCXJldHVybiByOworCS8qIE1lbW9yeSBtYW5hZ2VyICovCisJciA9IHJhZGVvbl9vYmplY3RfaW5pdChyZGV2KTsKKwlpZiAocikKKwkJcmV0dXJuIHI7CisJciA9IHJzNjAwX2dhcnRfaW5pdChyZGV2KTsKKwlpZiAocikKKwkJcmV0dXJuIHI7CisJcnM2MDBfc2V0X3NhZmVfcmVnaXN0ZXJzKHJkZXYpOworCXJkZXYtPmFjY2VsX3dvcmtpbmcgPSB0cnVlOworCXIgPSByczYwMF9zdGFydHVwKHJkZXYpOworCWlmIChyKSB7CisJCS8qIFNvbWV0aGluZ3Mgd2FudCB3cm9udCB3aXRoIHRoZSBhY2NlbCBpbml0IHN0b3AgYWNjZWwgKi8KKwkJZGV2X2VycihyZGV2LT5kZXYsICJEaXNhYmxpbmcgR1BVIGFjY2VsZXJhdGlvblxuIik7CisJCXJzNjAwX3N1c3BlbmQocmRldik7CisJCXIxMDBfY3BfZmluaShyZGV2KTsKKwkJcjEwMF93Yl9maW5pKHJkZXYpOworCQlyMTAwX2liX2ZpbmkocmRldik7CisJCXJzNjAwX2dhcnRfZmluaShyZ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19SUzYwMERfSF9fCisKKy8qIFJlZ2lzdGVycyAqLworI2RlZmluZSBSXzAwMDA0MF9HRU5fSU5UX0NOVEwgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDA0MAorI2RlZmluZSAgIFNfMDAwMDQwX0RJU1BMQVlfSU5UX1NUQVRVUyh4KSAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwMDQwX0RJU1BMQVlfSU5UX1NUQVRVUyh4KSAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0RJU1BMQVlfSU5UX1NUQVRVUyAgICAgICAgICAgICAgICAgIDB4RkZGRkZGRkUKKyNkZWZpbmUgICBTXzAwMDA0MF9ETUFfVklQSDBfSU5UX0VOKHgpICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTIpCisjZGVmaW5lICAgR18wMDAwNDBfRE1BX1ZJUEgwX0lOVF9FTih4KSAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTIpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0RNQV9WSVBIMF9JTlRfRU4gICAgICAgICAgICAgICAgICAgIDB4RkZGRkVGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9DUlRDMl9WU1lOQyh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgNikKKyNkZWZpbmUgICBHXzAwMDA0MF9DUlRDMl9WU1lOQyh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiA2KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA0MF9DUlRDMl9WU1lOQyAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkJGCisjZGVmaW5lICAgU18wMDAwNDBfU05BUFNIT1QyKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDcpCisjZGVmaW5lICAgR18wMDAwNDBfU05BUFNIT1QyKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gNykgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwNDBfU05BUFNIT1QyICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkY3RgorI2RlZmluZSAgIFNfMDAwMDQwX0NSVEMyX1ZCTEFOSyh4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCA5KQorI2RlZmluZSAgIEdfMDAwMDQwX0NSVEMyX1ZCTEFOSyh4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0NSVEMyX1ZCTEFOSyAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZERkYKKyNkZWZpbmUgICBTXzAwMDA0MF9GUDJfREVURUNUKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTApCisjZGVmaW5lICAgR18wMDAwNDBfRlAyX0RFVEVDVCh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTApICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0ZQMl9ERVRFQ1QgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZCRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9WU1lOQ19ESUZGX09WRVJfTElNSVQoeCkgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTEpCisjZGVmaW5lICAgR18wMDAwNDBfVlNZTkNfRElGRl9PVkVSX0xJTUlUKHgpICAgICAgICAgICAgKCgoeCkgPj4gMTEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX1ZTWU5DX0RJRkZfT1ZFUl9MSU1JVCAgICAgICAgICAgICAgIDB4RkZGRkY3RkYKKyNkZWZpbmUgICBTXzAwMDA0MF9ETUFfVklQSDFfSU5UX0VOKHgpICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTMpCisjZGVmaW5lICAgR18wMDAwNDBfRE1BX1ZJUEgxX0lOVF9FTih4KSAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTMpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0RNQV9WSVBIMV9JTlRfRU4gICAgICAgICAgICAgICAgICAgIDB4RkZGRkRGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9ETUFfVklQSDJfSU5UX0VOKHgpICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTQpCisjZGVmaW5lICAgR18wMDAwNDBfRE1BX1ZJUEgyX0lOVF9FTih4KSAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTQpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0RNQV9WSVBIMl9JTlRfRU4gICAgICAgICAgICAgICAgICAgIDB4RkZGRkJGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9ETUFfVklQSDNfSU5UX0VOKHgpICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTUpCisjZGVmaW5lICAgR18wMDAwNDBfRE1BX1ZJUEgzX0lOVF9FTih4KSAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTUpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0RNQV9WSVBIM19JTlRfRU4gICAgICAgICAgICAgICAgICAgIDB4RkZGRjdGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9JMkNfSU5UX0VOKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTcpCisjZGVmaW5lICAgR18wMDAwNDBfSTJDX0lOVF9FTih4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0kyQ19JTlRfRU4gICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGREZGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9HVUlfSURMRSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTkpCisjZGVmaW5lICAgR18wMDAwNDBfR1VJX0lETEUoeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0dVSV9JRExFICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGN0ZGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9WSVBIX0lOVF9FTih4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjQpCisjZGVmaW5lICAgR18wMDAwNDBfVklQSF9JTlRfRU4oeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjQpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX1ZJUEhfSU5UX0VOICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkVGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9TV19JTlRfRU4oeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjUpCisjZGVmaW5lICAgR18wMDAwNDBfU1dfSU5UX0VOKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjUpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX1NXX0lOVF9FTiAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkRGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9HRVlTRVJWSUxMRSh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjcpCisjZGVmaW5lICAgR18wMDAwNDBfR0VZU0VSVklMTEUoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0dFWVNFUlZJTExFICAgICAgICAgICAgICAgICAgICAgICAgIDB4RjdGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9IRENQX0FVVEhPUklaRURfSU5UKHgpICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjgpCisjZGVmaW5lICAgR18wMDAwNDBfSERDUF9BVVRIT1JJWkVEX0lOVCh4KSAgICAgICAgICAgICAgKCgoeCkgPj4gMjgpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0hEQ1BfQVVUSE9SSVpFRF9JTlQgICAgICAgICAgICAgICAgIDB4RUZGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9EVklfSTJDX0lOVCh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjkpCisjZGVmaW5lICAgR18wMDAwNDBfRFZJX0kyQ19JTlQoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0RWSV9JMkNfSU5UICAgICAgICAgICAgICAgICAgICAgICAgIDB4REZGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9HVUlETUEoeCkgICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMzApCisjZGVmaW5lICAgR18wMDAwNDBfR1VJRE1BKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMzApICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX0dVSURNQSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4QkZGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0MF9WSURETUEoeCkgICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMzEpCisjZGVmaW5lICAgR18wMDAwNDBfVklERE1BKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMzEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQwX1ZJRERNQSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4N0ZGRkZGRkYKKyNkZWZpbmUgUl8wMDAwNDRfR0VOX0lOVF9TVEFUVVMgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwNDQKKyNkZWZpbmUgICBTXzAwMDA0NF9ESVNQTEFZX0lOVF9TVEFUKHgpICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMCkKKyNkZWZpbmUgICBHXzAwMDA0NF9ESVNQTEFZX0lOVF9TVEFUKHgpICAgICAgICAgICAgICAgICAoKCh4KSA+PiAwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA0NF9ESVNQTEFZX0lOVF9TVEFUICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkZFCisjZGVmaW5lICAgU18wMDAwNDRfVkdBX0lOVF9TVEFUKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEpCisjZGVmaW5lICAgR18wMDAwNDRfVkdBX0lOVF9TVEFUKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwNDRfVkdBX0lOVF9TVEFUICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZGRAorI2RlZmluZSAgIFNfMDAwMDQ0X0NBUDBfSU5UX0FDVElWRSh4KSAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCA4KQorI2RlZmluZSAgIEdfMDAwMDQ0X0NBUDBfSU5UX0FDVElWRSh4KSAgICAgICAgICAgICAgICAgICgoKHgpID4+IDgpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X0NBUDBfSU5UX0FDVElWRSAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZFRkYKKyNkZWZpbmUgICBTXzAwMDA0NF9ETUFfVklQSDBfSU5UKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTIpCisjZGVmaW5lICAgR18wMDAwNDRfRE1BX1ZJUEgwX0lOVCh4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTIpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X0RN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YpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X01DX1BST0JFX0ZBVUxUX1NUQVQgICAgICAgICAgICAgICAgIDB4RkZGRUZGRkYKKyNkZWZpbmUgICBTXzAwMDA0NF9JMkNfSU5UKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTcpCisjZGVmaW5lICAgR18wMDAwNDRfSTJDX0lOVCh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X0kyQ19JTlQgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGREZGRkYKKyNkZWZpbmUgICBTXzAwMDA0NF9TQ1JBVENIX0lOVF9TVEFUKHgpICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTgpCisjZGVmaW5lICAgR18wMDAwNDRfU0NSQVRDSF9JTlRfU1RBVCh4KSAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTgpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X1NDUkFUQ0hfSU5UX1NUQVQgICAgICAgICAgICAgICAgICAgIDB4RkZGQkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0NF9HVUlfSURMRV9TVEFUKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTkpCisjZGVmaW5lICAgR18wMDAwNDRfR1VJX0lETEVfU1RBVCh4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X0dVSV9JRExFX1NUQVQgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGN0ZGRkYKKyNkZWZpbmUgICBTXzAwMDA0NF9BVElfT1ZFUkRSSVZFX0lOVF9TVEFUKHgpICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjApCisjZGVmaW5lICAgR18wMDAwNDRfQVRJX09WRVJEUklWRV9JTlRf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kgPDwgMjQpCisjZGVmaW5lICAgR18wMDAwNDRfVklQSF9JTlQoeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjQpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X1ZJUEhfSU5UICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkVGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0NF9TV19JTlQoeCkgICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjUpCisjZGVmaW5lICAgR18wMDAwNDRfU1dfSU5UKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjUpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X1NXX0lOVCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkRGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0NF9TV19JTlRfU0VUKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjYpCisjZGVmaW5lICAgR18wMDAwNDRfU1dfSU5UX1NFVCh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjYpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X1NXX0lOVF9TRVQgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkJGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0NF9JRENUX0lOVF9TVEFUKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjcpCisjZGVmaW5lICAgR18wMDAwNDRfSURDVF9JTlRfU1RBVCh4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X0lEQ1RfSU5UX1NUQVQgICAgICAgICAgICAgICAgICAgICAgIDB4RjdGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0NF9HVUlETUFfU1RBVCh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMzApCisjZGVmaW5lICAgR18wMDAwNDRfR1VJRE1BX1NUQVQoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMzApICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X0dVSURNQV9TVEFUICAgICAgICAgICAgICAgICAgICAgICAgIDB4QkZGRkZGRkYKKyNkZWZpbmUgICBTXzAwMDA0NF9WSURETUFfU1RBVCh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMzEpCisjZGVmaW5lICAgR18wMDAwNDRfVklERE1BX1NUQVQoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMzEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDQ0X1ZJRERNQV9TVEFUICAgICAgICAgICAgICAgICAgICAgICAgIDB4N0ZGRkZGRkYKKyNkZWZpbmUgUl8wMDAwNENfQlVTX0NOVEwgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwNEMKKyNkZWZpbmUgICBTXzAwMDA0Q19CVVNfTUFTVEVSX0RJUyh4KSAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTQpCisjZGVmaW5lICAgR18wMDAwNENfQlVTX01BU1RFUl9ESVMoeCkgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTQpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDRDX0JVU19NQVNURVJfRElTICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkJGRkYKKyNkZWZpbmUgICBTXzAwMDA0Q19CVVNfTVNJX1JFQVJNKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjApCisjZGVmaW5lICAgR18wMDAwNENfQlVTX01TSV9SRUFSTSh4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjApICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDRDX0JVU19NU0lfUkVBUk0gICAgICAgICAgICAgICAgICAgICAgIDB4RkZFRkZGRkYKKyNkZWZpbmUgUl8wMDAwNzBfTUNfSU5EX0lOREVYICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwNzAKKyNkZWZpbmUgICBTXzAwMDA3MF9NQ19JTkRfQUREUih4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4RkZGRikgPDwgMCkKKyNkZWZpbmUgICBHXzAwMDA3MF9NQ19JTkRfQUREUih4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAwKSAmIDB4RkZGRikKKyNkZWZpbmUgICBDXzAwMDA3MF9NQ19JTkRfQUREUiAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkYwMDAwCisjZGVmaW5lICAgU18wMDAwNzBfTUNfSU5EX1NFUV9SQlNfMCh4KSAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE2KQorI2RlZmluZSAgIEdfMDAwMDcwX01DX0lORF9TRVFfUkJTXzAoeCkgICAgICAgICAgICAgICAgICgoKHgpID4+IDE2KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA3MF9NQ19JTkRfU0VRX1JCU18wICAgICAgICAgICAgICAgICAgICAweEZGRkVGRkZGCisjZGVmaW5lICAgU18wMDAwNzBfTUNfSU5EX1NFUV9SQlNfMSh4KSAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE3KQorI2RlZmluZSAgIEdfMDAwMDcwX01DX0lORF9TRVFfUkJTXzEoeCkgICAgICAgICAgICAgICAgICgoKHgpID4+IDE3KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA3MF9NQ19JTkRfU0VRX1JCU18xICAgICAgICAgICAgICAgICAgICAweEZGRkRGRkZGCisjZGVmaW5lICAgU18wMDAwNzBfTUNfSU5EX1NFUV9SQlNfMih4KSAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE4KQorI2RlZmluZSAgIEdfMDAwMDcwX01DX0lORF9TRVFfUkJTXzIoeCkgICAgICAgICAgICAgICAgICgoKHgpID4+IDE4KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA3MF9NQ19JTkRfU0VRX1JCU18yICAgICAgICAgICAgICAgICAgICAweEZGRkJGRkZGCisjZGVmaW5lICAgU18wMDAwNzBfTUNfSU5EX1NFUV9SQlNfMyh4KSAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE5KQorI2RlZmluZSAgIEdfMDAwMDcwX01DX0lORF9TRVFfUkJTXzMoeCkgICAgICAgICAgICAgICAgICgoKHgpID4+IDE5KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA3MF9NQ19JTkRfU0VRX1JCU18zICAgICAgICAgICAgICAgICAgICAweEZGRjdGRkZGCisjZGVmaW5lICAgU18wMDAwNzBfTUNfSU5EX0FJQ19SQlMoeCkgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIwKQorI2RlZmluZSAgIEdfMDAwMDcwX01DX0lORF9BSUNfUkJTKHgpICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDIwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA3MF9NQ19JTkRfQUlDX1JCUyAgICAgICAgICAgICAgICAgICAgICAweEZGRUZGRkZGCisjZGVmaW5lICAgU18wMDAwNzBfTUNfSU5EX0NJVEZfQVJCMCh4KSAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIxKQorI2RlZmluZSAgIEdfMDAwMDcwX01DX0lORF9DSVRGX0FSQjAoeCkgICAgICAgICAgICAgICAgICgoKHgpID4+IDIxKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA3MF9NQ19JTkRfQ0lURl9BUkIwICAgICAgICAgICAgICAgICAgICAweEZGREZGRkZGCisjZGVmaW5lICAgU18wMDAwNzBfTUNfSU5EX0NJVEZfQVJCMSh4KSAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIyKQorI2RlZmluZSAgIEdfMDAwMDcwX01DX0lORF9DSVRGX0FSQjEoeCkgICAgICAgICAgICAgICAgICgoKHgpID4+IDIyKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA3MF9NQ19JTkRfQ0lURl9BUkIxICAgICAgICAgICAgICAgICAgICAweEZGQkZGRkZGCisjZGVmaW5lICAgU18wMDAwNzBfTUNfSU5EX1dSX0VOKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIzKQorI2RlZmluZSAgIEdfMDAwMDcwX01DX0lORF9XUl9FTih4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDIzKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA3MF9NQ19JTkRfV1JfRU4gICAgICAgICAgICAgICAgICAgICAgICAweEZGN0ZGRkZGCisjZGVmaW5lICAgU18wMDAwNzBfTUNfSU5EX1JEX0lOVih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDI0KQorI2RlZmluZSAgIEdfMDAwMDcwX01DX0lORF9SRF9JTlYoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDI0KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA3MF9NQ19JTkRfUkRfSU5WICAgICAgICAgICAgICAgICAgICAgICAweEZFRkZGRkZGCisjZGVmaW5lIFJfMDAwMDc0X01DX0lORF9EQVRBICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMDc0CisjZGVmaW5lICAgU18wMDAwNzRfTUNfSU5EX0RBVEEoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweEZGRkZGRkZGKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwMDc0X01DX0lORF9EQVRBKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHhGRkZGRkZGRikKKyNkZWZpbmUgICBDXzAwMDA3NF9NQ19JTkRfREFUQSAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDAwMDAwCisjZGVmaW5lIFJfMDAwMTM0X0hEUF9GQl9MT0NBVElPTiAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTM0CisjZGVmaW5lICAgU18wMDAxMzRfSERQX0ZCX1NUQVJUKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweEZGRkYpIDw8IDApCisjZGVmaW5lICAgR18wMDAxMzRfSERQX0ZCX1NUQVJUKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweEZGRkYpCisjZGVmaW5lICAgQ18wMDAxMzRfSERQX0ZCX1NUQVJUICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGMDAwMAorI2RlZmluZSBSXzAwMDdDMF9DUF9TVEFUICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDdDMAorI2RlZmluZSAgIFNfMDAwN0MwX01SVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwN0MwX01SVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX01SVV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGRkUKKyNkZWZpbmUgICBTXzAwMDdDMF9NV1VfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMSkKKyNkZWZpbmUgICBHXzAwMDdDMF9NV1VfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9NV1VfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkZECisjZGVmaW5lICAgU18wMDA3QzBfUlNJVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIpCisjZGVmaW5lICAgR18wMDA3QzBfUlNJVV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMikgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfUlNJVV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZGQgorI2RlZmluZSAgIFNfMDAwN0MwX1JDSVVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAzKQorI2RlZmluZSAgIEdfMDAwN0MwX1JDSVVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDMpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX1JDSVVfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGRjcKKyNkZWZpbmUgICBTXzAwMDdDMF9DU0ZfUFJJTUFSWV9CVVNZKHgpICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgOSkKKyNkZWZpbmUgICBHXzAwMDdDMF9DU0ZfUFJJTUFSWV9CVVNZKHgpICAgICAgICAgICAgICAgICAoKCh4KSA+PiA5KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU0ZfUFJJTUFSWV9CVVNZICAgICAgICAgICAgICAgICAgICAweEZGRkZGREZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NGX0lORElSRUNUX0JVU1koeCkgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEwKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTRl9JTkRJUkVDVF9CVVNZKHgpICAgICAgICAgICAgICAgICgoKHgpID4+IDEwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU0ZfSU5ESVJFQ1RfQlVTWSAgICAgICAgICAgICAgICAgICAweEZGRkZGQkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NRX1BSSU1BUllfQlVTWSh4KSAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDExKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTUV9QUklNQVJZX0JVU1koeCkgICAgICAgICAgICAgICAgICgoKHgpID4+IDExKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU1FfUFJJTUFSWV9CVVNZICAgICAgICAgICAgICAgICAgICAweEZGRkZGN0ZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NRX0lORElSRUNUX0JVU1koeCkgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEyKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTUV9JTkRJUkVDVF9CVVNZKHgpICAgICAgICAgICAgICAgICgoKHgpID4+IDEyKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU1FfSU5ESVJFQ1RfQlVTWSAgICAgICAgICAgICAgICAgICAweEZGRkZFRkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NJX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEzKQorI2RlZmluZSAgIEdfMDAwN0MwX0NTSV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDEzKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU0lfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZERkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NGX0lORElSRUNUMl9CVVNZKHgpICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE0KQorI2RlZmluZSAgIEdfMDAwN0MwX0NTRl9JTkRJUkVDVDJfQlVTWSh4KSAgICAgICAgICAgICAgICgoKHgpID4+IDE0KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU0ZfSU5ESVJFQ1QyX0JVU1kgICAgICAgICAgICAgICAgICAweEZGRkZCRkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1NRX0lORElSRUNUMl9CVVNZKHgpICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE1KQorI2RlZmluZSAgIEdfMDAwN0MwX0NTUV9JTkRJUkVDVDJfQlVTWSh4KSAgICAgICAgICAgICAgICgoKHgpID4+IDE1KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DU1FfSU5ESVJFQ1QyX0JVU1kgICAgICAgICAgICAgICAgICAweEZGRkY3RkZGCisjZGVmaW5lICAgU18wMDA3QzBfR1VJRE1BX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDI4KQorI2RlZmluZSAgIEdfMDAwN0MwX0dVSURNQV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDI4KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9HVUlETUFfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAweEVGRkZGRkZGCisjZGVmaW5lICAgU18wMDA3QzBfVklERE1BX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDI5KQorI2RlZmluZSAgIEdfMDAwN0MwX1ZJRERNQV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDI5KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9WSURETUFfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAweERGRkZGRkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ01EU1RSTV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDMwKQorI2RlZmluZSAgIEdfMDAwN0MwX0NNRFNUUk1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDMwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DTURTVFJNX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAweEJGRkZGRkZGCisjZGVmaW5lICAgU18wMDA3QzBfQ1BfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDMxKQorI2RlZmluZSAgIEdfMDAwN0MwX0NQX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDMxKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9DUF9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDdGRkZGRkZGCisjZGVmaW5lIFJfMDAwRTQwX1JCQk1fU1RBVFVTICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwRTQwCisjZGVmaW5lICAgU18wMDBFNDBfQ01ERklGT19BVkFJTCh4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDdGKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwRTQwX0NNREZJRk9fQVZBSUwoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHg3RikKKyNkZWZpbmUgICBDXzAwMEU0MF9DTURGSUZPX0FWQUlMICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRjgwCisjZGVmaW5lICAgU18wMDBFNDBfSElSUV9PTl9SQkIoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDgpCisjZGVmaW5lICAgR18wMDBFNDBfSElSUV9PTl9SQkIoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gOCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDBFNDBfSElSUV9PTl9SQkIgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkVGRgorI2RlZmluZSAgIFNfMDAwRTQwX0NQUlFfT05fUkJCKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCA5KQorI2RlZmluZSAgIEdfMDAwRTQwX0NQUlFfT05fUkJCKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NQUlFfT05fUkJCICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZERkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DRlJRX09OX1JCQih4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTApCisjZGVmaW5lICAgR18wMDBFNDBfQ0ZSUV9PTl9SQkIoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTApICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NGUlFfT05fUkJCICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZCRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9ISVJRX0lOX1JUQlVGKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTEpCisjZGVmaW5lICAgR18wMDBFNDBfSElSUV9JTl9SVEJVRih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0hJUlFfSU5fUlRCVUYgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkY3RkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DUFJRX0lOX1JUQlVGKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTIpCisjZGVmaW5lICAgR18wMDBFNDBfQ1BSUV9JTl9SVEJVRih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTIpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NQUlFfSU5fUlRCVUYgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkVGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DRlJRX0lOX1JUQlVGKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTMpCisjZGVmaW5lICAgR18wMDBFNDBfQ0ZSUV9JTl9SVEJVRih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTMpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NGUlFfSU5fUlRCVUYgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkRGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DRl9QSVBFX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTQpCisjZGVmaW5lICAgR18wMDBFNDBfQ0ZfUElQRV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTQpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NGX1BJUEVfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkJGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9FTkdfRVZfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTUpCisjZGVmaW5lICAgR18wMDBFNDBfRU5HX0VWX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTUpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0VOR19FVl9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRjdGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DUF9DTURTVFJNX0JVU1koeCkgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTYpCisjZGVmaW5lICAgR18wMDBFNDBfQ1BfQ01EU1RSTV9CVVNZKHgpICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTYpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NQX0NNRFNUUk1fQlVTWSAgICAgICAgICAgICAgICAgICAgIDB4RkZGRUZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9FMl9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTcpCisjZGVmaW5lICAgR18wMDBFNDBfRTJfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0UyX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGREZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9SQjJEX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTgpCisjZGVmaW5lICAgR18wMDBFNDBfUkIyRF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTgpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1JCMkRfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGQkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9SQjNEX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTkpCisjZGVmaW5lICAgR18wMDBFNDBfUkIzRF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1JCM0RfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGN0ZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9WQVBfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjApCisjZGVmaW5lICAgR18wMDBFNDBfVkFQX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjApICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1ZBUF9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZFRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9SRV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjEpCisjZGVmaW5lICAgR18wMDBFNDBfUkVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1JFX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZERkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9UQU1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjIpCisjZGVmaW5lICAgR18wMDBFNDBfVEFNX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjIpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1RBTV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZCRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9URE1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjMpCisjZGVmaW5lICAgR18wMDBFNDBfVERNX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjMpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1RETV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkY3RkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9QQl9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjQpCisjZGVmaW5lICAgR18wMDBFNDBfUEJfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjQpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1BCX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkVGRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9USU1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjUpCisjZGVmaW5lICAgR18wMDBFNDBfVElNX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjUpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX1RJTV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkRGRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9HQV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjYpCisjZGVmaW5lICAgR18wMDBFNDBfR0FfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjYpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0dBX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkJGRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DQkEyRF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMjcpCisjZGVmaW5lICAgR18wMDBFNDBfQ0JBMkRfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMjcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0NCQTJEX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RjdGRkZGRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9HVUlfQUNUSVZFKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMzEpCisjZGVmaW5lICAgR18wMDBFNDBfR1VJX0FDVElWRSh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMzEpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0dVSV9BQ1RJVkUgICAgICAgICAgICAgICAgICAgICAgICAgIDB4N0ZGRkZGRkYKKyNkZWZpbmUgUl8wMDYwQTRfRDFDUlRDX1NUQVRVU19GUkFNRV9DT1VOVCAgICAgICAgICAgMHgwMDYwQTQKKyNkZWZpbmUgICBTXzAwNjBBNF9EMUNSVENfRlJBTUVfQ09VTlQoeCkgICAgICAgICAgICAgICAoKCh4KSAmIDB4RkZGRkZGKSA8P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LyogTUMgcmVnaXN0ZXJzICovCisjZGVmaW5lIFJfMDAwMDAwX01DX1NUQVRVUyAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwCisjZGVmaW5lICAgU18wMDAwMDBfTUNfSURMRSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDApCisjZGVmaW5lICAgR18wMDAwMDBfTUNfSURMRSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMDBfTUNfSURMRSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZGRQorI2RlZmluZSBSXzAwMDAwNF9NQ19GQl9MT0NBVElPTiAgICAgICAgICAgICAgICAgICAgICAweDAwMDAwNAorI2RlZmluZSAgIFNfMDAwMDA0X01DX0ZCX1NUQVJUKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHhGRkZGKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwMDA0X01DX0ZCX1NUQVJUKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHhGRkZGKQorI2RlZmluZSAgIENfMDAwMDA0X01DX0ZCX1NUQVJUICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRjAwMDAKKyNkZWZpbmUgICBTXzAwMDAwNF9NQ19GQl9UT1AoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4RkZGRikgPDwgMTYpCisjZGVmaW5lICAgR18wMDAwMDRfTUNfRkJfVE9QKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTYpICYgMHhGRkZGKQorI2RlZmluZSAgIENfMDAwMDA0X01DX0ZCX1RPUCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMEZGRkYKKyNkZWZpbmUgUl8wMDAwMDVfTUNfQUdQX0xPQ0FUSU9OICAgICAgICAgICAgICAgICAgICAgMHgwMDAwMDUKKyNkZWZpbmUgICBTXzAwMDAwNV9NQ19BR1BfU1RBUlQoeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4RkZGRikgPDwgMCkKKyNkZWZpbmUgICBHXzAwMDAwNV9NQ19BR1BfU1RBUlQoeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAwKSAmIDB4RkZGRikKKyNkZWZpbmUgICBDXzAwMDAwNV9NQ19BR1BfU1RBUlQgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkYwMDAwCisjZGVmaW5lICAgU18wMDAwMDVfTUNfQUdQX1RPUCh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweEZGRkYpIDw8IDE2KQorI2RlZmluZSAgIEdfMDAwMDA1X01DX0FHUF9UT1AoeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDE2KSAmIDB4RkZGRikKKyNkZWZpbmUgICBDXzAwMDAwNV9NQ19BR1BfVE9QICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDBGRkZGCisjZGVmaW5lIFJfMDAwMDA2X0FHUF9CQVNFICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMDA2CisjZGVmaW5lICAgU18wMDAwMDZfQUdQX0JBU0VfQUREUih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweEZGRkZGRkZGKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwMDA2X0FHUF9CQVNFX0FERFIoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHhGRkZGRkZGRikKKyNkZWZpbmUgICBDXzAwMDAwNl9BR1BfQkFTRV9BRERSICAgICAgICAgICAgICAgICAgICAgICAweDAwMDAwMDAwCisjZGVmaW5lIFJfMDAwMDA3X0FHUF9CQVNFXzIgICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMDA3CisjZGVmaW5lICAgU18wMDAwMDdfQUdQX0JBU0VfQUREUl8yKHgpICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweEYpIDw8IDApCisjZGVmaW5lICAgR18wMDAwMDdfQUdQX0JBU0VfQUREUl8yKHgpICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweEYpCisjZGVmaW5lICAgQ18wMDAwMDdfQUdQX0JBU0VfQUREUl8yICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZGMAorI2RlZmluZSBSXzAwMDAwOV9NQ19DTlRMMSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDAwOQorI2RlZmluZSAgIFNfMDAwMDA5X0VOQUJMRV9QQUdFX1RBQkxFUyh4KSAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNikKKyNkZWZpbmUgICBHXzAwMDAwOV9FTkFCTEVfUEFHRV9UQUJMRVMoeCkgICAgICAgICAgICAgICAoKCh4KSA+PiAyNikgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMDlfRU5BQkxFX1BBR0VfVEFCTEVTICAgICAgICAgICAgICAgICAgMHhGQkZGRkZGRgorLyogRklYTUUgZG9uJ3Qga25vdyB0aGUgdmFyaW91cyBmaWVsZCBzaXplIG5lZWQgZmVlZGJhY2sgZnJvbSBBTUQgKi8KKyNkZWZpbmUgUl8wMDAxMDBfTUNfUFQwX0NOVEwgICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMDAKKyNkZWZpbmUgICBTXzAwMDEwMF9FTkFCTEVfUFQoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMCkKKyNkZWZpbmUgICBHXzAwMDEwMF9FTkFCTEVfUFQoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDEwMF9FTkFCTEVfUFQgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkZFCisjZGVmaW5lICAgU18wMDAxMDBfRUZGRUNUSVZFX0wyX0NBQ0hFX1NJWkUoeCkgICAgICAgICAg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NIQU5UQUJJTElUWSwKKyAqIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFIEFORCBOT05JTkZSSU5HRU1FTlQuICBJTiBOTyBFVkVOVCBTSEFMTAorICogVEhFIENPUFlSSUdIVCBIT0xERVIoUykgT1IgQVVUSE9SKFMpIEJFIExJQUJMRSBGT1IgQU5ZIENMQUlNLCBEQU1BR0VTIE9SCisgKiBPVEhFUiBMSUFCSUxJVFksIFdIRVRIRVIgSU4gQU4gQUNUSU9OIE9GIENPTlRSQUNULCBUT1JUIE9SIE9USEVSV0lTRSwKKyAqIEFSSVNJTkcgRlJPTSwgT1VUIE9GIE9SIElOIENPTk5FQ1RJT04gV0lUSCBUSEUgU09GVFdBUkUgT1IgVEhFIFVTRSBPUgorICogT1RIRVIgREVBTElOR1MgSU4gVEhFIFNPRlRXQVJFLgorICoKKyAqIEF1dGhvcnM6IERhdmUgQWlybGllCisgKiAgICAgICAgICBBbGV4IERldWNoZXIKKyAqICAgICAgICAgIEplcm9tZSBHbGlzc2UKKyAqLworI2lmbmRlZiBfX1JTNjkwRF9IX18KKyNkZWZpbmUgX19SUzY5MERfSF9fCisKKy8qIFJlZ2lzdGVycyAqLworI2RlZmluZSBSXzAwMDA3OF9NQ19JTkRFWCAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDA3OAorI2RlZmluZSAgIFNfMDAwMDc4X01DX0lORF9BRERSKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxRkYpIDw8IDApCisjZGVmaW5lICAgR18wMDAwNzhfTUNfSU5EX0FERFIoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweDFGRikKKyNkZWZpbmUgICBDXzAwMDA3OF9NQ19JTkRfQUREUiAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRTAwCisjZGVmaW5lICAgU18wMDAwNzhfTUNfSU5EX1dSX0VOKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDkpCisjZGVmaW5lICAgR18wMDAwNzhfTUNfSU5EX1dSX0VOKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gOSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwNzhfTUNfSU5EX1dSX0VOICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkRGRgorI2RlZmluZSBSXzAwMDA3Q19NQ19EQVRBICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDA3QworI2RlZmluZSAgIFNfMDAwMDdDX01DX0RBVEEoeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHhGRkZGRkZGRikgPDwgMCkKKyNkZWZpbmUgICBHXzAwMDA3Q19NQ19EQVRBKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAwKSAmIDB4RkZGRkZGRkYpCisjZGVmaW5lICAgQ18wMDAwN0NfTUNfREFUQSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwMDAwMAorI2RlZmluZSBSXzAwMDBGOF9DT05GSUdfTUVNU0laRSAgICAgICAgICAgICAgICAgICAgICAweDAwMDBGOAorI2RlZmluZSAgIFNfMDAwMEY4X0NPTkZJR19NRU1TSVpFKHgpICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHhGRkZGRkZGRikgPDwgMCkKKyNkZWZpbmUgICBHXzAwMDBGOF9DT05GSUdfTUVNU0laRSh4KSAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAwKSAmIDB4RkZGRkZGRkYpCisjZGVmaW5lICAgQ18wMDAwRjhfQ09ORklHX01FTVNJWkUgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwMDAwMAorI2RlZmluZSBSXzAwMDEzNF9IRFBfRkJfTE9DQVRJT04gICAgICAgICAgICAgICAgICAgICAweDAwMDEzNAorI2RlZmluZSAgIFNfMDAwMTM0X0hEUF9GQl9TVEFSVCh4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHhGRkZGKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwMTM0X0hEUF9GQl9TVEFSVCh4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHhGRkZGKQorI2RlZmluZSAgIENfMDAwMTM0X0hEUF9GQl9TVEFSVCAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRjAwMDAKKyNkZWZpbmUgUl8wMDA3QzBfQ1BfU1RBVCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDA3QzAKKyNkZWZpbmUgICBTXzAwMDdDMF9NUlVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMCkKKyNkZWZpbmUgICBHXzAwMDdDMF9NUlVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDdDMF9NUlVfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkZFCisjZGVmaW5lICAgU18wMDA3QzBfTVdVX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEpCisjZGVmaW5lICAgR18wMDA3QzBfTVdVX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfTVdVX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZGRAorI2RlZmluZSAgIFNfMDAwN0MwX1JTSVVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyKQorI2RlZmluZSAgIEdfMDAwN0MwX1JTSVVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDIpICYgMHgxKQorI2RlZmluZSAgIENfMDAwN0MwX1JTSVVfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGR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QlVTWSAgICAgICAgICAgICAgICAgICAgMHhGRkZGRjdGRgorI2RlZmluZSAgIFNfMDAwN0MwX0NTUV9JTkRJUkVDVF9CVVNZKHgpICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxMikKKyNkZWZpbmUgICBHXzAwMDdDMF9DU1FfSU5ESVJFQ1RfQlVTWSh4KSAgICAgICAgICAgICAgICAoKCh4KSA+PiAxMikgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfQ1NRX0lORElSRUNUX0JVU1kgICAgICAgICAgICAgICAgICAgMHhGRkZGRUZGRgorI2RlZmluZSAgIFNfMDAwN0MwX0NTSV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxMykKKyNkZWZpbmUgICBHXzAwMDdDMF9DU0lfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxMykgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfQ1NJX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGREZGRgorI2RlZmluZSAgIFNfMDAwN0MwX0NTRl9JTkRJUkVDVDJfQlVTWSh4KSAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxNCkKKyNkZWZpbmUgICBHXzAwMDdDMF9DU0ZfSU5ESVJFQ1QyX0JVU1koeCkgICAgICAgICAgICAgICAoKCh4KSA+PiAxNCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfQ1NGX0lORElSRUNUMl9CVVNZICAgICAgICAgICAgICAgICAgMHhGRkZGQkZGRgorI2RlZmluZSAgIFNfMDAwN0MwX0NTUV9JTkRJUkVDVDJfQlVTWSh4KSAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxNSkKKyNkZWZpbmUgICBHXzAwMDdDMF9DU1FfSU5ESVJFQ1QyX0JVU1koeCkgICAgICAgICAgICAgICAoKCh4KSA+PiAxNSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfQ1NRX0lORElSRUNUMl9CVVNZICAgICAgICAgICAgICAgICAgMHhGRkZGN0ZGRgorI2RlZmluZSAgIFNfMDAwN0MwX0dVSURNQV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyOCkKKyNkZWZpbmUgICBHXzAwMDdDMF9HVUlETUFfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyOCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfR1VJRE1BX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgMHhFRkZGRkZGRgorI2RlZmluZSAgIFNfMDAwN0MwX1ZJRERNQV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyOSkKKyNkZWZpbmUgICBHXzAwMDdDMF9WSURETUFfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyOSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfVklERE1BX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgMHhERkZGRkZGRgorI2RlZmluZSAgIFNfMDAwN0MwX0NNRFNUUk1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAzMCkKKyNkZWZpbmUgICBHXzAwMDdDMF9DTURTVFJNX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAzMCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfQ01EU1RSTV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgMHhCRkZGRkZGRgorI2RlZmluZSAgIFNfMDAwN0MwX0NQX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAzMSkKKyNkZWZpbmUgICBHXzAwMDdDMF9DUF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAzMSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDA3QzBfQ1BfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHg3RkZGRkZGRgorI2RlZmluZSBSXzAwMEU0MF9SQkJNX1NUQVRVUyAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMEU0MAorI2RlZmluZSAgIFNfMDAwRTQwX0NNREZJRk9fQVZBSUwoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHg3RikgPDwgMCkKKyNkZWZpbmUgICBHXzAwMEU0MF9DTURGSUZPX0FWQUlMKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAwKSAmIDB4N0YpCisjZGVmaW5lICAgQ18wMDBFNDBfQ01ERklGT19BVkFJTCAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkY4MAorI2RlZmluZSAgIFNfMDAwRTQwX0hJUlFfT05fUkJCKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCA4KQorI2RlZmluZSAgIEdfMDAwRTQwX0hJUlFfT05fUkJCKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDgpICYgMHgxKQorI2RlZmluZSAgIENfMDAwRTQwX0hJUlFfT05fUkJCICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZFRkYKKyNkZWZpbmUgICBTXzAwMEU0MF9DUFJRX09OX1JCQih4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgOSkKKyNkZWZpbmUgICBHXzAwMEU0MF9DUFJRX09OX1JCQih4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiA5KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9DUFJRX09OX1JCQiAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGREZGCisjZGVmaW5lICAgU18wMDBFNDBfQ0ZSUV9PTl9SQkIoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEwKQorI2RlZmluZSAgIEdfMDAwRTQwX0NGUlFfT05fUkJCKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDEwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9DRlJRX09OX1JCQiAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGQkZGCisjZGVmaW5lICAgU18wMDBFNDBfSElSUV9JTl9SVEJVRih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDExKQorI2RlZmluZSAgIEdfMDAwRTQwX0hJUlFfSU5fUlRCVUYoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDExKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9ISVJRX0lOX1JUQlVGICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGN0ZGCisjZGVmaW5lICAgU18wMDBFNDBfQ1BSUV9JTl9SVEJVRih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEyKQorI2RlZmluZSAgIEdfMDAwRTQwX0NQUlFfSU5fUlRCVUYoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDEyKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9DUFJRX0lOX1JUQlVGICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZFRkZGCisjZGVmaW5lICAgU18wMDBFNDBfQ0ZSUV9JTl9SVEJVRih4KSAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEzKQorI2RlZmluZSAgIEdfMDAwRTQwX0NGUlFfSU5fUlRCVUYoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDEzKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9DRlJRX0lOX1JUQlVGICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZERkZGCisjZGVmaW5lICAgU18wMDBFNDBfQ0ZfUElQRV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE0KQorI2RlZmluZSAgIEdfMDAwRTQwX0NGX1BJUEVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDE0KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9DRl9QSVBFX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZCRkZGCisjZGVmaW5lICAgU18wMDBFNDBfRU5HX0VWX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE1KQorI2RlZmluZSAgIEdfMDAwRTQwX0VOR19FVl9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDE1KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9FTkdfRVZfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkY3RkZGCisjZGVmaW5lICAgU18wMDBFNDBfQ1BfQ01EU1RSTV9CVVNZKHgpICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE2KQorI2RlZmluZSAgIEdfMDAwRTQwX0NQX0NNRFNUUk1fQlVTWSh4KSAgICAgICAgICAgICAgICAgICgoKHgpID4+IDE2KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9DUF9DTURTVFJNX0JVU1kgICAgICAgICAgICAgICAgICAgICAweEZGRkVGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfRTJfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE3KQorI2RlZmluZSAgIEdfMDAwRTQwX0UyX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDE3KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9FMl9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkRGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfUkIyRF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE4KQorI2RlZmluZSAgIEdfMDAwRTQwX1JCMkRfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDE4KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9SQjJEX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRkJGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfUkIzRF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDE5KQorI2RlZmluZSAgIEdfMDAwRTQwX1JCM0RfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDE5KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9SQjNEX0JVU1kgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRjdGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfVkFQX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIwKQorI2RlZmluZSAgIEdfMDAwRTQwX1ZBUF9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDIwKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9WQVBfQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGRUZGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfUkVfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIxKQorI2RlZmluZSAgIEdfMDAwRTQwX1JFX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDIxKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9SRV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGREZGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfVEFNX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIyKQorI2RlZmluZSAgIEdfMDAwRTQwX1RBTV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDIyKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9UQU1fQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGQkZGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfVERNX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDIzKQorI2RlZmluZSAgIEdfMDAwRTQwX1RETV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDIzKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9URE1fQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZGN0ZGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfUEJfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDI0KQorI2RlZmluZSAgIEdfMDAwRTQwX1BCX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDI0KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9QQl9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZFRkZGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfVElNX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDI1KQorI2RlZmluZSAgIEdfMDAwRTQwX1RJTV9CVVNZKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDI1KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9USU1fQlVTWSAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZERkZGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfR0FfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDI2KQorI2RlZmluZSAgIEdfMDAwRTQwX0dBX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDI2KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9HQV9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweEZCRkZGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfQ0JBMkRfQlVTWSh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDI3KQorI2RlZmluZSAgIEdfMDAwRTQwX0NCQTJEX0JVU1koeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDI3KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9DQkEyRF9CVVNZICAgICAgICAgICAgICAgICAgICAgICAgICAweEY3RkZGRkZGCisjZGVmaW5lICAgU18wMDBFNDBfR1VJX0FDVElWRSh4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDMxKQorI2RlZmluZSAgIEdfMDAwRTQwX0dVSV9BQ1RJVkUoeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDMxKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMEU0MF9HVUlfQUNUSVZFICAgICAgICAgICAgICAgICAgICAgICAgICAweDdGRkZGRkZGCisjZGVmaW5lIFJfMDA2NTIwX0RDX0xCX01FTU9SWV9TUExJVCAgICAgICAgICAgICAgICAgIDB4MDA2NTIwCisjZGVmaW5lICAgU18wMDY1MjBfRENfTEJfTUVNT1JZX1NQTElUKHgpICAgICAgICAgICAgICAgKCgoeCkgJiAweDMpIDw8IDApCisjZGVmaW5lICAgR18wMDY1MjBfRENfTEJfTUVNT1JZX1NQTElUKHgpICAgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweDMpCisjZGVmaW5lICAgQ18wMDY1MjBfRENfTEJfTUVNT1JZX1NQTElUICAgICAgICAgICAg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4MSkKKyNkZWZpbmUgICBDXzAwMDA5MF9NQ19TWVNURU1fSURMRSAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkZFCisjZGVmaW5lICAgU18wMDAwOTBfTUNfU0VRVUVOQ0VSX0lETEUoeCkgICAgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDEpCisjZGVmaW5lICAgR18wMDAwOTBfTUNfU0VRVUVOQ0VSX0lETEUoeCkgICAgICAgICAgICAgICAgKCgoeCkgPj4gMSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwOTBfTUNfU0VRVUVOQ0VSX0lETEUgICAgICAgICAgICAgICAgICAgMHhGRkZGRkZGRAorI2RlZmluZSAgIFNfMDAwMDkwX01DX0FSQklURVJfSURMRSh4KSAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyKQorI2RlZmluZSAgIEdfMDAwMDkwX01DX0FSQklURVJfSURMRSh4KSAgICAgICAgICAgICAgICAgICgoKHgpID4+IDIpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDkwX01DX0FSQklURVJfSURMRSAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGRkIKKyNkZWZpbmUgICBTXzAwMDA5MF9NQ19TRUxFQ1RfUE0oeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMykKKyNkZWZpbmUgICBHXzAwMDA5MF9NQ19TRUxFQ1RfUE0oeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAzKSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDA5MF9NQ19TRUxFQ1RfUE0gICAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRkY3CisjZGVmaW5lICAgU18wMDAwOTBfUkVTRVJWRUQ0KHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweEYpIDw8IDQpCisjZGVmaW5lICAgR18wMDAwOTBfUkVTRVJWRUQ0KHgpICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gNCkgJiAweEYpCisjZGVmaW5lICAgQ18wMDAwOTBfUkVTRVJWRUQ0ICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGRkYwRgorI2RlZmluZSAgIFNfMDAwMDkwX1JFU0VSVkVEOCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHhGKSA8PCA4KQorI2RlZmluZSAgIEdfMDAwMDkwX1JFU0VSVkVEOCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpID4+IDgpICYgMHhGKQorI2RlZmluZSAgIENfMDAwMDkwX1JFU0VSVkVEOCAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkYwRkYKKyNkZWZpbmUgICBTXzAwMDA5MF9SRVNFUlZFRDEyKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4RikgPDwgMTIpCisjZGVmaW5lICAgR18wMDAwOTBfUkVTRVJWRUQxMih4KSAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTIpICYgMHhGKQorI2RlZmluZSAgIENfMDAwMDkwX1JFU0VSVkVEMTIgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGRjBGRkYKKyNkZWZpbmUgICBTXzAwMDA5MF9NQ0FfSU5JVF9FWEVDVVRFRCh4KSAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTYpCisjZGVmaW5lICAgR18wMDAwOTBfTUNBX0lOSVRfRVhFQ1VURUQoeCkgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTYpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDkwX01DQV9JTklUX0VYRUNVVEVEICAgICAgICAgICAgICAgICAgIDB4RkZGRUZGRkYKKyNkZWZpbmUgICBTXzAwMDA5MF9NQ0FfSURMRSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTcpCisjZGVmaW5lICAgR18wMDAwOTBfTUNBX0lETEUoeCkgICAgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDkwX01DQV9JRExFICAgICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGREZGRkYKKyNkZWZpbmUgICBTXzAwMDA5MF9NQ0FfU0VRX0lETEUoeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTgpCisjZGVmaW5lICAgR18wMDAwOTBfTUNBX1NFUV9JRExFKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTgpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDkwX01DQV9TRVFfSURMRSAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGQkZGRkYKKyNkZWZpbmUgICBTXzAwMDA5MF9NQ0FfQVJCX0lETEUoeCkgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgMTkpCisjZGVmaW5lICAgR18wMDAwOTBfTUNBX0FSQl9JRExFKHgpICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMTkpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDkwX01DQV9BUkJfSURMRSAgICAgICAgICAgICAgICAgICAgICAgIDB4RkZGN0ZGRkYKKyNkZWZpbmUgICBTXzAwMDA5MF9SRVNFUlZFRDIwKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4RkZGKSA8PCAyMCkKKyNkZWZpbmUgICBHXzAwMDA5MF9SRVNFUlZFRDIwKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMCkgJiAweEZGRikKKyNkZWZpbmUgICBDXzAwMDA5MF9SRVNFUlZFRDIwICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMEZGRkZGCisjZGVmaW5lIFJfMDAwMTAwX01DQ0ZHX0ZCX0xPQ0FUSU9OICAgICAgICAgICAgICAgICAgIDB4MDAwMTAwCisjZGVmaW5lICAgU18wMDAxMDBfTUNfRkJfU1RBUlQoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgJiAweEZGRkYpIDw8IDApCisjZGVmaW5lICAgR18wMDAxMDBfTUNfRkJfU1RBUlQoeCkgICAgICAgICAgICAgICAgICAgICAgKCgoeCkgPj4gMCkgJiAweEZGRkYpCisjZGVmaW5lICAgQ18wMDAxMDBfTUNfRkJfU1RBUlQgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGMDAwMAorI2RlZmluZSAgIFNfMDAwMTAwX01DX0ZCX1RPUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHhGRkZGKSA8PCAxNikKKyNkZWZpbmUgICBHXzAwMDEwMF9NQ19GQl9UT1AoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxNikgJiAweEZGRkYpCisjZGVmaW5lICAgQ18wMDAxMDBfTUNfRkJfVE9QICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwRkZGRgorI2RlZmluZSBSXzAwMDEwNF9NQ19JTklUX01JU0NfTEFUX1RJTUVSICAgICAgICAgICAgICAweDAwMDEwNAorI2RlZmluZSAgIFNfMDAwMTA0X01DX0NQUl9JTklUX0xBVCh4KSAgICAgICAgICAgICAgICAgICgoKHgpICYgMHhGKSA8PCAwKQorI2RlZmluZSAgIEdfMDAwMTA0X01DX0NQUl9JTklUX0xBVCh4KSAgICAgICAgICAgICAgICAgICgoKHgpID4+IDApICYgMHhGKQorI2RlZmluZSAgIENfMDAwMTA0X01DX0NQUl9JTklUX0xBVCAgICAgICAgICAgICAgICAgICAgIDB4RkZGRkZGRjAKKyNkZWZpbmUgICBTXzAwMDEwNF9NQ19WRl9JTklUX0xBVCh4KSAgICAgICAgICAgICAgICAgICAoKCh4KSAmIDB4RikgPDwgNCkKKyNkZWZpbmUgICBHXzAwMDEwNF9NQ19WRl9JTklUX0xBVCh4KSAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiA0KSAmIDB4RikKKyNkZWZpbmUgICBDXzAwMDEwNF9NQ19WRl9JTklUX0xBVCAgICAgICAgICAgICAgICAgICAgICAweEZGRkZGRjBGCisjZGVmaW5lICAgU18wMDAxMDRfTUNfRElTUDBSX0lOSVRfTEFUKHgpICAgICAgICAgICAgICAgKCgoeCkgJiAweEYpIDw8IDgpCisjZGVmaW5lICAgR18wMDAxMDRfTUNfRElTUDBSX0lOSVRfTEFUKHgpICAgICAgICAgICAgICAgKCgoeCkgPj4gOCkgJiAweEYpCisjZGVmaW5lICAgQ18wMDAxMDRfTUNfRElTUDBSX0lOSVRfTEFUICAgICAgICAgICAgICAgICAgMHhGRkZGRjBGRgorI2RlZmluZSAgIFNfMDAwMTA0X01DX0RJU1AxUl9JTklUX0xBVCh4KSAgICAgICAgICAgICAgICgoKHgpICYgMHhGKSA8PCAxMikKKyNkZWZpbmUgICBHXzAwMDEwNF9NQ19ESVNQMVJfSU5JVF9MQVQoeCkgICAgICAgICAgICAgICAoKCh4KSA+PiAxMikgJiAweEYpCisjZGVmaW5lICAgQ18wMDAxMDRfTUNfRElTUDFSX0lOSVRfTEFUICAgICAgICAgICAgICAgICAgMHhGRkZGMEZGRgorI2RlZmluZSAgIFNfMDAwMTA0X01DX0ZJWEVEX0lOSVRfTEFUKHgpICAgICAgICAgICAgICAgICgoKHgpICYgMHhGKSA8PCAxNikKKyNkZWZpbmUgICBHXzAwMDEwNF9NQ19GSVhFRF9JTklUX0xBVCh4KSAgICAgICAgICAgICAgICAoKCh4KSA+PiAxNikgJiAweEYpCisjZGVmaW5lICAgQ18wMDAxMDRfTUNfRklYRURfSU5JVF9MQVQgICAgICAgICAgICAgICAgICAgMHhGRkYwRkZGRgorI2RlZmluZSAgIFNfMDAwMTA0X01DX0UyUl9JTklUX0xBVCh4KSAgICAgICAgICAgICAgICAgICgoKHgpICYgMHhGKSA8PCAyMCkKKyNkZWZpbmUgICBHXzAwMDEwNF9NQ19FMlJfSU5JVF9MQVQoeCkgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMCkgJiAweEYpCisjZGVm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AgKCgoeCkgPj4gNikgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRTJfTUFYX0RZTl9TVE9QX0xBVCAgICAgICAgICAgICAgICAgMHhGRkZGRkZCRgorI2RlZmluZSAgIFNfMDAwMDBEX1NFX01BWF9EWU5fU1RPUF9MQVQoeCkgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCA3KQorI2RlZmluZSAgIEdfMDAwMDBEX1NFX01BWF9EWU5fU1RPUF9MQVQoeCkgICAgICAgICAgICAgICgoKHgpID4+IDcpICYgMHgxKQorI2RlZmluZSAgIENfMDAwMDBEX1NFX01BWF9EWU5fU1RPUF9MQVQgICAgICAgICAgICAgICAgIDB4RkZGRkZGN0YKKyNkZWZpbmUgICBTXzAwMDAwRF9JRENUX01BWF9EWU5fU1RPUF9MQVQoeCkgICAgICAgICAgICAoKCh4KSAmIDB4MSkgPDwgOCkKKyNkZWZpbmUgICBHXzAwMDAwRF9JRENUX01BWF9EWU5fU1RPUF9MQVQoeCkgICAgICAgICAgICAoKCh4KSA+PiA4KSAmIDB4MSkKKyNkZWZpbmUgICBDXzAwMDAwRF9JRENUX01BWF9EWU5fU1RPUF9MQVQgICAgICAgICAgICAgICAweEZGRkZGRUZGCisjZGVmaW5lICAgU18wMDAwMERfVklQX01BWF9EWU5fU1RPUF9MQVQoeCkgICAgICAgICAgICAgKCgoeCkgJiAweDEpIDw8IDkpCisjZGVmaW5lICAgR18wMDAwMERfVklQX01BWF9EWU5fU1RPUF9MQVQoeCkgICAgICAgICAgICAgKCgoeCkgPj4gOSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfVklQX01BWF9EWU5fU1RPUF9MQVQgICAgICAgICAgICAgICAgMHhGRkZGRkRGRgorI2RlZmluZSAgIFNfMDAwMDBEX1JFX01BWF9EWU5fU1RPUF9MQVQoeCkgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxMCkKKyNkZWZpbmUgICBHXzAwMDAwRF9SRV9NQVhfRFlOX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kKKyNkZWZpbmUgICBHXzAwMDAwRF9SQl9NQVhfRFlOX1NUT1BfTEFUKHgpICAgICAgICAgICAgICAoKCh4KSA+PiAxNCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfUkJfTUFYX0RZTl9TVE9QX0xBVCAgICAgICAgICAgICAgICAgMHhGRkZGQkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX0RJU1AyKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxNSkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9ESVNQMih4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxNSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfRElTUDIgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZGN0ZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX0NQKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxNikKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9DUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxNikgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfQ1AgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZFRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX0hEUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxNykKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9IRFAoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxNykgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfSERQICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZERkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX0RJU1AxKHgpICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxOCkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9ESVNQMSh4KSAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxOCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfRElTUDEgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkZCRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1RPUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAxOSkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9UT1AoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAxOSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVE9QICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkY3RkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX0UyKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMCkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9FMih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfRTIgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkVGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1NFKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMSkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9TRSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfU0UgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkRGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX0lEQ1QoeCkgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMikKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9JRENUKHgpICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMikgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfSURDVCAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkJGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1ZJUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMykKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9WSVAoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMykgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVklQICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRjdGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1JFKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNCkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9SRSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfUkUgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRUZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1BCKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNSkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9QQih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfUEIgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGREZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1RBTSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNikKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9UQU0oeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNikgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVEFNICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGQkZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1RETSh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNykKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9URE0oeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNykgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVERNICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGN0ZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1JCKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyOCkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9SQih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyOCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfUkIgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhFRkZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1RWX1NDTEsoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyOSkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9UVl9TQ0xLKHgpICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyOSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVFZfU0NMSyAgICAgICAgICAgICAgICAgICAgICAgMHhERkZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDB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0xBSU0sIERBTUFHRVMgT1IKKyAqIE9USEVSIExJQUJJTElUWSwgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIFRPUlQgT1IgT1RIRVJXSVNFLAorICogQVJJU0lORyBGUk9NLCBPVVQgT0YgT1IgSU4gQ09OTkVDVElPTiBXSVRIIFRIRSBTT0ZUV0FSRSBPUiBUSEUgVVNFIE9SCisgKiBPVEhFUiBERUFMSU5HUyBJTiBUSEUgU09GVFdBUkUuCisgKgorICogQXV0aG9yczogRGF2ZSBBaXJsaWUKKyAqICAgICAgICAgIEFsZXggRGV1Y2hlcgorICogICAgICAgICAgSmVyb21lIEdsaXNzZQorICovCisjaWZuZGVmIF9fUlYzNTBEX0hfXworI2RlZmluZSBfX1JWMzUwRF9IX18KKworLyogUlYzNTAsIFJWMzgwIHJlZ2lzdGVycyAqLworLyogI2RlZmluZSBSXzAwMDAwRF9TQ0xLX0NOVEwgICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDAwRCAqLworI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1ZBUCh4KSAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyMSkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9WQVAoeCkgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyMSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVkFQICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGRkRGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1NSKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNSkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9TUih4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNSkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfU1IgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGREZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1BYKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNikKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9QWCh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNikgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfUFggICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGQkZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1RYKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyNykKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9UWCh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyNykgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVFggICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhGN0ZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1VTKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAyOCkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9VUyh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAyOCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfVVMgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHhFRkZGRkZGRgorI2RlZmluZSAgIFNfMDAwMDBEX0ZPUkNFX1NVKHgpICAgICAgICAgICAgICAgICAgICAgICAgICgoKHgpICYgMHgxKSA8PCAzMCkKKyNkZWZpbmUgICBHXzAwMDAwRF9GT1JDRV9TVSh4KSAgICAgICAgICAgICAgICAgICAgICAgICAoKCh4KSA+PiAzMCkgJiAweDEpCisjZGVmaW5lICAgQ18wMDAwMERfRk9SQ0VfU1UgICAgICAgIC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dWRlICJ0eC5oIgotI2luY2x1ZGUgInJ4LmgiCiAjaW5jbHVkZSAiZWZ4LmgiCiAjaW5jbHVkZSAibWRpb18xMGcuaCIKICNpbmNsdWRlICJmYWxjb24uaCIKIAorLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCisgKgorICogVHlwZSBuYW1lIHN0cmluZ3MKKyAqCisgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKKyAqLworCisvKiBMb29wYmFjayBtb2RlIG5hbWVzIChzZWUgTE9PUEJBQ0tfTU9ERSgpKSAqLworY29uc3QgdW5zaWduZWQgaW50IGVmeF9sb29wYmFja19tb2RlX21heCA9IExPT1BCQUNLX01BWDsKK2NvbnN0IGNoYXIgKmVmeF9sb29wYmFja19tb2RlX25hbWVzW10gPSB7CisJW0xPT1BCQUNLX05PTkVdCQk9ICJOT05FIiwKKwlbTE9PUEJBQ0tfR01BQ10JCT0gIkdNQUMiLAorCVtMT09QQkFDS19YR01JSV0JPSAiWEdNSUkiLAorCVtMT09QQkFDS19YR1hTXQkJPSAiWEdYUyIsCisJW0xPT1BCQUNLX1hBVUldICAJPSAiWEFVSSIsCisJW0xPT1BCQUNLX0dQSFldCQk9ICJHUEhZIiwKKwlbTE9PUEJBQ0tfUEhZWFNdCT0gIlBIWVhTIiwKKwlbTE9PUEJBQ0tfUENTXQkgCT0gIlBDUyIsCisJW0xPT1BCQUNLX1BNQVBNRF0gCT0gIlBNQS9QTUQiLAorCVtMT09QQkFDS19ORVRXT1JLXQk9ICJORVRXT1JLIiwKK307CisKKy8qIEludGVycnVwdCBtb2RlIG5hbWVzIChzZWUgSU5UX01PREUoKSkpICovCitjb25zdCB1bnNpZ25lZCBpbnQgZWZ4X2ludGVycnVwdF9tb2RlX21heCA9IEVGWF9JTlRfTU9ERV9NQVg7Citjb25zdCB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0X2V4cGxpY2l0OwkvKiAgYWJvcnRlZCBieSBPUyAgICAgICAgICAgICovCisJc3RydWN0IGJmYV90c2tpbV9zCSp0c2tpbTsJCS8qICBSZWxldmFudCBUTSBjbWQgICAgICAgICAgKi8KK307CisKKy8qKgorICogQkZBIFRhc2sgbWFuYWdlbWVudCBjb21tYW5kIChpbml0aWF0b3IgbW9kZSkKKyAqLworc3RydWN0IGJmYV90c2tpbV9zIHsKKwlzdHJ1Y3QgbGlzdF9oZWFkICAgICAgICAgIHFlOworCWJmYV9zbV90CQlzbTsKKwlzdHJ1Y3QgYmZhX3MgICAgICAgICAgICAqYmZhOyAgICAgICAgLyogIEJGQSBtb2R1bGUgICovCisJc3RydWN0IGJmYV9mY3BpbV9tb2RfcyAgKmZjcGltOyAgICAgIC8qICBwYXJlbnQgZmNwaW0gbW9kdWxlICAgICAgKi8KKwlzdHJ1Y3QgYmZhX2l0bmltX3MgICAgICAqaXRuaW07ICAgICAgLyogIGktdC1uIG5leHVzIGZvciB0aGlzIElPICAqLworCXN0cnVjdCBiZmFkX3Rza2ltX3MgICAgICAgICAqZHRzazsgICAvKiAgZHJpdmVyIHRhc2sgbWdtdCBjbW5kICAgICovCisJYmZhX2Jvb2xlYW5fdCAgICAgICAgbm90aWZ5OyAgICAgICAgIC8qICBub3RpZnkgaXRuaW0gb24gVE0gY29tcCAgKi8KKwlsdW5fdCAgICAgICAgICAgICAgICBsdW47ICAgICAgICAgICAgLyogIGx1biBpZiBhcHBsaWNhYmxlICAgICAgICAqLworCWVudW0gZmNwX3RtX2NtbmQgICAgICAgIHRtX2NtbmQ7ICAgICAvKiAgdGFzayBtYW5hZ2VtZW50IGNvbW1hbmQgICovCisJdTE2ICAgICAgICAgICAgIHRza190YWc7ICAgICAgICAvKiAgRldJIElPIHRhZyAgICAgICAgICAgICAgICovCisJdTggICAgICAgICAgICAgIHRzZWNzOyAgICAgICAgICAvKiAgdGltZW91dCBpbiBzZWNvbmRzICAgICAgICovCisJc3RydWN0I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WQpCisJCQlyZXR1cm4gbHBzLT5scF90YWc7CisJfQorCisJLyogUmV0dXJuIGJhc2UgcG9ydCB0YWcgYW55d2F5ICovCisJcmV0dXJuIDA7Cit9CisKKy8qKgorICogcmV0dXJuIGlmIGZhYnJpYyBsb2dpbiBpbmRpY2F0ZXMgc3VwcG9ydCBmb3IgTlBJVgorICovCitiZmFfYm9vbGVhbl90CitiZmFfbHBzX2lzX25waXZfZW4oc3RydWN0IGJmYV9scHNfcyAqbHBzKQoreworCXJldHVybiBscHMtPm5waXZfZW47Cit9CisKKy8qKgorICogUmV0dXJuIFRSVUUgaWYgYXR0YWNoZWQgdG8gRi1Qb3J0LCBlbHNlIHJldHVybiBGQUxTRQorICovCitiZmFfYm9vbGVhbl90CitiZmFfbHBzX2lzX2Zwb3J0KHN0cnVjdCBiZmFfbHBzX3MgKmxwcykKK3sKKwlyZXR1cm4gbHBzLT5mcG9ydDsKK30KKworLyoqCisgKiBSZXR1cm4gVFJVRSBpZiBhdHRhY2hlZCB0byBhIEJyb2NhZGUgRmFicmljCisgKi8KK2JmYV9ib29sZWFuX3QKK2JmYV9scHNfaXNfYnJjZF9mYWJyaWMoc3RydWN0IGJmYV9scHNfcyAqbHBzKQoreworCXJldHVybiBscHMtPmJyY2Rfc3dpdGNoOworfQorLyoqCisgKiByZXR1cm4gVFJVRSBpZiBhdXRoZW50aWNhdGlvbiBpcyByZXF1aXJlZAorICovCitiZmFfYm9vbGVhbl90CitiZmFfbHBzX2lzX2F1dGhyZXEoc3RydWN0IGJmYV9scHNfcyAqbHBzKQoreworCXJldHVybiBscHMtPmF1dGhfcmVxOworfQorCitiZmFfZXByb3RvX3N0YXR1c190CitiZmFfbHBzX2dldF9leHRzdGF0dXMoc3RydWN0IGJmYV9scHNfcyAqbHBzKQoreworCXJldHVybiBscHMtPmV4dF9zdGF0dXM7Cit9CisKKy8qKgorICogcmV0dXJuIHBvcnQgaWQgYXNzaWduZWQgdG8gdGhlIGxwb3J0CisgKi8KK3UzM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zX3UzMihfX3BhNjQpICgoX19wYTY0KSA+PiAzMikKKworI2RlZmluZSBiZmFfb3NfbWVtc2V0CW1lbXNldAorI2RlZmluZSBiZmFfb3NfbWVtY3B5CW1lbWNweQorI2RlZmluZSBiZmFfb3NfdWRlbGF5CXVkZWxheQorI2RlZmluZSBiZmFfb3NfdnNwcmludGYgdnNwcmludGYKKworI2RlZmluZSBiZmFfb3NfYXNzaWduKF9fdCwgX19zKSBfX3QgPSBfX3MKKworI2RlZmluZSBiZmFfb3NfYWRkcl90IGNoYXIgX19pb21lbSAqCisjZGVmaW5lIGJmYV9vc19wYW5pYygpCisKKyNkZWZpbmUgYmZhX29zX3JlZ19yZWFkKF9yYWRkcikgYmZhX29zX3d0b2xlKHJlYWRsKF9yYWRkcikpCisjZGVmaW5lIGJmYV9vc19yZWdfd3JpdGUoX3JhZGRyLCBfdmFsKSB3cml0ZWwoYmZhX29zX3d0b2xlKChfdmFsKSksIChfcmFkZHIpKQorI2RlZmluZSBiZmFfb3NfbWVtX3JlYWQoX3JhZGRyLCBfb2ZmKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXAorCWJmYV9vc19udG9obChyZWFkbCgoKF9yYWRkcikgKyAoX29mZikpKSkKKyNkZWZpbmUgYmZhX29zX21lbV93cml0ZShfcmFkZHIsIF9vZmYsIF92YWwpICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwKKwl3cml0ZWwoYmZhX29zX2h0b25sKChfdmFsKSksICgoX3JhZGRyKSArIChfb2ZmKSkpCisKKyNkZWZpbmUgQkZBX1RSQ19UUyhfdHJjbSkJCQkJCQlcCisJCQkoewkJCQkJCVwKKwkJCQlzdHJ1Y3QgdGltZXZhbCB0djsJCQlcCisJCQkJCQkJCQlcCisJCQkJZG9fZ2V0dGltZW9mZGF5KCZ0dik7ICAgICAgXAorCQkJCSh0di50dl9zZWMqMTAwMDAwMCt0di50dl91c2VjKTsgICAgICBcCisJCQkgfSkKKworc3RydWN0IGJmYV9sb2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mFfZmNiLmg+CisKK0JGQV9UUkNfRklMRShMRFJWLCBCRkFEKTsKK3N0YXRpYyBERUZJTkVfTVVURVgoYmZhZF9tdXRleCk7CitMSVNUX0hFQUQoYmZhZF9saXN0KTsKK3N0YXRpYyBpbnQgICAgICBiZmFkX2luc3Q7CitpbnQgYmZhZF9zdXBwb3J0ZWRfZmM0czsKKworc3RhdGljIGNoYXIgICAgICpob3N0X25hbWU7CitzdGF0aWMgY2hhciAgICAgKm9zX25hbWU7CitzdGF0aWMgY2hhciAgICAgKm9zX3BhdGNoOworc3RhdGljIGludCAgICAgIG51bV9ycG9ydHM7CitzdGF0aWMgaW50ICAgICAgbnVtX2lvczsKK3N0YXRpYyBpbnQgICAgICBudW1fdG1zOworc3RhdGljIGludCAgICAgIG51bV9mY3hwczsKK3N0YXRpYyBpbnQgICAgICBudW1fdWZidWZzOworc3RhdGljIGludCAgICAgIHJlcXFfc2l6ZTsKK3N0YXRpYyBpbnQgICAgICByc3BxX3NpemU7CitzdGF0aWMgaW50ICAgICAgbnVtX3NncGdzOworc3RhdGljIGludCAgICAgIHJwb3J0X2RlbF90aW1lb3V0ID0gQkZBX0ZDU19SUE9SVF9ERUZfREVMX1RJTUVPVVQ7CitzdGF0aWMgaW50ICAgICAgYmZhX2lvX21heF9zZ2UgPSBCRkFEX0lPX01BWF9TR0U7CitzdGF0aWMgaW50ICAgICAgbG9nX2xldmVsID0gQkZBX0xPR19XQVJOSU5HOworc3RhdGljIGludCAgICAgIGlvY19hdXRvX3JlY292ZXIgPSBCRkFfVFJVRTsKK3N0YXRpYyBpbnQgICAgICBpcGZjX2VuYWJsZSA9IEJGQV9GQUxTRTsKK3N0YXRpYyBpbnQgICAgICBpcGZjX210dSA9IC0xOworaW50IAkJYmZhX2x1bl9xdWV1ZV9kZXB0aCA9IEJGQURfTFVOX1FVRVVFX0RFUFRIOworaW50ICAgICAgCWJmYV9saW5rdXBfZGVsYXkgPSAtMTsKKworbW9kdWxlX3BhcmFtKG9zX25h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yZXFidWZfaW5mbzsKKwl2b2lkICAgICAgICAgICAqcnNwYnVmX2luZm87CisJc3RydWN0IGJmYV9zZ2VfcyAgKnJlcV9zZ2U7CisJc3RydWN0IGJmYV9zZ2VfcyAgKnJzcF9zZ2U7CisJZmN4cF9zZW5kX2NiX3QgIHNlbmRfY2JmbjsKKwl2b2lkICAgICAgICAgICAqc2VuZF9jYmFyZzsKKwl2b2lkICAgICAgICAgICAqYmZhX2ZjeHA7CisJc3RydWN0IGNvbXBsZXRpb24gY29tcDsKK307CisKK3N0cnVjdCBiZmFkX2hhbF9jb21wIHsKKwliZmFfc3RhdHVzX3QgICAgc3RhdHVzOworCXN0cnVjdCBjb21wbGV0aW9uIGNvbXA7Cit9OworCisvKgorICogTWFjcm8gdG8gb2J0YWluIHRoZSBpbW1lZGlhdGUgbG93ZXIgcG93ZXIKKyAqIG9mIHR3byBmb3IgdGhlIGludGVnZXIuCisgKi8KKyNkZWZpbmUgbmV4dExvd2VySW50KHgpICAgICAgICAgICAgICAgICAgICAgICAgIAlcCitkbyB7ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAJXAorCWludCBqOyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAJXAorCSgqeCktLTsgICAgCQkgICAgICAgICAgICAgICAgCVwKKwlmb3IgKGogPSAxOyBqIDwgKHNpemVvZihpbnQpICogOCk7IGogPDw9IDEpICAgICBcCisJCSgqeCkgPSAoKngpIHwgKCp4KSA+PiBqOyAgICAgICAgCVwKKwkoKngpKys7ICAgICAgICAgICAgICAgICAgCSAgICAgICAgCVwKKwkoKngpID0gKCp4KSA+PiAxOyAgICAgICAgICAgICAgICAgICAgICAgCVwKK30gd2hpbGUgKDApCisKKworYmZhX3N0YXR1c190ICAgIGJmYWRfdnBvcnRfY3JlYXRlKHN0cnVjdCBiZmFkX3MgKmJmYWQsIHUxNiB2Zl9pZCwKKwkJCQkgIHN0cnVjdCBiZmFfcG9ydF9jZmdfcyAqcG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W1vbiB0byBhbGwgbXNncworICovCitzdHJ1Y3QgYmZpX21oZHJfcyB7CisJdTggICAgICAgICBtc2dfY2xhc3M7CS8qICBAcmVmIGJmaV9tY2xhc3NfdAkgICAgKi8KKwl1OCAgICAgICAgIG1zZ19pZDsJCS8qICBtc2cgb3Bjb2RlIHdpdGggaW4gdGhlIGNsYXNzICAgKi8KKwl1bmlvbiB7CisJCXN0cnVjdCB7CisJCQl1OCAgICAgICAgIHJzdmQ7CisJCQl1OCAgICAgICAgIGxwdV9pZDsJLyogIG1zZyBkZXN0aW5hdGlvbgkgICAgKi8KKwkJfSBoMmk7CisJCXUxNiAgICAgICAgaTJodG9rOwkvKiAgdG9rZW4gaW4gbXNncyB0byBob3N0CSAgICAqLworCX0gbXRhZzsKK307CisKKyNkZWZpbmUgYmZpX2gyaV9zZXQoX21oLCBfbWMsIF9vcCwgX2xwdWlkKSBkbyB7CQlcCisJKF9taCkubXNnX2NsYXNzIAkJPSAoX21jKTsgICAgICBcCisJKF9taCkubXNnX2lkCQkJPSAoX29wKTsgICAgICBcCisJKF9taCkubXRhZy5oMmkubHB1X2lkCT0gKF9scHVpZCk7ICAgICAgXAorfSB3aGlsZSAoMCkKKworI2RlZmluZSBiZmlfaTJoX3NldChfbWgsIF9tYywgX29wLCBfaTJodG9rKSBkbyB7CQlcCisJKF9taCkubXNnX2NsYXNzIAkJPSAoX21jKTsgICAgICBcCisJKF9taCkubXNnX2lkCQkJPSAoX29wKTsgICAgICBcCisJKF9taCkubXRhZy5pMmh0b2sJCT0gKF9pMmh0b2spOyAgICAgIFwKK30gd2hpbGUgKDApCisKKy8qCisgKiBNZXNzYWdlIG9wY29kZXM6IDAtMTI3IHRvIGZpcm13YXJlLCAxMjgtMjU1IHRvIGhvc3QKKyAqLworI2RlZmluZSBCRklfSTJIX09QQ09ERV9CQVNFCTEyOAorI2RlZmluZSBCRkFfSTJITShfeCkgCQkJKChfeCkgKyBCRklfSTJIX09QQ09ERV9CQVNFKQorCisvKioKKyAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCisgKgorICogU2NhdHRlciBHYXRoZXIgRWxlbWVudCBhbmQgUGFnZSBkZWZpbml0aW9uCisgKgorICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKKyAqLworCisjZGVmaW5lIEJGSV9TR0VfSU5MSU5FCTEKKyNkZWZpbmUgQkZJX1NHRV9JTkxJTkVfTUFYCShCRklfU0dFX0lOTElORSArIDEpCisKKy8qKgorICogU0cgRmxhZ3MKKyAqLworZW51bSB7CisJQkZJX1NHRV9EQVRBCT0gMCwJLyogIGRhdGEgYWRkcmVzcywgbm90IGxhc3QJICAgICAqLworCUJGSV9TR0VfREFUQV9DUEwJPSAxLAkvKiAgZGF0YSBhZGRyLCBsYXN0IGluIGN1cnJlbnQgcGFnZSAqLworCUJGSV9TR0VfREFUQV9MQVNUCT0gMywJLyogIGRhdGEgYWRkcmVzcywgbGFzdAkJICAgICAqLworCUJGSV9TR0VfTElOSwk9IDIsCS8qICBsaW5rIGFkZHJlc3MJCSAgICAgKi8KKwlCRklfU0dFX1BHRExFTgk9IDIsCS8qICBjdW11bGF0aXZlIGRhdGEgbGVuZ3RoIGZvciBwYWdlICovCit9OworCisvKioKKyAqIERNQSBhZGRyZXNzZXMKKyAqLwordW5pb24gYmZpX2FkZHJfdSB7CisJc3RydWN0IHsKKwkJdTMyICAgICAgICBhZGRyX2xvOworCQl1MzIgICAgICAgIGFkZHJfaGk7CisJfSBhMzI7Cit9OworCisvKioKKyAqIFNjYXR0ZXIgR2F0aGVyIEVsZW1lbnQKKyAqLworc3RydWN0IGJmaV9zZ2VfcyB7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1MzIgICAgICAgIGZsYWdzCTogMiwKKwkJCXJzdmQJOiAyLAorCQkJc2dfbGVuCTogMjg7Cisj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X0FQUF9QTExfNDAwX0pJVExNVDBfMV9TSCAgICAgICAxMgorI2RlZmluZSBfX0FQUF9QTExfNDAwX0pJVExNVDBfMShfdikgICAgICAoKF92KSA8PCBfX0FQUF9QTExfNDAwX0pJVExNVDBfMV9TSCkKKyNkZWZpbmUgX19BUFBfUExMXzQwMF9IUkVGICAgICAgICAgICAgICAgMHgwMDAwMDgwMAorI2RlZmluZSBfX0FQUF9QTExfNDAwX0hESVYgICAgICAgICAgICAgICAweDAwMDAwNDAwCisjZGVmaW5lIF9fQVBQX1BMTF80MDBfUDBfMV9NSyAgICAgICAgICAgIDB4MDAwMDAzMDAKKyNkZWZpbmUgX19BUFBfUExMXzQwMF9QMF8xX1NIICAgICAgICAgICAgOAorI2RlZmluZSBfX0FQUF9QTExfNDAwX1AwXzEoX3YpICAgICAgICAgICAoKF92KSA8PCBfX0FQUF9QTExfNDAwX1AwXzFfU0gpCisjZGVmaW5lIF9fQVBQX1BMTF80MDBfWjBfMl9NSyAgICAgICAgICAgIDB4MDAwMDAwZTAKKyNkZWZpbmUgX19BUFBfUExMXzQwMF9aMF8yX1NIICAgICAgICAgICAgNQorI2RlZmluZSBfX0FQUF9QTExfNDAwX1owXzIoX3YpICAgICAgICAgICAoKF92KSA8PCBfX0FQUF9QTExfNDAwX1owXzJfU0gpCisjZGVmaW5lIF9fQVBQX1BMTF80MDBfUlNFTDIwMDUwMCAgICAgICAgIDB4MDAwMDAwMTAKKyNkZWZpbmUgX19BUFBfUExMXzQwMF9FTkFSU1QgICAgICAgICAgICAgMHgwMDAwMDAwOAorI2RlZmluZSBfX0FQUF9QTExfNDAwX0JZUEFTUyAgICAgICAgICAgICAweDAwMDAwMDA0CisjZGVmaW5lIF9fQVBQX1BMTF80MDBfTFJFU0VUTiAgICAgICAgICAgIDB4MDAwMDAwMDIKKyNkZWZpbmUgX19BUFBfUExMXzQwMF9FTkFCTEUgICAgICAgICAgICAgMHgwMDAwMDAwMQorI2RlZmluZSBBUFBfUExMXzIxMl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aW5lIF9fQVBQX1BMTF8yMTJfUDBfMV9TSCAgICAgICAgICAgIDgKKyNkZWZpbmUgX19BUFBfUExMXzIxMl9QMF8xKF92KSAgICAgICAgICAgKChfdikgPDwgX19BUFBfUExMXzIxMl9QMF8xX1NIKQorI2RlZmluZSBfX0FQUF9QTExfMjEyX1owXzJfTUsgICAgICAgICAgICAweDAwMDAwMGUwCisjZGVmaW5lIF9fQVBQX1BMTF8yMTJfWjBfMl9TSCAgICAgICAgICAgIDUKKyNkZWZpbmUgX19BUFBfUExMXzIxMl9aMF8yKF92KSAgICAgICAgICAgKChfdikgPDwgX19BUFBfUExMXzIxMl9aMF8yX1NIKQorI2RlZmluZSBfX0FQUF9QTExfMjEyX1JTRUwyMDA1MDAgICAgICAgICAweDAwMDAwMDEwCisjZGVmaW5lIF9fQVBQX1BMTF8yMTJfRU5BUlNUICAgICAgICAgICAgIDB4MDAwMDAwMDgKKyNkZWZpbmUgX19BUFBfUExMXzIxMl9CWVBBU1MgICAgICAgICAgICAgMHgwMDAwMDAwNAorI2RlZmluZSBfX0FQUF9QTExfMjEyX0xSRVNFVE4gICAgICAgICAgICAweDAwMDAwMDAyCisjZGVmaW5lIF9fQVBQX1BMTF8yMTJfRU5BQkxFICAgICAgICAgICAgIDB4MDAwMDAwMDEKKyNkZWZpbmUgSE9TVF9TRU0wX1JFRyAgICAgICAgICAgICAgICAgICAgMHgwMDAxNDIzMAorI2RlZmluZSBfX0hPU1RfU0VNQVBIT1JFICAgICAgICAgICAgICAgICAweDAwMDAwMDAxCisjZGVmaW5lIEhPU1RfU0VNMV9SRUcgICAgICAgICAgICAgICAgICAgIDB4MDAwMTQyMzQKKyNkZWZpbmUgSE9TVF9TRU0yX1JFRyAgICAgICAgICAgICAgICAgICAgMHgwMDAxNDIzOAorI2RlZmluZSBIT1NUX1NFTTNfUkVHICAgICAgICAgICAgICAgICAgICAweDAwMDE0MjNjCisjZGVmaW5lIEhPU1RfU0VNMF9JTkZPX1JFRyAgICAgICAg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AwNTQKKyNkZWZpbmUgQ1BFX1EyX1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMDA1YworI2RlZmluZSBDUEVfUTJfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDEwMDYwCisjZGVmaW5lIENQRV9RM19ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTAwNzQKKyNkZWZpbmUgQ1BFX1EzX1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMDA3YworI2RlZmluZSBDUEVfUTNfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDEwMDgwCisjZGVmaW5lIENQRV9RNF9ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTAwOTQKKyNkZWZpbmUgQ1BFX1E0X1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMDA5YworI2RlZmluZSBDUEVfUTRfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDEwMGEwCisjZGVmaW5lIENQRV9RNV9ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTAwYjQKKyNkZWZpbmUgQ1BFX1E1X1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMDBiYworI2RlZmluZSBDUEVfUTVfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDEwMGMwCisjZGVmaW5lIENQRV9RNl9ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTAwZDQKKyNkZWZpbmUgQ1BFX1E2X1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMDBkYworI2RlZmluZSBDUEVfUTZfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDEwMGUwCisjZGVmaW5lIENQRV9RN19ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTAwZjQKKyNkZWZpbmUgQ1BFX1E3X1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMDBmYworI2RlZmluZSBDUEVfUTdfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDEwMTAwCisjZGVmaW5lIFJNRV9RMF9ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTEwMTQKKyNkZWZpbmUgUk1FX1EwX1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMTAxYworI2RlZmluZSBSTUVfUTBfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDExMDIwCisjZGVmaW5lIFJNRV9RMV9ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTEwMzQKKyNkZWZpbmUgUk1FX1ExX1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMTAzYworI2RlZmluZSBSTUVfUTFfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDExMDQwCisjZGVmaW5lIFJNRV9RMl9ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTEwNTQKKyNkZWZpbmUgUk1FX1EyX1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMTA1YworI2RlZmluZSBSTUVfUTJfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDExMDYwCisjZGVmaW5lIFJNRV9RM19ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTEwNzQKKyNkZWZpbmUgUk1FX1EzX1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMTA3YworI2RlZmluZSBSTUVfUTNfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDExMDgwCisjZGVmaW5lIFJNRV9RNF9ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTEwOTQKKyNkZWZpbmUgUk1FX1E0X1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMTA5YworI2RlZmluZSBSTUVfUTRfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDExMGEwCisjZGVmaW5lIFJNRV9RNV9ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTEwYjQKKyNkZWZpbmUgUk1FX1E1X1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMTBiYworI2RlZmluZSBSTUVfUTVfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDExMGMwCisjZGVmaW5lIFJNRV9RNl9ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTEwZDQKKyNkZWZpbmUgUk1FX1E2X1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMTBkYworI2RlZmluZSBSTUVfUTZfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDExMGUwCisjZGVmaW5lIFJNRV9RN19ERVBUSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTEwZjQKKyNkZWZpbmUgUk1FX1E3X1BJICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAxMTBmYworI2RlZmluZSBSTUVfUTdfQ0kgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDExMTAwCisjZGVmaW5lIFBTU19DVExfUkVHICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMTg4MDAKKyNkZWZpbmUgX19QU1NfSTJDX0NMS19ESVZfTUsgICAgICAgICAgICAgMHgwMDAzMDAwMAorI2RlZmluZSBfX1BTU19JMkNfQ0xLX0RJVl9TSCAgICAgICAgICAgICAxNgorI2RlZmluZSBfX1BTU19JMkNfQ0xLX0RJVihfdikgICAgICAgICAgICAoKF92KSA8PCBfX1BTU19JMkNfQ0xLX0RJVl9TSCkKKyNkZWZpbmUgX19QU1NfTE1FTV9JTklUX0RPTkUgICAgICAgICAgICAgMHgwMDAwMTAwMAorI2RlZmluZSBfX1BTU19MTUVNX1JFU0VUICAgICAgICAgICAgICAgICAweDAwMDAwMjAwCisjZGVmaW5lIF9fUFNTX0xNRU1fSU5JVF9FTiAgICAgICAgICAgICAgIDB4MDAwMDAxMDAKKyNkZWZpbmUgX19QU1NfTFBVMV9SRVNFVCAgICAgICAgICAgICAgICAgMHgwMDAwMDAwMgorI2RlZmluZSBfX1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fTVNJWF9DQl9NQVggPSAyMiwKK307CisKKy8qCisgKiBBbmQgY29ycmVzcG9uZGluZyBob3N0IGludGVycnVwdCBzdGF0dXMgYml0IGZpZWxkIGRlZmluZXMKKyAqLworI2RlZmluZSBfX0hGTl9JTlRfQ1BFX1EwICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwMDFVCisjZGVmaW5lIF9fSEZOX0lOVF9DUEVfUTEgICAgICAgICAgICAgICAgICAgMHgwMDAwMDAwMlUKKyNkZWZpbmUgX19IRk5fSU5UX0NQRV9RMiAgICAgICAgICAgICAgICAgICAweDAwMDAwMDA0VQorI2RlZmluZSBfX0hGTl9JTlRfQ1BFX1EzICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwMDhVCisjZGVmaW5lIF9fSEZOX0lOVF9DUEVfUTQgICAgICAgICAgICAgICAgICAgMHgwMDAwMDAxMFUKKyNkZWZpbmUgX19IRk5fSU5UX0NQRV9RNSAgICAgICAgICAgICAgICAgICAweDAwMDAwMDIwVQorI2RlZmluZSBfX0hGTl9JTlRfQ1BFX1E2ICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwNDBVCisjZGVmaW5lIF9fSEZOX0lOVF9DUEVfUTcgICAgICAgICAgICAgICAgICAgMHgwMDAwMDA4MFUKKyNkZWZpbmUgX19IRk5fSU5UX1JNRV9RMCAgICAgICAgICAgICAgICAgICAweDAwMDAwMTAwVQorI2RlZmluZSBfX0hGTl9JTlRfUk1FX1ExICAgICAgICAgICAgICAgICAgIDB4MDAwMDAyMDBVCisjZGVmaW5lIF9fSEZOX0lOVF9STUVfUTIgICAgICAgICAgICAgICAgICAgMHgwMDAwMDQwMFUKKyNkZWZpbmUgX19IRk5fSU5UX1JNRV9RMyAgICAgICAgICAgICAgICAgICAweDAwMDAwODAwVQorI2RlZmluZSBfX0hGTl9JTlRfUk1FX1E0ICAgICAgICAgICAgICAgICAgIDB4MDAwMDEwMDBVCisjZGVmaW5lIF9fSEZOX0lOVF9STUVfUTUgICAgICAgICAgICAgICAgICAgMHgwMDAwMjAwMFUKKyNkZWZpbmUgX19IRk5fSU5UX1JNRV9RNiAgICAgICAgICAgICAgICAgICAweDAwMDA0MDAwVQorI2RlZmluZSBfX0hGTl9JTlRfUk1FX1E3ICAgICAgICAgICAgICAgICAgIDB4MDAwMDgwMDBVCisjZGVmaW5lIF9fSEZOX0lOVF9FUlJfRU1DICAgICAgICAgICAgICAgICAgMHgwMDAxMDAwMFUKKyNkZWZpbmUgX19IRk5fSU5UX0VSUl9MUFUwICAgICAgICAgICAgICAgICAweDAwMDIwMDAwVQorI2RlZmluZSBfX0hGTl9JTlRfRVJSX0xQVTEgICAgICAgICAgICAgICAgIDB4MDAwNDAwMDBVCisjZGVmaW5lIF9fSEZOX0lOVF9FUlJfUFNTICAgICAgICAgICAgICAgICAgMHgwMDA4MDAwMFUKKyNkZWZpbmUgX19IRk5fSU5UX01CT1hfTFBVMCAgICAgICAgICAgICAgICAweDAwMTAwMDAwVQorI2RlZmluZSBfX0hGTl9JTlRfTUJPWF9MUFUxICAgICAgICAgICAgICAgIDB4MDAyMDAwMDBVCisjZGVmaW5lIF9fSEZOX0lOVF9NQk9YMV9MUFUwICAgICAgICAgICAgICAgMHgwMDQwMDAwMFUKKyNkZWZpbmUgX19IRk5fSU5UX01CT1gxX0xQVTEgICAgICAgICAgICAgICAweDAwODAwMDAwVQorI2RlZmluZSBfX0hGTl9JTlRfQ1BFX01BU0sgICAgICAgICAgICAgICAgIDB4MDAwMDAwZmZVCisjZGVmaW5lIF9fSEZOX0lOVF9STUVfTUFTSyAgICAgICAgICAgICAgICAgMHgwMDAwZmYwMFUKKworCisvKgorICogY3Jvc3Nib3cgbWVtb3J5IG1hcC4KKyAqLworI2RlZmluZSBQU1NfU01FTV9QQUdFX1NUQVJUCTB4ODAwMAorI2RlZmluZSBQU1NfU01FTV9QR05VTShfcGcwLCBfbWEpCSgoX3BnMCkgKyAoKF9tYSkgPj4gMTUpKQorI2RlZmluZSBQU1NfU01FTV9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goX3YpIDw8IF9fQVBQX1BMTF80MjVfUDBfMV9TSCkKKyNkZWZpbmUgX19BUFBfUExMXzQyNV9aMF8yX01LICAgICAgICAgICAgMHgwMDAwMDBlMAorI2RlZmluZSBfX0FQUF9QTExfNDI1X1owXzJfU0ggICAgICAgICAgICA1CisjZGVmaW5lIF9fQVBQX1BMTF80MjVfWjBfMihfdikgICAgICAgICAgICgoX3YpIDw8IF9fQVBQX1BMTF80MjVfWjBfMl9TSCkKKyNkZWZpbmUgX19BUFBfUExMXzQyNV9SU0VMMjAwNTAwICAgICAgICAgMHgwMDAwMDAxMAorI2RlZmluZSBfX0FQUF9QTExfNDI1X0VOQVJTVCAgICAgICAgICAgICAweDAwMDAwMDA4CisjZGVmaW5lIF9fQVBQX1BMTF80MjVfQllQQVNTICAgICAgICAgICAgIDB4MDAwMDAwMDQKKyNkZWZpbmUgX19BUFBfUExMXzQyNV9MUkVTRVROICAgICAgICAgICAgMHgwMDAwMDAwMgorI2RlZmluZSBfX0FQUF9QTExfNDI1X0VOQUJMRSAgICAgICAgICAgICAweDAwMDAwMDAxCisjZGVmaW5lIEFQUF9QTExfMzEyX0NUTF9SRUcgICAgICAgICAgICAgIDB4MDAwMTQyMDgKKyNkZWZpbmUgX19QXzMxMl9QTExfTE9DSyAgICAgICAgICAgICAgICAgMHg4MDAwMDAwMAorI2RlZmluZSBfX0VOQUJMRV9NQUNfQUhCXzEgICAgICAgICAgICAgICAweDAwODAwMDAwCisjZGVmaW5lIF9fRU5BQkxFX01BQ19BSEJfMCAgICAgICAgICAgICAgIDB4MDA0MDAwMDAKKyNkZWZpbmUgX19FTkFCTEVfTUFDXzEgICAgICAgICAgICAgICAgICAgMHgwMDIwMDAwMAorI2RlZmluZSBfX0VOQUJMRV9NQUNfMCAgICAgICAgICAgICAgICAgICAweDAwMTAwMDAwCisjZGVmaW5lIF9fQVBQX1BMTF8zMTJfUkVTRVRfVElNRVJfTUsgICAgIDB4MDAwZTAwMDAKKyNkZWZpbmUgX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ICAgICAgMHgwMDAwMDBlMAorI2RlZmluZSBfX0FQUF9QTExfMzEyX1owXzJfU0ggICAgICAgICAgICA1CisjZGVmaW5lIF9fQVBQX1BMTF8zMTJfWjBfMihfdikgICAgICAgICAgICgoX3YpIDw8IF9fQVBQX1BMTF8zMTJfWjBfMl9TSCkKKyNkZWZpbmUgX19BUFBfUExMXzMxMl9SU0VMMjAwNTAwICAgICAgICAgMHgwMDAwMDAxMAorI2RlZmluZSBfX0FQUF9QTExfMzEyX0VOQVJTVCAgICAgICAgICAgICAweDAwMDAwMDA4CisjZGVmaW5lIF9fQVBQX1BMTF8zMTJfQllQQVNTICAgICAgICAgICAgIDB4MDAwMDAwMDQKKyNkZWZpbmUgX19BUFBfUExMXzMxMl9MUkVTRVROICAgICAgICAgICAgMHgwMDAwMDAwMgorI2RlZmluZSBfX0FQUF9QTExfMzEyX0VOQUJMRSAgICAgICAgICAgICAweDAwMDAwMDAxCisjZGVmaW5lIE1CSVNUX0NUTF9SRUcgICAgICAgICAgICAgICAgICAgIDB4MDAwMTQyMjAKKyNkZWZpbmUgX19FRFJBTV9CSVNUUl9TVEFSVCAgICAgICAgICAgICAgMHgwMDAwMDAwNAorI2RlZmluZSBfX01CSVNUX1JFU0VUICAgICAgICAgICAgICAgICAgICAweDAwMDAwMDAyCisjZGVmaW5lIF9fTUJJU1RfU1RBUlQgICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwMDEKKyNkZWZpbmUgTUJJU1RfU1RBVF9SRUcgICAgICAgICAgICAgICAgICAgMHgwMDAxNDIyNAorI2RlZmluZSBfX0VEUkFNX0JJU1RSX1NUQVRVUyAgICAgICAgICAgICAweDAwMDAwMDA4CisjZGVmaW5lIF9fRURSQU1fQklTVFJfRE9ORSAgICAgICAgICAgICAgIDB4MDAwMDAwMDQKKyNkZWZpbmUgX19NRU1fQklUX1NUQVRVUyAgICAgICAgICAgICAgICAgMHgwMDAwMDAwMgorI2RlZmluZSBfX01CSVNUX0RPTkUgICAgICAgICAgICAgICAgICAgICAweDAwMDAwMDAxCisjZGVmaW5lIEhPU1RfU0VNMF9SRUcgICAgICAgICAgICAgICAgICAgIDB4MDAwMTQyMzAKKyNkZWZpbmUgX19IT1NUX1NFTUFQSE9SRSAgICAgICAgICAgICAgICAgMHgwMDAwMDAwMQorI2RlZmluZSBIT1NUX1NFTTFfUkVHICAgICAgICAgICAgICAgICAgICAweDAwMDE0MjM0CisjZGVmaW5lIEhPU1RfU0VNMl9SRUcgICAgICAgICAgICAgICAgICAgIDB4MDAwMTQyMzgKKyNkZWZpbmUgSE9TVF9TRU0zX1JFRyAgICAgICAgICAgICAgICAgICAgMHgwMDAxNDIzYworI2RlZmluZSBIT1NUX1NFTTBfSU5GT19SRUcgICAgICAgICAgICAgICAweDAwMDE0MjQwCisjZGVmaW5lIEhPU1RfU0VNMV9JTkZPX1JFRyAgICAgICAgICAgICAgIDB4MDAwMTQyNDQKKyNkZWZpbmUgSE9TVF9TRU0yX0lORk9fUkVHICAgICAgICAgICAgICAgMHgwMDAxNDI0OAorI2RlZmluZSBIT1NUX1NFTTNfSU5GT19SRUcgICAgICAgICAgICAgICAweDAwMDE0MjRjCisjZGVmaW5lIEVUSF9NQUNfU0VSX1JFRyAgICAgICAgICAgICAgICAgIDB4MDAwMTQyODgKKyNkZWZpbmUgX19BUFBfRU1TX0NLQlVGQU1QSU4gICAgICAgICAgICAgMHgwMDAwMDAyMAorI2RlZmluZSBfX0FQUF9FTVNfUkVGQ0xLU0VMICAgICAgICAgICAgICAweDAwMDAwMDEwCisjZGVmaW5lIF9fQVBQX0VNU19DTUxDS1NFTCAgICAgICAgICAgICAgIDB4MDAwMDAwMDgKKyNkZWZpbmUgX19BUFBfRU1TX1JFRkNLQlVGRU4yICAgICAgICAgICAgMHgwMDAwMDAwNAorI2RlZmluZSBfX0FQUF9FTVNfUkVGQ0tCVUZFTjEgICAgICAgICAgICAweDAwMDAwMDAyCisjZGVmaW5lIF9fQVBQX0VNU19DSEFOTkVMX1NFTCA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ICAgICAgIDB4MzAwMDAwMDAKKyNkZWZpbmUgX19GM19QT1JUX01BUF9TSCAgICAgICAgICAgICAgICAgMjgKKyNkZWZpbmUgX19GM19QT1JUX01BUChfdikgICAgICAgICAgICAgICAgKChfdikgPDwgX19GM19QT1JUX01BUF9TSCkKKyNkZWZpbmUgX19GM19WTV9NT0RFICAgICAgICAgICAgICAgICAgICAgMHgwODAwMDAwMAorI2RlZmluZSBfX0YzX0lOVFhfU1RBVFVTX01LICAgICAgICAgICAgICAweDA3MDAwMDAwCisjZGVmaW5lIF9fRjNfSU5UWF9TVEFUVVNfU0ggICAgICAgICAgICAgIDI0CisjZGVmaW5lIF9fRjNfSU5UWF9TVEFUVVMoX3YpICAgICAgICAgICAgICgoX3YpIDw8IF9fRjNfSU5UWF9TVEFUVVNfU0gpCisjZGVmaW5lIF9fRjJfRlVOQ1RJT05fQUNUSVZFICAgICAgICAgICAgIDB4MDA4MDAwMDAKKyNkZWZpbmUgX19GMl9GVU5DVElPTl9NT0RFICAgICAgICAgICAgICAgMHgwMDQwMDAwMAorI2RlZmluZSBfX0YyX1BPUlRfTUFQX01LICAgICAgICAgICAgICAgICAweDAwMzAwMDAwCisjZGVmaW5lIF9fRjJfUE9SVF9NQVBfU0ggICAgICAgICAgICAgICAgIDIwCisjZGVmaW5lIF9fRjJfUE9SVF9NQVAoX3YpICAgICAgICAgICAgICAgICgoX3YpIDw8IF9fRjJfUE9SVF9NQVBfU0gpCisjZGVmaW5lIF9fRjJfVk1fTU9ERSAgICAgICAgICAgICAgICAgICAgIDB4MDAwODAwMDAKKyNkZWZpbmUgX19GMl9JTlRYX1NUQVRVU19NSyAgICAgICAgICAgICAgMHgwMDA3MDAwMAorI2RlZmluZSBfX0YyX0lOVFhfU1RBVFVTX1NIICAgICAgICAgICAgICAxNgorI2RlZmluZSBfX0YyX0lOVFhfU1RBVFVTKF92KSAgICAgICAgICAgICAoKF92KSA8PCBfX0YyX0lOVFhfU1RBVFVTX1NIKQorI2RlZmluZSBfX0YxX0ZVTkNUSU9OX0FDVElWRSAgICAgICAgICAgICAweDAwMDA4MDAwCisjZGVmaW5lIF9fRjFfRlVOQ1RJT05fTU9ERSAgICAgICAgICAgICAgIDB4MDAwMDQwMDAKKyNkZWZpbmUgX19GMV9QT1JUX01BUF9NSyAgICAgICAgICAgICAgICAgMHgwMDAwMzAwMAorI2RlZmluZSBfX0YxX1BPUlRfTUFQX1NIICAgICAgICAgICAgICAgICAxMgorI2RlZmluZSBfX0YxX1BPUlRfTUFQKF92KSAgICAgICAgICAgICAgICAoKF92KSA8PCBfX0YxX1BPUlRfTUFQX1NIKQorI2RlZmluZSBfX0YxX1ZNX01PREUgICAgICAgICAgICAgICAgICAgICAweDAwMDAwODAwCisjZGVmaW5lIF9fRjFfSU5UWF9TVEFUVVNfTUsgICAgICAgICAgICAgIDB4MDAwMDA3MDAKKyNkZWZpbmUgX19GMV9JTlRYX1NUQVRVU19TSCAgICAgICAgICAgICAgOAorI2RlZmluZSBfX0YxX0lOVFhfU1RBVFVTKF92KSAgICAgICAgICAgICAoKF92KSA8PCBfX0YxX0lOVFhfU1RBVFVTX1NIKQorI2RlZmluZSBfX0YwX0ZVTkNUSU9OX0FDVElWRSAgICAgICAgICAgICAweDAwMDAwMDgwCisjZGVmaW5lIF9fRjBfRlVOQ1RJT05fTU9ERSAgICAgICAgICAgICAgIDB4MDAwMDAwNDAKKyNkZWZpbmUgX19GMF9QT1JUX01BUF9NSyAgICAgICAgICAgICAgICAgMHgwMDAwMDAzMAorI2RlZmluZSBfX0YwX1BPUlRfTUFQX1NIICAgICAgICAgICAgICAgICA0CisjZGVmaW5lIF9fRjBfUE9SVF9NQVAoX3YpICAgICAgICAgICAgICAgICgoX3YpIDw8IF9fRjBfUE9SVF9NQVBfU0gpCisjZGVmaW5lIF9fRjBfVk1fTU9ERSAgICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwMDgKKyNkZWZpbmUgX19GMF9JTlRYX1NUQVRVUyAgICAgICAgICAgICAgICAgMHgwMDAwMDAwNworZW51bSB7CisgICAgX19GMF9JTlRYX1NUQVRVU19NU0lYICAgICAgICAgICAgPSAweDAsCisgICAgX19GMF9JTlRYX1NUQVRVU19JTlRBICAgICAgICAgICAgPSAweDEsCisgICAgX19GMF9JTlRYX1NUQVRVU19JTlRCICAgICAgICAgICAgPSAweDIsCisgICAgX19GMF9JTlRYX1NUQVRVU19JTlRDICAgICAgICAgICAgPSAweDMsCisgICAgX19GMF9JTlRYX1NUQVRVU19JTlREICAgICAgICAgICAgPSAweDQsCit9OworI2RlZmluZSBPUF9NT0RFICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDE0NjBjCisjZGVmaW5lIF9fQVBQX0VUSF9DTEtfTE9XU1BFRUQgICAgICAgICAgIDB4MDAwMDAwMDQKKyNkZWZpbmUgX19HTE9CQUxfQ09SRUNMS19IQUxGU1BFRUQgICAgICAgMHgwMDAwMDAwMgorI2RlZmluZSBfX0dMT0JBTF9GQ09FX01PREUgICAgICAgICAgICAgICAweDAwMDAwMDAxCisjZGVmaW5lIEhPU1RfU0VNNF9SRUcgICAgICAgICAgICAgICAgICAgIDB4MDAwMTQ2MTAKKyNkZWZpbmUgSE9TVF9TRU01X1JFRyAgICAgICAgICAgICAgICAgICAgMHgwMDAxNDYxNAorI2RlZmluZSBIT1NUX1NFTTZfUkVHICAgICAgICAgICAgICAgICAgICAweDAwMDE0NjE4CisjZGVmaW5lIEhPU1RfU0VNN19SRUcgICAgICAgICAgICAgICAgICAgIDB4MDAwMTQ2MWMKKyNkZWZpbmUgSE9TVF9TRU00X0lORk9fUkVHICAgICAgICAgICAgICAgMHgwMDAxNDYyMAorI2RlZmluZSBIT1NUX1NFTTVfSU5GT19SRUcgICAgICAgICAgICAgICAweDAwMDE0NjI0CisjZGVmaW5lIEhPU1RfU0VNNl9JTkZPX1JFRyAgICAgICAgICAgICAgIDB4MDAwMTQ2MjgKKyNkZWZpbmUgSE9TVF9TRU03X0lORk9fUkVHICAgICAgICAgIC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OVVNFRDQxX1NIICAgICAgICAgICAxMAorI2RlZmluZSBfX0NQRV9DVFJMX1VOVVNFRDQxKF92KSAgICAgICAgICAoKF92KSA8PCBfX0NQRV9DVFJMX1VOVVNFRDQxX1NIKQorI2RlZmluZSBfX0NQRV9DVFJMX1VOVVNFRDAxX01LICAgICAgICAgICAweDAwMDAwMGZlCisjZGVmaW5lIF9fQ1BFX0NUUkxfVU5VU0VEMDFfU0ggICAgICAgICAgIDEKKyNkZWZpbmUgX19DUEVfQ1RSTF9VTlVTRUQwMShfdikgICAgICAgICAgKChfdikgPDwgX19DUEVfQ1RSTF9VTlVTRUQwMV9TSCkKKyNkZWZpbmUgUk1FX1BJX1BUUl9RMCAgICAgICAgICAgICAgICAgICAgMHgwMDAzODAyMAorI2RlZmluZSBfX0xBVEVOQ1lfVElNRV9TVEFNUF9NSyAgICAgICAgICAweGZmZmYwMDAwCisjZGVmaW5lIF9fTEFURU5DWV9USU1FX1NUQU1QX1NIICAgICAgICAgIDE2CisjZGVmaW5lIF9fTEFURU5DWV9USU1FX1NUQU1QKF92KSAgICAgICAgICgoX3YpIDw8IF9fTEFURU5DWV9USU1FX1NUQU1QX1NIKQorI2RlZmluZSBfX1JNRV9QSV9QVFIgICAgICAgICAgICAgICAgICAgICAweDAwMDBmZmZmCisjZGVmaW5lIFJNRV9QSV9QVFJfUTEgICAgICAgICAgICAgICAgICAgIDB4MDAwMzgwNjAKKyNkZWZpbmUgUk1FX0NJX1BUUl9RMCAgICAgICAgICAgICAgICAgICAgMHgwMDAzODAyNAorI2RlZmluZSBfX0RFTEFZX1RJTUVfU1RBTVBfTUsgICAgICAgICAgICAweGZmZmYwMDAwCisjZGVmaW5lIF9fREVMQVlfVElNRV9TVEFNUF9TSCAgICAgICAgICAgIDE2CisjZGVmaW5lIF9fREVMQVlfVElNRV9TVEFNUChfdikgICAgICAgICAgICgoX3YpIDw8IF9fREVMQVlfVElNRV9TVEFNUF9TSCkKKyNkZWZpbmUgX19STUVfQ0lfUFRSICAgICAgICAgICAgICAgICAgICAgMHgwMDAwZmZmZgorI2RlZmluZSBSTUVfQ0lfUFRSX1ExICAgICAgICAgICAgICAgICAgICAweDAwMDM4MDY0CisjZGVmaW5lIFJNRV9ERVBUSF9RMCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMzgwMjgKKyNkZWZpbmUgX19STUVfREVQVEhfVU5VU0VEX01LICAgICAgICAgICAgMHhmODAwMDAwMAorI2RlZmluZSBfX1JNRV9ERVBUSF9VTlVTRURfU0ggICAgICAgICAgICAyNworI2RlZmluZSBfX1JNRV9ERVBUSF9VTlVTRUQoX3YpICAgICAgICAgICAoKF92KSA8PCBfX1JNRV9ERVBUSF9VTlVTRURfU0gpCisjZGVmaW5lIF9fUk1FX01TSVhfVkVDX0lOREVYX01LICAgICAgICAgIDB4MDdmZjAwMDAKKyNkZWZpbmUgX19STUVfTVNJWF9WRUNfSU5ERVhfU0ggICAgICAgICAgMTYKKyNkZWZpbmUgX19STUVfTVNJWF9WRUNfSU5ERVgoX3YpICAgICAgICAgKChfdikgPDwgX19STUVfTVNJWF9WRUNfSU5ERVhfU0gpCisjZGVmaW5lIF9fUk1FX0RFUFRIICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMGZmZmYKKyNkZWZpbmUgUk1FX0RFUFRIX1ExICAgICAgICAgICAgICAgICAgICAgMHgwMDAzODA2OAorI2RlZmluZSBSTUVfUUNUUkxfUTAgICAgICAgICAgICAgICAgICAgICAweDAwMDM4MDJjCisjZGVmaW5lIF9fUk1FX0lOVF9MQVRFTkNZX1RJTUVSX01LICAgICAgIDB4ZmYwMDAwMDAKKyNkZWZpbmUgX19STUVfSU5UX0xBVEVOQ1lfVElNRVJfU0ggICAgICAgMjQKKyNkZWZpbmUgX19STUVfSU5UX0xBVEVOQ1lfVElNRVIoX3YpICAgICAgKChfdikgPDwgX19STUVfSU5UX0xBVEVOQ1lfVElNRVJfU0gpCisjZGVmaW5lIF9fUk1FX0lOVF9ERUxBWV9USU1FU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gICAgICAweDAwMDAwMTAwCisjZGVmaW5lIF9fUFNTX0xQVTFfUkVTRVQgICAgICAgICAgICAgICAgIDB4MDAwMDAwMDIKKyNkZWZpbmUgX19QU1NfTFBVMF9SRVNFVCAgICAgICAgICAgICAgICAgMHgwMDAwMDAwMQorI2RlZmluZSBIUU1fUVNFVDBfUlhRX0RSQkxfUDAgICAgICAgICAgICAweDAwMDM4MDAwCisjZGVmaW5lIF9fUlhRMF9BRERfVkVDVE9SU19QICAgICAgICAgICAgIDB4ODAwMDAwMDAKKyNkZWZpbmUgX19SWFEwX1NUT1BfUCAgICAgICAgICAgICAgICAgICAgMHg0MDAwMDAwMAorI2RlZmluZSBfX1JYUTBfUFJEX1BUUl9QICAgICAgICAgICAgICAgICAweDAwMDBmZmZmCisjZGVmaW5lIEhRTV9RU0VUMV9SWFFfRFJCTF9QMCAgICAgICAgICAgIDB4MDAwMzgwODAKKyNkZWZpbmUgX19SWFExX0FERF9WRUNUT1JTX1AgICAgICAgICAgICAgMHg4MDAwMDAwMAorI2RlZmluZSBfX1JYUTFfU1RPUF9QICAgICAgICAgICAgICAgICAgICAweDQwMDAwMDAwCisjZGVmaW5lIF9fUlhRMV9QUkRfUFRSX1AgICAgICAgICAgICAgICAgIDB4MDAwMGZmZmYKKyNkZWZpbmUgSFFNX1FTRVQwX1JYUV9EUkJMX1AxICAgICAgICAgICAgMHgwMDAzYzAwMAorI2RlZmluZSBIUU1fUVNFVDFfUlhRX0RSQkxfUDEgICAgICAgICAgICAweDAwMDNjMDgwCisjZGVmaW5lIEhRTV9RU0VUMF9UWFFfRFJCTF9QMCAgICAgICAgICAgIDB4MDAwMzgwMjAKKyNkZWZpbmUgX19UWFEwX0FERF9WRUNUT1JTX1AgICAgICAgICAgICAgMHg4MDAwMDAwMAorI2RlZmluZSBfX1RYUTBfU1RPUF9QICAgICAgICAgICAgICAgICAgICAweDQwMDAwMDAwCisjZGVmaW5lIF9fVFhRMF9QUkRfUFRSX1AgICAgICAgICAgICAg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NQRV9RNiAgICAgICAgICAgICAgICAgICAweDAwMDAwMDQwVQorI2RlZmluZSBfX0hGTl9JTlRfQ1BFX1E3ICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwODBVCisjZGVmaW5lIF9fSEZOX0lOVF9STUVfUTAgICAgICAgICAgICAgICAgICAgMHgwMDAwMDEwMFUKKyNkZWZpbmUgX19IRk5fSU5UX1JNRV9RMSAgICAgICAgICAgICAgICAgICAweDAwMDAwMjAwVQorI2RlZmluZSBfX0hGTl9JTlRfUk1FX1EyICAgICAgICAgICAgICAgICAgIDB4MDAwMDA0MDBVCisjZGVmaW5lIF9fSEZOX0lOVF9STUVfUTMgICAgICAgICAgICAgICAgICAgMHgwMDAwMDgwMFUKKyNkZWZpbmUgX19IRk5fSU5UX1JNRV9RNCAgICAgICAgICAgICAgICAgICAweDAwMDAxMDAwVQorI2RlZmluZSBfX0hGTl9JTlRfUk1FX1E1ICAgICAgICAgICAgICAgICAgIDB4MDAwMDIwMDBVCisjZGVmaW5lIF9fSEZOX0lOVF9STUVfUTYgICAgICAgICAgICAgICAgICAgMHgwMDAwNDAwMFUKKyNkZWZpbmUgX19IRk5fSU5UX1JNRV9RNyAgICAgICAgICAgICAgICAgICAweDAwMDA4MDAwVQorI2RlZmluZSBfX0hGTl9JTlRfRVJSX0VNQyAgICAgICAgICAgICAgICAgIDB4MDAwMTAwMDBVCisjZGVmaW5lIF9fSEZOX0lOVF9FUlJfTFBVMCAgICAgICAgICAgICAgICAgMHgwMDAyMDAwMFUKKyNkZWZpbmUgX19IRk5fSU5UX0VSUl9MUFUxICAgICAgICAgICAgICAgICAweDAwMDQwMDAwVQorI2RlZmluZSBfX0hGTl9JTlRfRVJSX1BTUyAgICAgICAgICAgICAgICAgIDB4MDAwODAwMDBVCisjZGVmaW5lIF9fSEZOX0lOVF9NQk9YX0xQVTAgICAgICAgICAgICAgICAgMHgwMDEwMDAwMFUKKyNkZWZpbmUgX19IRk5fSU5UX01CT1hfTFBVMSAgICAgIC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CBiZmlfbWhkcl9zICBtaDsgICAgICAgICAgICAgLyogIENvbW1vbiBtc2cgaGVhZGVyICAgICAgICAgICovCisJdTE2ICAgICAgICB0c2tfdGFnOyAgICAgICAgLyogIHRhc2sgbWFuYWdlbWVudCB0YWcgICAgICAgICovCisJdTE2ICAgICAgICBpdG5fZmhkbDsgICAgICAgLyogIGl0biBmaXJtd2FyZSBoYW5kbGUgICAgICAgICovCisJbHVuX3QgICAgICAgICAgIGx1bjsgICAgICAgICAgICAvKiAgTFUgbnVtYmVyICAgICAgICAgICAgICAgICAgKi8KKwl1OCAgICAgICAgIHRtX2ZsYWdzOyAgICAgICAvKiAgc2VlIGZjcF90bV9jbW5kX3QgICAgICAgICAgKi8KKwl1OCAgICAgICAgIHRfc2VjczsgICAgICAgICAvKiAgVGltZW91dCB2YWx1ZSBpbiBzZWNvbmRzICAgKi8KKwl1OCAgICAgICAgIHJzdmRbMl07Cit9OworCitzdHJ1Y3QgYmZpX3Rza2ltX2Fib3J0cmVxX3MgeworCXN0cnVjdCBiZmlfbWhkcl9zICBtaDsgICAgICAgICAgICAgLyogIENvbW1vbiBtc2cgaGVhZGVyICAgICAgICAgICovCisJdTE2ICAgICAgICB0c2tfdGFnOyAgICAgICAgLyogIHRhc2sgbWFuYWdlbWVudCB0YWcgICAgICAgICovCisJdTE2ICAgICAgICByc3ZkOworfTsKKworZW51bSBiZmlfdHNraW1fc3RhdHVzIHsKKwkvKgorCSAqIEZvbGxvd2luZyBhcmUgRkNQLTQgc3BlYyBkZWZpbmVkIHN0YXR1cyBjb2RlcywKKwkgKiAqKkRPIE5PVCBDSEFOR0UgVEhFTSAqKgorCSAqLworCUJGSV9UU0tJTV9TVFNfT0sgICAgICAgPSAwLAorCUJGSV9UU0tJTV9TVFNfTk9UX1NVUFAgPSA0LAorCUJGSV9UU0tJTV9TVFNfRkFJTEVEICAgPSA1LAorCisJLyoqCisJICogRGVmaW5lZCBieSBCRkEKKwkgKi8KKwlCRklfVFNLSU1fU1RT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KKyAqICBCRklfSU9DX0kySF9SRUFEWV9FVkVOVCBtZXNzYWdlCisgKi8KK3N0cnVjdCBiZmlfaW9jX3JkeV9ldmVudF9zIHsKKwlzdHJ1Y3QgYmZpX21oZHJfcyAgbWg7CQkJLyogIGNvbW1vbiBtc2cgaGVhZGVyICovCisJdTggICAgICAgICBpbml0X3N0YXR1czsJLyogIGluaXQgZXZlbnQgc3RhdHVzICovCisJdTggICAgICAgICByc3ZkWzNdOworfTsKKworc3RydWN0IGJmaV9pb2NfaGJlYXRfcyB7CisJc3RydWN0IGJmaV9taGRyX3MgIG1oOwkJLyogIGNvbW1vbiBtc2cgaGVhZGVyCQkqLworCXUzMgkgICBoYl9jb3VudDsJLyogIGN1cnJlbnQgaGVhcnQgYmVhdCBjb3VudAkqLworfTsKKworLyoqCisgKiBJT0MgaGFyZHdhcmUvZmlybXdhcmUgc3RhdGUKKyAqLworZW51bSBiZmlfaW9jX3N0YXRlIHsKKwlCRklfSU9DX1VOSU5JVCAJID0gMCwJCS8qICBub3QgaW5pdGlhbGl6ZWQgICAgICAgICAgICAgICAgICovCisJQkZJX0lPQ19JTklUSU5HIAkgPSAxLAkvKiAgaC93IGlzIGJlaW5nIGluaXRpYWxpemVkICAgICAgICAqLworCUJGSV9JT0NfSFdJTklUIAkgPSAyLAkJLyogIGgvdyBpcyBpbml0aWFsaXplZCAgICAgICAgICAgICAgKi8KKwlCRklfSU9DX0NGRyAJID0gMywJCS8qICBJT0MgY29uZmlndXJhdGlvbiBpbiBwcm9ncmVzcyAgICovCisJQkZJX0lPQ19PUCAJCSA9IDQsCS8qICBJT0MgaXMgb3BlcmF0aW9uYWwgICAgICAgICAgICAgICovCisJQkZJX0lPQ19ESVNBQkxJTkcgCSA9IDUsCS8qICBJT0MgaXMgYmVpbmcgZGlzYWJsZWQgICAgICAgICAgICovCisJQkZJX0lPQ19ESVNBQkxFRCAJID0gNiwJLyogIElPQyBpcyBkaXNhYmxlZCAgICAgICAgICAgICAgICAgKi8KKw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bmVkIGZvciB0aGlzIElPQyAqLworCXU4ICAgICAgICAgcnN2ZFsyXTsKK307CisKKy8qKgorICogIEJGSV9JT0NGQ19IMklfR0VUX1NUQVRTX1JFUSAmIEJGSV9JT0NGQ19IMklfQ0xFQVJfU1RBVFNfUkVRIG1lc3NhZ2VzCisgKi8KK3N0cnVjdCBiZmlfaW9jZmNfc3RhdHNfcmVxX3MgeworCXN0cnVjdCBiZmlfbWhkcl9zIG1oOwkJLyogIG1zZyBoZWFkZXIgICAgICAgICAgICAqLworCXUzMiAgICAgICAgbXNndGFnOwkJLyogIG1zZ3RhZyBmb3IgcmVwbHkgICAgICAqLworfTsKKworLyoqCisgKiBCRklfSU9DRkNfSTJIX0dFVF9TVEFUU19SU1AgJiBCRklfSU9DRkNfSTJIX0NMRUFSX1NUQVRTX1JTUCBtZXNzYWdlcworICovCitzdHJ1Y3QgYmZpX2lvY2ZjX3N0YXRzX3JzcF9zIHsKKwlzdHJ1Y3QgYmZpX21oZHJfcyBtaDsJCS8qICBjb21tb24gbXNnIGhlYWRlciAgICAgKi8KKwl1OCAgICAgICAgIHN0YXR1czsJCS8qICByZXBseSBzdGF0dXMgICAgICAgICAgKi8KKwl1OCAgICAgICAgIHJzdmRbM107CisJdTMyICAgICAgICBtc2d0YWc7CQkvKiAgbXNndGFnIGZvciByZXBseSAgICAgICovCit9OworCisvKioKKyAqIEJGSV9JT0NGQ19IMklfU0VUX0lOVFJfUkVRIG1lc3NhZ2UKKyAqLworc3RydWN0IGJmaV9pb2NmY19zZXRfaW50cl9yZXFfcyB7CisJc3RydWN0IGJmaV9taGRyX3MgbWg7CQkvKiAgY29tbW9uIG1zZyBoZWFkZXIgICAgICovCisJdTgJCWNvYWxlc2NlOwkvKiAgZW5hYmxlIGludHIgY29hbGVzY2luZyovCisJdTggICAgICAgICByc3ZkWzNdOworCXUxNglkZWxheTsJCS8qICBkZWxheSB0aW1lciAwLi4xMTI1dXMgICovCisJdTE2CWxhdGVuY3k7CS8qICBsYXR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1BPUlRfSTJIX0RJU0FCTEVfUlNQCT0gQkZBX0kySE0oMiksCisJQkZJX1BPUlRfSTJIX0dFVF9TVEFUU19SU1AJPSBCRkFfSTJITSgzKSwKKwlCRklfUE9SVF9JMkhfQ0xFQVJfU1RBVFNfUlNQCT0gQkZBX0kySE0oNCksCit9OworCisvKioKKyAqIEdlbmVyaWMgUkVRIHR5cGUKKyAqLworc3RydWN0IGJmaV9wb3J0X2dlbmVyaWNfcmVxX3MgeworCXN0cnVjdCBiZmlfbWhkcl9zICBtaDsJCS8qICBtc2cgaGVhZGVyCQkJICAgICovCisJdTMyICAgICAgICBtc2d0YWc7CQkvKiAgbXNndGFnIGZvciByZXBseQkJICAgICovCisJdTMyCXJzdmQ7Cit9OworCisvKioKKyAqIEdlbmVyaWMgUlNQIHR5cGUKKyAqLworc3RydWN0IGJmaV9wb3J0X2dlbmVyaWNfcnNwX3MgeworCXN0cnVjdCBiZmlfbWhkcl9zICBtaDsJCS8qICBjb21tb24gbXNnIGhlYWRlcgkJICAgICovCisJdTggICAgICAgICBzdGF0dXM7CQkvKiAgcG9ydCBlbmFibGUgc3RhdHVzCQkgICAgKi8KKwl1OCAgICAgICAgIHJzdmRbM107CisJdTMyICAgICAgICBtc2d0YWc7CQkvKiAgbXNndGFnIGZvciByZXBseQkJICAgICovCit9OworCisvKioKKyAqIEB0b2RvCisgKiBCRklfUE9SVF9IMklfRU5BQkxFX1JFUQorICovCisKKy8qKgorICogQHRvZG8KKyAqIEJGSV9QT1JUX0kySF9FTkFCTEVfUlNQCisgKi8KKworLyoqCisgKiBCRklfUE9SVF9IMklfRElTQUJMRV9SRVEKKyAqLworCisvKioKKyAqIEJGSV9QT1JUX0kySF9ESVNBQkxFX1JTUAorICovCisKKy8qKgorICogQkZJX1BPUlRfSDJJX0dFVF9TVEFUU19SRVEKKyAqLworc3RydWN0IGJmaV9wb3J0X2dldF9zdGF0c19yZXFfcyB7CisJc3RydWN0IGJmaV9taGRyX3MgIG1oOwkJLyogI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3QgY25hX3N0YXRzX21hY19yeCB7CisJdTY0ICAgICAgICBmcmFtZV82NDsJLyogYm90aCByeCBhbmQgdHggY291bnRlciAqLworCXU2NCAgICAgICAgZnJhbWVfNjVfMTI3OwkvKiBib3RoIHJ4IGFuZCB0eCBjb3VudGVyICovCisJdTY0ICAgICAgICBmcmFtZV8xMjhfMjU1OwkvKiBib3RoIHJ4IGFuZCB0eCBjb3VudGVyICovCisJdTY0ICAgICAgICBmcmFtZV8yNTZfNTExOwkvKiBib3RoIHJ4IGFuZCB0eCBjb3VudGVyICovCisJdTY0ICAgICAgICBmcmFtZV81MTJfMTAyMzsJLyogYm90aCByeCBhbmQgdHggY291bnRlciAqLworCXU2NCAgICAgICAgZnJhbWVfMTAyNF8xNTE4OwkvKiBib3RoIHJ4IGFuZCB0eCBjb3VudGVyICovCisJdTY0ICAgICAgICBmcmFtZV8xNTE4XzE1MjI7CS8qIGJvdGggcnggYW5kIHR4IGNvdW50ZXIgKi8KKwl1NjQgICAgICAgIHJ4X2J5dGVzOworCXU2NCAgICAgICAgcnhfcGFja2V0czsKKwl1NjQgICAgICAgIHJ4X2Zjc19lcnJvcjsKKwl1NjQgICAgICAgIHJ4X211bHRpY2FzdDsKKwl1NjQgICAgICAgIHJ4X2Jyb2FkY2FzdDsKKwl1NjQgICAgICAgIHJ4X2NvbnRyb2xfZnJhbWVzOworCXU2NCAgICAgICAgcnhfcGF1c2U7CisJdTY0ICAgICAgICByeF91bmtub3duX29wY29kZTsKKwl1NjQgICAgICAgIHJ4X2FsaWdubWVudF9lcnJvcjsKKwl1NjQgICAgICAgIHJ4X2ZyYW1lX2xlbmd0aF9lcnJvcjsKKwl1NjQgICAgICAgIHJ4X2NvZGVfZXJyb3I7CisJdTY0ICAgICAgICByeF9jYXJyaWVyX3NlbnNlX2Vycm9yOworCXU2NCAgICAgICAgcnhfdW5kZXJzaXplOworCXU2NCAgICAgICAgcnhfb3ZlcnNpemU7CisJdTY0ICAgICAgICByeF9mcmFnbWVud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SX0xFTiA9IDEyOCwgLyogIG1vZGVsIGRlc2NyaXB0aW9uIGxlbmd0aCAqLworCUJGQV9BREFQVEVSX01GR19OQU1FX0xFTiAgICA9IDgsICAgLyogIG1hbnVmYWN0dXJlciBuYW1lIGxlbmd0aCAqLworCUJGQV9BREFQVEVSX1NZTV9OQU1FX0xFTiAgICA9IDY0LCAgLyogIGFkYXB0ZXIgc3ltYm9saWMgbmFtZSBsZW5ndGggKi8KKwlCRkFfQURBUFRFUl9PU19UWVBFX0xFTgkgICAgPSA2NCwgIC8qICBhZGFwdGVyIG9zIHR5cGUgbGVuZ3RoICovCit9OworCitzdHJ1Y3QgYmZhX2FkYXB0ZXJfYXR0cl9zIHsKKwljaGFyICAgICAgICAgICAgbWFudWZhY3R1cmVyW0JGQV9BREFQVEVSX01GR19OQU1FX0xFTl07CisJY2hhciAgICAgICAgICAgIHNlcmlhbF9udW1bQkZBX0FEQVBURVJfU0VSSUFMX05VTV9MRU5dOworCXUzMglyc3ZkMTsKKwljaGFyICAgICAgICAgICAgbW9kZWxbQkZBX0FEQVBURVJfTU9ERUxfTkFNRV9MRU5dOworCWNoYXIgICAgICAgICAgICBtb2RlbF9kZXNjcltCRkFfQURBUFRFUl9NT0RFTF9ERVNDUl9MRU5dOworCXd3bl90ICAgICAgICAgICBwd3duOworCWNoYXIgICAgICAgICAgICBub2RlX3N5bW5hbWVbRkNfU1lNTkFNRV9NQVhdOworCWNoYXIgICAgICAgICAgICBod192ZXJbQkZBX1ZFUlNJT05fTEVOXTsKKwljaGFyICAgICAgICAgICAgZndfdmVyW0JGQV9WRVJTSU9OX0xFTl07CisJY2hhciAgICAgICAgICAgIG9wdHJvbV92ZXJbQkZBX1ZFUlNJT05fTEVOXTsKKwljaGFyICAgICAgICAgICAgb3NfdHlwZVtCRkFfQURBUFRFUl9PU19UWVBFX0xFTl07CisJc3RydWN0IGJmYV9tZmdfdnBkX3MJdnBkOworCXN0cnVjdCBtYWNfcwltYWM7CisKKwl1OAkJbnB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gPGRlZnMvYmZhX2RlZnNfdHlwZXMuaD4KKyNpbmNsdWRlIDxkZWZzL2JmYV9kZWZzX3Bwb3J0Lmg+CisKK2VudW0geworCUJGQV9CT09UX0JPT1RMVU5fTUFYID0gNCwJLyogIG1heGltdW0gYm9vdCBsdW4gcGVyIElPQyAqLworfTsKKworI2RlZmluZSBCT09UX0NGR19SRVYxCTEKKworLyoqCisgKiAgICAgIEJvb3Qgb3B0aW9ucyBzZXR0aW5nLiBCb290IG9wdGlvbnMgc2V0dGluZyBkZXRlcm1pbmVzIGZyb20gd2hlcmUKKyAqICAgICAgdG8gZ2V0IHRoZSBib290IGx1biBpbmZvcm1hdGlvbgorICovCitlbnVtIGJmYV9ib290X2Jvb3RvcHQgeworICAgIEJGQV9CT09UX0FVVE9fRElTQ09WRVIgPSAwLCAgICAvKiAgQm9vdCBmcm9tIGJsdW4gcHJvdmlkZWQgYnkgZmFicmljICovCisgICAgQkZBX0JPT1RfU1RPUkVEX0JMVU4gICA9IDEsICAgIC8qICBCb290IGZyb20gYmx1bnMgc3RvcmVkIGluIGZsYXNoICAgKi8KKyAgICBCRkFfQk9PVF9GSVJTVF9MVU4gICAgID0gMiwgICAgLyogIEJvb3QgZnJvbSBmaXJzdCBkaXNjb3ZlcmVkIGJsdW4gICAqLworfTsKKworLyoqCisgKiBCb290IGx1biBpbmZvcm1hdGlvbi4KKyAqLworc3RydWN0IGJmYV9ib290X2Jvb3RsdW5fcyB7CisJd3duX3QgICAgICAgICAgIHB3d247CS8qICBwb3J0IHd3biBvZiB0YXJnZXQgKi8KKwlsdW5fdCAgICAgICAgICAgbHVuOwkvKiAgNjQtYml0IGx1biAqLworfTsKKworLyoqCisgKiBCT09UIGJvb3QgY29uZmlndXJhdG9uCisgKi8KK3N0cnVjdCBiZmFfYm9vdF9jZmdfcyB7CisJdTggICAgICAgICB2ZXJzaW9uOworCXU4ICAgICAgICAgcnN2ZDE7CisJdTE2ICAgICAgICBjaGtzdW07CisKKwl1OCAgICAgIC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AorCQkJCQkJICogICBjb3VudCAqLworCXUzMglpb2hfZXJyX2ludDsJCS8qICBJT0ggZXJyb3IgaW50IGR1cmluZyBkYXRhLXBoYXNlCisJCQkJCQkgKiAgIGZvciBzY3NpIHdyaXRlCisJCQkJCQkgKi8KK307CisKKy8qKgorICogSU9DIHBvcnQgZmlybXdhcmUgc3RhdHMKKyAqLworCitzdHJ1Y3QgYmZhX2Z3X3BvcnRfZnBnX3N0YXRzX3MgeworICAgIHUzMiAgICBpbnRyX2V2dDsKKyAgICB1MzIgICAgaW50cjsKKyAgICB1MzIgICAgaW50cl9leGNlc3M7CisgICAgdTMyICAgIGludHJfY2F1c2UwOworICAgIHUzMiAgICBpbnRyX290aGVyOworICAgIHUzMiAgICBpbnRyX290aGVyX2lnbjsKKyAgICB1MzIgICAgc2lnX2xvc3Q7CisgICAgdTMyICAgIHNpZ19yZWdhaW5lZDsKKyAgICB1MzIgICAgc3luY19sb3N0OworICAgIHUzMiAgICBzeW5jX3RvOworICAgIHUzMiAgICBzeW5jX3JlZ2FpbmVkOworICAgIHUzMiAgICBkaXYyX292ZXJmbG93OworICAgIHUzMiAgICBkaXYyX3VuZGVyZmxvdzsKKyAgICB1MzIgICAgZWZpZm9fb3ZlcmZsb3c7CisgICAgdTMyICAgIGVmaWZvX3VuZGVyZmxvdzsKKyAgICB1MzIgICAgaWRsZV9yeDsKKyAgICB1MzIgICAgbHJyX3J4OworICAgIHUzMiAgICBscl9yeDsKKyAgICB1MzIgICAgb2xzX3J4OworICAgIHUzMiAgICBub3Nfcng7CisgICAgdTMyICAgIGxpcF9yeDsKKyAgICB1MzIgICAgYXJiZjBfcng7CisgICAgdTMyICAgIG1ya19yeDsKKyAgICB1MzIgICAgY29uc3RfbXJrX3J4OworICAgIHUzMiAgICBwcmltX3Vua25vd247CisgICAgdTMyICAgIHJzdmQ7Cit9OworCisKK3N0cnVjdCBiZmFfZndfcG9ydF9sa3NtX3N0YXRzX3MgeworICAgIHUzMiAgICBod3NtX3N1Y2Nlc3M7ICAgICAgIC8qICBod3NtIHN0YXRlIG1hY2hpbmUgc3VjY2VzcyAgICAgICAgICAqLworICAgIHUzMiAgICBod3NtX2ZhaWxzOyAgICAgICAgIC8qICBod3NtIGZhaWxzICAgICAgICAgICAgICAgICAgICAgICAgICAqLworICAgIHUzMiAgICBod3NtX3dkdG92OyAgICAgICAgIC8qICBod3NtIHRpbWVkIG91dCAgICAgICAgICAgICAgICAgICAgICAqLworICAgIHUzMiAgICBzd3NtX3N1Y2Nlc3M7ICAgICAgIC8qICBzd3NtIHN1Y2Nlc3MgICAgICAgICAgICAgICAgICAgICAgICAqLworICAgIHUzMiAgICBzd3NtX2ZhaWxzOyAgICAgICAgIC8qICBzd3NtIGZhaWxzICAgICAgICAgICAgICAgICAgICAgICAgICAqLworICAgIHUzMiAgICBzd3NtX3dkdG92OyAgICAgICAgIC8qICBzd3NtIHRpbWVkIG91dCAgICAgICAgICAgICAgICAgICAgICAqLworICAgIHUzMiAgICBidXN5YnVmczsgICAgICAgICAgIC8qICBsaW5rIGluaXQgZmFpbGVkIGR1ZSB0byBidXN5YnVmICAgICAqLworICAgIHUzMiAgICBidWZfd2FpdHM7ICAgICAgICAgIC8qICBidWZ3YWl0IHN0YXRlIGVudHJpZXMgICAgICAgICAgICAgICAqLworICAgIHUzMiAgICBsaW5rX2ZhaWxzOyAgICAgICAgIC8qICBsaW5rIGZhaWx1cmVzICAgICAgICAgICAgICAgICAgICAgICAqLworICAgIHUzMiAgICBwc3BfZXJyb3JzOyAgICAgICAgIC8qICBwcmltaXRpdmUgc2VxdWVuY2UgcHJvdG9jb2wgZXJyb3JzICAqLworICAgIHUzMiAgICBscl91bmV4cDsgICAgICAgICAgIC8qICBOby4gb2YgdGltZXMgTFIgcngtZWQgdW5leHBlY3RlZGx5ICAqLworICAgIHUzMiAgICBscnJfdW5leHA7ICAgICAgICAgIC8qICBOby4gb2YgdGltZXMgTFJSIHJ4LWVkIHVuZXhwZWN0ZWRseSAqLworICAgIHUzMiAgICBscl90eDsgICAgICAgICAgICAgIC8qICBOby4gb2YgdGltZXMgTFIgdHggc3RhcnRlZCAgICAgICAgICAqLworICAgIHUzMiAgICBscnJfdHg7ICAgICAgICAgICAgIC8qICBOby4gb2YgdGltZXMgTFJSIHR4IHN0YXJ0ZWQgICAgICAgICAqLworICAgIHUzMiAgICBvbHNfdHg7ICAgICAgICAgICAgIC8qICBOby4gb2YgdGltZXMgT0xTIHR4IHN0YXJ0ZWQgICAgICAgICAqLworICAgIHUzMiAgICBub3NfdHg7ICAgICAgICAgICAgIC8qICBOby4gb2YgdGltZXMgTk9TIHR4IHN0YXJ0ZWQgICAgICAgICAqLworfTsKKworCitzdHJ1Y3QgYmZhX2Z3X3BvcnRfc25zbV9zdGF0c19zIHsKKyAgICB1MzIgICAgaHdzbV9zdWNjZXNzOyAgICAgICAvKiAgU3VjY2Vzc2Z1bCBod3NtIHRlcm1pbmF0aW9ucyAgICAgICAgKi8KKyAgICB1MzIgICAgaHdzbV9mYWlsczsgICAgICAgICAvKiAgaHdzbSBmYWlsIGNvdW50ICAgICAgICAgICAgICAgICAgICAgKi8KKyAgICB1MzIgICAgaHdzbV93ZHRvdjsgICAgICAgICAvKiAgaHdzbSB0aW1lZCBvdXQgICAgICAgICAgICAgICAgICAgICAgKi8KKyAgICB1MzIgICAgc3dzbV9zdWNjZXNzOyAgICAgICAvKiAgc3dzbSBzdWNjZXNzICAgICAgICAgICAgICAgICAgICAgICAgKi8KKyAgICB1MzIgICAgc3dzbV93ZHRvdjsgICAgICAgICAvKiAgc3dzbSB0aW1lZCBvdXQgICAgICAgICAgICAgICAgICAgICAgKi8KKyAgICB1MzIgICAgZXJyb3JfcmVzZXRzOyAgICAgICAvKiAgZXJyb3IgcmVzZXRzIGluaXRpYXRlZCBieSB1cHNtICAgICAgKi8KKyAgICB1MzIgICAgc3luY19sb3N0OyAgICAgICAgICAvKiAgU3luYyBsb3NzIGNvdW50ICAgICAgICAgICAgICAgICAgICAgKi8KKyAgICB1MzIgICAgc2lnX2xvc3Q7ICAgICAgICAgICAvKiAgU2lnbmFsIGxvc3MgY291bnQgICAgICAgICAgICAgICAgICAgKi8KK307CisKKworc3RydWN0IGJmYV9md19wb3J0X3BoeXNtX3N0YXRzX3MgeworICAgIHUzMiAgICBtb2R1bGVfaW5zZXJ0czsgICAgIC8qICBNb2R1bGUgaW5zZXJ0IGNvdW50ICAgICAgICAgICAgICAgICAqLworICAgIHUzMiAgICBtb2R1bGVfeHRyYWN0czsgICAgIC8qICBNb2R1bGUgZXh0cmFjdHMgY291bnQgICAgICAgICAgICAgICAqLworICAgIHUzMiAgICBtb2R1bGVfaW52YWxpZHM7ICAgIC8qICBJbnZhbGlkIG1vZHVsZSBpbnNlcnRlZCBjb3VudCAgICAgICAqLworICAgIHUzMiAgICBtb2R1bGVfcmVhZF9pZ247ICAgIC8qICBNb2R1bGUgdmFsaWRhdGlvbiBzdGF0dXMgaWdub3JlZCAgICAqLworICAgIHUzMiAgICBsYXNlcl9mYXVsdHM7ICAgICAgIC8qICBMYXNlciBmYXVsdCBjb3VudCAgICAgICAgICAgICAgICAgICAqLworICAgIHUzMiAgICByc3ZkOworfTsKKworCitzdHJ1Y3QgYmZhX2Z3X2ZpcF9zdGF0c19zIHsKKyAgICB1MzIgICAgZGlzY19yZXE7ICAgICAgICAgICAvKiAgRGlzY292ZXJ5IHNvbGljaXQgcmVxdWVzdHMgICAgICAgICAgKi8KKyAgICB1MzIgICAgZGlzY19yc3A7ICAgICAgICAgICAvKiAgRGlzY292ZXJ5IHNvbGljaXQgcmVzcG9uc2UgICAgICAgICAgKi8KKyAgICB1MzIgICAgZGlzY19lcnI7ICAgICAgICAgICAvKiAgRGlzY292ZXJ5IGFkdnQuIHBhcnNlIGVycm9ycyAgICAgICAgKi8KKyAgICB1MzIgICAgZGlzY191bnNvbDsgICAgICAgICAvKiAgRGlzY292ZXJ5IHVuc29saWNpdGVkICAgICAgICAgICAgICAgKi8KKyAgICB1MzIgICAgZGlzY190aW1lb3V0czsgICAgICAvKiAgRGlzY292ZXJ5IHRpbWVvdXRzICAgICAgICAgICAgICAgICAgKi8KKyAgICB1MzIgICAgbGlua3N2Y191bnN1cHA7ICAgICAvKiAgVW5zdXBwb3J0ZWQgbGluayBzZXJ2aWNlIHJlcSAgICAgICAgKi8KKyAgICB1MzIgICAgbGlua3N2Y19lcnI7ICAgICAgICAvKiAgUGFyc2UgZXJyb3IgaW4gbGluayBzZXJ2aWNlIHJlcSAgICAgKi8KKyAgICB1MzIgICAgbG9nb19yZXE7ICAgICAgICAgICAvKiAgTnVtYmVyIG9mIEZJUCBsb2dvcyByZWNlaXZlZCAgICAgICAgKi8KKyAgICB1MzIgICAgY2xydmxpbmtfcmVxOyAgICAgICAvKiAgQ2xlYXIgdmlydHVhbCBsaW5rIHJlcSAgICAgICAgICAgICAgKi8KKyAgICB1MzIgICAgb3BfdW5zdXBwOyAgICAgICAgICAvKiAgVW5zdXBwb3J0ZWQgRklQIG9wZXJhdGlvbiAgICAgICAgICAgKi8KKyAgICB1MzIgICAgdW50YWdnZWQ7ICAgICAgICAgICAvKiAgVW50YWdnZWQgZnJhbWVzIChpZ25vcmVkKSAgICAgICAgICAgKi8KKyAgICB1MzIgICAgcnN2ZDsKK307CisKKworc3RydWN0IGJmYV9md19scHNfc3RhdHNfcyB7CisgICAgdTMyICAgIG1hY19pbnZhbGlkczsgICAgICAgLyogIEludmFsaWQgbWFjIGFzc2lnbmVkICAgICAgICAgICAgICAgICovCisgICAgdTMyICAgIHJzdmQ7Cit9OworCisKK3N0cnVjdCBiZmFfZndfZmNvZV9zdGF0c19zIHsKKyAgICB1MzIgICAgY2VlX2xpbmt1cHM7ICAgICAgICAvKiAgQ0VFIGxpbmsgdXAgY291bnQgICAgICAgICAgICAgICAgICAgKi8KKyAgICB1MzIgICAgY2VlX2xpbmtkbnM7ICAgICAgICAvKiAgQ0VFIGxpbmsgZG93biBjb3VudCAgICAgICAgICAgICAgICAgKi8KKyAgICB1MzIgICAgZm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zIGRldGVjdGVkICovCisJdTMyICAgICAgICBzbGVyOwkJLyogIG51bSBzbGVyIG5vdGlmaWNhdGlvbiBmcm9tIEJGQSAqLworCXUzMglyc3ZkOworCXN0cnVjdCBiZmFfaXRuaW1faGFsX3N0YXRzX3MJaGFsX3N0YXRzOworfTsKKworLyoqCisgKiBGQ1MgaXRuaW0gYXR0cmlidXRlcyByZXR1cm5lZCBpbiBxdWVyaWVzCisgKi8KK3N0cnVjdCBiZmFfaXRuaW1fYXR0cl9zIHsKKwllbnVtIGJmYV9pdG5pbV9zdGF0ZSBzdGF0ZTsgLyogIEZDUyBpdG5pbSBzdGF0ZSAgICAgICAgKi8KKwl1OCByZXRyeTsJCS8qICBkYXRhIHJldHJhbnNtaXNpb24gc3VwcG9ydCAqLworCXU4CXRhc2tfcmV0cnlfaWQ7ICAvKiAgdGFzayByZXRyeSBpZGVudCBzdXBwb3J0ICAgKi8KKwl1OCByZWNfc3VwcG9ydDsgICAgLyogIFJFQyBzdXBwb3J0ZWQgICAgICAgICAgICAgICovCisJdTggY29uZl9jb21wOyAgICAgIC8qICBjb25maXJtZWQgY29tcGxldGlvbiBzdXBwICAqLworfTsKKworLyoqCisgKiBCRkEgSVROSU0gZXZlbnRzLgorICogQXJndW1lbnRzIGJlbG93IGFyZSBpbiBCRkFMIGNvbnRleHQgZnJvbSBNZ210CisgKiBCRkFfSVROSU1fQUVOX05FVzogICAgICAgW2luXTogTm9uZSAgW291dF06IHZmX2lkLCBscHd3bgorICogQkZBX0lUTklNX0FFTl9ERUxFVEU6ICAgIFtpbl06IHZmX2lkLCBscHd3biwgcnB3d24gKDAgPSBhbGwgZmNwNCB0YXJnZXRzKSwKKyAqCQkJCSAgW291dF06IHZmX2lkLCBwcHd3biwgbHB3d24sIHJwd3duCisgKiBCRkFfSVROSU1fQUVOX09OTElORTogICAgW2luXTogdmZfaWQsIGxwd3duLCBycHd3biAoMCA9IGFsbCBmY3A0IHRhcmdldHMpLAorICoJCQkJICBbb3V0XTog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worCXUzMiAgICAgICAgbnNfcGxvZ2lfYWNjX2VycjsKKwl1MzIgICAgICAgIG5zX3Bsb2dpX2FjY2VwdHM7CisJdTMyICAgICAgICBuc19yZWplY3RzOwkvKiBOUyBjb21tYW5kIHJlamVjdHMgKi8KKwl1MzIgICAgICAgIG5zX3Bsb2dpX3Vua25vd25fcnNwOworCXUzMiAgICAgICAgbnNfcGxvZ2lfYWxsb2Nfd2FpdDsKKworCXUzMiAgICAgICAgbnNfcmV0cmllczsJLyogTlMgY29tbWFuZCByZXRyaWVzICovCisJdTMyICAgICAgICBuc190aW1lb3V0czsJLyogTlMgY29tbWFuZCB0aW1lb3V0cyAqLworCisJdTMyICAgICAgICBuc19yc3BuaWRfc2VudDsKKwl1MzIgICAgICAgIG5zX3JzcG5pZF9hY2NlcHRzOworCXUzMiAgICAgICAgbnNfcnNwbmlkX3JzcF9lcnI7CisJdTMyICAgICAgICBuc19yc3BuaWRfcmVqZWN0czsKKwl1MzIgICAgICAgIG5zX3JzcG5pZF9hbGxvY193YWl0OworCisJdTMyICAgICAgICBuc19yZnRpZF9zZW50OworCXUzMiAgICAgICAgbnNfcmZ0aWRfYWNjZXB0czsKKwl1MzIgICAgICAgIG5zX3JmdGlkX3JzcF9lcnI7CisJdTMyICAgICAgICBuc19yZnRpZF9yZWplY3RzOworCXUzMiAgICAgICAgbnNfcmZ0aWRfYWxsb2Nfd2FpdDsKKworCXUzMgluc19yZmZpZF9zZW50OworCXUzMgluc19yZmZpZF9hY2NlcHRzOworCXUzMgluc19yZmZpZF9yc3BfZXJyOworCXUzMgluc19yZmZpZF9yZWplY3RzOworCXUzMgluc19yZmZpZF9hbGxvY193YWl0OworCisJdTMyICAgICAgICBuc19naWRmdF9zZW50OworCXUzMiAgICAgICAgbnNfZ2lkZnRfYWNjZXB0czsKKwl1MzIgICAgICAgIG5zX2dpZGZ0X3JzcF9lcnI7CisJdTMyICAgICAgICBuc19naWRmdF9yZWplY3RzOworCXUzMiAgICAgICAgbnNfZ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DogZXhjZXB0aW9uIGV2ZW50cyAgICovCisJdTMyICAgICAgICBzbV9jcl9vbjsJICAgIC8qICBjcmVhdGVkOiBvbmxpbmUgZXZlbnRzICAgICAqLworCXUzMiAgICAgICAgc21fY3JfZGVsOwkgICAgLyogIGNyZWF0ZWQ6IGRlbGV0ZSBldmVudHMgICAgICovCisJdTMyICAgICAgICBzbV9jcl9od2Y7CSAgICAvKiAgY3JlYXRlZDogSU9DIGRvd24gICAgICAgICAgKi8KKwl1MzIgICAgICAgIHNtX2NyX3VuZXhwOwkgICAgLyogIGNyZWF0ZWQ6IGV4Y2VwdGlvbiBldmVudHMgICovCisJdTMyICAgICAgICBzbV9md2NfcnNwOwkgICAgLyogIGZ3IGNyZWF0ZTogZi93IHJlc3BvbnNlcyAgICovCisJdTMyICAgICAgICBzbV9md2NfZGVsOwkgICAgLyogIGZ3IGNyZWF0ZTogZGVsZXRlIGV2ZW50cyAgICovCisJdTMyICAgICAgICBzbV9md2Nfb2ZmOwkgICAgLyogIGZ3IGNyZWF0ZTogb2ZmbGluZSBldmVudHMgICovCisJdTMyICAgICAgICBzbV9md2NfaHdmOwkgICAgLyogIGZ3IGNyZWF0ZTogSU9DIGRvd24gICAgICAgICovCisJdTMyICAgICAgICBzbV9md2NfdW5leHA7CSAgICAvKiAgZncgY3JlYXRlOiBleGNlcHRpb24gZXZlbnRzKi8KKwl1MzIgICAgICAgIHNtX29uX29mZjsJICAgIC8qICBvbmxpbmU6IG9mZmxpbmUgZXZlbnRzICAgICAqLworCXUzMiAgICAgICAgc21fb25fZGVsOwkgICAgLyogIG9ubGluZTogZGVsZXRlIGV2ZW50cyAgICAgICovCisJdTMyICAgICAgICBzbV9vbl9od2Y7CSAgICAvKiAgb25saW5lOiBJT0MgZG93biBldmVudHMgICAgKi8KKwl1MzIgICAgICAgIHNtX29uX3VuZXhwOwkgICAgLyogIG9ubGluZTogZXhjZXB0aW9uIGV2ZW50cyAgICovCisJdTMyICAgICAgICBzbV9md2RfcnNwOwkgICAgLyogIGZ3IGRlbGV0ZTogZncgcmVzcG9uc2VzICAgICovCisJdTMyICAgICAgICBzbV9md2RfZGVsOwkgICAgLyogIGZ3IGRlbGV0ZTogZGVsZXRlIGV2ZW50cyAgICovCisJdTMyICAgICAgICBzbV9md2RfaHdmOwkgICAgLyogIGZ3IGRlbGV0ZTogSU9DIGRvd24gZXZlbnRzICovCisJdTMyICAgICAgICBzbV9md2RfdW5leHA7CSAgICAvKiAgZncgZGVsZXRlOiBleGNlcHRpb24gZXZlbnRzKi8KKwl1MzIgICAgICAgIHNtX29mZl9kZWw7CSAgICAvKiAgb2ZmbGluZTogZGVsZXRlIGV2ZW50cyAgICAgKi8KKwl1MzIgICAgICAgIHNtX29mZl9vbjsJICAgIC8qICBvZmZsaW5lOiBvbmxpbmUgZXZlbnRzICAgICAqLworCXUzMiAgICAgICAgc21fb2ZmX2h3ZjsJICAgIC8qICBvZmZsaW5lOiBJT0MgZG93biBldmVudHMgICAqLworCXUzMiAgICAgICAgc21fb2ZmX3VuZXhwOwkgICAgLyogIG9mZmxpbmU6IGV4Y2VwdGlvbiBldmVudHMgICovCisJdTMyICAgICAgICBzbV9kZWxfZndyc3A7CSAgICAvKiAgZGVsZXRlOiBmdyByZXNwb25zZXMgICAgICAgKi8KKwl1MzIgICAgICAgIHNtX2RlbF9od2Y7CSAgICAvKiAgZGVsZXRlOiBJT0MgZG93biBldmVudHMgICAgKi8KKwl1MzIgICAgICAgIHNtX2RlbF91bmV4cDsJICAgIC8qICBkZWxldGU6IGV4Y2VwdGlvbiBldmVudHMgICAqLworCXUzMiAgICAgICAgc21fZGVscF9md3JzcDsJICAgIC8qICBkZWxldGUgcGVuZDogZncgcmVzcG9uc2VzICAqLworCXUzMiAgICAgICAgc21fZGVscF9od2Y7CSAgICAvKiAgZGVsZXRlIHBlbmQ6IElPQyBkb3ducyAgICAgKi8KKwl1MzIgICAgICAgIHNtX2RlbHBfdW5leHA7CSAgICAvKiAgZGVsZXRlIHBlbmQ6IGV4Y2VwdGlvbnMgICAgKi8KKwl1MzIgICAgICAgIHNtX29mZnBfZndyc3A7CSAgICAvKiAgb2ZmLXBlbmRpbmc6IGZ3IHJlc3BvbnNlcyAgKi8KKwl1MzIgICAgICAgIHNtX29mZnBfZGVsOwkgICAgLyogIG9mZi1wZW5kaW5nOiBkZWxldGVzICAgICAgICovCisJdTMyICAgICAgICBzbV9vZmZwX2h3ZjsJICAgIC8qICBvZmYtcGVuZGluZzogSU9DIGRvd25zICAgICAqLworCXUzMiAgICAgICAgc21fb2ZmcF91bmV4cDsJICAgIC8qICBvZmYtcGVuZGluZzogZXhjZXB0aW9ucyAgICAqLworCXUzMiAgICAgICAgc21faW9jZF9vZmY7CSAgICAvKiAgSU9DIGRvd246IG9mZmxpbmUgZXZlbnRzICAgKi8KKwl1MzIgICAgICAgIHNtX2lvY2RfZGVsOwkgICAgLyogIElPQyBkb3duOiBkZWxldGUgZXZlbnRzICAgICovCisJdTMyICAgICAgICBzbV9pb2NkX29uOwkgICAgLyogIElPQyBkb3duOiBvbmxpbmUgZXZlbnRzICAgICovCisJdTMyICAgICAgICBzbV9pb2NkX3VuZXhwOwkgICAgLyogIElPQyBkb3duOiBleGNlcHRpb25zICAgICAgICovCisJdTMyICAgICAgICByc3ZkOworfTsKKworLyoqCisgKiBGQ1MgcmVtb3RlIHBvcnQgc3RhdGlzdGljcworICovCitzdHJ1Y3QgYmZhX3Jwb3J0X3N0YXRzX3MgeworCXUzMiAgICAgICAgb2ZmbGluZXM7ICAgICAgICAgICAvKiAgcmVtb3RlIHBvcnQgb2ZmbGluZSBjb3VudCAgKi8KKwl1MzIgICAgICAgIG9ubGluZXM7ICAgICAgICAgICAgLyogIHJlbW90ZSBwb3J0IG9ubGluZSBjb3VudCAgICovCisJdTMyICAgICAgICByc2NuczsgICAgICAgICAgICAgIC8qICBSU0NOIGFmZmVjdGluZyBycG9ydCAgICAgICAqLworCXUzMiAgICAgICAgcGxvZ2lzOwkJICAgIC8qICBwbG9naXMgc2VudCAgICAgICAgICAgICAgICAqLworCXUzMiAgICAgICAgcGxvZ2lfYWNjczsJICAgIC8qICBwbG9naSBhY2NlcHRzICAgICAgICAgICAgICAqLworCXUzMiAgICAgICAgcGxvZ2lfdGltZW91dHM7CSAgICAvKiAgcGxvZ2kgdGltZW91dHMgICAgICAgICAgICAgKi8KKwl1MzIgICAgICAgIHBsb2dpX3JlamVjdHM7CSAgICAvKiAgcmN2ZCBwbG9naSByZWplY3RzICAgICAgICAgKi8KKwl1MzIgICAgICAgIHBsb2dpX2ZhaWxlZDsJICAgIC8qICBsb2NhbCBmYWlsdXJlICAgICAgICAgICAgICAqLworCXUzMiAgICAgICAgcGxvZ2lfcmN2ZDsJICAgIC8qICBwbG9naXMgcmN2ZCAgICAgICAgICAgICAgICAqLworCXUzMiAgICAgICAgcHJsaV9yY3ZkOyAgICAgICAgICAvKiAgaW5ib3VuZCBQUkxJcyAgICAgICAgICAgICAgKi8KKwl1MzIgICAgICAgIGFkaXNjX3JjdmQ7ICAgICAgICAgLyogIEFESVNDcyByZWNlaXZlZCAgICAgICAgICAgICovCisJdTMyICAgICAgICBhZGlzY19yZWplY3RzOyAgICAgIC8qICByZWN2ZCAgQURJU0MgcmVqZWN0cyAgICAgICAqLworCXUzMiAgICAgICAgYWRpc2Nfc2VudDsgICAgICAgICAvKiAgQURJU0MgcmVxdWVzdHMgc2VudCAgICAgICAgKi8KKwl1MzIgICAgICAgIGFkaXNjX2FjY3M7ICAgICAgICAgLyogIEFESVNDIGFjY2VwdGVkIGJ5IHJwb3J0ICAgICovCisJdTMyICAgICAgICBhZGlzY19mYWlsZWQ7ICAgICAgIC8qICBBRElTQyBmYWlsZWQgKG5vIHJlc3BvbnNlKSAqLworCXUzMiAgICAgICAgYWRpc2NfcmVqZWN0ZWQ7ICAgICAvKiAgQURJU0MgcmVqZWN0ZWQgYnkgdXMgICAgKi8KKwl1MzIgICAgICAgIGxvZ29zOyAgICAgICAgICAgICAgLyogIGxvZ29zIHNlbnQgICAgICAgICAgICAgICAgICovCisJdTMyICAgICAgICBsb2dvX2FjY3M7ICAgICAgICAgIC8qICBMT0dPIGFjY2VwdHMgZnJvbSBycG9ydCAgICAqLworCXUzMiAgICAgICAgbG9nb19mYWlsZWQ7ICAgICAgICAvKiAgTE9HTyBmYWlsdXJlcyAgICAgICAgICAgICAgKi8KKwl1MzIgICAgICAgIGxvZ29fcmVqZWN0ZWQ7ICAgICAgLyogIExPR08gcmVqZWN0cyBmcm9tIHJwb3J0ICAgICovCisJdTMyICAgICAgICBsb2dvX3JjdmQ7ICAgICAgICAgIC8qICBMT0dPIGZyb20gcmVtb3RlIHBvcnQgICAgICAqLworCisJdTMyICAgICAgICBycHNjX3JjdmQ7ICAgICAgICAgLyogIFJQU0MgcmVjZWl2ZWQgICAgICAgICAgICAqLworCXUzMiAgICAgICAgcnBzY19yZWplY3RzOyAgICAgIC8qICByZWN2ZCAgUlBTQyByZWplY3RzICAgICAgICovCisJdTMyICAgICAgICBycHNjX3NlbnQ7ICAgICAgICAgLyogIFJQU0MgcmVxdWVzdHMgc2VudCAgICAgICAgKi8KKwl1MzIgICAgICAgIHJwc2NfYWNjczsgICAgICAgICAvKiAgUlBTQyBhY2NlcHRlZCBieSBycG9ydCAgICAqLworCXUzMiAgICAgICAgcnBzY19mYWlsZWQ7ICAgICAgIC8qICBSUFNDIGZhaWxlZCAobm8gcmVzcG9uc2UpICovCisJdTMyICAgICAgICBycHNjX3JlamVjdGVkOyAgICAgLyogIFJQU0MgcmVqZWN0ZWQgYnkgdXMgICAgKi8KKworCXUzMiAgICAgICAgcnN2ZDsKKwlzdHJ1Y3QgYmZhX3Jwb3J0X2hhbF9zdGF0c19zCWhhbF9zdGF0czsgIC8qICBCRkEgcnBvcnQgc3RhdHMgICAgKi8KK307CisKKy8qKgorICogIFJwb3J0J3MgUW9TIGF0dHJpYnV0ZXMKKyAqLworc3RydWN0IGJmYV9ycG9ydF9xb3NfYXR0cl9zIHsKKwllbnVtIGJmYV9xb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Y2UgKi8KKwl3d25fdCAgICAgICAgICAgb3JpZ19wb3J0X25hbWU7CS8qIFBvcnQgbmFtZSBvZiB0aGUgTE9HTyBvcmlnaW5hdG9yICovCit9OworCisvKgorICogQURJU0MgZWxzIGNvbW1hbmQgcGF5bG9hZAorICovCitzdHJ1Y3QgZmNfYWRpc2NfcyB7CisJc3RydWN0IGZjX2Vsc19jbWRfcyAgICBlbHNfY21kOwkvKiBFTFMgY29tbWFuZCBjb2RlICovCisJdTMyICAgICAgICByZXMxOjg7CisJdTMyICAgICAgICBvcmlnX0hBOjI0OwkvKiBvcmlnaW5hdG9yIGhhcmQgYWRkcmVzcyAqLworCXd3bl90ICAgICAgICAgICBvcmlnX3BvcnRfbmFtZTsJLyogb3JpZ2luYXRvciBwb3J0IG5hbWUgKi8KKwl3d25fdCAgICAgICAgICAgb3JpZ19ub2RlX25hbWU7CS8qIG9yaWdpbmF0b3Igbm9kZSBuYW1lICovCisJdTMyICAgICAgICByZXMyOjg7CisJdTMyICAgICAgICBucG9ydF9pZDoyNDsJLyogb3JpZ2luYXRvciBOUG9ydElEICovCit9OworCisvKgorICogRXhjaGFuZ2Ugc3RhdHVzIGJsb2NrCisgKi8KK3N0cnVjdCBmY19leGNoX3N0YXR1c19ibGtfc3sKKwl1MzIgICAgICAgIG94aWQ6MTY7CisJdTMyICAgICAgICByeGlkOjE2OworCXUzMiAgICAgICAgcmVzMTo4OworCXUzMiAgICAgICAgb3JpZ19ucDoyNDsJLyogb3JpZ2luYXRvciBOUG9ydElEICovCisJdTMyICAgICAgICByZXMyOjg7CisJdTMyICAgICAgICByZXNwX25wOjI0OwkvKiByZXNwb25kZXIgTlBvcnRJRCAqLworCXUzMiAgICAgICAgZXNfYml0czsKKwl1MzIgICAgICAgIHJlczM7CisJLyoKKwkgKiB1biBtb2RpZmllZCBzZWN0aW9uIG9mIHRoZSBmaWVsZHMKKwkgKi8KK307CisKKy8qCisgKiBSRVMgZWxzIGNvbW1hbmQgcGF5bG9hZAorICov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Ki8KK307CisKKy8qCisgKiBUUFJMTyBsb2dvdXQgcGFyYW1ldGVyIHBhZ2UKKyAqLworc3RydWN0IGZjX3RwcmxvX3BhcmFtc19wYWdlX3N7CisJdTMyICAgICAgICB0eXBlOjg7CisJdTMyICAgICAgICB0eXBlX2V4dDo4OworCisjaWZkZWYgX19CSUdFTkRJQU4KKwl1MzIgICAgICAgIG9wYV92YWxpZDoxOworCXUzMiAgICAgICAgcnBhX3ZhbGlkOjE7CisJdTMyICAgICAgICB0cG9fbnBvcnRfdmFsaWQ6MTsKKwl1MzIgICAgICAgIGdsb2JhbF9wcm9jZXNzX2xvZ291dDoxOworCXUzMiAgICAgICAgcmVzMToxMjsKKyNlbHNlCisJdTMyICAgICAgICByZXMxOjEyOworCXUzMiAgICAgICAgZ2xvYmFsX3Byb2Nlc3NfbG9nb3V0OjE7CisJdTMyICAgICAgICB0cG9fbnBvcnRfdmFsaWQ6MTsKKwl1MzIgICAgICAgIHJwYV92YWxpZDoxOworCXUzMiAgICAgICAgb3BhX3ZhbGlkOjE7CisjZW5kaWYKKworCXUzMiAgICAgICAgb3JpZ19wcm9jZXNzX2Fzc2M7CisJdTMyICAgICAgICByZXNwX3Byb2Nlc3NfYXNzYzsKKworCXUzMiAgICAgICAgcmVzMjo4OworCXUzMiAgICAgICAgdHBvX25wb3J0X2lkOworfTsKKworLyoKKyAqIFRQUkxPIEVMUyBjb21tYW5kIHBheWxvYWQKKyAqLworc3RydWN0IGZjX3RwcmxvX3N7CisJdTMyICAgICAgICBjb21tYW5kOjg7CisJdTMyICAgICAgICBwYWdlX2xlbjo4OworCXUzMiAgICAgICAgcGF5bG9hZF9sZW46MTY7CisKKwlzdHJ1Y3QgZmNfdHBybG9fcGFyYW1zX3BhZ2VfcyB0cHJsb19wYXJhbXNbMV07Cit9OworCitlbnVtIGZjX3RwcmxvX3R5cGV7CisJRkNfR0xPQkFMX0xPR08gPSAxLAorCUZDX1RQUl9MT0dPCit9OworCisvKgorICogVFBSTE8gZW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RF9OT0RFSURfREFUQV9GT1JNQVRfRkNQMyAgICAgICAgCQkgMHgwOAorI2RlZmluZSBSTklEX05PREVJRF9EQVRBX0ZPUk1BVF9ESVNDT1ZFUlkgICAgIAkJMHhERgorCisjZGVmaW5lIFJOSURfQVNTT0NJQVRFRF9UWVBFX1VOS05PV04gICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwMDEKKyNkZWZpbmUgUk5JRF9BU1NPQ0lBVEVEX1RZUEVfT1RIRVIgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwMDAwMgorI2RlZmluZSBSTklEX0FTU09DSUFURURfVFlQRV9IVUIgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDAwMDAzCisjZGVmaW5lIFJOSURfQVNTT0NJQVRFRF9UWVBFX1NXSVRDSCAgICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwMDQKKyNkZWZpbmUgUk5JRF9BU1NPQ0lBVEVEX1RZUEVfR0FURVdBWSAgICAgICAgICAgICAgICAgICAgMHgwMDAwMDAwNQorI2RlZmluZSBSTklEX0FTU09DSUFURURfVFlQRV9TVE9SQUdFX0RFVklDRSAgICAgICAgICAgICAweDAwMDAwMDA5CisjZGVmaW5lIFJOSURfQVNTT0NJQVRFRF9UWVBFX0hPU1QgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwMEEKKyNkZWZpbmUgUk5JRF9BU1NPQ0lBVEVEX1RZUEVfU1RPUkFHRV9TVUJTWVNURU0gICAgICAgICAgMHgwMDAwMDAwQgorI2RlZmluZSBSTklEX0FTU09DSUFURURfVFlQRV9TVE9SQUdFX0FDQ0VTU19ERVZJQ0UgICAgICAweDAwMDAwMDBFCisjZGVmaW5lIFJOSURfQVNTT0NJQVRFRF9UWVBFX05BU19TRVJWRVIgICAgICAgICAgICAgICAgIDB4MDAwMDAwMTEKKyNkZWZpbmUgUk5JRF9BU1NPQ0lBVEVEX1RZUEVfQlJJREdFICAgICAgICAgICAgICAgICAgICAgMHgwMDAwMDAwMgor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SAqLworCUZETUlfUE9SVF9BVFRSSUJfSE9TVF9OQU1FLAkvKiAweDAwMDYgKi8KKworCUZETUlfUE9SVF9BVFRSX01BWF9UWVBFCit9OworCisvKgorICogRkRNSSBhdHRyaWJ1dGUKKyAqLworc3RydWN0IGZkbWlfYXR0cl9zIHsKKwl1MTYgICAgICAgIHR5cGU7CisJdTE2ICAgICAgICBsZW47CisJdTggICAgICAgICB2YWx1ZVsxXTsKK307CisKKy8qCisgKiBIQkEgQXR0cmlidXRlIEJsb2NrCisgKi8KK3N0cnVjdCBmZG1pX2hiYV9hdHRyX3MgeworCXUzMiAgICAgICAgYXR0cl9jb3VudDsJLyogIyBvZiBhdHRyaWJ1dGVzICovCisJc3RydWN0IGZkbWlfYXR0cl9zICAgICBoYmFfYXR0cjsJLyogbiBhdHRyaWJ1dGVzICovCit9OworCisvKgorICogUmVnaXN0ZXJlZCBQb3J0IExpc3QKKyAqLworc3RydWN0IGZkbWlfcG9ydF9saXN0X3MgeworCXUzMiAgICAgICAgbnVtX3BvcnRzOwkvKiBudW1iZXIgT2YgUG9ydCBFbnRyaWVzICovCisJd3duX3QgICAgICAgICAgIHBvcnRfZW50cnk7CS8qIG9uZSBvciBtb3JlICovCit9OworCisvKgorICogUG9ydCBBdHRyaWJ1dGUgQmxvY2sKKyAqLworc3RydWN0IGZkbWlfcG9ydF9hdHRyX3MgeworCXUzMiAgICAgICAgYXR0cl9jb3VudDsJLyogIyBvZiBhdHRyaWJ1dGVzICovCisJc3RydWN0IGZkbWlfYXR0cl9zICAgICBwb3J0X2F0dHI7CS8qIG4gYXR0cmlidXRlcyAqLworfTsKKworLyoKKyAqIEZETUkgUmVnaXN0ZXIgSEJBIEF0dHJpYnV0ZXMKKyAqLworc3RydWN0IGZkbWlfcmhiYV9zIHsKKwl3d25fdCAgICAgICAgICAgaGJhX2lkOwkJLyogSEJBIElkZW50aWZpZXIgKi8KKwlzdHJ1Y3QgZmRtaV9wb3J0X2xpc3RfcyBwb3J0X2xpc3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NlCisJdTggICAgICAgICBpbW1lZDoxOworCXU4ICAgICAgICAgcmVzZXJ2ZWQxOjQ7CisJdTggICAgICAgICBsdW46MzsKKyNlbmRpZgorCXU4ICAgICAgICAgcmVzZXJ2ZWQyOworCXU4ICAgICAgICAgcmVzZXJ2ZWQzOworI2lmZGVmIF9fQklHRU5ESUFOCisJdTggICAgICAgICBwb3dlcl9jb25kaXRpb25zOjQ7CisJdTggICAgICAgICByZXNlcnZlZDQ6MjsKKwl1OCAgICAgICAgIGxvRWo6MTsKKwl1OCAgICAgICAgIHN0YXJ0OjE7CisjZWxzZQorCXU4ICAgICAgICAgc3RhcnQ6MTsKKwl1OCAgICAgICAgIGxvRWo6MTsKKwl1OCAgICAgICAgIHJlc2VydmVkNDoyOworCXU4ICAgICAgICAgcG93ZXJfY29uZGl0aW9uczo0OworI2VuZGlmCisJdTggICAgICAgICBjb250cm9sOworfTsKKworLyoKKyAqIFNDU0kgU0VORF9ESUFHTk9TVElDIGNvbW1hbmQKKyAqLworc3RydWN0IHNjc2lfc2VuZF9kaWFnbm9zdGljX3N7CisJdTggICAgICAgICBvcGNvZGU7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIHNlbGZfdGVzdF9jb2RlOjM7CisJdTggICAgICAgICBwZjoxOworCXU4ICAgICAgICAgcmVzZXJ2ZWQxOjE7CisJdTggICAgICAgICBzZWxmX3Rlc3Q6MTsKKwl1OCAgICAgICAgIGRldl9vZmZsOjE7CisJdTggICAgICAgICB1bml0X29mZmw6MTsKKyNlbHNlCisJdTggICAgICAgICB1bml0X29mZmw6MTsKKwl1OCAgICAgICAgIGRldl9vZmZsOjE7CisJdTggICAgICAgICBzZWxmX3Rlc3Q6MTsKKwl1OCAgICAgICAgIHJlc2VydmVkMToxOworCXU4ICAgICAgICAgcGY6MTsKKwl1OCAgICAgICAgIHNlbGZfdGVzdF9jb2RlOjM7CisjZW5kaWYKKwl1OCAgICAgICAgIHJlc2VydmVkMjsKKworCXU4ICAgICAgICAgcGFyYW1fbGlzdF9sZW5ndGhbMl07CS8qIE1TQiBmaXJzdCAqLworCXU4ICAgICAgICAgY29udHJvbDsKKworfTsKKworLyoKKyAqIFNDU0kgUkVBRDEwL1dSSVRFMTAgY29tbWFuZHMKKyAqLworc3RydWN0IHNjc2lfcncxMF9zeworCXU4ICAgICAgICAgb3Bjb2RlOworI2lmZGVmIF9fQklHRU5ESUFOCisJdTggICAgICAgICBsdW46MzsKKwl1OCAgICAgICAgIGRwbzoxOwkvKiBEaXNhYmxlIFBhZ2UgT3V0ICovCisJdTggICAgICAgICBmdWE6MTsJLyogRm9yY2UgVW5pdCBBY2Nlc3MgKi8KKwl1OCAgICAgICAgIHJlc2VydmVkMToyOworCXU4ICAgICAgICAgcmVsX2FkcjoxOwkvKiByZWxhdGl2ZSBhZGRyZXNzICovCisjZWxzZQorCXU4ICAgICAgICAgcmVsX2FkcjoxOworCXU4ICAgICAgICAgcmVzZXJ2ZWQxOjI7CisJdTggICAgICAgICBmdWE6MTsKKwl1OCAgICAgICAgIGRwbzoxOworCXU4ICAgICAgICAgbHVuOjM7CisjZW5kaWYKKwl1OCAgICAgICAgIGxiYTA7CS8qIGxvZ2ljYWwgYmxvY2sgYWRkcmVzcyAtIE1TQiAqLworCXU4ICAgICAgICAgbGJhMTsKKwl1OCAgICAgICAgIGxiYTI7CisJdTggICAgICAgICBsYmEzOwkvKiBMU0IgKi8KKwl1OCAgICAgICAgIHJlc2VydmVkMzsKKwl1OCAgICAgICAgIHhmZXJfbGVuZ3RoMDsJLyogdHJhbnNmZXIgbGVuZ3RoIGluIGJsb2NrcyAtIE1TQiAqLworCXU4ICAgICAgICAgeGZlcl9sZW5ndGgxOwkvKiBMU0IgKi8KKwl1OCAgICAgICAgIGNvbnRyb2w7Cit9OworCisjZGVmaW5lIFNDU0lfQ0RCMTBfR0VUX0xCQShjZGIpICAgICAgICAgICAgICAgICAgICAgXAorICAgICgoKGNkYiktPmxiYTAgPDwgMjQpIHwgKChjZGIpLT5sYmExIDw8IDE2KSB8ICAgIFwKKyAgICAgKChjZGIpLT5sYmEyIDw8IDgpIHwgKGNkYiktPmxiYTMpCisKKyNkZWZpbmUgU0NTSV9DREIxMF9TRVRfTEJBKGNkYiwgbGJhKSB7ICAgICAgXAorICAgIChjZGIpLT5sYmEwID0gbGJhID4+IDI0OyAgICAgICAgICAgIFwKKyAgICAoY2RiKS0+bGJhMSA9IChsYmEgPj4gMTYpICYgMHhGRjsgICBcCisgICAgKGNkYiktPmxiYTIgPSAobGJhID4+IDgpICYgMHhGRjsgICAgXAorICAgIChjZGIpLT5sYmEzID0gbGJhICYgMHhGRjsgICAgICAgICAgIFwKK30KKworI2RlZmluZSBTQ1NJX0NEQjEwX0dFVF9UTChjZGIpICBcCisgICAgKChjZGIpLT54ZmVyX2xlbmd0aDAgPDwgOCB8IChjZGIpLT54ZmVyX2xlbmd0aDEpCisjZGVmaW5lIFNDU0lfQ0RCMTBfU0VUX1RMKGNkYiwgdGwpIHsgICAgICBcCisgICAgKGNkYiktPnhmZXJfbGVuZ3RoMCA9IHRsID4+IDg7ICAgICAgIFwKKyAgICAoY2RiKS0+eGZlcl9sZW5ndGgxID0gdGwgJiAweEZGOyAgICAgXAorfQorCisvKgorICogU0NTSSBSRUFENi9XUklURTYgY29tbWFuZHMKKyAqLworc3RydWN0IHNjc2lfcnc2X3N7CisJdTggICAgICAgICBvcGNvZGU7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIGx1bjozOworCXU4ICAgICAgICAgbGJhMDo1OwkJLyogTVNiICovCisjZWxzZQorCXU4ICAgICAgICAgbGJhMDo1OwkJLyogTVNiICovCisJdTggICAgICAgICBsdW46MzsKKyNlbmRpZgorCXU4ICAgICAgICAgbGJhMTsKKwl1OCAgICAgICAgIGxiYTI7CQkvKiBMU0IgKi8KKwl1OCAgICAgICAgIHhmZXJfbGVuZ3RoOworCXU4ICAgICAgICAgY29udHJvbDsKK307CisKKyNkZWZpbmUgU0NTSV9UQVBFX0NEQjZfR0VUX1RMKGNkYikgICAgICAgICAgICAgIFwKKyAgICAoKChjZGIpLT50bDAgPDwgMTYpIHwgKChjZGIpLT50bDEgPDwgOCkgfCAoY2RiKS0+dGwyKQorCisjZGVmaW5lIFNDU0lfVEFQRV9DREI2X1NFVF9UTChjZGIsIHRsKSB7ICAgICAgXAorICAgIChjZGIpLT50bDAgPSB0bCA+PiAxNjsgICAgICAgICAgICBcCisgICAgKGNkYiktPnRsMSA9ICh0bCA+PiA4KSAmIDB4RkY7ICAgIFwKKyAgICAoY2RiKS0+dGwyID0gdGwgJiAweEZGOyAgICAgICAgICAgXAorfQorCisvKgorICogU0NTSSBzZXF1ZW50aWFsIChUQVBFKSB3cnRpZSBjb21tYW5kCisgKi8KK3N0cnVjdCBzY3NpX3RhcGVfd3Jfc3sKKwl1OCAgICAgICAgIG9wY29kZTsKKyNpZmRlZiBfX0JJR0VORElBTgorCXU4ICAgICAgICAgcnN2ZDo3OworCXU4ICAgICAgICAgZml4ZWQ6MTsJLyogTVNiICovCisjZWxzZQorCXU4ICAgICAgICAgZml4ZWQ6MTsJLyogTVNiICovCisJdTggICAgICAgICByc3ZkOjc7CisjZW5kaWYKKwl1OCAgICAgICAgIHRsMDsJCS8qIE1zYiAqLworCXU4ICAgICAgICAgdGwxOworCXU4ICAgICAgICAgdGwyOwkJLyogTHNiICovCisKKwl1OCAgICAgICAgIGNvbnRyb2w7Cit9OworCisjZGVmaW5lIFNDU0lfQ0RCNl9HRVRfTEJBKGNkYikgICAgICAgICAgICAgIFwKKyAgICAoKChjZGIpLT5sYmEwIDw8IDE2KSB8ICgoY2RiKS0+bGJhMSA8PCA4KSB8IChjZGIpLT5sYmEyKQorCisjZGVmaW5lIFNDU0lfQ0RCNl9TRVRfTEJBKGNkYiwgbGJhKSB7ICAgICAgXAorICAgIChjZGIpLT5sYmEwID0gbGJhID4+IDE2OyAgICAgICAgICAgIFwKKyAgICAoY2RiKS0+bGJhMSA9IChsYmEgPj4gOCkgJiAweEZGOyAgICBcCisgICAgKGNkYiktPmxiYTIgPSBsYmEgJiAweEZGOyAgICAgICAgICAgXAorfQorCisjZGVmaW5lIFNDU0lfQ0RCNl9HRVRfVEwoY2RiKSAoKGNkYiktPnhmZXJfbGVuZ3RoKQorI2RlZmluZSBTQ1NJX0NEQjZfU0VUX1RMKGNkYiwgdGwpIHsgICAgICBcCisgICAgKGNkYiktPnhmZXJfbGVuZ3RoID0gdGw7ICAgICAgICAgXAorfQorCisvKgorICogU0NTSSBzZW5zZSBkYXRhIGZvcm1hdAorICovCitzdHJ1Y3Qgc2NzaV9zZW5zZV9zeworI2lmZGVmIF9fQklHRU5ESUFOCisJdTggICAgICAgICB2YWxpZDoxOworCXU4ICAgICAgICAgcnNwX2NvZGU6NzsKKyNlbHNlCisJdTggICAgICAgICByc3BfY29kZTo3OworCXU4ICAgICAgICAgdmFsaWQ6MTsKKyNlbmRpZgorCXU4ICAgICAgICAgc2VnX251bTsKKyNpZmRlZiBfX0JJR0VORElBTgorCXU4ICAgICAgICAgZmlsZV9tYXJrOjE7CisJdTggICAgICAgICBlb206MTsJCS8qIGVuZCBvZiBtZWRpYSAqLworCXU4ICAgICAgICAgaWxpOjE7CQkvKiBpbmNvcnJlY3QgbGVuZ3RoIGluZGljYXRvciAqLworCXU4ICAgICAgICAgcmVzZXJ2ZWQ6MTsKKwl1OCAgICAgICAgIHNlbnNlX2tleTo0OworI2Vsc2UKKwl1OCAgICAgICAgIHNlbnNlX2tleTo0OworCXU4ICAgICAgICAgcmVzZXJ2ZWQ6MTsKKwl1OCAgICAgICAgIGlsaToxOwkJLyogaW5jb3JyZWN0IGxlbmd0aCBpbmRpY2F0b3IgKi8KKwl1OCAgICAgICAgIGVvbToxOwkJLyogZW5kIG9mIG1lZGlhICovCisJdTggICAgICAgICBmaWxlX21hcms6MTsKKyNlbmRpZgorCXU4ICAgICAgICAgaW5mb3JtYXRpb25bNF07CS8qIGRldmljZS10eXBlIG9yIGNvbW1hbmQgc3BlY2lmaWMgaW5mbworCQkJCQkgKi8KKwl1OCAgICAgICAgIGFkZF9zZW5zZV9sZW5ndGg7CisJCQkJCS8qIGFkZGl0aW9uYWwgc2Vuc2UgbGVuZ3RoICovCisJdTggICAgICAgICBjb21tYW5kX2luZm9bNF07LyogY29tbWFuZCBzcGVjaWZpYyBpbmZvcm1hdGlvbgorCQkJCQkJICovCisJdTggICAgICAgICBhc2M7CQkvKiBhZGRpdGlvbmFsIHNlbnNlIGNvZGUgKi8KKwl1OCAgICAgICAgIGFzY3E7CQkvKiBhZGRpdGlvbmFsIHNlbnNlIGNvZGUgcXVhbGlmaWVyICovCisJdTggICAgICAgICBmcnVfY29kZTsJLyogZmllbGQgcmVwbGFjZWFibGUgdW5pdCBjb2RlICovCisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIHNrc3Y6MTsJCS8qIHNlbnNlIGtleSBzcGVjaWZpYyB2YWxpZCAqLworCXU4ICAgICAgICAgY19kOjE7CQkvKiBjb21tYW5kL2RhdGEgYml0ICovCisJdTggICAgICAgICByZXMxOjI7CisJdTggICAgICAgICBicHY6MTsJCS8qIGJpdCBwb2ludGVyIHZhbGlkICovCisJdTggICAgICAgICBicG9pbnRlcjozOwkvKiBiaXQgcG9pbnRlciAqLworI2Vsc2UKKwl1OCAgICAgICAgIGJwb2ludGVyOjM7CS8qIGJpdCBwb2ludGVyICovCisJdTggICAgICAgICBicHY6MTsJCS8qIGJpdCBwb2ludGVyIHZhbGlkICovCisJdTggICAgICAgICByZXMxOjI7CisJdTggICAgICAgICBjX2Q6MTsJCS8qIGNvbW1hbmQvZGF0YSBiaXQgKi8KKwl1OCAgICAgICAgIHNrc3Y6MTsJCS8qIHNlbnNlIGtleSBzcGVjaWZpYyB2YWxpZCAqLworI2VuZGlmCisJdTggICAgICAgICBmcG9pbnRlclsyXTsJLyogZmllbGQgcG9pbnRlciAqLworfTsKKworI2RlZmluZSBTQ1NJX1NFTlNFX0NVUl9FUlIgICAg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gICAgICAgdmVyc2lvbjsKKworCXU4ICAgICAgICAgcnNwX2RhdGFfZm9ybWF0OjQ7CisJdTggICAgICAgICBoaV9zdXBwb3J0OjE7CS8qIFNDU0ktMzogc3VwcG9ydHMgUkVQT1JUIExVTlMgKi8KKwl1OCAgICAgICAgIG5vcm1fYWNhOjE7CS8qIG5vcm1hbCBBQ0Egc3VwcG9ydGVkICovCisJdTggICAgICAgICB0ZXJtaW5hdGVfaW9wOjE7LyogdGVybWluYXRlIEkvTyBwcm9jZXNzICovCisJdTggICAgICAgICBhZW5jOjE7CQkvKiBhc3luYyBldmVudCBub3RpZmljYXRpb24gY2FwYWJpbGl0eQorCQkJCQkgKi8KKworCXU4ICAgICAgICAgYWRkaXRpb25hbF9sZW47CisJdTggICAgICAgICByZXNlcnZlZDE6NzsKKwl1OCAgICAgICAgIHNjY3M6MTsKKworCXU4ICAgICAgICAgYWRkcjE2OjE7CS8qIFNJUCBzcGVjaWZpYyBiaXQgKi8KKwl1OCAgICAgICAgIGFkZHIzMjoxOwkvKiBTSVAgc3BlY2lmaWMgYml0ICovCisJdTggICAgICAgICBhY2tfcmVxX3E6MTsJLyogU0lQIHNwZWNpZmljIGJpdCAqLworCXU4ICAgICAgICAgbV9jaG5ncjoxOwkvKiBkZXZpY2UgaW4gbWVkaXVtIHRyYW5zcG9ydCBlbGVtZW50ICovCisJdTggICAgICAgICBtdWx0aV9wb3J0OjE7CS8qIG11bHRpLXBvcnQgZGV2aWNlICovCisJdTggICAgICAgICByZXNlcnZlZDM6MTsJLyogVEJEIC0gVmVuZG9yIFNwZWNpZmljICovCisJdTggICAgICAgICBlbmNfc2VydjoxOwkvKiBlbmNsb3N1cmUgc2VydmljZSBjb21wb25lbnQgKi8KKwl1OCAgICAgICAgIHJlc2VydmVkMjoxOworCisJdTggICAgICAgICBzb2Z0X3Nlc2V0OjE7CS8qIHNvZnQgcmVzZXQgYWx0ZXJuYXRpdmUgKFZTKSAqLworCXU4ICAgICAgICAgY21kX3F1Z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YXNzb2NpYXRlZCB3aXRoIHBvcnQgdGhhdAorCQkJCQkgKiByZWNlaXZlZCB0aGUgcmVxdWVzdAorCQkJCQkgKi8KK307CisKK2VudW0geworCVNDU0lfSU5RX0lEX1RZUEVfVkVORE9SID0gMSwKKwlTQ1NJX0lOUV9JRF9UWVBFX0lFRUUgPSAyLAorCVNDU0lfSU5RX0lEX1RZUEVfRkNfRlMgPSAzLAorCVNDU0lfSU5RX0lEX1RZUEVfT1RIRVIgPSA0LAorfTsKKworc3RydWN0IHNjc2lfaW5xX2RpcF9kZXNjX3N7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIHJlczA6NDsKKwl1OCAgICAgICAgIGNvZGVfc2V0OjQ7CisJdTggICAgICAgICByZXMxOjI7CisJdTggICAgICAgICBhc3NvY2lhdGlvbjoyOworCXU4ICAgICAgICAgaWRfdHlwZTo0OworI2Vsc2UKKwl1OCAgICAgICAgIGNvZGVfc2V0OjQ7CisJdTggICAgICAgICByZXMwOjQ7CisJdTggICAgICAgICBpZF90eXBlOjQ7CisJdTggICAgICAgICBhc3NvY2lhdGlvbjoyOworCXU4ICAgICAgICAgcmVzMToyOworI2VuZGlmCisJdTggICAgICAgICByZXMyOworCXU4ICAgICAgICAgaWRfbGVuOworCXN0cnVjdCBzY3NpX2x1bl9zbl9zICAgaWQ7Cit9OworCisvKgorICogRGV2aWNlIGluZGVudGlmaWNhdGlvbiBwYWdlCisgKi8KK3N0cnVjdCBzY3NpX2lucV9wYWdlX2Rldl9pZGVudF9zeworI2lmZGVmIF9fQklHRU5ESUFOCisJdTggICAgICAgICBwZXJpcGhlcmFsX3F1YWw6MzsKKwl1OCAgICAgICAgIGRldmljZV90eXBlOjU7CisjZWxzZQorCXU4ICAgICAgICAgZGV2aWNlX3R5cGU6NTsKKwl1OCAgICAgICAgIHBlcmlwaGVyYWxfcXVhbDozOworI2VuZGlmCisJdTggICAgICAgICBwYWdlX2NvZGU7CisJdTggICAgICAgICByZXNlcn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wOjE7CS8qIHNhdmUgcGFnZXMgaWYgc2V0IHRvIDEgKi8KKwl1OCAgICAgICAgIHJlc2VydmVkMjozOworCXU4ICAgICAgICAgcGY6MTsJLyogcGFnZSBmb3JtYXQgKi8KKwl1OCAgICAgICAgIHJlc2VydmVkMTozOworI2VuZGlmCisJdTggICAgICAgICByZXNlcnZlZDNbMl07CisJdTggICAgICAgICBhbGxvY19sZW47CisJdTggICAgICAgICBjb250cm9sOworfTsKKworLyoKKyAqIFNDU0kgTW9kZSBTZWxlY3QoMTApIGNkYgorICovCitzdHJ1Y3Qgc2NzaV9tb2RlX3NlbGVjdDEwX3N7CisJdTggICAgICAgICBvcGNvZGU7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIHJlc2VydmVkMTozOworCXU4ICAgICAgICAgcGY6MTsJLyogcGFnZSBmb3JtYXQgKi8KKwl1OCAgICAgICAgIHJlc2VydmVkMjozOworCXU4ICAgICAgICAgc3A6MTsJLyogc2F2ZSBwYWdlcyBpZiBzZXQgdG8gMSAqLworI2Vsc2UKKwl1OCAgICAgICAgIHNwOjE7CS8qIHNhdmUgcGFnZXMgaWYgc2V0IHRvIDEgKi8KKwl1OCAgICAgICAgIHJlc2VydmVkMjozOworCXU4ICAgICAgICAgcGY6MTsJLyogcGFnZSBmb3JtYXQgKi8KKwl1OCAgICAgICAgIHJlc2VydmVkMTozOworI2VuZGlmCisJdTggICAgICAgICByZXNlcnZlZDNbNV07CisJdTggICAgICAgICBhbGxvY19sZW5fbXNiOworCXU4ICAgICAgICAgYWxsb2NfbGVuX2xzYjsKKwl1OCAgICAgICAgIGNvbnRyb2w7Cit9OworCisvKgorICogU0NTSSBNb2RlIFNlbnNlKDYpIGNkYgorICovCitzdHJ1Y3Qgc2NzaV9tb2RlX3NlbnNlNl9zeworCXU4ICAgICAgICAgb3Bjb2RlOworI2lmZGVmIF9fQklHRU5ESUFOCisJdTggICAgICAgICByZXNlcnZlZDE6NDsKKwl1OCAgICAgICAgIGRiZDoxOwkvKiBkaXNhYmxlIGJsb2NrIGRpc2NyaXB0b3JzIGlmIHNldCB0byAxICovCisJdTggICAgICAgICByZXNlcnZlZDI6MzsKKworCXU4ICAgICAgICAgcGM6MjsJLyogcGFnZSBjb250cm9sICovCisJdTggICAgICAgICBwYWdlX2NvZGU6NjsKKyNlbHNlCisJdTggICAgICAgICByZXNlcnZlZDI6MzsKKwl1OCAgICAgICAgIGRiZDoxOwkvKiBkaXNhYmxlIGJsb2NrIGRlc2NyaXB0b3JzIGlmIHNldCB0byAxICovCisJdTggICAgICAgICByZXNlcnZlZDE6NDsKKworCXU4ICAgICAgICAgcGFnZV9jb2RlOjY7CisJdTggICAgICAgICBwYzoyOwkvKiBwYWdlIGNvbnRyb2wgKi8KKyNlbmRpZgorCXU4ICAgICAgICAgcmVzZXJ2ZWQzOworCXU4ICAgICAgICAgYWxsb2NfbGVuOworCXU4ICAgICAgICAgY29udHJvbDsKK307CisKKy8qCisgKiBTQ1NJIE1vZGUgU2Vuc2UoMTApIGNkYgorICovCitzdHJ1Y3Qgc2NzaV9tb2RlX3NlbnNlMTBfc3sKKwl1OCAgICAgICAgIG9wY29kZTsKKyNpZmRlZiBfX0JJR0VORElBTgorCXU4ICAgICAgICAgcmVzZXJ2ZWQxOjM7CisJdTggICAgICAgICBMTEJBQToxOwkvKiBsb25nIExCQSBhY2NlcHRlZCBpZiBzZXQgdG8gMSAqLworCXU4ICAgICAgICAgZGJkOjE7CQkvKiBkaXNhYmxlIGJsb2NrIGRlc2NyaXB0b3JzIGlmIHNldAorCQkJCQkgKiB0byAxCisJCQkJCSAqLworCXU4ICAgICAgICAgcmVzZXJ2ZWQyOjM7CisKKwl1OCAgICAgICAgIHBjOjI7CQkvKiBwYWdlIGNvbnRyb2wgKi8KKwl1OCAgICAgICAgIHBhZ2VfY29kZTo2OworI2Vsc2UKKwl1OCAgICAgICAgIHJlc2VydmVkMjozOworCXU4ICAgICAgICAgZGJkOjE7CQkvKiBkaXNhYmx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ggICAgICAgICBwczoxOworI2VuZGlmCisJdTggICAgICAgICBwYWdlX2xlbjsKKwl1OCAgICAgICAgIGJ1Zl9mdWxsX3JhdGlvOworCXU4ICAgICAgICAgYnVmX2VtcHR5X3JhdGlvOworCisJdTggICAgICAgICBiaWxfbXNiOwkvKiBidXMgaW5hY3Rpdml0eSBsaW1pdCAtTVNCICovCisJdTggICAgICAgICBiaWxfbHNiOwkvKiBidXMgaW5hY3Rpdml0eSBsaW1pdCAtTFNCICovCisKKwl1OCAgICAgICAgIGR0bF9tc2I7CS8qIGRpc2Nvbm5lY3QgdGltZSBsaW1pdCAtIE1TQiAqLworCXU4ICAgICAgICAgZHRsX2xzYjsJLyogZGlzY29ubmVjdCB0aW1lIGxpbWl0IC0gTFNCICovCisKKwl1OCAgICAgICAgIGN0bF9tc2I7CS8qIGNvbm5lY3QgdGltZSBsaW1pdCAtIE1TQiAqLworCXU4ICAgICAgICAgY3RsX2xzYjsJLyogY29ubmVjdCB0aW1lIGxpbWl0IC0gTFNCICovCisKKwl1OCAgICAgICAgIG1heF9idXJzdF9sZW5fbXNiOworCXU4ICAgICAgICAgbWF4X2J1cnN0X2xlbl9sc2I7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIGVtZHA6MTsJLyogZW5hYmxlIG1vZGlmeSBkYXRhIHBvaW50ZXJzICovCisJdTggICAgICAgICBmYTozOwkvKiBmYWlyIGFyYml0cmF0aW9uICovCisJdTggICAgICAgICBkaW1tOjE7CS8qIGRpc2Nvbm5lY3QgaW1tZWRpYXRlICovCisJdTggICAgICAgICBkdGRjOjM7CS8qIGRhdGEgdHJhbnNmZXIgZGlzY29ubmVjdCBjb250cm9sICovCisjZWxzZQorCXU4ICAgICAgICAgZHRkYzozOwkvKiBkYXRhIHRyYW5zZmVyIGRpc2Nvbm5lY3QgY29udHJvbCAqLworCXU4ICAgICAgICAgZGltbToxOwkvKiBkaXNjb25uZWN0IGltbWVkaWF0ZSAqLworCXU4ICAgICAgICAgZmE6MzsJLyogZmFpciBhcmJpdHJhdGlvbiAqLworCXU4ICAgICAgICAgZW1kcDoxOwkvKiBlbmFibGUgbW9kaWZ5IGRhdGEgcG9pbnRlcnMgKi8KKyNlbmRpZgorCisJdTggICAgICAgICByZXNlcnZlZDM7CisKKwl1OCAgICAgICAgIGZpcnN0X2J1cnN0X2xlbl9tc2I7CisJdTggICAgICAgICBmaXJzdF9idXJzdF9sZW5fbHNiOworfTsKKworLyoKKyAqIFNDU0kgZm9ybWF0IGRldmljZSBtb2RlIHBhZ2UKKyAqLworc3RydWN0IHNjc2lfbXBfZm9ybWF0X2RldmljZV9zeworI2lmZGVmIF9fQklHRU5ESUFOCisJdTMyICAgICAgICBwczoxOworCXUzMiAgICAgICAgcmVzZXJ2ZWQxOjE7CisJdTMyICAgICAgICBwYWdlX2NvZGU6NjsKKyNlbHNlCisJdTMyICAgICAgICBwYWdlX2NvZGU6NjsKKwl1MzIgICAgICAgIHJlc2VydmVkMToxOworCXUzMiAgICAgICAgcHM6MTsKKyNlbmRpZgorCXUzMiAgICAgICAgcGFnZV9sZW46ODsKKwl1MzIgICAgICAgIHRyYWNrc19wZXJfem9uZToxNjsKKworCXUzMiAgICAgICAgYV9zZWNfcGVyX3pvbmU6MTY7CisJdTMyICAgICAgICBhX3RyYWNrc19wZXJfem9uZToxNjsKKworCXUzMiAgICAgICAgYV90cmFja3NfcGVyX2x1bjoxNjsJLyogYWx0ZXJuYXRlIHRyYWNrcy9sdW4tTVNCICovCisJdTMyICAgICAgICBzZWNfcGVyX3RyYWNrOjE2OwkvKiBzZWN0b3JzL3RyYWNrLU1TQiAqLworCisJdTMyICAgICAgICBieXRlc19wZXJfc2VjdG9yOjE2OworCXUzMiAgICAgICAgaW50ZXJsZWF2ZToxNjsKKworCXUzMiAgICAgICAgdHNmOjE2OwkJCS8qIHRyYWNrIHNrZXcgZmFjdG9yLU1TQiAqLworCXUzMiAgICAgICAgY3NmOjE2OwkJCS8qIGN5bGluZGVyIHNrZXcgZmFjdG9yLU1TQiAqLworCisjaWZkZWYgX19CSUdFTkRJQU4KKwl1MzIgICAgICAgIHNzZWM6MTsJLyogc29mdCBzZWN0b3IgZm9ybWF0dGluZyAqLworCXUzMiAgICAgICAgaHNlYzoxOwkvKiBoYXJkIHNlY3RvciBmb3JtYXR0aW5nICovCisJdTMyICAgICAgICBybWI6MTsJLyogcmVtb3ZhYmxlIG1lZGlhICovCisJdTMyICAgICAgICBzdXJmOjE7CS8qIHN1cmZhY2UgKi8KKwl1MzIgICAgICAgIHJlc2VydmVkMjo0OworI2Vsc2UKKwl1MzIgICAgICAgIHJlc2VydmVkMjo0OworCXUzMiAgICAgICAgc3VyZjoxOwkvKiBzdXJmYWNlICovCisJdTMyICAgICAgICBybWI6MTsJLyogcmVtb3ZhYmxlIG1lZGlhICovCisJdTMyICAgICAgICBoc2VjOjE7CS8qIGhhcmQgc2VjdG9yIGZvcm1hdHRpbmcgKi8KKwl1MzIgICAgICAgIHNzZWM6MTsJLyogc29mdCBzZWN0b3IgZm9ybWF0dGluZyAqLworI2VuZGlmCisJdTMyICAgICAgICByZXNlcnZlZDM6MjQ7Cit9OworCisvKgorICogU0NTSSByaWdpZCBkaXNrIGRldmljZSBnZW9tZXRyeSBwYWdlCisgKi8KK3N0cnVjdCBzY3NpX21wX3JpZ2lkX2RldmljZV9nZW9tZXRyeV9zeworI2lmZGVmIF9fQklHRU5ESUFOCisJdTMyICAgICAgICBwczoxOworCXUzMiAgICAgICAgcmVzZXJ2ZWQxOjE7CisJdTMyICAgICAgICBwYWdlX2NvZGU6NjsKKyNlbHNlCisJdTMyICAgICAgICBwYWdlX2NvZGU6NjsKKwl1MzIgICAgICAgIHJlc2VydmVkMToxOworCXUzMiAgICAgICAgcHM6MTsKKyNlbmRpZgorCXUzMiAgICAgICAgcGFnZV9sZW46ODsKKwl1MzIgICAgICAgIG51bV9jeWxpbmRlcnMwOjg7CisJdTMyICAgICAgICBudW1fY3lsaW5kZXJzMTo4OworCisJdTMyICAgICAgICBudW1fY3lsaW5kZXJzMjo4OworCXUzMiAgICAgICAgbnVtX2hlYWRzOjg7CisJdTMyICAgICAgICBzY3dwMDo4OworCXUzMiAgICAgICAgc2N3cDE6ODsKKworCXUzMiAgICAgICAgc2N3cDI6ODsKKwl1MzIgICAgICAgIHNjcndjMDo4OworCXUzMiAgICAgICAgc2Nyd2MxOjg7CisJdTMyICAgICAgICBzY3J3YzI6ODsKKworCXUzMiAgICAgICAgZHNyOjE2OworCXUzMiAgICAgICAgbHNjeWwwOjg7CisJdTMyICAgICAgICBsc2N5bDE6ODsKKworCXUzMiAgICAgICAgbHNjeWwyOjg7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1MzIgICAgICAgIHJlc2VydmVkMjo2OworCXUzMiAgICAgICAgcnBsOjI7CS8qIHJvdGF0aW9uYWwgcG9zaXRpb24gbG9ja2luZyAqLworI2Vsc2UKKwl1MzIgICAgICAgIHJwbDoyOwkvKiByb3RhdGlvbmFsIHBvc2l0aW9uIGxvY2tpbmcgKi8KKwl1MzIgICAgICAgIHJlc2VydmVkMjo2OworI2VuZGlmCisJdTMyICAgICAgICByb3Rfb2ZmOjg7CisJdTMyICAgICAgICByZXNlcnZlZDM6ODsKKworCXUzMiAgICAgICAgbWVkX3JvdF9yYXRlOjE2OworCXUzMiAgICAgICAgcmVzZXJ2ZWQ0OjE2OworfTsKKworLyoKKyAqIFNDU0kgY2FjaGluZyBtb2RlIHBhZ2UKKyAqLworc3RydWN0IHNjc2lfbXBfY2FjaGluZ19zeworI2lmZGVmIF9fQklHRU5ESUFOCisJdTggICAgICAgICBwczoxOworCXU4ICAgICAgICAgcmVzMToxOworCXU4ICAgICAgICAgcGFnZV9jb2RlOjY7CisjZWxzZQorCXU4ICAgICAgICAgcGFnZV9jb2RlOjY7CisJdTggICAgICAgICByZXMxOjE7CisJdTggICAgICAgICBwczoxOworI2VuZGlmCisJdTggICAgICAgICBwYWdlX2xlbjsKKyNpZmRlZiBfX0JJR0VORElBTgorCXU4ICAgICAgICAgaWM6MTsJLyogaW5pdGlhdG9yIGNvbnRyb2wgKi8KKwl1OCAgICAgICAgIGFicGY6MTsJLyogYWJvcnQgcHJlLWZldGNoICovCisJdTggICAgICAgICBjYXA6MTsJLyogY2FjaGluZyBhbmFseXNpcyBwZXJtaXR0ZWQgKi8KKwl1OCAgICAgICAgIGRpc2M6MTsJLyogZGlzY29udGludWl0eSAqLworCXU4ICAgICAgICAgc2l6ZToxOwkvKiBzaXplIGVuYWJsZSAqLworCXU4ICAgICAgICAgd2NlOjE7CS8qIHdyaXRlIGNhY2hlIGVuYWJsZSAqLworCXU4ICAgICAgICAgbWY6MTsJLyogbXVsdGlwbGljYXRpb24gZmFjdG9yICovCisJdTggICAgICAgICByY2Q6MTsJLyogcmVhZCBjYWNoZSBkaXNhYmxlICovCisKKwl1OCAgICAgICAgIGRycnA6NDsJLyogZGVtYW5kIHJlYWQgcmV0ZW50aW9uIHByaW9yaXR5ICovCisJdTggICAgICAgICB3cnA6NDsJLyogd3JpdGUgcmV0ZW50aW9uIHByaW9yaXR5ICovCisjZWxzZQorCXU4ICAgICAgICAgcmNkOjE7CS8qIHJlYWQgY2FjaGUgZGlzYWJsZSAqLworCXU4ICAgICAgICAgbWY6MTsJLyogbXVsdGlwbGljYXRpb24gZmFjdG9yICovCisJdTggICAgICAgICB3Y2U6MTsJLyogd3JpdGUgY2FjaGUgZW5hYmxlICovCisJdTggICAgICAgICBzaXplOjE7CS8qIHNpemUgZW5hYmxlICovCisJdTggICAgICAgICBkaXNjOjE7CS8qIGRpc2NvbnRpbnVpdHkgKi8KKwl1OCAgICAgICAgIGNhcDoxOwkvKiBjYWNoaW5nIGFuYWx5c2lzIHBlcm1pdHRlZCAqLworCXU4ICAgICAgICAgYWJwZjoxOwkvKiBhYm9ydCBwcmUtZmV0Y2ggKi8KKwl1OCAgICAgICAgIGljOjE7CS8qIGluaXRpYXRvciBjb250cm9sICovCisKKwl1OCAgICAgICAgIHdycDo0OwkvKiB3cml0ZSByZXRlbnRpb24gcHJpb3JpdHkgKi8KKwl1OCAgICAgICAgIGRycnA6NDsJLyogZGVtYW5kIHJlYWQgcmV0ZW50aW9uIHByaW9yaXR5ICovCisjZW5kaWYKKwl1OCAgICAgICAgIGRwdGxbMl07LyogZGlzYWJsZSBwcmUtZmV0Y2ggdHJhbnNmZXIgbGVuZ3RoICovCisJdTggICAgICAgICBtaW5fcHJlZmV0Y2hbMl07CisJdTggICAgICAgICBtYXhfcHJlZmV0Y2hbMl07CisJdTggICAgICAgICBtYXhfcHJlZmV0Y2hfbGltaXRbMl07CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIGZzdzoxOwkvKiBmb3JjZSBzZXF1ZW50aWFsIHdyaXRlICovCisJdTggICAgICAgICBsYmNzczoxOy8qIGxvZ2ljYWwgYmxvY2sgY2FjaGUgc2VnbWVudCBzaXplICovCisJdTggICAgICAgICBkcmE6MTsJLyogZGlzYWJsZSByZWFkIGFoZWFkICovCisJdTggICAgICAgICB2czoyOwkvKiB2ZW5kb3Igc3BlY2lmaWMgKi8KKwl1OCAgICAgICAgIHJlczI6MzsKKyNlbHNlCisJdTggICAgICAgICByZXMyOjM7CisJdTggICAgICAgICB2czoyOwkvKiB2ZW5kb3Igc3BlY2lmaWMgKi8KKwl1OCAgICAgICAgIGRyYToxOwkvKiBkaXNhYmxlIHJlYWQgYWhlYWQgKi8KKwl1OCAgICAgICAgIGxiY3NzOjE7LyogbG9naWNhbCBibG9jayBjYWNoZSBzZWdtZW50IHNpemUgKi8KKwl1OCAgICAgICAgIGZzdzoxOwkvKiBmb3JjZSBzZXF1ZW50aWFsIHdyaXRlICovCisjZW5kaWYKKwl1OCAgICAgICAgIG51bV9jYWNoZV9zZWdzOworCisJdTggICAgICAgICBjYWNoZV9zZWdfc2l6ZVsyXTsKKwl1OCAgICAgICAgIHJlczM7CisJdTggICAgICAgICBub25fY2FjaGVfc2VnX3NpemVbM107Cit9OworCisvKgorICogU0NTSSB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ICAgICAgICAgYXV0b2xvYWRfbW9kOjM7CisJdTggICAgICAgICByZXNlcnZlZDc6NTsKKyNlbmRpZgorCXU4ICAgICAgICAgcmFocF9tc2I7CS8qIHJlYWR5IEFFUiBob2xkb2ZmIHBlcmlvZCAtIE1TQiAqLworCXU4ICAgICAgICAgcmFocF9sc2I7CS8qIHJlYWR5IEFFUiBob2xkb2ZmIHBlcmlvZCAtIExTQiAqLworCisJdTggICAgICAgICBidXN5X3RpbWVvdXRfcGVyaW9kX21zYjsKKwl1OCAgICAgICAgIGJ1c3lfdGltZW91dF9wZXJpb2RfbHNiOworCisJdTggICAgICAgICBleHRfc2VsZnRlc3RfY29tcGxfdGltZV9tc2I7CisJdTggICAgICAgICBleHRfc2VsZnRlc3RfY29tcGxfdGltZV9sc2I7Cit9OworCisvKgorICogU0NTSSBtZWRpdW0gdHlwZXMgc3VwcG9ydGVkIG1vZGUgcGFnZQorICovCitzdHJ1Y3Qgc2NzaV9tcF9tZWRpdW1fdHlwZXNfc3VwX3N7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIHBzOjE7CisJdTggICAgICAgICByZXNlcnZlZDE6MTsKKwl1OCAgICAgICAgIHBhZ2VfY29kZTo2OworI2Vsc2UKKwl1OCAgICAgICAgIHBhZ2VfY29kZTo2OworCXU4ICAgICAgICAgcmVzZXJ2ZWQxOjE7CisJdTggICAgICAgICBwczoxOworI2VuZGlmCisJdTggICAgICAgICBwYWdlX2xlbjsKKworCXU4ICAgICAgICAgcmVzZXJ2ZWQzWzJdOworCXU4ICAgICAgICAgbWVkX3R5cGUxX3N1cDsJLyogbWVkaXVtIHR5cGUgb25lIHN1cHBvcnRlZCAqLworCXU4ICAgICAgICAgbWVkX3R5cGUyX3N1cDsJLyogbWVkaXVtIHR5cGUgdHdvIHN1cHBvcnRlZCAqLworCXU4ICAgICAgICAgbWVkX3R5cGUzX3N1cDsJLyogbWVkaXVtIHR5cGUgdGhyZWUgc3VwcG9ydGVkICovCisJdTggICAgICAgICBtZWRfdHlwZTRfc3VwOwkvKiBtZWRpdW0gdHlwZSBmb3VyIHN1cHBvcnRlZCAqLworfTsKKworLyoKKyAqIFNDU0kgaW5mb3JtYXRpb25hbCBleGNlcHRpb24gY29udHJvbCBtb2RlIHBhZ2UKKyAqLworc3RydWN0IHNjc2lfbXBfaW5mb19leGNwdF9jbnRsX3N7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIHBzOjE7CisJdTggICAgICAgICByZXNlcnZlZDE6MTsKKwl1OCAgICAgICAgIHBhZ2VfY29kZTo2OworI2Vsc2UKKwl1OCAgICAgICAgIHBhZ2VfY29kZTo2OworCXU4ICAgICAgICAgcmVzZXJ2ZWQxOjE7CisJdTggICAgICAgICBwczoxOworI2VuZGlmCisJdTggICAgICAgICBwYWdlX2xlbjsKKyNpZmRlZiBfX0JJR0VORElBTgorCXU4ICAgICAgICAgcGVyZjoxOwkJLyogcGVyZm9ybWFuY2UgKi8KKwl1OCAgICAgICAgIHJlc2VydmVkMzoxOworCXU4ICAgICAgICAgZWJmOjE7CQkvKiBlbmFibGUgYmFja2dyb3VuZCBmdWNudGlvbiAqLworCXU4ICAgICAgICAgZXdhc2M6MTsJLyogZW5hYmxlIHdhcm5pbmcgKi8KKwl1OCAgICAgICAgIGRleGNwdDoxOwkvKiBkaXNhYmxlIGV4Y2VwdGlvbiBjb250cm9sICovCisJdTggICAgICAgICB0ZXN0OjE7CQkvKiBlbmFibGUgdGVzdCBkZXZpY2UgZmFpbHVyZQorCQkJCQkgKiBub3RpZmljYXRpb24KKwkJCQkJICovCisJdTggICAgICAgICByZXNlcnZlZDQ6MTsKKwl1OCAgICAgICAgIGxvZ19lcnJvcjoxOworCisJdTggICAgICAgICByZXNlcnZlZDU6NDsKKwl1OCAgICAgICAgIG1yaWU6NDsJCS8qIG1ldGhvZCBvZiByZXBvcnRpbmcgaW5mbworCQkJCQkgKiBleGNlcHRpb25zCisJCQkJCSAqLworI2Vsc2UKKwl1OCAgICAgICAgIGxvZ19lcnJvcjoxOworCXU4ICAgICAgICAgcmVzZXJ2ZWQ0OjE7CisJdTggICAgICAgICB0ZXN0OjE7CQkvKiBlbmFibGUgdGVzdCBkZXZpY2UgZmFpbHVyZQorCQkJCQkgKiBub3RpZmljYXRpb24KKwkJCQkJICovCisJdTggICAgICAgICBkZXhjcHQ6MTsJLyogZGlzYWJsZSBleGNlcHRpb24gY29udHJvbCAqLworCXU4ICAgICAgICAgZXdhc2M6MTsJLyogZW5hYmxlIHdhcm5pbmcgKi8KKwl1OCAgICAgICAgIGViZjoxOwkJLyogZW5hYmxlIGJhY2tncm91bmQgZnVjbnRpb24gKi8KKwl1OCAgICAgICAgIHJlc2VydmVkMzoxOworCXU4ICAgICAgICAgcGVyZjoxOwkJLyogcGVyZm9ybWFuY2UgKi8KKworCXU4ICAgICAgICAgbXJpZTo0OwkJLyogbWV0aG9kIG9mIHJlcG9ydGluZyBpbmZvCisJCQkJCSAqIGV4Y2VwdGlvbnMKKwkJCQkJICovCisJdTggICAgICAgICByZXNlcnZlZDU6NDsKKyNlbmRpZgorCXU4ICAgICAgICAgaW50ZXJ2YWxfdGltZXJfbXNiOworCXU4ICAgICAgICAgaW50ZXJ2YWxfdGltZXJfbHNiOworCisJdTggICAgICAgICByZXBvcnRfY291bnRfbXNiOworCXU4ICAgICAgICAgcmVwb3J0X2NvdW50X2xzYjsKK307CisKKy8qCisgKiBNZXRob2RzIG9mIHJlcG9ydGluZyBpbmZvcm1hdGlvbmFsIGV4Y2VwdGlvbnMKKyAqLworI2RlZmluZSBTQ1NJX01QX0lFQ19OT19SRVBPUlQgICAgICAgMHgwCS8qIG5vIHJlcG9ydGluZyBvZiBleGNlcHRpb25zICovCisjZGVmaW5lIFNDU0lfTVBfSUVDX0FFUiAgICAgICAgICAgICAweDEJLyogYXN5bmMgZXZlbnQgcmVwb3J0aW5nICovCisjZGVmaW5lIFNDU0lfTVBfSUVDX1VOSVRfQVRUTiAgICAgICAweDI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HNiOworCisJdTggICAgICAgICBudW1fY3lsaW5kZXJzX21zYjsKKwl1OCAgICAgICAgIG51bV9jeWxpbmRlcnNfbHNiOworCisJdTggICAgICAgICBzY193cGNfbXNiOwkvKiBzdGFydGluZyBjeWxpbmRlci13cml0ZQorCQkJCQkgKiBwcmVjb21wZW5zYXRpb24gbXNiCisJCQkJCSAqLworCXU4ICAgICAgICAgc2Nfd3BjX2xzYjsJLyogc3RhcnRpbmcgY3lsaW5kZXItd3JpdGUKKwkJCQkJICogcHJlY29tcGVuc2F0aW9uIGxzYgorCQkJCQkgKi8KKwl1OCAgICAgICAgIHNjX3J3Y19tc2I7CS8qIHN0YXJ0aW5nIGN5bGluZGVyLXJlZHVjZWQgd3JpdGUKKwkJCQkJICogY3VycmVudCBtc2IKKwkJCQkJICovCisJdTggICAgICAgICBzY19yd2NfbHNiOwkvKiBzdGFydGluZyBjeWxpbmRlci1yZWR1Y2VkIHdyaXRlCisJCQkJCSAqIGN1cnJlbnQgbHNiCisJCQkJCSAqLworCisJdTggICAgICAgICBkZXZfc3RlcF9yYXRlX21zYjsKKwl1OCAgICAgICAgIGRldl9zdGVwX3JhdGVfbHNiOworCisJdTggICAgICAgICBkZXZfc3RlcF9wdWxzZV93aWR0aDsKKworCXU4ICAgICAgICAgaGVhZF9zZF9tc2I7CS8qIGhlYWQgc2V0dGxlIGRlbGF5IG1zYiAqLworCXU4ICAgICAgICAgaGVhZF9zZF9sc2I7CS8qIGhlYWQgc2V0dGxlIGRlbGF5IGxzYiAqLworCisJdTggICAgICAgICBtb3Rvcl9vbl9kZWxheTsKKwl1OCAgICAgICAgIG1vdG9yX29mZl9kZWxheTsKKyNpZmRlZiBfX0JJR0VORElBTgorCXU4ICAgICAgICAgdHJkeToxOwkJLyogdHJ1ZSByZWFkeSBiaXQgKi8KKwl1OCAgICAgICAgIHNzbjoxOwkJLyogc3RhcnQgc2VjdG9yIG51bWJlciBiaXQgKi8KKwl1OCAgICAgICAgIG1vOjE7CQkvKiBt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cGNvZGU7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIHJlc2VydmVkOjM7CisJdTggICAgICAgICBvYnNvbGV0ZTo0OworCXU4ICAgICAgICAgZXh0ZW50OjE7CisjZWxzZQorCXU4ICAgICAgICAgZXh0ZW50OjE7CisJdTggICAgICAgICBvYnNvbGV0ZTo0OworCXU4ICAgICAgICAgcmVzZXJ2ZWQ6MzsKKyNlbmRpZgorCXU4ICAgICAgICAgcmVzZXJ2YXRpb25faWQ7CisJdTE2ICAgICAgICBwYXJhbV9saXN0X2xlbjsKKwl1OCAgICAgICAgIGNvbnRyb2w7Cit9OworCisvKgorICogaAorICovCitzdHJ1Y3Qgc2NzaV9yZWxlYXNlNl9zeworCXU4ICAgICAgICAgb3Bjb2RlOworI2lmZGVmIF9fQklHRU5ESUFOCisJdTggICAgICAgICByZXNlcnZlZDE6MzsKKwl1OCAgICAgICAgIG9ic29sZXRlOjQ7CisJdTggICAgICAgICBleHRlbnQ6MTsKKyNlbHNlCisJdTggICAgICAgICBleHRlbnQ6MTsKKwl1OCAgICAgICAgIG9ic29sZXRlOjQ7CisJdTggICAgICAgICByZXNlcnZlZDE6MzsKKyNlbmRpZgorCXU4ICAgICAgICAgcmVzZXJ2YXRpb25faWQ7CisJdTE2ICAgICAgICByZXNlcnZlZDI7CisJdTggICAgICAgICBjb250cm9sOworfTsKKworLyoKKyAqIGgKKyAqLworc3RydWN0IHNjc2lfcmVzZXJ2ZTEwX3N7CisJdTggICAgICAgICBvcGNvZGU7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIHJlc2VydmVkMTozOworCXU4ICAgICAgICAgdGhpcmRfcGFydHk6MTsKKwl1OCAgICAgICAgIHJlc2VydmVkMjoyOworCXU4ICAgICAgICAgbG9uZ19pZDoxOworCXU4ICAgICAgICAgZXh0ZW50OjE7CisjZWxzZQorCXU4ICAgICAgICAgZXh0ZW50OjE7CisJdTggICAgICAgICBsb25nX2lkOjE7CisJdTggICAgICAgICByZXNlcnZlZDI6MjsKKwl1OCAgICAgICAgIHRoaXJkX3BhcnR5OjE7CisJdTggICAgICAgICByZXNlcnZlZDE6MzsKKyNlbmRpZgorCXU4ICAgICAgICAgcmVzZXJ2YXRpb25faWQ7CisJdTggICAgICAgICB0aGlyZF9wdHlfZGV2X2lkOworCXU4ICAgICAgICAgcmVzZXJ2ZWQzOworCXU4ICAgICAgICAgcmVzZXJ2ZWQ0OworCXU4ICAgICAgICAgcmVzZXJ2ZWQ1OworCXUxNiAgICAgICAgcGFyYW1fbGlzdF9sZW47CisJdTggICAgICAgICBjb250cm9sOworfTsKKworc3RydWN0IHNjc2lfcmVsZWFzZTEwX3N7CisJdTggICAgICAgICBvcGNvZGU7CisjaWZkZWYgX19CSUdFTkRJQU4KKwl1OCAgICAgICAgIHJlc2VydmVkMTozOworCXU4ICAgICAgICAgdGhpcmRfcGFydHk6MTsKKwl1OCAgICAgICAgIHJlc2VydmVkMjoyOworCXU4ICAgICAgICAgbG9uZ19pZDoxOworCXU4ICAgICAgICAgZXh0ZW50OjE7CisjZWxzZQorCXU4ICAgICAgICAgZXh0ZW50OjE7CisJdTggICAgICAgICBsb25nX2lkOjE7CisJdTggICAgICAgICByZXNlcnZlZDI6MjsKKwl1OCAgICAgICAgIHRoaXJkX3BhcnR5OjE7CisJdTggICAgICAgICByZXNlcnZlZDE6MzsKKyNlbmRpZgorCXU4ICAgICAgICAgcmVzZXJ2YXRpb25faWQ7CisJdTggICAgICAgICB0aGlyZF9wdHlfZGV2X2lkOworCXU4ICAgICAgICAgcmVzZXJ2ZWQzOworCXU4ICAgICAgICAgcmVzZXJ2ZWQ0OworCXU4ICAgICAgICAgcmVzZXJ2ZWQ1OworCXUxNiAgICAgICAgcGFyYW1fbGlzdF9sZW47CisJdTggICAgICAgICBjb250cm9sOworfTsKKworc3RydWN0IHNjc2lfdmVyaWZ5MTBfc3sKKwl1OCAgICAgICAgIG9wY29kZTsKKyNpZmRlZiBfX0JJR0VORElBTgorCXU4ICAgICAgICAgbHVuOjM7CisJdTggICAgICAgICBkcG86MTsKKwl1OCAgICAgICAgIHJlc2VydmVkOjI7CisJdTggICAgICAgICBieXRjaGs6MTsKKwl1OCAgICAgICAgIHJlbGFkZHI6MTsKKyNlbHNlCisJdTggICAgICAgICByZWxhZGRyOjE7CisJdTggICAgICAgICBieXRjaGs6MTsKKwl1OCAgICAgICAgIHJlc2VydmVkOjI7CisJdTggICAgICAgICBkcG86MTsKKwl1OCAgICAgICAgIGx1bjozOworI2VuZGlmCisJdTggICAgICAgICBsYmEwOworCXU4ICAgICAgICAgbGJhMTsKKwl1OCAgICAgICAgIGxiYTI7CisJdTggICAgICAgICBsYmEzOworCXU4ICAgICAgICAgcmVzZXJ2ZWQxOworCXU4ICAgICAgICAgdmVyaWZpY2F0aW9uX2xlbjA7CisJdTggICAgICAgICB2ZXJpZmljYXRpb25fbGVuMTsKKwl1OCAgICAgICAgIGNvbnRyb2xfYnl0ZTsKK307CisKK3N0cnVjdCBzY3NpX3JlcXVlc3Rfc2Vuc2Vfc3sKKwl1OCAgICAgICAgIG9wY29kZTsKKyNpZmRlZiBfX0JJR0VORElBTgorCXU4ICAgICAgICAgbHVuOjM7CisJdTggICAgICAgICByZXNlcnZlZDo1OworI2Vsc2UKKwl1OCAgICAgICAgIHJlc2VydmVkOjU7CisJdTggICAgICAgICBsdW46MzsKKyNlbmRpZgorCXU4ICAgICAgICAgcmVzZXJ2ZWQwOworCXU4ICAgICAgICAgcmVzZXJ2ZWQxOworCXU4ICAgICAgICAgYWxsb2NfbGVuOworCXU4ICAgICAgICAgY29udHJvbF9ieXRlOworfTsKKworLyogLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCisgKiBTQ1NJIHN0YXR1cyBieXRlIHZhbHVlcworICogLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0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ICAgICBWRl9JRDsgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMSAqLworICAgIFU4ICAgICAgICAgICAgICBNU0l4SW5kZXg7ICAgICAgICAgICAgICAgICAgLyogMHgwMSAqLwogICAgIFUxNiAgICAgICAgICAgICBTTUlEOyAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMiAqLwogICAgIFUxNiAgICAgICAgICAgICBMTUlEOyAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwNCAqLwogICAgIFUxNiAgICAgICAgICAgICBEZXNjcmlwdG9yVHlwZURlcGVuZGVudDsgICAgLyogMHgwNiAqLwpAQCAtMjcxLDYgKzI3OCw3IEBACiAjZGVmaW5lIE1QSTJfUkVRX0RFU0NSSVBUX0ZMQUdTX1NDU0lfVEFSR0VUICAgICAgICAgICAgICgweDAyKQogI2RlZmluZSBNUEkyX1JFUV9ERVNDUklQVF9GTEFHU19ISUdIX1BSSU9SSVRZICAgICAgICAgICAoMHgwNikKICNkZWZpbmUgTVBJMl9SRVFfREVTQ1JJUFRfRkxBR1NfREVGQVVMVF9UWVBFICAgICAgICAgICAgKDB4MDgpCisjZGVmaW5lIE1QSTJfUkVRX0RFU0NSSVBUX0ZMQUdTX1JBSURfQUNDRUxFUkFUT1IgICAgICAgICgweDBBKQogCiAjZGVmaW5lIE1QSTJfUkVRX0RFU0NSSVBUX0ZMQUdTX0lPQ19GSUZPX01BUktFUiAoMHgwMSkKIApAQCAtMjc5LDcgKzI4Nyw3IEBACiB0eXBlZGVmIHN0cnVjdCBfTVBJMl9ISUdIX1BSSU9SSVRZX1JFUVVFU1RfREVTQ1JJUFRPUgogewogICAgIFU4ICAgICAgICAgICAgICBSZXF1ZXN0RmxhZ3M7ICAgICAgICAgICAgICAgLyogMHgwMCAqLwotICAgIFU4ICAgICAgICAgICAgICBWRl9JRDsgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMSAqLworICAgIFU4ICAgICAgICAgICAgICBNU0l4SW5kZXg7ICAgICAgICAgICAgICAgICAgLyogMHgwMSAqLwogICAgIFUxNiAgICAgICAgICAgICBTTUlEOyAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMiAqLwogICAgIFUxNiAgICAgICAgICAgICBMTUlEOyAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwNCAqLwogICAgIFUxNiAgICAgICAgICAgICBSZXNlcnZlZDE7ICAgICAgICAgICAgICAgICAgLyogMHgwNiAqLwpAQCAtMjkzLDcgKzMwMSw3IEBACiB0eXBlZGVmIHN0cnVjdCBfTVBJMl9TQ1NJX0lPX1JFUVVFU1RfREVTQ1JJUFRPUgogewogICAgIFU4ICAgICAgICAgICAgICBSZXF1ZXN0RmxhZ3M7ICAgICAgICAgICAgICAgLyogMHgwMCAqLwotICAgIFU4ICAgICAgICAgICAgICBWRl9JRDsgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMSAqLworICAgIFU4ICAgICAgICAgICAgICBNU0l4SW5kZXg7ICAgICAgICAgICAgICAgICAgLyogMHgwMSAqLwogICAgIFUxNiAgICAgICAgICAgICBTTUlEOyAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMiAqLwogICAgIFUxNiAgICAgICAgICAgICBMTUlEOyAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwNCAqLwogICAgIFUxNiAgICAgICAgICAgICBEZXZIYW5kbGU7ICAgICAgICAgICAgICAgICAgLyogMHgwNiAqLwpAQCAtMzA2LDcgKzMxNCw3IEBACiB0eXBlZGVmIHN0cnVjdCBfTVBJMl9TQ1NJX1RBUkdFVF9SRVFVRVNUX0RFU0NSSVBUT1IKIHsKICAgICBVOCAgICAgICAgICAgICAgUmVxdWVzdEZsYWdzOyAgICAgICAgICAgICAgIC8qIDB4MDAgKi8KLSAgICBVOCAgICAgICAgICAgICAgVkZfSUQ7ICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDEgKi8KKyAgICBVOCAgICAgICAgICAgICAgTVNJeEluZGV4OyAgICAgICAgICAgICAgICAgIC8qIDB4MDEgKi8KICAgICBVMTYgICAgICAgICAgICAgU01JRDsgICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDIgKi8KICAgICBVMTYgICAgICAgICAgICAgTE1JRDsgICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDQgKi8KICAgICBVMTYgICAgICAgICAgICAgSW9JbmRleDsgICAgICAgICAgICAgICAgICAgIC8qIDB4MDYgKi8KQEAgLTMxNSwxNCArMzIzLDI5IEBACiAgIE1waTJTQ1NJVGFyZ2V0UmVxdWVzdERlc2NyaXB0b3JfdCwKICAgTVBJMl9QT0lOVEVSIHBNcGkyU0NTSVRhcmdldFJlcXVlc3REZXNjcmlwdG9yX3Q7CiAKKworLyogUkFJRCBBY2NlbGVyYXRvciBSZXF1ZXN0IERlc2NyaXB0b3IgKi8KK3R5cGVkZWYgc3RydWN0IF9NUEkyX1JBSURfQUNDRUxfUkVRVUVTVF9ERVNDUklQVE9SIHsKKyAgICBVOCAgICAgICAgICAgICAgUmVxdWVzdEZsYWdzOyAgICAgICAgICAgICAgIC8qIDB4MDAgKi8KKyAgICBVOCAgICAgICAgICAgICAgTVNJeEluZGV4OyAgICAgICAgICAgICAgICAgIC8qIDB4MDEgKi8KKyAgICBVMTYgICAgICAgICAgICAgU01JRDsgICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDIgKi8KKyAgICBVMTYgICAgICAgICAgICAgTE1JRDsgICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDQgKi8KKyAgICBVMTYgICAgICAgICAgICAgUmVzZXJ2ZWQ7ICAgICAgICAgICAgICAgICAgIC8qIDB4MDYgKi8KK30gTVBJMl9SQUlEX0FDQ0VMX1JFUVVFU1RfREVTQ1JJUFRPUiwKKyAgTVBJMl9QT0lOVEVSIFBUUl9NUEkyX1JBSURfQUNDRUxfUkVRVUVTVF9ERVNDUklQVE9SLAorICBNcGkyUkFJREFjY2VsZXJhdG9yUmVxdWVzdERlc2NyaXB0b3JfdCwKKyAgTVBJMl9QT0lOVEVSIH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PUl9VTklPTiwKICAgTXBpMlJlcXVlc3REZXNjcmlwdG9yVW5pb25fdCwgTVBJMl9QT0lOVEVSIHBNcGkyUmVxdWVzdERlc2NyaXB0b3JVbmlvbl90OwogCkBAIC0zMzMsMTkgKzM1NiwyMCBAQAogdHlwZWRlZiBzdHJ1Y3QgX01QSTJfREVGQVVMVF9SRVBMWV9ERVNDUklQVE9SCiB7CiAgICAgVTggICAgICAgICAgICAgIFJlcGx5RmxhZ3M7ICAgICAgICAgICAgICAgICAvKiAweDAwICovCi0gICAgVTggICAgICAgICAgICAgIFZGX0lEOyAgICAgICAgICAgICAgICAgICAgICAvKiAweDAxICovCisgICAgVTggICAgICAgICAgICAgIE1TSXhJbmRleDsgICAgICAgICAgICAgICAgICAvKiAweDAxICovCiAgICAgVTE2ICAgICAgICAgICAgIERlc2NyaXB0b3JUeXBlRGVwZW5kZW50MTsgICAvKiAweDAyICovCiAgICAgVTMyICAgICAgICAgICAgIERlc2NyaXB0b3JUeXBlRGVwZW5kZW50MjsgICAvKiAweDA0ICovCiB9IE1QSTJfREVGQVVMVF9SRVBMWV9ERVNDUklQVE9SLCBNUEkyX1BPSU5URVIgUFRSX01QSTJfREVGQVVMVF9SRVBMWV9ERVNDUklQVE9SLAogICBNcGkyRGVmYXVsdFJlcGx5RGVzY3JpcHRvcl90LCBNUEkyX1BPSU5URVIgcE1waTJEZWZhdWx0UmVwbHlEZXNjcmlwdG9yX3Q7CiAKIC8qIGRlZmluZXMgZm9yIHRoZSBSZXBseUZsYWdzIGZpZWxkICovCi0jZGVmaW5lIE1QSTJfUlBZX0RFU0NSSVBUX0ZMQUdTX1RZUEVfTUFTSyAgICAgICAgICAgICAgICgweDBGKQotI2RlZmluZSBNUEkyX1JQWV9ERVNDUklQVF9GTEFHU19TQ1NJX0lPX1NVQ0NFU1MgICAgICAgICAoMHgwMCkKLSNkZWZpbmUgTVBJMl9SUFlfREVTQ1JJUFRfRkxBR1NfQUREUkVTU19SRVBMWSAgICAgICAgICA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KIHR5cGVkZWYgc3RydWN0IF9NUEkyX0FERFJFU1NfUkVQTFlfREVTQ1JJUFRPUgogewogICAgIFU4ICAgICAgICAgICAgICBSZXBseUZsYWdzOyAgICAgICAgICAgICAgICAgLyogMHgwMCAqLwotICAgIFU4ICAgICAgICAgICAgICBWRl9JRDsgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMSAqLworICAgIFU4ICAgICAgICAgICAgICBNU0l4SW5kZXg7ICAgICAgICAgICAgICAgICAgLyogMHgwMSAqLwogICAgIFUxNiAgICAgICAgICAgICBTTUlEOyAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMiAqLwogICAgIFUzMiAgICAgICAgICAgICBSZXBseUZyYW1lQWRkcmVzczsgICAgICAgICAgLyogMHgwNCAqLwogfSBNUEkyX0FERFJFU1NfUkVQTFlfREVTQ1JJUFRPUiwgTVBJMl9QT0lOVEVSIFBUUl9NUEkyX0FERFJFU1NfUkVQTFlfREVTQ1JJUFRPUiwKQEAgLTM2OCwxMCArMzkyLDEwIEBACiB0eXBlZGVmIHN0cnVjdCBfTVBJMl9TQ1NJX0lPX1NVQ0NFU1NfUkVQTFlfREVTQ1JJUFRPUgogewogICAgIFU4ICAgICAgICAgICAgICBSZXBseUZsYWdzOyAgICAgICAgICAgICAgICAgLyogMHgwMCAqLwotICAgIFU4ICAgICAgICAgICAgICBWRl9JRDsgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMSAqLworICAgIFU4ICAgICAgICAgICAgICBNU0l4SW5kZXg7ICAgICAgICAgICAgICAgICAgLyogMHgwMSAqLwogICAgIFUxNiAgICAgICAgICAgICBTTUlEOyAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMiAqLwogICAgIFUxNiAgICAgICAgICAgICBUYXNrVGFnOyAgICAgICAgICAgICAgICAgICAgLyogMHgwNCAqLwotICAgIFUxNiAgICAgICAgICAgICBEZXZIYW5kbGU7ICAgICAgICAgICAgICAgICAgLyogMHgwNiAqLworICAgIFUxNiAgICAgICAgICAgICBSZXNlcnZlZDE7ICAgICAgICAgICAgICAgICAgLyogMHgwNiAqLwogfSBNUEkyX1NDU0lfSU9fU1VDQ0VTU19SRVBMWV9ERVNDUklQVE9SLAogICBNUEkyX1BPSU5URVIgUFRSX01QSTJfU0NTSV9JT19TVUNDRVNTX1JFUExZX0RFU0NSSVBUT1IsCiAgIE1waTJTQ1NJSU9TdWNjZXNzUmVwbHlEZXNjcmlwdG9yX3QsCkBAIC0zODIsNyArNDA2LDcgQEAKIHR5cGVkZWYgc3RydWN0IF9NUEkyX1RBUkdFVEFTU0lTVF9TVUNDRVNTX1JFUExZX0RFU0NSSVBUT1IKIHsKICAgICBVOCAgICAgICAgICAgICAgUmVwbHlGbGFnczsgICAgICAgICAgICAgICAgIC8qIDB4MDAgKi8KLSAgICBVOCAgICAgICAgICAgICAgVkZfSUQ7ICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDEgKi8KKyAgICBVOCAgICAgICAgICAgICAgTVNJeEluZGV4OyAgICAgICAgICAgICAgICAgIC8qIDB4MDEgKi8KICAgICBVMTYgICAgICAgICAgICAgU01JRDsgICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDIgKi8KICAgICBVOCAgICAgICAgICAgICAgU2VxdWVuY2VOdW1iZXI7ICAgICAgICAgICAgIC8qIDB4MDQgKi8KICAgICBVOCAgICAgICAgICAgICAgUmVzZXJ2ZWQxOyAgICAgICAgICAgICAgICAgIC8qIDB4MDUgKi8KQEAgLTM5Nyw3ICs0MjEsNyBAQAogdHlwZWRlZiBzdHJ1Y3QgX01QSTJfVEFSR0VUX0NPTU1BTkRfQlVGRkVSX1JFUExZX0RFU0NSSVBUT1IKIHsKICAgICBVOCAgICAgICAgICAgICAgUmVwbHlGbGFnczsgICAgICAgICAgICAgICAgIC8qIDB4MDAgKi8KLSAgICBVOCAgICAgICAgICAgICAgVkZfSUQ7ICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDEgKi8KKyAgICBVOCAgICAgICAgICAgIC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Ky8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCisqICBSQUlEIEFjY2VsZXJhdG9yIHZhbHVlcworKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KKworI2RlZmluZSBNUEkyX0lPQ1NUQVRVU19SQUlEX0FDQ0VMX0VSUk9SICAgICAgICAgICAgICgweDAwQjApCiAKIC8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiAqICBJT0NTdGF0dXMgZmxhZyB0byBpbmRpY2F0ZSB0aGF0IGxvZyBpbmZvIGlzIGF2YWlsYWJsZQogKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KIAotI2RlZmluZSBNUEkyX0lPQ1NUQVRVU19GTEFHX0xPR19JTkZPX0FWQUlMQUJMRSAgKDB4ODAwMCkKKyNkZWZpbmUgTVBJMl9JT0NTVEFUVVNfRkxBR19MT0dfSU5GT19BVkFJTEFCTEUgICAgICAoMHg4MDAwKQogCiAvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogKiAgSU9DTG9nSW5mbyBUeXBlcwpkaWZmIC0tZ2l0IGEvZHJpdmVycy9zY3NpL21wdDJzYXMvbXBpL21waTJfY25mZy5oIGIvZHJpdmVycy9zY3NpL21wdDJzYXMvbXBpL21waTJfY25mZy5oCmluZGV4IDJmMjdjZjYuLmFiNDdjNDYgMTAwNjQ0Ci0tLSBhL2RyaXZlcnMvc2NzaS9tcHQyc2FzL21waS9tcGkyX2NuZmcuaAorKysgYi9kcml2ZXJzL3Njc2kvbXB0MnNhcy9tcGkvbXBpMl9jbmZnLmgKQEAgLTYsNyArNiw3IEBACiAgKiAgICAgICAgICBUaXRsZTogIE1QSSBDb25maWd1cmF0aW9uIG1lc3NhZ2VzIGFuZCBwYWdlcwogICogIENyZWF0aW9uIERhdGU6ICBOb3ZlbWJlciAxMCwgMjAwNgogICoKLSAqICAgIG1waTJfY25mZy5oIFZlcnNpb246ICAwMi4wMC4xMAorICogICAgbXBpMl9jbmZnLmggVmVyc2lvbjogIDAyLjAwLjExCiAgKgogICogIFZlcnNpb24gSGlzdG9yeQogICogIC0tLS0tLS0tLS0tLS0tLQpAQCAtOTUsNiArOTUsMTEgQEAKICAqICAgICAgICAgICAgICAgICAgICAgIEFkZGVkIE1QSTJfU0FTX0RFVklDRTBfQVNUQVRVU19ERVZJQ0VfQkxPQ0tFRCBkZWZpbmUuCiAgKiAgICAgICAgICAgICAgICAgICAgICBBZGRlZCBQb3J0R3JvdXBzLCBEbWFHcm91cCwgYW5kIENvbnRyb2xHcm91cCBmaWVsZHMgdG8KICAqICAgICAgICAgICAgICAgICAgICAgIFNBUyBEZXZpY2UgUGFnZSAwLgorICogIDA1LTA2LTA5ICAwMi4wMC4xMSAgQWRkZWQgc3RydWN0dXJlcyBhbmQgZGVmaW5lcyBmb3IgSU8gVW5pdCBQYWdlIDUgYW5kIElPCisgKiAgICAgICAgICAgICAgICAgICAgICBVbml0IFBhZ2UgNi4KKyAqICAgICAgICAgICAgICAgICAgICAgIEFkZGVkIGV4cGFuZGVyIHJlZHVjZWQgZnVuY3Rpb25hbGl0eSBkYXRhIHRvIFNBUworICogICAgICAgICAgICAgICAgICAgICAgRXhwYW5kZXIgUGFnZSAwLgorICogICAgICAgICAgICAgICAgICAgICAgQWRkZWQgU0FTIFBIWSBQYWdlIDIgYW5kIFNBUyBQSFkgUGFnZSAzLgogICogIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCiAgKi8KIApAQCAtNzIzLDYgKzcyOCw2NSBAQAogI2RlZmluZSBNUEkyX0lPVU5JVFBBR0UzX0dQSU9fU0VUVElOR19PTiAgICAgICAgICAgICAgICAoMHgwMDAxKQogCiAKKy8qIElPIFVuaXQgUGFnZSA1ICovCisKKy8qCisgKiBVcHBlciBsYXllciBjb2RlIChkcml2ZXJzLCB1dGlsaXRpZXMsIGV0Yy4pIHNob3VsZCBsZWF2ZSB0aGlzIGRlZmluZSBzZXQgdG8KKyAqIG9uZSBhbmQgY2hlY2sgSGVhZGVyLlBhZ2VMZW5ndGggb3IgTnVtRG1hRW5naW5lcyBhdCBydW50aW1lLgorICovCisjaWZuZGVmIE1QSTJfSU9VTklUUEFHRTVfRE1BRU5HSU5FX0VOVFJJRVMKKyNkZWZpbmUgTVBJMl9JT1VOSVRQQUdFNV9ETUFFTkdJTkVfRU5UUklFUyAgICAgICgxKQorI2VuZGlmCisKK3R5cGVkZWYgc3RydWN0IF9NUEkyX0NPTkZJR19QQUdFX0lPX1VOSVRfNSB7CisgICAgTVBJMl9DT05GSUdfUEFHRV9IRUFERVIgSGVhZGVyOwkJCQkvKiAweDAwICovCisgICAgVTY0ICAgICAgICAgICAgICAgICAgICAgUmFpZEFjY2VsZXJhdG9yQnVmZmVyQmFzZUFkZHJlc3M7ICAvKiAweDA0ICovCisgICAgVTY0ICAgICAgICAgICAgICAgICAgICAgUmFpZEFjY2VsZXJhdG9yQnVmZmVyU2l6ZTsgICAgICAgICAvKiAweDBDICovCisgICAgVTY0ICAgICAgICAgICAgICAgICAgICAgUmFpZEFjY2VsZXJhdG9yQ29udHJvbEJhc2VBZGRyZXNzOyAvKiAweDE0ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgUkFDb250cm9sU2l6ZTsgICAgICAgICAgICAgICAgICAgICAvKiAweDFDICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgTnVtRG1hRW5naW5lczsgICAgICAgICAgICAgICAgICAgICAvKiAweDFEICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgUkFNaW5Db250cm9sU2l6ZTsgICAgICAgICAgICAgICAgICAvKiAweDFFICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgUkFNYXhDb250cm9sU2l6ZTsgICAgICAgICAgICAgICAgICAvKiAweDFGICovCisgICAgVTMyICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQxOyAgICAgICAgICAgICAgICAgICAgICAgICAvKiAweDIwICovCisgICAgVTMyICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQyOyAgICAgICAgICAgICAgICAgICAgICAgICAvKiAweDI0ICovCisgICAgVTMyICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQzOyAgICAgICAgICAgICAgICAgICAgICAgICAvKiAweDI4ICovCisgICAgVTMyICAgICAgICAgICAgICAgICAgICAgRG1hRW5naW5lQ2FwYWJpbGl0aWVzCisJCQkJW01QSTJfSU9VTklUUEFHRTVfRE1BRU5HSU5FX0VOVFJJRVNdOyAvKiAweDJDICovCit9IE1QSTJfQ09ORklHX1BBR0VfSU9fVU5JVF81LCBNUEkyX1BPSU5URVIgUFRSX01QSTJfQ09ORklHX1BBR0VfSU9fVU5JVF81LAorICBNcGkySU9Vbml0UGFnZTVfdCwgTVBJMl9QT0lOVEVSIHBNcGkySU9Vbml0UGFnZTVfdDsKKworI2RlZmluZSBNUEkyX0lPVU5JVFBBR0U1X1BBR0VWRVJTSU9OICAgICAgICAgICAgICAgICAgICAoMHgwMCkKKworLyogZGVmaW5lcyBmb3IgSU8gVW5pdCBQYWdlIDUgRG1hRW5naW5lQ2FwYWJpbGl0aWVzIGZpZWxkICovCisjZGVmaW5lIE1QSTJfSU9VTklUUEFHRTVfRE1BX0NBUF9NQVNLX01BWF9SRVFVRVNUUyAgICAgICgweEZGMDApCisjZGVmaW5lIE1QSTJfSU9VTklUUEFHRTVfRE1BX0NBUF9TSElGVF9NQVhfUkVRVUVTVFMgICAgICgxNikKKworI2RlZmluZSBNUEkyX0lPVU5JVFBBR0U1X0RNQV9DQVBfRUVEUCAgICAgICAgICAgICAgICAgICAoMHgwMDA4KQorI2RlZmluZSBNUEkyX0lPVU5JVFBBR0U1X0RNQV9DQVBfUEFSSVRZX0dFTkVSQVRJT04gICAgICAoMHgwMDA0KQorI2RlZmluZSBNUEkyX0lPVU5JVFBBR0U1X0RNQV9DQVBfSEFTSElORyAgICAgICAgICAgICAgICAoMHgwMDAyKQorI2RlZmluZSBNUEkyX0lPVU5JVFBBR0U1X0RNQV9DQVBfRU5DUllQVElPTiAgICAgICAgICAgICAoMHgwMDAxKQorCisKKy8qIElPIFVuaXQgUGFnZSA2ICovCisKK3R5cGVkZWYgc3RydWN0IF9NUEkyX0NPTkZJR19QQUdFX0lPX1VOSVRfNiB7CisgICAgTVBJMl9DT05GSUdfUEFHRV9IRUFERVIgSGVhZGVyOyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDAgKi8KKyAgICBVMTYgICAgICAgICAgICAgICAgICAgICBGbGFnczsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwNCAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIFJBSG9zdENvbnRyb2xTaXplOyAgICAgICAgICAgICAgICAgICAgICAvKiAweDA2ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQwOyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDcgKi8KKyAgICBVNjQgICAgICAgICAgICAgICAgICAgICBSYWlkQWNjZWxlcmF0b3JIb3N0Q29udHJvbEJhc2VBZGRyZXNzOyAgLyogMHgwOCAqLworICAgIFUzMiAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkMTsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvKiAweDEwICovCisgICAgVTMyICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQyOyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MTQgKi8KKyAgICBVMzIgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDM7ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLyogMHgxOCAqLworfSBNUEkyX0NPTkZJR19QQUdFX0lPX1VOSVRfNiwgTVBJMl9QT0lOVEVSIFBUUl9NUEkyX0NPTkZJR19QQUdFX0lPX1VOSVRfNiwKKyAgTXBpMklPVW5pdFBhZ2U2X3QsIE1QSTJfUE9JTlRFUiBwTXBpMklPVW5pdFBhZ2U2X3Q7CisKKyNkZWZpbmUgTVBJMl9JT1VOSVRQQUdFNl9QQUdFVkVSU0lPTiAgICAgICAgICAgICAgICAgICAgKDB4MDApCisKKy8qIGRlZmluZXMgZm9yIElPIFVuaXQgUGFnZSA2IEZsYWdzIGZpZWxkICovCisjZGVmaW5lIE1QSTJfSU9VTklUUEFHRTZfRkxBR1NfRU5BQkxFX1JBSURfQUNDRUxFUkFUT1IgICgweDAwMDEpCisKKwogLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKICogICBJT0MgQ29uZmlnIFBhZ2VzCiAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwpAQCAtMTcwOSwxMCArMTc3MywxNCBAQAogICAgIFU2NCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEFjdGl2ZVpvbmVNYW5hZ2VyU0FTQWRkcmVzczsvKiAweDJDICovCiAgICAgVTE2ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgWm9uZUxvY2tJbmFjdGl2aXR5TGltaXQ7ICAgIC8qIDB4MzQgKi8KICAgICBVMTYgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDE7ICAgICAgICAgICAgICAgICAgLyogMHgzNiAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgICAgICAgICA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gQklPUywgdXRpbGl0aWVzLCBldGMuKSBzaG91bGQgbGVhdmUgdGhpcyBkZWZpbmUgc2V0IHRvCisgKiBvbmUgYW5kIGNoZWNrIEhlYWRlci5FeHRQYWdlTGVuZ3RoIG9yIE51bVBoeUV2ZW50cyBhdCBydW50aW1lLgorICovCisjaWZuZGVmIE1QSTJfU0FTUEhZMl9QSFlfRVZFTlRfTUFYCisjZGVmaW5lIE1QSTJfU0FTUEhZMl9QSFlfRVZFTlRfTUFYICAgICAgKDEpCisjZW5kaWYKKwordHlwZWRlZiBzdHJ1Y3QgX01QSTJfQ09ORklHX1BBR0VfU0FTX1BIWV8yIHsKKyAgICBNUEkyX0NPTkZJR19FWFRFTkRFRF9QQUdFX0hFQURFUiAgICBIZWFkZXI7ICAgICAgICAgICAgICAgICAgICAgLyogMHgwMCAqLworICAgIFUzMiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkMTsgICAgICAgICAgICAgICAgICAvKiAweDA4ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgTnVtUGh5RXZlbnRzOyAgICAgICAgICAgICAgIC8qIDB4MEMgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDI7ICAgICAgICAgICAgICAgICAgLyogMHgwRCAqLworICAgIFUxNiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkMzsgICAgICAgICAgICAgICAgICAvKiAweDBFICovCisgICAgTVBJMl9TQVNQSFkyX1BIWV9FVkVOVCAgICAgICAgICAgICAgUGh5RXZlbnRbTVBJMl9TQVNQSFkyX1BIWV9FVkVOVF9NQVhdOworCQkJCQkJCQkvKiAweDEwICovCit9IE1QSTJfQ09ORklHX1BBR0VfU0FTX1BIWV8yLCBNUEkyX1BPSU5URVIgUFRSX01QSTJfQ09ORklHX1BBR0VfU0FTX1BIWV8yLAorICBNcGkyU2FzUGh5UGFnZTJfdCwgTVBJMl9QT0lOVEVSIHBNcGkyU2FzUGh5UGFnZTJfdDsKKworI2RlZmluZSBNUEkyX1NBU1BIWTJfUEFHRVZFUlNJT04gICAgICAgICAgICAoMHgwMCkKKworCisvKiBTQVMgUEhZIFBhZ2UgMyAqLworCit0eXBlZGVmIHN0cnVjdCBfTVBJMl9TQVNQSFkzX1BIWV9FVkVOVF9DT05GSUcgeworICAgIFU4ICAgICAgICAgIFBoeUV2ZW50Q29kZTsgICAgICAgLyogMHgwMCAqLworICAgIFU4ICAgICAgICAgIFJlc2VydmVkMTsgICAgICAgICAgLyogMHgwMSAqLworICAgIFUxNiAgICAgICAgIFJlc2VydmVkMjsgICAgICAgICAgLyogMHgwMiAqLworICAgIFU4ICAgICAgICAgIENvdW50ZXJUeXBlOyAgICAgICAgLyogMHgwNCAqLworICAgIFU4ICAgICAgICAgIFRocmVzaG9sZFdpbmRvdzsgICAgLyogMHgwNSAqLworICAgIFU4ICAgICAgICAgIFRpbWVVbml0czsgICAgICAgICAgLyogMHgwNiAqLworICAgIFU4ICAgICAgICAgIFJlc2VydmVkMzsgICAgICAgICAgLyogMHgwNyAqLworICAgIFUzMiAgICAgICAgIEV2ZW50VGhyZXNob2xkOyAgICAgLyogMHgwOCAqLworICAgIFUxNiAgICAgICAgIFRocmVzaG9sZEZsYWdzOyAgICAgLyogMHgwQyAqLworICAgIFUxNiAgICAgICAgIFJlc2VydmVkNDsgICAgICAgICAgLyogMHgwRSAqLworfSBNUEkyX1NBU1BIWTNfUEhZX0VWRU5UX0NPTkZJRywgTVBJMl9QT0lOVEVSIFBUUl9NUEkyX1NBU1BIWTNfUEhZX0VWRU5UX0NPTkZJRywKKyAgTXBpMlNhc1BoeTNQaHlFdmVudENvbmZpZ190LCBNUEkyX1BPSU5URVIgcE1waTJTYXNQaHkzUGh5RXZlbnRDb25maWdfdDsKKworLyogdmFsdWVzIGZvciBQaHlFdmVudENvZGUgZmllbGQgKi8KKyNkZWZpbmUgTVBJMl9TQVNQSFkzX0V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ZCBjaGVjayBIZWFkZXIuRXh0UGFnZUxlbmd0aCBvciBOdW1QaHlFdmVudHMgYXQgcnVudGltZS4KKyAqLworI2lmbmRlZiBNUEkyX1NBU1BIWTNfUEhZX0VWRU5UX01BWAorI2RlZmluZSBNUEkyX1NBU1BIWTNfUEhZX0VWRU5UX01BWCAgICAgICgxKQorI2VuZGlmCisKK3R5cGVkZWYgc3RydWN0IF9NUEkyX0NPTkZJR19QQUdFX1NBU19QSFlfMyB7CisgICAgTVBJMl9DT05GSUdfRVhURU5ERURfUEFHRV9IRUFERVIgICAgSGVhZGVyOyAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDAgKi8KKyAgICBVMzIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDE7ICAgICAgICAgICAgICAgICAgLyogMHgwOCAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE51bVBoeUV2ZW50czsgICAgICAgICAgICAgICAvKiAweDBDICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQyOyAgICAgICAgICAgICAgICAgIC8qIDB4MEQgKi8KKyAgICBVMTYgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDM7ICAgICAgICAgICAgICAgICAgLyogMHgwRSAqLworICAgIE1QSTJfU0FTUEhZM19QSFlfRVZFTlRfQ09ORklHICAgICAgIFBoeUV2ZW50Q29uZmlnCisJCQkJCVtNUEkyX1NBU1BIWTNfUEhZX0VWRU5UX01BWF07IC8qIDB4MTAgKi8KK30gTVBJMl9DT05GSUdfUEFHRV9TQVNfUEhZXzMsIE1QSTJfUE9JTlRFUiBQVFJfTVBJMl9DT05GSUdfUEFHRV9TQVNfUEhZXzMsCisgIE1waTJTYXNQaHlQYWdlM190LCBNUEkyX1BPSU5URVIgcE1waTJTYXNQaHlQYWdlM190OworCisjZGVmaW5lIE1QSTJfU0FTUEhZM19QQUdFVkVSU0lPTiAgICAgICAgICAgICgweDAwKQorCisKIC8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiAqICAgU0FTIFBvcnQgQ29uZmlnIFBhZ2VzCiAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwpkaWZmIC0tZ2l0IGEvZHJpdmVycy9zY3NpL21wdDJzYXMvbXBpL21waTJfaGlzdG9yeS50eHQgYi9kcml2ZXJzL3Njc2kvbXB0MnNhcy9tcGkvbXBpMl9oaXN0b3J5LnR4dApuZXcgZmlsZSBtb2RlIDEwMDY0NAppbmRleCAwMDAwMDAwLi42NWZjYWEzCi0tLSAvZGV2L251bGwKKysrIGIvZHJpdmVycy9zY3NpL21wdDJzYXMvbXBpL21waTJfaGlzdG9yeS50eHQKQEAgLTAsMCArMSwzMzQgQEAKKyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KKyBGdXNpb24tTVBUIE1QSSAyLjAgSGVhZGVyIEZpbGUgQ2hhbmdlIEhpc3RvcnkKKyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KKworIENvcHlyaWdodCAoYykgMjAwMC0yMDA5IExTSSBDb3Jwb3JhdGlvbi4KKworIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQorIEhlYWRlciBTZXQgUmVsZWFzZSBWZXJzaW9uOiAgICAwMi4wMC4xMgorIEhlYWRlciBTZXQgUmVsZWFzZSBEYXRlOiAgICAgICAwNS0wNi0wOQorIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQorCisgRmlsZW5hbWUgICAgICAgICAgICAgICBDdXJyZW50IHZlcnNpb24gICAgIFByaW9yIHZlcnNpb24KKyAtLS0tLS0tLS0tICAgICAgICAgICAgIC0tLS0tLS0tLS0tLS0tLSAgICAgLS0tLS0tLS0tLS0tLQorIG1waTIuaCAgICAgICAgICAgICAgICAgMDIuMDAuMTIgICAgICAgICAgICAwMi4wMC4xMQorIG1waTJfY25mZy5oICAgICAgICAgICAgMDIuMDAuMTEgICAgICAgICAgICAwMi4wMC4xMAorIG1waTJfaW5pdC5oICAgICAgICAgICAgMDIuMDAuMDcgICAgICAgICAgICAwMi4wMC4wNgorIG1waTJfaW9jLmggICAgICAgICAgICAgMDIuMDAuMTEgICAgICAgICAgICAwMi4wMC4xMAorIG1waTJfcmFpZC5oICAgICAgICAgICAgMDIuMDAuMDMgICAgICAgICAgICAwMi4wMC4wMworIG1waTJfc2FzLmggICAgICAgICAgICAgMDIuMDAuMDIgICAgICAgICAgICAwMi4wMC4wMgorIG1waTJfdGFyZy5oICAgICAgICAgICAgMDIuMDAuMDMgICAgICAgICAgICAwMi4wMC4wMworIG1waTJfdG9vbC5oICAgICAgICAgICAgMDIuMDAuMDMgICAgICAgICAgICAwMi4wMC4wMgorIG1waTJfdHlwZS5oICAgICAgICAgICAgMDIuMDAuMDAgICAgICAgICAgICAwMi4wMC4wMAorIG1waTJfcmEuaCAgICAgICAgICAgICAgMDIuMDAuMDAKKyBtcGkyX2hpc3RvcnkudHh0ICAgICAgIDAyLjAwLjExICAgICAgICAgICAgMDIuMDAuMTIKKworCisgKiAgRGF0ZSAgICAgIFZlcnNpb24gICBEZXNjcmlwdGlvbgorICogIC0tLS0tLS0tICAtLS0tLS0tLSAgLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCisKK21waTIuaAorICogIDA0LTMwLTA3ICAwMi4wMC4wMCAgQ29ycmVzcG9uZHMgdG8gRnVzaW9uLU1QVCBNUEkgU3BlY2lmaWNhdGlvbiBSZXYgQS4KKyAqICAwNi0wNC0wNyAgMDIuMDAuMDEgIEJ1bXBlZCBNUEkyX0hFQURFUl9WRVJTSU9OX1VOSVQuCisgKi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RkZWQgTWFudWZhY3R1cmluZyBQYWdlIDExLgorICogICAgICAgICAgICAgICAgICAgICAgQWRkZWQgTVBJMl9TQVNfRVhQQU5ERVIwX0ZMQUdTX0NPTk5FQ1RPUl9FTkRfREVWSUNFCisgKiAgICAgICAgICAgICAgICAgICAgICBkZWZpbmUuCisgKiAgMDYtMjYtMDcgIDAyLjAwLjAyICBBZGRpbmcgZ2VuZXJpYyBzdHJ1Y3R1cmUgZm9yIHByb2R1Y3Qtc3BlY2lmaWMKKyAqICAgICAgICAgICAgICAgICAgICAgIE1hbnVmYWN0dXJpbmcgcGFnZXM6IE1QSTJfQ09ORklHX1BBR0VfTUFOVUZBQ1RVUklOR19QUy4KKyAqICAgICAgICAgICAgICAgICAgICAgIFJld29yayBvZiBCSU9TIFBhZ2UgMiBjb25maWd1cmF0aW9uIHBhZ2UuCisgKiAgICAgICAgICAgICAgICAgICAgICBGaXhlZCBNUEkyX0JJT1NQQUdFMl9CT09UX0RFVklDRSB0byBiZSBhIHVuaW9uIG9mIHRoZQorICogICAgICAgICAgICAgICAgICAgICAgZm9ybXMuCisgKiAgICAgICAgICAgICAgICAgICAgICBBZGRlZCBjb25maWd1cmF0aW9uIHBhZ2VzIElPQyBQYWdlIDggYW5kIERyaXZlcgorICogICAgICAgICAgICAgICAgICAgICAgUGVyc2lzdGVudCBNYXBwaW5nIFBhZ2UgMC4KKyAqICAwOC0zMS0wNyAgMDIuMDAuMDMgIE1vZGlmaWVkIGNvbmZpZ3VyYXRpb24gcGFnZXMgZGVhbGluZyB3aXRoIEludGVncmF0ZWQKKyAqICAgICAgICAgICAgICAgICAgICAgIFJBSUQgKE1hbnVmYWN0dXJpbmcgUGFnZSA0LCBSQUlEIFZvbHVtZSBQYWdlcyAwIGFuZCAxLAorICogICAgICAgICAgICAgICAgICAgICAgUkFJRCBQaHlzaWNhbCBEaXNrIFBhZ2VzIDAgYW5kIDEsIFJBSUQgQ29uZmlndXJhdGlvbgorICogICAgICAgICAgICAgICAgICAg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4MDAwMEZGRkYKKyAqICAgICAgICAgICAgICAgICAgICAgIHRvIDB4MDAwMDAwRkYuCisgKiAgICAgICAgICAgICAgICAgICAgICBBZGRlZCB0d28gbmV3IHZhbHVlcyBmb3IgdGhlIFBoeXNpY2FsIERpc2sgQ29lcmNpb24gU2l6ZQorICogICAgICAgICAgICAgICAgICAgICAgYml0cyBpbiB0aGUgRmxhZ3MgZmllbGQgb2YgTWFudWZhY3R1cmluZyBQYWdlIDQuCisgKiAgICAgICAgICAgICAgICAgICAgICBBZGRlZCBwcm9kdWN0LXNwZWNpZmljIE1hbnVmYWN0dXJpbmcgcGFnZXMgMTYgdG8gMzEuCisgKiAgICAgICAgICAgICAgICAgICAgICBNb2RpZmllZCBGbGFncyBiaXRzIGZvciBjb250cm9sbGluZyB3cml0ZSBjYWNoZSBvbiBTQVRBCisgKiAgICAgICAgICAgICAgICAgICAgICBkcml2ZXMgaW4gSU8gVW5pdCBQYWdlIDEuCisgKiAgICAgICAgICAgICAgICAgICAgICBBZGRlZCBuZXcgYml0IHRvIEFkZGl0aW9uYWxDb250cm9sRmxhZ3Mgb2YgU0FTIElPIFVuaXQKKyAqICAgICAgICAgICAgICAgICAgICAgIFBhZ2UgMSB0byBjb250cm9sIEludmFsaWQgVG9wb2xvZ3kgQ29ycmVjdGlvbi4KKyAqICAgICAgICAgICAgICAgICAgICAgIEFkZGVkIFN1cHBvcnRlZFBoeXNEaXNrcyBmaWVsZCB0byBSQUlEIFZvbHVtZSBQYWdlIDEgYW5kCisgKiAgICAgICAgICAgICAgICAgICAgICBhZGRlZCByZWxhdGVkIGRlZmluZXMuCisgKiAgICAgICAgICAgICAgICAgICAgICBBZGRlZCBhZGRpdGlvbmFsIGRlZmluZXMgZm9yIFJBSUQgVm9sdW1lIFBhZ2UgMAorICogICAgICAgICAgICAgICAgICAgICAgVm9sdW1lU3RhdHVzRmxhZ3MgZmllbGQuCisgKiAgICAgICAgICAgICAgICAgICAgICBNb2RpZmllZCBtZWFuaW5nIG9mIFJBSUQgVm9sdW1lIFBhZ2UgMCBWb2x1bWVTZXR0aW5ncworICogICAgICAgICAgICAgICAgICAgICAgZGVmaW5lIGZvciBhdXRvLWNvbmZpZ3VyZSBvZiBob3Qtc3dhcCBkcml2ZXMuCisgKiAgICAgICAgICAgICAgICAgICAgICBBZGRlZCBQaHlzRGlza0F0dHJpYnV0ZXMgZmllbGQgKGFuZCByZWxhdGVkIGRlZmluZXMpIHRvCisgKiAgICAgICAgICAgICAgICAgICAgICBSQUlEIFBoeXNpY2FsIERpc2sgUGFnZSAwLgorICogICAgICAgICAgICAgICAgICAgICAgQWRkZWQgTVBJMl9TQVNfUEhZSU5GT19QSFlfVkFDQU5UIGRlZmluZS4KKyAqICAgICAgICAgICAgICAgICAgICAgIEFkZGVkIHRocmVlIG5ldyBEaXNjb3ZlcnlTdGF0dXMgYml0cyBmb3IgU0FTIElPIFVuaXQKKyAqICAgICAgICAgICAgICAgICAgICAgIFBhZ2UgMCBhbmQgU0FTIEV4cGFuZGVyIFBhZ2UgMC4KKyAqICAgICAgICAgICAgICAgICAgICAgIFJlbW92ZWQgbXVsdGlwbGV4aW5nIGluZm9ybWF0aW9uIGZyb20gU0FTIElPIFVuaXQgcGFnZXMuCisgKiAgICAgICAgICAgICAgICAgICAgICBBZGRlZCBCb290RGV2aWNlV2FpdFRpbWUgZmllbGQgdG8gU0FTIElPIFVuaXQgUGFnZSA0LgorICogICAgICAgICAgICAgICAgICAgICAgUmVtb3ZlZCBab25lIEFkZHJlc3MgUmVzb2x2ZWQgYml0IGZyb20gUGh5SW5mbyBhbmQgZnJvbQorICogICAgICAgICAgICAgICAgICAgICAgRXhwYW5kZXIgUGFnZSAwIEZsYWdzIGZpZWxkLgorICogICAgICAgICAgICAgICAgICAgICAgQWRkZWQgdHdvIG5ldyBBY2Nlc3NTdGF0dXMgdmFsdWVzIHRvIFNBUyBEZXZpY2UgUGFnZSAwCisgKiAgICAgICAgICAgICAgICAgICAgICBmb3IgaW5kaWNhdGluZyByb3V0aW5nIHByb2JsZW1zLiBBZGRlZCAzIHJlc2VydmVkIHdvcmRzCisgKiAgICAgICAgICAgICAgICAgICAgICB0byB0aGlzIHBhZ2UuCisgKiAgMDEtMTktMDkgIDAyLjAwLjEwICBGaXhlZCBkZWZpbmVzIGZvciBHUElPVmFsIGZpZWxkIG9mIElPIFVuaXQgUGFnZSAzLgorICogICAgICAgICAgICAgICAgICAgICAgSW5zZXJ0ZWQgbWlzc2luZyByZXNlcnZlZCBmaWVsZCBpbnRvIHN0cnVjdHVyZSBmb3IgSU9DCisgKiAgICAgICAgICAgICAgICAgICAgICBQYWdlIDYuCisgKiAgICAgICAgICAgICAgICAgICAgICBBZGRlZCBtb3JlIHBlbmRpbmcgdGFzayBiaXRzIHRvIFJBSUQgVm9sdW1lIFBhZ2UgMAorICogICAgICAgICAgICAgICAgICAgICAgVm9sdW1lU3RhdHVzRmxhZ3MgZGVmaW5lcy4KKyAqICAgICAgICAgICAgICAgICAgICAgIEFkZGVkIE1QSTJfUEhZU0RJU0swX1NUQVRVU19GTEFHX05PVF9DRVJUSUZJRUQgZGVmaW5lLgorICogICAgICAgICAgICAgICAgICAgICAgQWRkZWQgYSBuZXcgRGlzY292ZXJ5U3RhdHVzIGJpdCBmb3IgU0FTIElPIFVuaXQgUGFnZSAwCisgKiAgICAgICAgICAgICAgICAgICAgICBhbmQgU0FTIEV4cGFuZGVyIFBhZ2UgMCB0byBmbGFnIGEgZG93bnN0cmVhbSBpbml0aWF0b3IKKyAqICAgICAgICAgICAgICAgICAgICAgIHdoZW4gaW4gc2ltcGxpZmllZCByb3V0aW5nIG1vZGUuCisgKiAgICAgICAgICAgICAgICAgICAgICBSZW1vdmVkIFNBVEEgSW5pdCBGYWlsdXJlIGRlZmluZXMgZm9yIERpc2NvdmVyeVN0YXR1cworICogICAgICAgICAgICAgICAgICAgICAgZmllbGRzIG9mIFNBUyBJTyBVbml0IFBhZ2UgMCBhbmQgU0FTIEV4cGFuZGVyIFBhZ2Ug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GRlZmluZSB0byBzcGVjaWZ5IHRoZSBtaW5pbXVtCisgKiAgICAgICAgICAgICAgICAgICAgICBkZXB0aCBmb3IgdGhlIFJlcGx5IERlc2NyaXB0b3IgUG9zdCBRdWV1ZS4KKyAqICAgICAgICAgICAgICAgICAgICAgIEFkZGVkIFNBU0FkZHJlc3MgZmllbGQgdG8gSW5pdGlhdG9yIERldmljZSBUYWJsZQorICogICAgICAgICAgICAgICAgICAgICAgT3ZlcmZsb3cgRXZlbnQgZGF0YS4KKyAqICAxMC0zMS0wNyAgMDIuMDAuMDQgIEFkZGVkIFJlYXNvbkNvZGUgTVBJMl9FVkVOVF9TQVNfSU5JVF9SQ19OT1RfUkVTUE9ORElORworICogICAgICAgICAgICAgICAgICAgICAgZm9yIFNBUyBJbml0aWF0b3IgRGV2aWNlIFN0YXR1cyBDaGFuZ2UgRXZlbnQgZGF0YS4KKyAqICAgICAgICAgICAgICAgICAgICAgIE1vZGlmaWVkIFJlYXNvbiBDb2RlIGRlZmluZXMgZm9yIFNBUyBUb3BvbG9neSBDaGFuZ2UKKyAqICAgICAgICAgICAgICAgICAgICAgIExpc3QgRXZlbnQgZGF0YSwgaW5jbHVkaW5nIGFkZGluZyBhIGJpdCBmb3IgUEhZIFZhY2FudAorICogICAgICAgICAgICAgICAgICAgICAgc3RhdHVzLCBhbmQgYWRkaW5nIGEgbWFzayBmb3IgdGhlIFJlYXNvbiBDb2RlLgorICogICAgICAgICAgICAgICAgICAgICAgQWRkZWQgZGVmaW5lIGZvcgorICogICAgICAgICAgICAgICAgICAgICAgTVBJMl9FVkVOVF9TQVNfVE9QT19FU19ERUxBWV9OT1RfUkVTUE9ORElORy4KKyAqICAgICAgICAgICAgICAgICAgICAgIEFkZGVkIGRlZmluZSBmb3IgTVBJMl9FWFRfSU1BR0VfVFlQRV9NRUdBUkFJRC4KKyAqICAxMi0xOC0wNyAgMDIuMDAuMDUgIEFkZGVkIEJvb3QgU3RhdHVzIGRlZmluZXMgZm9yIHRoZSBJT0NFeGNlcHRpb25zIGZpZWxkIG9mCisgKiAgICAgICAgICAgICAgICAgICAgICB0aGUgSU9DRmFjdHMgUmVwbHkuCisgKiAgICAgICAgICAgICAgICAgICAgICBSZW1vdmVkIE1QSTJfSU9DRkFDVFNfQ0FQQUJJTElUWV9FWFRFTkRFRF9CVUZGRVIgZGVmaW5lLgorICogICAgICAgICAgICAgICAgICAgICAgTW92ZWQgTVBJMl9WRVJTSU9OX1VOSU9OIHRvIG1waTIuaC4KKyAqICAgICAgICAgICAgICAgICAgICAgIENoYW5nZWQgTVBJMl9FVkVOVF9OT1RJRklDQVRJT05fUkVRVUVTVCB0byB1c2UgbWFza3MKKyAqICAgICAgICAgICAgICAgICAgICAgIGluc3RlYWQgb2YgZW5hYmxlcywgYW5kIGFkZGVkIFNBU0Jyb2FkY2FzdFByaW1pdGl2ZU1hc2tzCisgKiAgICAgICAgICAgICAgICAgICAgICBmaWVsZC4KKyAqICAgICAgICAgICAgICAgICAgICAgIEFkZGVkIExvZyBFbnRyeSBBZGRlZCBFdmVudCBhbmQgcmVsYXRlZCBzdHJ1Y3R1cmUuCisgKiAgMDItMjktMDggIDAyLjAwLjA2ICBBZGRlZCBkZWZpbmUgTVBJMl9JT0NGQUNUU19DQVBBQklMSVRZX0lOVEVHUkFURURfUkFJRC4KKyAqICAgICAgICAgICAgICAgICAgICAgIFJlbW92ZWQgZGVmaW5lIE1QSTJfSU9DRkFDVFNfUFJPVE9DT0xfU01QX1RBUkdFVC4KKyAqICAgICAgICAgICAgICAgICAgICAgIEFkZGVkIE1heFZvbHVtZXMgYW5kIE1heFBlcnNpc3RlbnRFbnRyaWVzIGZpZWxkcyB0bworICogICAgICAgICAgICAgICAgICAgICAgSU9DRmFjdHMgcmVwbHkuCisgKiAgICAgICAgICAgICAgICAgICAgICBBZGRlZCBQcm90b2NhbEZsYWdzIGFuZCBJT0NDYXBhYmlsaXRpZXMgZmllbGRzIHRvCisgKiAgICAgICAgICAgICAgICAgICAgICBNUEkyX0ZXX0lNQUdFX0hFQURFUi4KKyAqICAgICAgICAgICAgICAgICAgICAgIFJlbW92ZWQgTVBJMl9QT1JURU5BQkxFX0ZMQUdTX0VOQUJMRV9TSU5HTEVfUE9SVC4KKyAqICAwMy0wMy0wOCAgMDIuMDAuMDcgIEZpeGVkIE1QSTJfRldfSU1BR0VfSEVBREVSIGJ5IGNoYW5naW5nIFJlc2VydmVkMjYgdG8KKyAqICAgICAgICAgICAgICAgICAgICAgIGEgVTE2IChmcm9tIGEgVTMyKS4KKyAqICAgICAgICAgICAgICAgICAgICAgIFJlbW92ZWQgZXh0cmEgJ3MnIGZyb20gRXZlbnRNYXNrcyBuYW1lLgorICogIDA2LTI3LTA4ICAwMi4wMC4wOCAgRml4ZWQgYW4gb2Zmc2V0IGluIGEgY29tbWVudC4KKyAqICAxMC0wMi0wOCAgMDIuMDAuMDkgIFJlbW92ZWQgU3lzdGVtUmVwbHlGcmFtZVNpemUgZnJvbSBNUEkyX0lPQ19JTklUX1JFUVVFU1QuCisgKiAgICAgICAgICAgICAgICAgICAgICBSZW1vdmVkIEN1clJlcGx5RnJhbWVTaXplIGZyb20gTVBJMl9JT0NfRkFDVFNfUkVQTFkgYW5kCisgKiAgICAgICAgICAgICAgICAgICAgICByZW5hbWVkIE1pblJlcGx5RnJhbWVTaXplIHRvIFJlcGx5RnJhbWVTaXplLgorICogICAgICAgICAgICAgICAgICAgICAgQWRkZWQgTVBJMl9JT0NGQUNUU19FWENFUFRfSVJfRk9SRUlHTl9DT05GSUdfTUFYLgorICogICAgICAgICAgICAgICAgICAgICAgQWRkZWQgdHdvIG5ldyBSQUlET3BlcmF0aW9uIHZhbHVlcyBmb3IgSW50ZWdyYXRlZCBSQUlECisgKiAgICAgICAgICAgICAgICAgICAgICBPcGVyYXRpb25zIFN0YXR1cyBFdmVudCBkYXRhLgorICogICAgICAgICAgICAgICAgICAgICAgQWRkZWQgZm91ciBuZXcgSVIgQ29uZmlndXJhdGlvbiBDaGFuZ2UgTGlzdCBFdmVudCBkYXRhCisgKiAgICAgICAgICAgICAgICAgICAgICBSZWFzb25Db2RlIHZhbHVlcy4KKyAqICAgICAgICAgICAgICAgICAgICAgIEFkZGVkIHR3byBuZXcgUmVhc29uQ29kZSBkZWZpbmVzIGZvciBTQVMgRGV2aWNlIFN0YXR1cworICogICAgICAgICAgICAgICAgICAgICAgQ2hhbmdlIEV2ZW50IGRhdGEuCisgKiAgICAgICAgICAgICAgICAgICAgICBBZGRlZCB0aHJlZSBuZXcgRGlzY292ZXJ5U3RhdHVzIGJpdHMgZm9yIHRoZSBTQVMKKyAqICAgICAgICAgICAgICAgICAgICAgIERpc2NvdmVyeSBldmVudCBkYXRhLgorICogICAgICAgICAgICAgICAgICAgICAgQWRkZWQgTXVsdGlwbGV4aW5nIFN0YXR1cyBDaGFuZ2UgYml0IHRvIHRoZSBQaHlTdGF0dXMKKyAqICAgICAgICAgICAgICAgICAgICAgIGZpZWxkIG9mIHRoZSBTQVMgVG9wb2xvZ3kgQ2hhbmdlIExpc3QgZXZlbnQgZGF0YS4KKyAqICAgICAgICAgICAgICAgICAgICAgIFJlbW92ZWQgZGVmaW5lIGZvciBNUEkyX0lOSVRfSU1BR0VfQk9PVEZMQUdTX1hNRU1DT1BZLgorICogICAgICAgICAgICAgICAgICAgICAgQm9vdEZsYWdzIGFyZSBub3cgcHJvZHVjdC1zcGVjaWZpYy4KKyAqICAgICAgICAgICAgICAgICAgICAgIEFkZGVkIGRlZmluZXMgZm9yIHRoZSBpbmRpdmR1YWwgc2lnbmF0dXJlIGJ5dGVzCisgKiAgICAgICAgICAgICAgICAgICAgICBmb3IgTVBJMl9JTklUX0lNQUdFX0ZPT1RFUi4KKyAqICAwMS0xOS0wOSAgMDIuMDAuMTAgIEFkZGVkIE1QSTJfSU9DRkFDVFNfQ0FQQUJJTElUWV9FVkVOVF9SRVBMQVkgZGVmaW5lLgorICogICAgICAgICAgICAgICAgICAgICAgQWRkZWQgTVBJMl9FVkVOVF9TQVNfRElTQ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FOREVSX1JFRFVDRURfRlVOQ1RJT05BTElUWSAgICAgICAoMHgxMSkKKyNkZWZpbmUgTVBJMl9FVkVOVF9TQVNfREVWX1NUQVRfUkNfQ01QX0VYUEFOREVSX1JFRFVDRURfRlVOQ1RJT05BTElUWSAgICgweDEyKQogCiAKIC8qIEludGVncmF0ZWQgUkFJRCBPcGVyYXRpb24gU3RhdHVzIEV2ZW50IGRhdGEgKi8KQEAgLTgyMiw2ICs4MzIsMzcgQEAKICNkZWZpbmUgTVBJMl9FVkVOVF9TQVNfRU5DTF9SQ19OT1RfUkVTUE9ORElORyAgICAgICAoMHgwMikKIAogCisvKiBTQVMgUEhZIENvdW50ZXIgRXZlbnQgZGF0YSAqLworCit0eXBlZGVmIHN0cnVjdCBfTVBJMl9FVkVOVF9EQVRBX1NBU19QSFlfQ09VTlRFUiB7CisgICAgVTY0ICAgICAgICAgVGltZVN0YW1wOyAgICAgICAgICAvKiAweDAwICovCisgICAgVTMyICAgICAgICAgUmVzZXJ2ZWQxOyAgICAgICAgICAvKiAweDA4ICovCisgICAgVTggICAgICAgICAgUGh5RXZlbnRDb2RlOyAgICAgICAvKiAweDBDICovCisgICAgVTggICAgICAgICAgUGh5TnVtOyAgICAgICAgICAgICAvKiAweDBEICovCisgICAgVTE2ICAgICAgICAgUmVzZXJ2ZWQyOyAgICAgICAgICAvKiAweDBFICovCisgICAgVTMyICAgICAgICAgUGh5RXZlbnRJbmZvOyAgICAgICAvKiAweDEwICovCisgICAgVTggICAgICAgICAgQ291bnRlclR5cGU7ICAgICAgICAvKiAweDE0ICovCisgICAgVTggICAgICAgICAgVGhyZXNob2xkV2luZG93OyAgICAvKiAweDE1ICovCisgICAgVTggICAgICAgICAgVGltZVVuaXRzOyAgICAgICAgICAvKiAweDE2ICovCisgICAgVTggICAgICAgICAgUmVzZXJ2ZWQzOyAgICAgICAgICAvKiAweDE3ICovCisgICAgVTMyICAgICAgICAgRXZlbnRUaHJlc2hvbGQ7ICAgICAvKiAweDE4ICovCisgICAgVTE2ICAgICAgICAgVGhyZXNob2xkRmxhZ3M7ICAgICAvKiAweDFDICovCisgICAgVTE2ICAgICAgICAgUmVzZXJ2ZWQ0OyAgICAgICAgICAvKiAweDFFICovCit9IE1QSTJfRVZFTlRfREFUQV9TQVNfUEhZX0NPVU5URVIsCisgIE1QSTJfUE9JTlRFUiBQVFJfTVBJMl9FVkVOVF9EQVRBX1NBU19QSFlfQ09VTlRFUiwKKyAgTXBpMkV2ZW50RGF0YVNhc1BoeUNvdW50ZXJfdCwgTVBJMl9QT0lOVEVSIHBNcGkyRXZlbnREYXRhU2FzUGh5Q291bnRlcl90OworCisvKiB1c2UgTVBJMl9TQVNQSFkzX0VWRU5UX0NPREVfIHZhbHVlcyBmcm9tIG1waTJfY25mZy5oIGZvciB0aGUKKyAqIFBoeUV2ZW50Q29kZSBmaWVsZAorICogdXNlIE1QSTJfU0FTUEhZM19DT1VOVEVSX1RZUEVfIHZhbHVlcyBmcm9tIG1waTJfY25mZy5oIGZvciB0aGUKKyAqIENvdW50ZXJUeXBlIGZpZWxkCisgKiB1c2UgTVBJMl9TQVNQSFkzX1RJTUVfVU5JVFNfIHZhbHVlcyBmcm9tIG1waTJfY25mZy5oIGZvciB0aGUKKyAqIFRpbWVVbml0cyBmaWVsZAorICogdXNlIE1QSTJfU0FTUEhZM19URkxBR1NfIHZhbHVlcyBmcm9tIG1waTJfY25mZy5oIGZvciB0aGUKKyAqIFRocmVzaG9sZEZsYWdzIGZpZWxkCisgKiAqLworCisKIC8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiAqICBFdmVudEFjayBtZXNzYWdlCiAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwpkaWZmIC0tZ2l0IGEvZHJpdmVycy9zY3NpL21wdDJzYXMvbXBpL21waTJfdG9vbC5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SBUb29sIGFuZCBEaWFnbm9zdGljIENMSSBUb29sLgogICogIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCiAgKi8KIApAQCAtMzIsNyArMzMsMTAgQEAKIC8qIGRlZmluZXMgZm9yIHRoZSBUb29scyAqLwogI2RlZmluZSBNUEkyX1RPT0xCT1hfQ0xFQU5fVE9PTCAgICAgICAgICAgICAgICAgICAgICgweDAwKQogI2RlZmluZSBNUEkyX1RPT0xCT1hfTUVNT1JZX01PVkVfVE9PTCAgICAgICAgICAgICAgICgweDAxKQorI2RlZmluZSBNUEkyX1RPT0xCT1hfSVNUV0lfUkVBRF9XUklURV9UT09MICAgICAgICAgICgweDAzKQogI2RlZmluZSBNUEkyX1RPT0xCT1hfQkVBQ09OX1RPT0wgICAgICAgICAgICAgICAgICAgICgweDA1KQorI2RlZmluZSBNUEkyX1RPT0xCT1hfRElBR05PU1RJQ19DTElfVE9PTCAgICAgICAgICAgICgweDA2KQorCiAKIC8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiAqICBUb29sYm94IHJlcGx5CkBAIC0xMTIsNiArMTE2LDc3IEBACiAKIAogLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKKyogIFRvb2xib3ggSVNUV0kgUmVhZCBXcml0ZSBUb29sCisqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLworCisvKiBUb29sYm94IElTVFdJIFJlYWQgV3JpdGUgVG9vbCByZXF1ZXN0IG1lc3NhZ2UgKi8KK3R5cGVkZWYgc3RydWN0IF9NUEkyX1RPT0xCT1hfSVNUV0lfUkVBRF9XUklURV9SRVFVRVNUIHsKKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBUb29sOyAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMCAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkMTsgICAgICAgICAgICAgICAgICAvKiAweDAxICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgQ2hhaW5PZmZzZXQ7ICAgICAgICAgICAgICAgIC8qIDB4MDIgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBGdW5jdGlvbjsgICAgICAgICAgICAgICAgICAgLyogMHgwMyAqLworICAgIFUxNiAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkMjsgICAgICAgICAgICAgICAgICAvKiAweDA0ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQzOyAgICAgICAgICAgICAgICAgIC8qIDB4MDYgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBNc2dGbGFnczsgICAgICAgICAgICAgICAgICAgLyogMHgwNyAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIFZQX0lEOyAgICAgICAgICAgICAgICAgICAgICAvKiAweDA4ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgVkZfSUQ7ICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDkgKi8KKyAgICBVMTYgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDQ7ICAgICAgICAgICAgICAgICAgLyogMHgwQSAqLworICAgIFUzMiAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkNTsgICAgICAgICAgICAgICAgICAvKiAweDBDICovCisgICAgVTMyICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQ2OyAgICAgICAgICAgICAgICAgIC8qIDB4MTAgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBEZXZJbmRleDsgICAgICAgICAgICAgICAgICAgLyogMHgxNCAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIEFjdGlvbjsgICAgICAgICAgICAgICAgICAgICAvKiAweDE1ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgU0dMRmxhZ3M7ICAgICAgICAgICAgICAgICAgIC8qIDB4MTYgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDc7ICAgICAgICAgICAgICAgICAgLyogMHgxNyAqLworICAgIFUxNiAgICAgICAgICAgICAgICAgICAgIFR4RGF0YUxlbmd0aDsgICAgICAgICAgICAgICAvKiAweDE4ICovCisgICAgVTE2ICAgICAgICAgICAgICAgICAgICAgUnhEYXRhTGVuZ3RoOyAgICAgICAgICAgICAgIC8qIDB4MUEgKi8KKyAgICBVMzIgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDg7ICAgICAgICAgICAgICAgICAgLyogMHgxQyAqLworICAgIFUzMiAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkOTsgICAgICAgICAgICAgICAgICAvKiAweDIwICovCisgICAgVTMyICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQxMDsgICAgICAgICAgICAgICAgIC8qIDB4MjQgKi8KKyAgICBVMzIgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDExOyAgICAgICAgICAgICAgICAgLyogMHgyOCAqLworICAgIFUzMiAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkMTI7ICAgICAgICAgICAgICAgICAvKiAweDJDICovCisgICAgTVBJMl9TR0VfU0lNUExFX1VOSU9OICAgU0dMOyAgICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MzAgKi8KK30gTVBJMl9UT09MQk9YX0lTVFdJX1JFQURfV1JJVEVfUkVRVUVTVCwKKyAgTVBJMl9QT0lOVEVSIFBUUl9NUEkyX1RPT0xCT1hfSVNUV0lfUkVBRF9XUklURV9SRVFVRVNULAorICBNcGkyVG9vbGJveElzdHdpUmVhZFdyaXRlUmVxdWVzdF90LAorICBNUEkyX1BPSU5URVIgcE1waTJUb29sYm94SXN0d2lSZWFkV3JpdGVSZXF1ZXN0X3Q7CisKKy8qIHZhbHVlcyBmb3IgdGhlIEFjdGlvbiBmaWVsZCAqLworI2RlZmluZSBNUEkyX1RPT0xfSVNUV0lfQUNUSU9OX1JFQURfREFUQSAgICAgICAgICAgICgweDAxKQorI2RlZmluZSBNUEkyX1RPT0xfSVNUV0lfQUNUSU9OX1dSSVRFX0RBVEEgICAgICAgICAgICgweDAyKQorI2RlZmluZSBNUEkyX1RPT0xfSVNUV0lfQUNUSU9OX1NFUVVFTkNFICAgICAgICAgICAgICgweDAzKQorI2RlZmluZSBNUEkyX1RPT0xfSVNUV0lfQUNUSU9OX1JFU0VSVkVfQlVTICAgICAgICAgICgweDEwKQorI2RlZmluZSBNUEkyX1RPT0xfSVNUV0lfQUNUSU9OX1JFTEVBU0VfQlVTICAgICAgICAgICgweDExKQorI2RlZmluZSBNUEkyX1RPT0xfSVNUV0lfQUNUSU9OX1JFU0VUICAgICAgICAgICAgICAgICgweDEyKQorCisvKiB2YWx1ZXMgZm9yIFNHTEZsYWdzIGZpZWxkIGFyZSBpbiB0aGUgU0dMIHNlY3Rpb24gb2YgbXBpMi5oICovCisKKworLyogVG9vbGJveCBJU1RXSSBSZWFkIFdyaXRlIFRvb2wgcmVwbHkgbWVzc2FnZSAqLwordHlwZWRlZiBzdHJ1Y3QgX01QSTJfVE9PTEJPWF9JU1RXSV9SRVBMWSB7CisgICAgVTggICAgICAgICAgICAgICAgICAgICAgVG9vbDsgICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDAgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDE7ICAgICAgICAgICAgICAgICAgLyogMHgwMSAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIE1zZ0xlbmd0aDsgICAgICAgICAgICAgICAgICAvKiAweDAyICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgRnVuY3Rpb247ICAgICAgICAgICAgICAgICAgIC8qIDB4MDMgKi8KKyAgICBVMTYgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDI7ICAgICAgICAgICAgICAgICAgLyogMHgwNCAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkMzsgICAgICAgICAgICAgICAgICAvKiAweDA2ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgTXNnRmxhZ3M7ICAgICAgICAgICAgICAgICAgIC8qIDB4MDcgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBWUF9JRDsgICAgICAgICAgICAgICAgICAgICAgLyogMHgwOCAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIFZGX0lEOyAgICAgICAgICAgICAgICAgICAgICAvKiAweDA5ICovCisgICAgVTE2ICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQ0OyAgICAgICAgICAgICAgICAgIC8qIDB4MEEgKi8KKyAgICBVMTYgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDU7ICAgICAgICAgICAgICAgICAgLyogMHgwQyAqLworICAgIFUxNiAgICAgICAgICAgICAgICAgICAgIElPQ1N0YXR1czsgICAgICAgICAgICAgICAgICAvKiAweDBFICovCisgICAgVTMyICAgICAgICAgICAgICAgICAgICAgSU9DTG9nSW5mbzsgICAgICAgICAgICAgICAgIC8qIDB4MTAgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBEZXZJbmRleDsgICAgICAgICAgICAgICAgICAgLyogMHgxNCAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIEFjdGlvbjsgICAgICAgICAgICAgICAgICAgICAvKiAweDE1ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgSXN0d2lTdGF0dXM7ICAgICAgICAgICAgICAgIC8qIDB4MTYgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDY7ICAgICAgICAgICAgICAgICAgLyogMHgxNyAqLworICAgIFUxNiAgICAgICAgICAgICAgICAgICAgIFR4RGF0YUNvdW50OyAgICAgICAgICAgICAgICAvKiAweDE4ICovCisgICAgVTE2ICAgICAgICAgICAgICAgICAgICAgUnhEYXRhQ291bnQ7ICAgICAgICAgICAgICAgIC8qIDB4MUEgKi8KK30gTVBJMl9UT09MQk9YX0lTVFdJX1JFUExZLCBNUEkyX1BPSU5URVIgUFRSX01QSTJfVE9PTEJPWF9JU1RXSV9SRVBMWSwKKyAgTXBpMlRvb2xib3hJc3R3aVJlcGx5X3QsIE1QSTJfUE9JTlRFUiBwTXBpMlRvb2xib3hJc3R3aVJlcGx5X3Q7CisKKworLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKICogIFRvb2xib3ggQmVhY29uIFRvb2wgcmVxdWVzdAogKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KIApAQCAtMTM5LDYgKzIxNCw2MSBAQAogI2RlZmluZSBNUEkyX1RPT0xCT1hfRkxBR1NfQkVBQ09OTU9ERV9PTiAgICAgICAgKDB4MDEpCiAKIAorLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKKyogIFRvb2xib3ggRGlhZ25vc3RpYyBDTEkgVG9vbAorKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KKworI2RlZmluZSBNUEkyX1RPT0xCT1hfRElBR19DTElfQ01EX0xFTkdUSCAgICAoMHg1QykKKworLyogVG9vbGJveCBEaWFnbm9zdGljIENMSSBUb29sIHJlcXVlc3QgbWVzc2FnZSAqLwordHlwZWRlZiBzdHJ1Y3QgX01QSTJfVE9PTEJPWF9ESUFHTk9TVElDX0NMSV9SRVFVRVNUIHsKKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBUb29sOyAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMCAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkMTsgICAgICAgICAgICAgICAgICAvKiAweDAxICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgQ2hhaW5PZmZzZXQ7ICAgICAgICAgICAgICAgIC8qIDB4MDIgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBGdW5jdGlvbjsgICAgICAgICAgICAgICAgICAgLyogMHgwMyAqLworICAgIFUxNiAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkMjsgICAgICAgICAgICAgICAgICAvKiAweDA0ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQzOyAgICAgICAgICAgICAgICAgIC8qIDB4MDYgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBNc2dGbGFnczsgICAgICAgICAgICAgICAgICAgLyogMHgwNyAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIFZQX0lEOyAgICAgICAgICAgICAgICAgICAgICAvKiAweDA4ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgVkZfSUQ7ICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDkgKi8KKyAgICBVMTYgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDQ7ICAgICAgICAgICAgICAgICAgLyogMHgwQSAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIFNHTEZsYWdzOyAgICAgICAgICAgICAgICAgICAvKiAweDBDICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQ1OyAgICAgICAgICAgICAgICAgIC8qIDB4MEQgKi8KKyAgICBVMTYgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDY7ICAgICAgICAgICAgICAgICAgLyogMHgwRSAqLworICAgIFUzMiAgICAgICAgICAgICAgICAgICAgIERhdGFMZW5ndGg7ICAgICAgICAgICAgICAgICAvKiAweDEwICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgRGlhZ25vc3RpY0NsaUNvbW1hbmQKKwkJW01QSTJfVE9PTEJPWF9ESUFHX0NMSV9DTURfTEVOR1RIXTsgICAgIC8qIDB4MTQgKi8KKyAgICBNUEkyX1NHRV9TSU1QTEVfVU5JT04gICBTR0w7ICAgICAgICAgICAgICAgICAgICAgICAgLyogMHg3MCAqLworfSBNUEkyX1RPT0xCT1hfRElBR05PU1RJQ19DTElfUkVRVUVTVCwKKyAgTVBJMl9QT0lOVEVSIFBUUl9NUEkyX1RPT0xCT1hfRElBR05PU1RJQ19DTElfUkVRVUVTVCwKKyAgTXBpMlRvb2xib3hEaWFnbm9zdGljQ2xpUmVxdWVzdF90LAorICBNUEkyX1BPSU5URVIgcE1waTJUb29sYm94RGlhZ25vc3RpY0NsaVJlcXVlc3RfdDsKKworLyogdmFsdWVzIGZvciBTR0xGbGFncyBmaWVsZCBhcmUgaW4gdGhlIFNHTCBzZWN0aW9uIG9mIG1waTIuaCAqLworCisKKy8qIFRvb2xib3ggRGlhZ25vc3RpYyBDTEkgVG9vbCByZXBseSBtZXNzYWdlICovCit0eXBlZGVmIHN0cnVjdCBfTVBJMl9UT09MQk9YX0RJQUdOT1NUSUNfQ0xJX1JFUExZIHsKKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBUb29sOyAgICAgICAgICAgICAgICAgICAgICAgLyogMHgwMCAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkMTsgICAgICAgICAgICAgICAgICAvKiAweDAxICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgTXNnTGVuZ3RoOyAgICAgICAgICAgICAgICAgIC8qIDB4MDIgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBGdW5jdGlvbjsgICAgICAgICAgICAgICAgICAgLyogMHgwMyAqLworICAgIFUxNiAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkMjsgICAgICAgICAgICAgICAgICAvKiAweDA0ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgUmVzZXJ2ZWQzOyAgICAgICAgICAgICAgICAgIC8qIDB4MDYgKi8KKyAgICBVOCAgICAgICAgICAgICAgICAgICAgICBNc2dGbGFnczsgICAgICAgICAgICAgICAgICAgLyogMHgwNyAqLworICAgIFU4ICAgICAgICAgICAgICAgICAgICAgIFZQX0lEOyAgICAgICAgICAgICAgICAgICAgICAvKiAweDA4ICovCisgICAgVTggICAgICAgICAgICAgICAgICAgICAgVkZfSUQ7ICAgICAgICAgICAgICAgICAgICAgIC8qIDB4MDkgKi8KKyAgICBVMTYgICAgICAgICAgICAgICAgICAgICBSZXNlcnZlZDQ7ICAgICAgICAgICAgICAgICAgLyogMHgwQSAqLworICAgIFUxNiAgICAgICAgICAgICAgICAgICAgIFJlc2VydmVkNTsgICAgICAgICAgICAgICAgICAvKiAweDBDICovCisgICAgVTE2ICAgICAgICAgICAgICAgICAgICAgSU9DU3RhdHVzOyAgICAgICAgICAgICAgICAgIC8qIDB4MEUgKi8KKyAgICBVMzIgICAgICAgICAgICAgICAgICAgICBJT0NMb2dJbmZvOyAgICAgICAgICAgICAgICAgLyogMHgxMCAqLworICAgIFUzMiAgICAgICAgICAgICAgICAgICAgIFJldHVybmVkRGF0YUxlbmd0aDsgICAgICAgICAvKiAweDE0ICovCit9IE1QSTJfVE9PTEJPWF9ESUFHTk9TVElDX0NMSV9SRVBMWSwKKyAgTVBJMl9QT0lOVEVSIFBUUl9NUEkyX1RPT0xCT1hfRElBR19DTElfUkVQTFksCisgIE1waTJUb29sYm94RGlhZ25vc3RpY0NsaVJlcGx5X3QsCisgIE1QSTJfUE9JTlRFUiBwTXBpMlRvb2xib3hEaWFnbm9zdGljQ2xpUmVwbHlfdDsKKworCiAvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKICoKICogICAgICAgRGlhZ25vc3RpYyBCdWZmZXIgTWVzc2FnZXMKZGlmZiAt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qKTsKLXN0YXRpYyBpbnQJY293bG9fb3BlbmNvdyAgICAgKHN0cnVjdCBjb3dsb29wX2RldmljZSAqLCBjaGFyICosIGludCk7Ci1zdGF0aWMgdm9pZAljb3dsb191bmRvX29wZW5yZG8oc3RydWN0IGNvd2xvb3BfZGV2aWNlICopOwotc3RhdGljIHZvaWQJY293bG9fdW5kb19vcGVuY293KHN0cnVjdCBjb3dsb29wX2RldmljZSAqKTsKLQotLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwotLyogU3lzdGVtIGNhbGwgaGFuZGxpbmcgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqLwotLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwotCi0vKgotKiogaGFuZGxlIHN5c3RlbSBjYWxsIG9wZW4oKS9tb3VudCgpCi0qKgotKiogcmV0dXJuczoKLSoqIAkwICAgLSBva2F5Ci0qKiAgICA8IDAgICAtIGVycm9yIHZhbHVlCi0qLwotc3RhdGljIGludCBjb3dsb19vcGVuKHN0cnVjdCBibG9ja19kZXZpY2UgKmJkZXYsIGZtb2RlX3QgbW9kZSkKLXsKLQlzdHJ1Y3QgaW5vZGUgKmlub2RlID0gYmRldi0+YmRfaW5vZGU7Ci0KLQlpZiAoIWlub2RlKQotCQlyZXR1cm4gLUVJTlZBTDsKLQotCWlmIChpbWFqb3IoaW5vZGUpICE9IENPV01BSk9SKSB7Ci0JCXByaW50ayhLRVJOX1dBUk5JTkcKLQkJICAgICAgICJjb3dsb29wIC0gdW5leHBlY3RlZCBtYWpvciAlZFxuIiwgaW1ham9yKGlub2RlKSk7Ci0JCXJldHVybiAtRU5PREVWOwotCX0KLQotCXN3aXRjaCAoaW1pbm9yKGlub2RlKSkgewotCSAgIGNhc2UgQ09XQ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VNISUZUKSA8PSAwKQotCQkJCXJ2ID0gMDsKLQkJfQotCX0KLQotCXJldHVybiBydjsKLX0KLQotLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwotLyogSS9PLXN1cHBvcnQgZm9yIHJlYWQtb25seSBmaWxlIGFuZCBjb3B5LW9uLXdyaXRlIGZpbGUgICAgICAgICAgICAgICAgICAgICAqLwotLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwotCi0vKgotKiogcmVhZCBkYXRhIGZyb20gdGhlIHJlYWQtb25seSBmaWxlCi0qKgotKiogcmV0dXJuLXZhbHVlOiBzaW1pbGFyIHRvIHVzZXItbW9kZSByZWFkCi0qLwotc3RhdGljIGxvbmcgaW50Ci1jb3dsb19yZWFkcmRvKHN0cnVjdCBjb3dsb29wX2RldmljZSAqY293ZGV2LCB2b2lkICpidWYsIGludCBsZW4sIGxvZmZfdCBvZmZzZXQpCi17Ci0JbG9uZyBpbnQJcnY7Ci0JbW1fc2VnbWVudF90CW9sZF9mczsKLQlsb2ZmX3QJCXNhdmVvZmZzZXQgPSBvZmZzZXQ7Ci0KLQlERUJVR1AoRENPVyJjb3dsb29wIC0gcmVhZHJkbyBjYWxsZWRcbiIpOwotCi0gICAgICAgIG9sZF9mcyA9IGdldF9mcygpOwotCXNldF9mcyggZ2V0X2RzKCkgKTsKLQlydiA9IGNvd2Rldi0+cmRvZnAtPmZfb3AtPnJlYWQoY293ZGV2LT5yZG9mcCwgYnVmLCBsZW4sICZvZmZzZXQpOwotICAgICAgICBzZXRfZnMob2xkX2ZzKTsKLQotCWlmIChydiA8IGxlbikgewotCQlwcmludGsoS0VSTl9XQVJOSU5HICJjb3dsb29wIC0gcmVhZC1mYWlsdXJlICVsZCBvbiByZG9maWxlIgotCQkgICAgICAgICAgICAgICAgICAgICItI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otCQkJY293ZGV2LT5vcGVuY250LAotCQkJY293ZGV2LT5waWQsCi0JCQljb3dkZXYtPnJkb25hbWUsCi0JCQljb3dkZXYtPnJkb3JlYWRzLAotCQkJY293ZGV2LT5jb3duYW1lLAotCQkJY293ZGV2LT5jb3doZWFkLT5mbGFncyAmIENPV0RJUlRZID8gImRpcnR5IjoiY2xlYW4iLAotCQkJY293ZGV2LT5tYXBzaXplID4+IE1VU0hJRlQsIE1BUFVOSVQsCi0JCQljb3dkZXYtPm5yY293YmxvY2tzLCBNQVBVTklULAotCQkJY293ZGV2LT5jb3dyZWFkcywKLQkJCWNvd2Rldi0+Y293d3JpdGVzKTsKLX0KLQotLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwotLyogU2V0dXAgYW5kIGRlc3Ryb3kgY293ZGV2aWNlcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqLwotLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwotCi0vKgotKiogb3BlbiBhbmQgcHJlcGFyZSBhIGNvd2RldmljZSAocmRvZmlsZSBhbmQgY293ZmlsZSkgYW5kIGFsbG9jYXRlIGJpdG1hcHMKLSoqCi0qKiByZXR1cm5zOgotKiogCTAgICAtIG9rYXkKLSoqICAgIDwgMCAgIC0gZXJyb3IgdmFsdWUKLSovCi1zdGF0aWMgaW50Ci1jb3dsb19vcGVucGFpcihjaGFyICpyZG9mLCBjaGFyICpjb3dmLCBpbnQgYXV0b3JlY292ZXIsIGludCBtaW5vcikKLXsKLQlsb25nIGludAkJcnY7Ci0Jc3RydWN0IGNvd2xvb3BfZGV2aWNlCSpjb3dkZXYgPSBjb3dkZXZhbGxbbWlub3JdOwotCXN0cnVjdCBrc3RhdGZzCQlrczsKLQotCWRvd24oJmNvd2RldmxvY2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Zmc2V0KSA8IG51bWJ5dGVzKSB7Ci0JCQkJYnJlYWs7Ci0JCQl9Ci0JCX0KLQotCQkvKgotCQkqKiBmbHVzaCBjbGVhbiB1cC10by1kYXRlIGNvd2hlYWQgdG8gY293ZmlsZQotCQkqLwotCQljb3dkZXYtPmNvd2hlYWQtPmNvd3VzZWQJID0gY293ZGV2LT5ucmNvd2Jsb2NrczsKLQkJY293ZGV2LT5jb3doZWFkLT5mbGFncwkJJj0gfkNPV0RJUlRZOwotCi0JCURFQlVHUChEQ09XICJjb3dsb29wIC0gZmx1c2hpbmcgY293aGVhZCAoJTNkIEtiKVxuIiwKLQkJCQkJCQlNQVBVTklULzEwMjQpOwotCi0JCWNvd2xvX3dyaXRlY293cmF3KGNvd2RldiwgY293ZGV2LT5jb3doZWFkLCBNQVBVTklULCAobG9mZl90KSAwKTsKLQl9Ci19Ci0KLS8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KLS8qIE1vZHVsZSBsb2FkaW5nL3VubG9hZGluZyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKi8KLS8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KLQotLyoKLSoqIGNhbGxlZCBkdXJpbmcgaW5zbW9kL21vZHByb2JlCi0qLwotc3RhdGljIGludCBfX2luaXQKLWNvd2xvX2luaXRfbW9kdWxlKHZvaWQpCi17Ci0JaW50CXJ2OwotCWludAltaW5vciwgdXB0b2Nvd3M7Ci0KLSAgICAgICAgcmV2aXNpb25bc2l6ZW9mIHJldmlzaW9uIC0gM10gPSAnXDAnOwotCi0gICAgICAgIHByaW50ayhLRVJOX05PVElDRSAiY293bG9vcCAtIChDKSAyMDA5IEFUQ29tcHV0aW5nLm5sIC0gdmVyc2lvbjogJXNcbiIsICZyZ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5ld19jcnlwdC0+b3BzKQogCQkJbmV3X2NyeXB0LT5wcml2ID0gbmV3X2NyeXB0LT5vcHMtPmluaXQoa2V5KTsKIAogCQlpZiAoIW5ld19jcnlwdC0+b3BzIHx8ICFuZXdfY3J5cHQtPnByaXYpIHsKQEAgLTQ4Myw3ICs0ODEsNyBAQAogICAgICAgICBzdHJ1Y3QgaXdfZW5jb2RlX2V4dCAqZXh0ID0gKHN0cnVjdCBpd19lbmNvZGVfZXh0ICopZXh0cmE7CiAgICAgICAgIGludCBpLCBpZHgsIHJldCA9IDA7CiAgICAgICAgIGludCBncm91cF9rZXkgPSAwOwotICAgICAgICBjb25zdCBjaGFyICphbGcsICptb2R1bGU7CisgICAgICAgIGNvbnN0IGNoYXIgKmFsZzsKICAgICAgICAgc3RydWN0IGllZWU4MDIxMV9jcnlwdG9fb3BzICpvcHM7CiAgICAgICAgIHN0cnVjdCBpZWVlODAyMTFfY3J5cHRfZGF0YSAqKmNyeXB0OwogCkBAIC01MzksMTUgKzUzNywxMiBAQAogICAgICAgICBzd2l0Y2ggKGV4dC0+YWxnKSB7CiAgICAgICAgIGNhc2UgSVdfRU5DT0RFX0FMR19XRVA6CiAgICAgICAgICAgICAgICAgYWxnID0gIldFUCI7Ci0gICAgICAgICAgICAgICAgbW9kdWxlID0gImllZWU4MDIxMV9jcnlwdF93ZXAiOwogICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICBjYXNlIElXX0VOQ09ERV9BTEdfVEtJUDoKICAgICAgICAgICAgICAgICBhbGcgPSAiVEtJUCI7Ci0gICAgICAgICAgICAgICAgbW9kdWxlID0gImllZWU4MDIxMV9jcnlwdF90a2lwIjsKICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgY2FzZSBJV19FTkNPREVfQUxHX0NDTVA6CiAgICAgICAgICAgICAgICAgYWxnID0gIkNDTVAiOwotICAgICAgICAgICAgICAgIG1vZHVsZSA9ICJpZWVlODAyMTFfY3J5cHRfY2NtcCI7CiAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICAgSUVFRTgwMjExX0RFQlVHX1dYKCIlczogdW5rbm93biBjcnlwdG8gYWxnICVkXG4iLApAQCAtNTU4LDEwICs1NTMsOCBAQAogLy8JcHJpbnRrKCI4LTA5LTA4LTk9PT09PT4lcywgYWxnIG5hbWU6JXNcbiIsX19mdW5jX18sIGFsZyk7CiAKIAkgb3BzID0gaWVlZTgwMjExX2dldF9jcnlwdG9fb3BzKGFsZyk7Ci0gICAgICAgIGlmIChvcHMgPT0gTlVMTCkgewotICAgICAgICAgICAgICAgIHJlcXVlc3RfbW9kdWxlKG1vZHVsZSk7CisgICAgICAgIGlmIChvcHMgPT0gTlVMTCkKICAgICAgICAgICAgICAgICBvcHMgPSBpZWVlODAyMTFfZ2V0X2NyeXB0b19vcHMoYWxnKTsKLSAgICAgICAgfQogICAgICAgICBpZiAob3BzID09IE5VTEwpIHsKICAgICAgICAgICAgICAgICBJRUVFODAyMTFfREVCVUdfV1goIiVzOiB1bmtub3duIGNyeXB0byBhbGcgJWRcbiIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRldi0+bmFtZSwgZXh0LT5hbGcpOwpAQCAtNTgxLDcgKzU3NCw3IEBACiAgICAgICAgICAgICAgICAgICAgICAgICBnb3RvIGRvbmU7CiAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgIG5ld19jcnlwdC0+b3BzID0gb3BzOwotICAgICAgICAgICAgICAgIGlmIChuZXdfY3J5cHQtPm9wcyAmJiB0cnlfbW9kdWxlX2dldChuZXdfY3J5cHQtPm9wcy0+b3duZXIpKQorICAgICAgICAgICAgICAgIGlmIChuZXdfY3J5cHQtPm9wcykKICAgICAgICAgICAgICAgICAgICAgICAgIG5ld19jcnlwdC0+cHJpdiA9IG5ld19jcnlwdC0+b3BzLT5pbml0KGlkeCk7CiAgICAgICAgICAgICAgICAgaWYgKG5ld19jcnlw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KICAgICAgICAgICAgICAgICBhbGcgPSAiVEtJUCI7Ci0gICAgICAgICAgICAgICAgbW9kdWxlID0gImllZWU4MDIxMV9jcnlwdF90a2lwIjsKICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgY2FzZSBJV19FTkNPREVfQUxHX0NDTVA6CiAgICAgICAgICAgICAgICAgYWxnID0gIkNDTVAiOwotICAgICAgICAgICAgICAgIG1vZHVsZSA9ICJpZWVlODAyMTFfY3J5cHRfY2NtcCI7CiAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICAgSUVFRTgwMjExX0RFQlVHX1dYKCIlczogdW5rbm93biBjcnlwdG8gYWxnICVkXG4iLApAQCAtNzMwLDEwICs3MjEsOCBAQAogCXByaW50aygiYWxnIG5hbWU6JXNcbiIsYWxnKTsKIAogCSBvcHMgPSBpZWVlODAyMTFfZ2V0X2NyeXB0b19vcHMoYWxnKTsKLSAgICAgICAgaWYgKG9wcyA9PSBOVUxMKSB7Ci0gICAgICAgICAgICAgICAgcmVxdWVzdF9tb2R1bGUobW9kdWxlKTsKKyAgICAgICAgaWYgKG9wcyA9PSBOVUxMKQogICAgICAgICAgICAgICAgIG9wcyA9IGllZWU4MDIxMV9nZXRfY3J5cHRvX29wcyhhbGcpOwotICAgICAgICB9CiAgICAgICAgIGlmIChvcHMgPT0gTlVMTCkgewogICAgICAgICAgICAgICAgIElFRUU4MDIxMV9ERUJVR19XWCgiJXM6IHVua25vd24gY3J5cHRvIGFsZyAlZFxuIiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGV2LT5uYW1lLCBleHQtPmFsZyk7CkBAIC03NTgsNyArNzQ3LDcgQEAKICAgICAgICAgICAgICAgICAgICAgICAgIGdvdG8gZG9uZTsKICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgbmV3X2NyeXB0LT5vcHMgPSBvcHM7Ci0gICAgICAgICAgICAgICAgaWYgK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0gIldFUCI7Ci0gICAgICAgICAgICAgICAgbW9kdWxlID0gImllZWU4MDIxMV9jcnlwdF93ZXAiOwogICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICBjYXNlIElXX0VOQ09ERV9BTEdfVEtJUDoKICAgICAgICAgICAgICAgICBhbGcgPSAiVEtJUCI7Ci0gICAgICAgICAgICAgICAgbW9kdWxlID0gImllZWU4MDIxMV9jcnlwdF90a2lwIjsKICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgY2FzZSBJV19FTkNPREVfQUxHX0NDTVA6CiAgICAgICAgICAgICAgICAgYWxnID0gIkNDTVAiOwotICAgICAgICAgICAgICAgIG1vZHVsZSA9ICJpZWVlODAyMTFfY3J5cHRfY2NtcCI7CiAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICAgSUVFRTgwMjExX0RFQlVHX1dYKCIlczogdW5rbm93biBjcnlwdG8gYWxnICVkXG4iLApAQCAtNTg5LDEwICs1ODQsOCBAQAogCXByaW50aygiYWxnIG5hbWU6JXNcbiIsYWxnKTsKIAogCSBvcHMgPSBpZWVlODAyMTFfZ2V0X2NyeXB0b19vcHMoYWxnKTsKLSAgICAgICAgaWYgKG9wcyA9PSBOVUxMKSB7Ci0gICAgICAgICAgICAgICAgcmVxdWVzdF9tb2R1bGUoIiVzIiwgbW9kdWxlKTsKKyAgICAgICAgaWYgKG9wcyA9PSBOVUxMKQogICAgICAgICAgICAgICAgIG9wcyA9IGllZWU4MDIxMV9nZXRfY3J5cHRvX29wcyhhbGcpOwotICAgICAgICB9CiAgICAgICAgIGlmIChvcHMgPT0gTlVMTCkgewogICAgICAgICAgICAgICAgIElFRUU4MDIxMV9ERUJVR19XWCgiJXM6IHVua25vd24gY3J5cHRvIGFsZyAlZFxuIiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGV2LT5uYW1lLCBleHQtPmFsZyk7CkBAIC02MTIsNyAr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TVEFSVF9IQUxURUQgIDB4NDAwMAotI2RlZmluZSBTUElfQ1RSTF9TVEFUX1JBTV9CT09UICAgICAgMHgyMDAwCi0jZGVmaW5lIFNQSV9DVFJMX1NUQVRfSE9TVF9SRVNFVCAgICAweDEwMDAKLSNkZWZpbmUgU1BJX0NUUkxfU1RBVF9IT1NUX0NQVV9FTiAgIDB4MDgwMAotCi0jZGVmaW5lIFNQSV9ETUFfV1JJVEVfQ1RSTF9FTkFCTEUgICAweDAwMDEKLSNkZWZpbmUgU1BJX0RNQV9SRUFEX0NUUkxfRU5BQkxFICAgIDB4MDAwMQotI2RlZmluZSBIT1NUX0FMTE9XRUQgICAgICAgICAgICAgICAgKDEgPDwgNykKLQotI2RlZmluZSBGSVJNV0FSRV9BRERSRVNTICAgICAgICAgICAgICAgICAgICAgICAgMHgyMDAwMAotCi0jZGVmaW5lIFNQSV9USU1FT1VUICAgICAgICAgICAgICAgICAgICAgICAgICAgICAxMDAgICAgICAgICAvKiBtc2VjICovCi0KLSNkZWZpbmUgU1BJX01BWF9UWF9QQUNLRVRTICAgICAgICAgICAgICAgICAgICAgIDMyCi0KLSNkZWZpbmUgU1BJX01BWF9QQUNLRVRfU0laRSAgICAgICAgICAgICAgICAgICAgIDMyNzY3Ci0KLSNkZWZpbmUgU1BJX1RBUkdFVF9JTlRfV0FLRVVQICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwMDEKLSNkZWZpbmUgU1BJX1RBUkdFVF9JTlRfU0xFRVAgICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwMDIKLSNkZWZpbmUgU1BJX1RBUkdFVF9JTlRfUkRET05FICAgICAgICAgICAgICAgICAgIDB4MDAwMDAwMDQKLQotI2RlZmluZSBTUElfVEFSR0VUX0lOVF9DVFMgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwNDAwMAotI2RlZmluZSBTUElfVEFSR0VUX0lOVF9EUiAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwODAwMAotCi0jZGVmaW5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gaW50ZXJmYWNlIGhlYWRlciBmaWxlIGZvciBTVExDNDU2MC4gICAgICAgIAkqCi0qICBDb3B5cmlnaHQgKEMpIDIwMDcgQ29uZXhhbnQgU3lzdGVtcywgSW5jLiAgICAgICAgICAgICAgICAgICAgICAgICAgICAqCi0qICBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTsgeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yICAgICAgICAqCi0qICBtb2RpZnkgaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSAgICAgICAgICAqCi0qICBhcyBwdWJsaXNoZWQgYnkgdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbjsgZWl0aGVyIHZlcnNpb24gMgkqCi0qICBvZiB0aGUgTGljZW5zZSwgb3IgKGF0IHlvdXIgb3B0aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi4gICAgICAgICAgICAgICAqCi0qICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqCi0qICBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCwgICAgICAqCi0qICBidXQgV0lUSE9VVCBBTlkgV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZgkqCi0qICBNRVJDSEFOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1IgQSBQQVJUSUNVTEFSIFBVUlBPU0UuICBTZWUgdGhlICAgICAgICAqCi0qICBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBmb3IgbW9yZSBkZXRhaWxzLiAgICAgICAgICAgICAgICAgICAgICAgICAqCi0qICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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