summaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorspv420 <unomilliono@gmail.com>2022-06-01 17:37:22 -0400
committerspv420 <unomilliono@gmail.com>2022-06-01 17:37:22 -0400
commit57c50e0e3ee3a5ffb37dfa54964b51edfb01789f (patch)
tree17a2b186a0a8ed0625577ad3305f78f048587d47 /src/js
parentcae16f67b62a99105512ee2166d9cb2732b1fcdf (diff)
iPod5,1 9.3.5 support (wip)
Diffstat (limited to 'src/js')
-rw-r--r--src/js/primitives/call.js29
1 files changed, 22 insertions, 7 deletions
diff --git a/src/js/primitives/call.js b/src/js/primitives/call.js
index 3a2980a..6eaa607 100644
--- a/src/js/primitives/call.js
+++ b/src/js/primitives/call.js
@@ -1,7 +1,25 @@
-var __stack_chk_fail_lazy_addy = 0x346afc48;
-var __stack_chk_fail_resolver = 0x23d751fc;
-var gettimeofday_lazy_addy = 0x34d63d3c;
-var atan2_lazy_addy = 0x346afc84;
+var N94AP_13G37 = 0x0;
+var N78AP_13G36 = 0x1;
+
+var build_for = N78AP_13G36;
+
+if (build_for == N94AP_13G37) {
+ var __stack_chk_fail_lazy_addy = 0x346afc48;
+ var __stack_chk_fail_resolver = 0x23d751fc;
+ var gettimeofday_lazy_addy = 0x34d63d3c;
+ var atan2_lazy_addy = 0x346afc84;
+ var pthread_exit = 0x20633048 | 1;
+ var pthread_join = 0x20636af4 | 1;
+ var add_sp_0x3c = 0x23d72b5a | 1;
+} else if (build_for == N78AP_13G36) {
+ var __stack_chk_fail_lazy_addy = 0x347f7c48;
+ var __stack_chk_fail_resolver = 0x23d751fc;
+ var gettimeofday_lazy_addy = 0x347f7d3c;
+ var atan2_lazy_addy = 0x347f7c84;
+ var pthread_exit = 0x20633048 | 1;
+ var pthread_join = 0x20636af4 | 1;
+ var add_sp_0x3c = 0x23d72b5a | 1;
+}
var reserve_addr = 0x1a0000;
var sym_cache = {};
var slide = 0x0;
@@ -24,9 +42,6 @@ var countptrptr = 0x132000;
var thptrptr = 0x132004;
var thread_stateptrptr = 0x132008;
-var pthread_exit = 0x20633048 | 1;
-var pthread_join = 0x20636af4 | 1;
-var add_sp_0x3c = 0x23d72b5a | 1;
var mov_r1_r0 = 0x72f76 | 1;
var mov_r0 = 0xee40 | 1;
var str_r0_r4 = 0x85474 | 1;