// // GJBaseGameLayer::processDynamicObjectActions from 0x5ad594 to 0x5ad960 (972 bytes) // // 2 xrefs: // > GJBaseGameLayer::processMoveActionsStep @ 0x5bc86a // > GJBaseGameLayer::processMoveActionsStep @ 0x5bc882 // // 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:27 +0000 // _DWORD *__fastcall GJBaseGameLayer::processDynamicObjectActions(_DWORD *this, int a2, float a3) { _DWORD *v3; // r10 int *v6; // r9 unsigned int v7; // r8 int v8; // r4 int v9; // r11 int v10; // r4 float v11; // r3 int v12; // r2 double *v13; // r6 int v14; // r0 _DWORD *v15; // r0 GroupCommandObject2 **v16; // r2 float v17; // s15 float v18; // s17 float v19; // s20 float v20; // s16 float v21; // s14 float EasedValue; // s15 float v23; // s15 int v24; // r1 float v25; // s14 float v26; // s20 float v27; // s15 float v28; // s19 float v29; // s15 double v30; // d5 double v31; // d6 float v32; // s16 int v33; // r0 int v34; // r3 float v35; // s15 GroupCommandObject2 *v36; // r0 GroupCommandObject2 *v37; // r0 int *v38; // r11 int v39; // lr int *v40; // r6 int *v41; // r4 int v42; // r0 int v43; // r1 int v44; // r2 int v45; // r3 int *v46; // r5 _DWORD *v47; // r0 int v48; // r1 int v49; // r2 int v50; // r3 _DWORD *v51; // r0 int v52; // r1 int v53; // r2 int v54; // r3 int v55; // r1 int v56; // r2 unsigned int v57; // lr int v58; // r3 GroupCommandObject2 *v59; // [sp+18h] [bp-24h] BYREF float v60[2]; // [sp+1Ch] [bp-20h] BYREF _BYTE v61[8]; // [sp+24h] [bp-18h] BYREF unsigned int v62[2]; // [sp+2Ch] [bp-10h] BYREF v3 = this; if ( a2 ) { if ( a2 != 1 ) return this; v6 = this + 317; } else { v6 = this + 314; } if ( v6 ) { v7 = 0; while ( 1 ) { while ( 1 ) { v8 = *v6; if ( v7 >= -286331153 * ((v6[1] - *v6) >> 2) ) return this; v9 = v8 + 60 * v7; if ( !*(_BYTE *)(v9 + 46) || *(_BYTE *)(v9 + 47) ) break; LABEL_66: ++v7; } v10 = *(_DWORD *)(v8 + 60 * v7); this = (_DWORD *)GJEffectManager::getTempGroupCommand((GJEffectManager *)v3[381]); v11 = *(float *)(v9 + 52); *((float *)this + 10) = v11; v12 = *(_DWORD *)(v9 + 56); v59 = (GroupCommandObject2 *)this; *(this + 11) = v12; *(this + 86) = *(_DWORD *)(v10 + 780); *(this + 87) = *(_DWORD *)(v9 + 48); if ( a2 ) { if ( a2 == 1 ) { v14 = v3[381]; *(float *)v62 = v11; v15 = std::unordered_map>::operator[](v14 + 764, v62); v16 = (GroupCommandObject2 **)v15[1]; if ( v16 == (GroupCommandObject2 **)v15[2] ) { std::vector::__push_back_slow_path((int)v15, &v59); } else { if ( v16 ) *v16 = v59; v15[1] += 4; } this = (_DWORD *)GJEffectManager::registerRotationCommand( (GJEffectManager *)v3[381], v59, *(_BYTE *)(v3[381] + 940)); } v13 = nullptr; } else { this = (_DWORD *)GJEffectManager::getMoveCommandNode((GJEffectManager *)v3[381], (GroupCommandObject2 *)this); v13 = (double *)this; } v17 = *(float *)(v9 + 32); v18 = *(float *)(v10 + 1272); v19 = *(float *)(v9 + 36); v20 = v18 - v17; if ( ((float)(v18 - v17) > 0.0 || v18 == -1.0 || *(_BYTE *)(v9 + 44)) && !*(_BYTE *)(v9 + 45) && !*(_BYTE *)(v9 + 46) ) { if ( *(_BYTE *)(v9 + 44) ) { *(_BYTE *)(v9 + 44) = 0; } else if ( v18 != -1.0 ) { if ( v20 > a3 ) v21 = a3; else v21 = v18 - v17; *(float *)(v9 + 32) = v17 + v21; } if ( a2 ) { if ( a2 == 1 ) { *(float *)&v33 = COERCE_FLOAT( getRotateCommandAngleDelta( v10, *(_DWORD *)(v9 + 4), *(_DWORD *)(v9 + 12), *(_DWORD *)(v9 + 8), *(GameObject **)(v9 + 16), *(GameObject **)(v9 + 20), *(GameObject **)(v9 + 24), *(GameObject **)(v9 + 28))); v34 = *(_DWORD *)(v10 + 1384); if ( v34 < 1 ) v34 = 1; v35 = *(float *)&v33; v36 = v59; *((double *)v59 + 19) = (float)(v35 / (float)v34); this = (_DWORD *)GroupCommandObject2::stepTransformCommand(v36, 0.0, 0, 1); } } else { EasedValue = GameToolbox::getEasedValue( COERCE_GAMETOOLBOX_(*(float *)(v9 + 32) / v18), *(float *)(v10 + 1316), *(float *)(v10 + 1320), v11); if ( EasedValue == 1.0 && v20 > a3 ) { v23 = 0.0001; if ( *(float *)(v9 + 40) >= 1.0 ) v23 = -0.0001; EasedValue = v23 + 1.0; } *(float *)(v9 + 40) = EasedValue; v24 = *(_DWORD *)(v9 + 8); v25 = *(float *)(v9 + 36); v26 = v18 - v19; v27 = EasedValue * v18; *(float *)(v9 + 36) = v27; if ( v26 == 0.0 ) v20 = 0.0; else v27 = v27 - v25; if ( v26 != 0.0 ) v20 = v27 / v26; v28 = 1.0; if ( v18 <= 0.0 ) v20 = 1.0; (*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)v24 + 680))(v61, v24); (*(void (__fastcall **)(unsigned int *))(**(_DWORD **)(v9 + 4) + 680))(v62); this = (_DWORD *)cocos2d::CCPoint::operator-(v60, v61, v62); if ( *(_BYTE *)(v10 + 1345) ) { v29 = *(float *)(v10 + 1352); if ( v18 > 0.0 ) v28 = v26 / v18; cocos2d::ccpNormalize((cocos2d *)v61, (const cocos2d::CCPoint *)v60); cocos2d::CCPoint::operator*(v62, v61, v28 * v29); this = (_DWORD *)cocos2d::CCPoint::operator=(v60, v62); } v30 = v13[8]; v31 = (float)(v20 * v60[0]); v13[7] = v13[7] + v31; v32 = v20 * v60[1]; v13[8] = v30 + v32; v13[18] = v13[18] + v31; v13[19] = v13[19] + v32; } goto LABEL_66; } if ( a2 ) { if ( a2 == 1 ) { v37 = v59; *((_BYTE *)v59 + 114) = 1; this = (_DWORD *)GroupCommandObject2::stepTransformCommand(v37, 0.0, 0, 1); } } else { *((_BYTE *)v13 + 120) = 1; } if ( *(_BYTE *)(v9 + 46) ) { *(_BYTE *)(v9 + 47) = 0; goto LABEL_66; } v38 = (int *)v6[1]; v39 = *v6 + 60 * v7; v40 = (int *)(v39 + 60); while ( v40 != v38 ) { v41 = v40 - 15; v42 = *v40; v43 = v40[1]; v44 = v40[2]; v45 = v40[3]; v46 = v40 + 4; v40 += 15; *v41 = v42; v41[1] = v43; v41[2] = v44; v41[3] = v45; v41 += 4; v47 = (_DWORD *)*v46; v48 = v46[1]; v49 = v46[2]; v50 = v46[3]; v46 += 4; *v41 = (int)v47; v41[1] = v48; v41[2] = v49; v41[3] = v50; v41 += 4; v51 = (_DWORD *)*v46; v52 = v46[1]; v53 = v46[2]; v54 = v46[3]; v46 += 4; *v41 = (int)v51; v41[1] = v52; v41[2] = v53; v41[3] = v54; v41 += 4; this = (_DWORD *)*v46; v55 = v46[1]; v56 = v46[2]; *v41 = *v46; v41[1] = v55; v41[2] = v56; } v57 = v39 + 60 * ((787410671 * (((unsigned int)v40 - v39 - 60) >> 2)) & 0x3FFFFFFF); while ( 1 ) { v58 = v6[1]; if ( v57 == v58 ) break; v6[1] = v58 - 60; } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source