// // sub_9966BA from 0x9966ba to 0x99670a (80 bytes) // // 1 xrefs: // > sub_996710 @ 0x9967a8 // // 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:40 +0000 // _DWORD *__fastcall sub_9966BA(unsigned __int8 *a1, _DWORD *a2, unsigned int a3) { int v5; // r6 int v6; // r0 unsigned int v7; // r3 _DWORD *v8; // r1 _DWORD *result; // r0 int v10; // r2 bool v11; // zf _DWORD *v12; // r2 unsigned __int8 *v13; // r2 _BYTE *v14; // r1 int v15; // t1 v5 = 0; if ( a3 >= 0x14 ) { v6 = 4; do { ++v5; v7 = 2 * v6 + 16; v6 *= 2; } while ( v7 <= a3 ); } v8 = sub_993E20(v5); *v8 = v5; result = v8 + 1; v10 = *a1; *((_BYTE *)v8 + 4) = v10; v11 = v10 == 0; v12 = v8 + 1; if ( !v11 ) { v13 = a1 + 1; v14 = (char *)v8 + 5; do { v15 = *v13++; *v14++ = v15; } while ( v15 ); v12 = v14 - 1; } if ( a2 ) *a2 = v12; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source