// // sub_F89F4C from 0xf89f4c to 0xf8a044 (248 bytes) // // 2 xrefs: // > sub_F89F18 @ 0xf89f48 // > sub_F8A044 @ 0xf8a070 // // 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 13:13:55 +0000 // unsigned __int16 *__fastcall sub_F89F4C(__int64 a1) { int *v2; // x10 unsigned __int16 *v3; // x19 int *v4; // x13 unsigned __int64 v5; // x12 int *v6; // x11 unsigned __int64 v7; // x10 bool v8; // zf bool v9; // cc unsigned __int16 v10; // w10 unsigned __int16 *v11; // x8 __int64 v12; // x10 pthread_mutex_lock(&stru_1565F30); v2 = (int *)qword_1565F58; if ( !qword_1565F58 ) { v2 = dword_1565F60; qword_1565F58 = (__int64)dword_1565F60; dword_1565F60[0] = 8388736; } v3 = nullptr; if ( v2 && v2 != &dword_1566160 ) { v4 = nullptr; v5 = ((unsigned __int64)(a1 + 3) >> 2) + 1; v3 = nullptr; while ( 1 ) { v6 = v2; v7 = *((unsigned __int16 *)v2 + 1); v8 = v7 == v5; v9 = v7 > v5; v10 = v7 - v5; if ( v9 ) { v11 = (unsigned __int16 *)&v6[v10]; *((_WORD *)v6 + 1) = v10; *v11 = 0; v11[1] = v5; v3 = v11 + 2; goto LABEL_16; } if ( v8 ) break; v2 = &dword_1565F60[*(unsigned __int16 *)v6]; if ( v2 ) { v4 = v6; if ( v2 != &dword_1566160 ) continue; } goto LABEL_16; } v12 = *(unsigned __int16 *)v6; if ( v4 ) *(_WORD *)v4 = v12; else qword_1565F58 = (__int64)&dword_1565F60[v12]; *(_WORD *)v6 = 0; v3 = (unsigned __int16 *)(v6 + 1); } LABEL_16: pthread_mutex_unlock(&stru_1565F30); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source