// // sub_98F7BC from 0x98f7bc to 0x98f84a (142 bytes) // // 2 xrefs: // > sub_988BAC @ 0x989520 // > sub_98F518 @ 0x98f760 // // 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:33 +0000 // unsigned int __fastcall sub_98F7BC(_DWORD *a1, char *a2, char *a3) { unsigned int result; // r0 unsigned int v7; // r8 unsigned int v8; // r1 unsigned int v9; // r9 char *v10; // r0 char *v11; // r1 char *v12; // r2 char v13; // t1 result = *(unsigned __int8 *)a1; if ( (result & 1) != 0 ) { v7 = a1[1]; result = *a1; v8 = (*a1 & 0xFFFFFFFE) - 1; } else { v7 = result >> 1; v8 = 10; } v9 = a3 - a2; if ( a3 != a2 ) { if ( v8 - v7 < v9 ) { sub_98F84A(a1, v8, v7 + v9 - v8, v7, v7, 0); LOBYTE(result) = *(_BYTE *)a1; } if ( (result & 1) != 0 ) v10 = (char *)a1[2]; else v10 = (char *)a1 + 1; v11 = &v10[v7]; if ( a2 != a3 ) { v12 = &a3[v7 - (_DWORD)a2]; do { v13 = *a2++; *v11++ = v13; } while ( a3 != a2 ); v11 = &v12[(_DWORD)v10]; } *v11 = 0; result = v7 + v9; if ( (*(_BYTE *)a1 & 1) != 0 ) { a1[1] = result; } else { result *= 2; *(_BYTE *)a1 = result; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source