// // sub_10055C8F4 from 0x10055c8f4 to 0x10055c9c8 (212 bytes) // // 3 xrefs: // > sub_10055C8F4 @ 0x10055c95c // > sub_10055C8F4 @ 0x10055c978 // > sub_10055C9C8 @ 0x10055cda0 // // 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:08:01 +0000 // __int64 __fastcall sub_10055C8F4(__int64 result, __int64 a2, int a3, int a4, __int64 a5) { __int64 v6; // x22 _DWORD *v9; // x20 int v10; // w26 int v11; // w8 __int64 v12; // x24 LODWORD(v6) = a4; v9 = (_DWORD *)result; if ( a4 == 2 ) { LABEL_7: *v9 = a2 & a5; v9[1] = (a3 + a2) & a5; } else { while ( 1 ) { v10 = v6 - 1; if ( (_DWORD)v6 == 1 ) break; if ( (int)v6 >= 0 ) v11 = v6; else v11 = v6 + 1; v12 = (unsigned int)(v11 >> 1); v6 = (unsigned int)((int)v6 / 4); sub_10055C8F4(v9, a2, (unsigned int)(2 * a3), v12, a5); result = sub_10055C8F4(&v9[(int)v12], (unsigned int)(a3 + a2), (unsigned int)(4 * a3), v6, a5); v9 += 3 * (int)v6; a2 = (unsigned int)(a2 + v10 * a3); a3 *= 4; if ( (_DWORD)v6 == 2 ) goto LABEL_7; } *v9 = a2 & a5; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source