// // GJBaseGameLayer::addCustomEnterEffect from 0x5abc90 to 0x5abe60 (464 bytes) // // 2 xrefs: // > GJBaseGameLayer::updateActiveEnterEffect @ 0x5abf28 // > GJBaseGameLayer::updateActiveEnterEffect @ 0x5abf5a // // 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 11:53:26 +0000 // void __fastcall GJBaseGameLayer::addCustomEnterEffect(GJBaseGameLayer *this, EnterEffectObject *a2, int a3) { char *v5; // r0 int *v6; // r0 int v7; // r9 int *v8; // r5 int v9; // r6 int v10; // r8 int v11; // r3 int v12; // r10 int v13; // r8 EnterEffectInstance *v14; // lr int v15; // r12 EnterEffectObject *v16; // r1 EnterEffectInstance *v17; // r0 int *v18; // r0 EnterEffectInstance *v19; // r0 unsigned int v20; // r1 int v21; // r10 int v22; // r9 int v23; // r11 int v24; // r2 unsigned int v25; // r1 unsigned int v26; // r1 int v27; // r9 int i; // r8 int v29; // r0 char **v30; // r0 unsigned int v31; // [sp+18h] [bp-24h] BYREF int SpecialKey; // [sp+1Ch] [bp-20h] BYREF EnterEffectInstance *v33[2]; // [sp+20h] [bp-1Ch] BYREF EnterEffectInstance *v34; // [sp+28h] [bp-14h] v31 = *((_DWORD *)a2 + 460); if ( v31 <= 0x64 ) { if ( a3 ) v5 = (char *)this + 1096; else v5 = (char *)this + 1116; v6 = std::unordered_map>::operator[]((int)v5, &v31); v7 = *((_DWORD *)a2 + 450); v8 = v6; if ( v7 > 0 ) { v11 = *v6; v12 = v6[1]; v13 = 0; v14 = (EnterEffectInstance *)*v6; v15 = -1030792151 * ((v12 - *v6) >> 3); while ( v13 != v15 ) { v16 = *((EnterEffectObject **)v14 + 38); v17 = v14; v14 = (EnterEffectInstance *)((char *)v14 + 200); if ( *((_DWORD *)v16 + 450) == v7 ) { if ( *((_DWORD *)v16 + 195) == *((_DWORD *)a2 + 195) && *((_DWORD *)v17 + 40) == *((_DWORD *)a2 + 321) && *((_DWORD *)v17 + 41) == *((_DWORD *)a2 + 322) ) { EnterEffectInstance::loadValuesFromObject(v17, v16); return; } v27 = v11 + 200; for ( i = v11 + 400; i != v12; i += 200 ) { EnterEffectInstance::operator=(v27, i); v27 += 200; } while ( 1 ) { v29 = v8[1]; if ( v27 == v29 ) break; v30 = (char **)(v29 - 200); v8[1] = (int)v30; EnterEffectInstance::~EnterEffectInstance(v30); } break; } ++v13; } } SpecialKey = GJBaseGameLayer::getSpecialKey( this, *((_DWORD *)a2 + 321), *((unsigned __int8 *)a2 + 1640), *((unsigned __int8 *)a2 + 1641)); if ( std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( (_DWORD *)this + 599, (unsigned int *)&SpecialKey) ) { v18 = std::unordered_map>::operator[]((int)this + 2396, (unsigned int *)&SpecialKey); v10 = *v18; v9 = v18[1]; } else { v9 = 0; v10 = 0; } v19 = (EnterEffectInstance *)v8[1]; v20 = v8[2]; v21 = *((_DWORD *)a2 + 321); v22 = *((_DWORD *)a2 + 322); v23 = *((_DWORD *)a2 + 373); if ( (unsigned int)v19 >= v20 ) { v24 = -1030792151 * (((int)v19 - *v8) >> 3); if ( (unsigned int)(v24 + 1) > 0x147AE14 ) sub_388B48(); v25 = -1030792151 * ((int)(v20 - *v8) >> 3); if ( v25 > 0xA3D709 ) { v26 = 21474836; } else { v26 = 2 * v25; if ( v26 < v24 + 1 ) v26 = v24 + 1; } std::__split_buffer::__split_buffer(v33, v26, v24, (int)(v8 + 2)); if ( v34 ) EnterEffectInstance::EnterEffectInstance(v34, a2, v21, v22, 0, v10, v9, v23); v34 = (EnterEffectInstance *)((char *)v34 + 200); std::vector::__swap_out_circular_buffer(v8, v33); std::__split_buffer::~__split_buffer((int)v33); } else { if ( v19 ) EnterEffectInstance::EnterEffectInstance(v19, a2, v21, v22, 0, v10, v9, v23); v8[1] += 200; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source