// // sub_1006D48B4 from 0x1006d48b4 to 0x1006d49a4 (240 bytes) // // 2 xrefs: // > sub_1006D36F0 @ 0x1006d3804 // > sub_100713E24 @ 0x100714130 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 11:12:28 +0000 // __int64 __fastcall sub_1006D48B4(__int64 a1, unsigned __int64 a2) { int v4; // w19 __int64 v5; // x8 unsigned __int64 v6; // x0 unsigned __int64 v7; // x21 __int64 v8; // x9 __int64 v9; // x23 __int64 v10; // x22 __int64 v11; // x8 __int64 v12; // x8 int v13; // w8 bool v14; // vf int v15; // w8 if ( !a2 ) return -1; if ( !*(_DWORD *)(a1 + 8) ) return 0; v4 = 64 - sub_1006D0CA0(a2); if ( !(unsigned int)sub_1006D4528(a1, (__int64 *)a1, v4) ) return -1; v5 = *(int *)(a1 + 8); if ( (int)v5 < 1 ) { v6 = 0; } else { v6 = 0; v7 = a2 << v4; v8 = *(_QWORD *)a1; v9 = v5 - 1; do { v10 = *(_QWORD *)(v8 + 8 * v9); v11 = sub_1006D7C20(v6, v10, v7); v6 = v10 - v11 * v7; v8 = *(_QWORD *)a1; *(_QWORD *)(*(_QWORD *)a1 + 8 * v9) = v11; v12 = v9-- + 1; } while ( v12 > 1 ); v13 = *(_DWORD *)(a1 + 8); v14 = __OFSUB__(v13, 1); v15 = v13 - 1; if ( v15 < 0 == v14 && !*(_QWORD *)(*(_QWORD *)a1 + 8LL * v15) ) *(_DWORD *)(a1 + 8) = v15; } return v6 >> v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source