// // sub_1402493F0 from 0x1402493f0 to 0x1402494f9 (265 bytes) // // 3 xrefs: // > GJBaseGameLayer::generateTargetGroups @ 0x1402253ba // > GJBaseGameLayer::generateVisibilityGroups @ 0x1402318c3 // > @ 0x1406ce838 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_1402493F0(_QWORD *a1, unsigned __int8 *a2) { void **v4; // rcx void **v5; // rdx __int64 *v6; // rbx __int64 *v7; // rax void *v8; // rax __int64 v9; // rcx v4 = (void **)(a1 + 1); v5 = (void **)(a1[3] + 16 * ((0x100000001B3LL * (a2[3] ^ (0x100000001B3LL * (a2[2] ^ (0x100000001B3LL * (a2[1] ^ (0x100000001B3LL * (*a2 ^ 0xCBF29CE484222325uLL)))))))) & a1[6])); v6 = (__int64 *)v5[1]; if ( v6 != *v4 ) { if ( *(_DWORD *)a2 == *((_DWORD *)v6 + 4) ) goto LABEL_8; while ( v6 != *v5 ) { v6 = (__int64 *)v6[1]; if ( *(_DWORD *)a2 == *((_DWORD *)v6 + 4) ) { v4 = (void **)(a1 + 1); goto LABEL_8; } } v4 = (void **)(a1 + 1); } v6 = nullptr; LABEL_8: if ( !v6 ) return 0; v7 = (__int64 *)*v5; if ( v5[1] == v6 ) { if ( v7 == v6 ) { v8 = *v4; *v5 = *v4; } else { v8 = (void *)v6[1]; } v5[1] = v8; } else if ( v7 == v6 ) { *v5 = (void *)*v6; } v9 = *v6; --a1[2]; *(_QWORD *)v6[1] = v9; *(_QWORD *)(v9 + 8) = v6[1]; sub_14005D100((__int64)(v6 + 6)); sub_14005D870((void **)v6 + 4); j_j_free(v6); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source