// // GJEffectManager::setFollowing from 0xa13254 to 0xa134b0 (604 bytes) // // 2 xrefs: // > GJBaseGameLayer::processFollowActions @ 0x9a70a4 // > @ 0x1056b8 // // 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 12:59:32 +0000 // __int64 __fastcall GJEffectManager::setFollowing(GJEffectManager *this, int a2, int a3, char a4) { int v5; // w1 unsigned __int64 v6; // x26 unsigned __int64 v7; // x20 unsigned __int64 v8; // x24 __int64 v9; // x23 unsigned __int64 v10; // x5 __int64 v11; // x25 __int64 *v12; // x0 unsigned __int64 v13; // x3 unsigned __int64 v14; // x3 float v15; // s2 float v16; // s0 bool v17; // cc __int64 v18; // x26 unsigned __int64 v20; // x26 unsigned __int64 v21; // x1 _QWORD *v22; // x0 __int64 v23; // x1 unsigned __int64 v24; // x1 unsigned __int64 v25; // x24 _BOOL8 v26; // x2 int v27; // [xsp+5Ch] [xbp+5Ch] BYREF void *v28[3]; // [xsp+60h] [xbp+60h] BYREF v5 = a3 + 2000 * a2; v27 = v5; if ( !a4 ) { std::__hash_table,std::equal_to,std::allocator>::__erase_unique( (__int64 *)this + 137, &v27); return _stack_chk_guard; } v6 = *((_QWORD *)this + 138); v7 = v5; if ( v6 ) { v8 = v6 - 1; v9 = (v6 - 1) & v6; v10 = v5 & (v6 - 1); if ( v9 ) v10 = v5 % v6; v11 = 8 * v10; v12 = *(__int64 **)(*((_QWORD *)this + 137) + 8 * v10); if ( v12 ) { while ( 1 ) { v12 = (__int64 *)*v12; if ( !v12 ) break; v13 = v12[1]; v14 = v9 ? v13 % v6 : v8 & v13; if ( v10 != v14 ) break; if ( v5 == *((_DWORD *)v12 + 4) ) return _stack_chk_guard; } } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)this + 1096, v5, &v27, (__int64)v28); v15 = *((float *)this + 282); v16 = (float)(unsigned __int64)(*((_QWORD *)this + 140) + 1LL); if ( v16 <= (float)((float)v6 * v15) ) goto LABEL_22; v17 = v6 > 2; v18 = 2 * v6; v26 = !v17 || v9 != 0; } else { v18 = 0; std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)this + 1096, v5, &v27, (__int64)v28); v26 = 1; v15 = *((float *)this + 282); v16 = (float)(unsigned __int64)(*((_QWORD *)this + 140) + 1LL); } v20 = v26 + v18; v21 = vcvtps_u32_f32(v16 / v15); if ( v21 < v20 ) v21 = v20; std::__hash_table,std::equal_to,std::allocator>::rehash( (unsigned __int64)this + 1096, v21); v6 = *((_QWORD *)this + 138); v8 = v6 - 1; if ( ((v6 - 1) & v6) == 0 ) { v11 = 8 * (v7 & v8); v22 = *(_QWORD **)(*((_QWORD *)this + 137) + v11); if ( v22 ) goto LABEL_23; LABEL_27: *(_QWORD *)v28[0] = *((_QWORD *)this + 139); v23 = *((_QWORD *)this + 137); *((void **)this + 139) = v28[0]; *(_QWORD *)(v23 + v11) = (char *)this + 1112; if ( *(_QWORD *)v28[0] ) { v24 = *(_QWORD *)(*(_QWORD *)v28[0] + 8LL); if ( (v8 & v6) != 0 ) v25 = v24 % v6; else v25 = v8 & v24; *(void **)(*((_QWORD *)this + 137) + 8 * v25) = v28[0]; } goto LABEL_24; } v11 = 8 * (v7 % v6); LABEL_22: v22 = *(_QWORD **)(*((_QWORD *)this + 137) + v11); if ( !v22 ) goto LABEL_27; LABEL_23: *(_QWORD *)v28[0] = *v22; *v22 = v28[0]; LABEL_24: ++*((_QWORD *)this + 140); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source