// // sub_999C20 from 0x999c20 to 0x999d22 (258 bytes) // // 2 xrefs: // > sub_998F70 @ 0x999338 // > sub_998F70 @ 0x999548 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:06:43 +0000 // int __fastcall sub_999C20(int a1, int a2) { int v4; // r0 int v5; // r5 bool v6; // zf int v7; // r8 __int64 v8; // r0 int v9; // r6 unsigned int v10; // r4 int v11; // kr00_4 v4 = sub_99A16E(a1); v5 = v4; v6 = v4 == 45; v7 = 0; if ( v4 != 45 ) v6 = v4 == 43; if ( v6 ) { if ( v4 == 45 ) v7 = 1; v5 = sub_99A16E(a1); if ( a2 && (unsigned int)(v5 - 48) >= 0xA ) sub_99A190(a1); } if ( (unsigned int)(v5 - 48) <= 9 ) { v9 = 0; do { v9 = v5 + 10 * v9 - 48; v5 = sub_99A16E(a1); } while ( (unsigned int)(v5 - 48) <= 9 && v9 < 214748364 ); v10 = v9 >> 31; if ( (unsigned int)(v5 - 48) <= 9 ) { do { v11 = 10 * v9 + v5 - 48; v10 = (10 * __PAIR64__(v10, v9) + v5 - 48) >> 32; v9 = v11; v5 = sub_99A16E(a1); } while ( (unsigned int)(v5 - 48) <= 9 && __SPAIR64__(v10, v11) < 0x147AE147AE147AELL ); } if ( (unsigned int)(v5 - 48) <= 9 ) { while ( (unsigned int)(sub_99A16E(a1) - 48) < 0xA ) ; } sub_99A190(a1); v8 = -__SPAIR64__(v10, v9); if ( !v7 ) LODWORD(v8) = v9; } else { sub_99A190(a1); LODWORD(v8) = 0; } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source