// // GJBaseGameLayer::processTransformActions from 0x5a36b0 to 0x5a3f8e (2270 bytes) // // 1 xrefs: // > GJBaseGameLayer::processMoveActionsStep @ 0x5bc872 // // 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:19 +0000 // char **__fastcall GJBaseGameLayer::processTransformActions(GJBaseGameLayer *this, int a2) { const cocos2d::CCPoint *v3; // r0 int v4; // r9 int v5; // r3 int v6; // r4 signed int v7; // r4 char *v8; // r0 const void *v9; // r1 int v10; // r4 signed int v11; // r4 char *v12; // r6 int v13; // r3 int MainObject; // r8 cocos2d::CCObject *StaticGroup; // r4 cocos2d::CCObject *OptimizedGroup; // r7 int v17; // r4 int v18; // r3 double v19; // d10 double v20; // d12 int v21; // r9 int v22; // r11 double v23; // d8 double v24; // d6 double v25; // d7 double v26; // d13 double v27; // d11 double v28; // d9 bool v29; // fnf bool v30; // fnf bool v31; // fnf bool v32; // fnf float v33; // s31 float v34; // s15 float v35; // s15 float v36; // s15 float v37; // s15 float v38; // s15 float v39; // s15 float v40; // s15 float v41; // s15 _DWORD *v42; // r3 int *v43; // r8 int v44; // r4 int v45; // t1 _DWORD *v46; // r3 int v47; // r4 int *v48; // r3 unsigned int v49; // r7 int *v50; // r8 int v51; // r4 int v52; // t1 float v54; // s14 double v55; // d10 double v56; // d10 double v57; // d9 float v58; // s14 float v59; // s14 float v60; // s12 int v61; // r10 float v62; // s13 float v63; // s15 float v64; // s23 float v65; // s22 double v66; // d10 double v67; // d9 float v68; // s26 float v69; // s25 float v70; // r0 float v71; // s19 float v72; // s18 float v73; // s20 float v74; // s21 double v75; // d7 float v76; // s24 float v77; // r0 int v78; // r3 float v79; // s10 float v80; // s12 float v81; // s15 float v82; // s15 int v83; // [sp+14h] [bp-D8h] double v84; // [sp+18h] [bp-D4h] int *v85; // [sp+18h] [bp-D4h] double v86; // [sp+20h] [bp-CCh] void (__fastcall *v87)(int, _BYTE *); // [sp+20h] [bp-CCh] char v88; // [sp+28h] [bp-C4h] int v89; // [sp+2Ch] [bp-C0h] int v90; // [sp+30h] [bp-BCh] char *v91; // [sp+34h] [bp-B8h] float v93; // [sp+40h] [bp-ACh] BYREF float v94; // [sp+44h] [bp-A8h] BYREF _BYTE v95[8]; // [sp+48h] [bp-A4h] BYREF float v96[2]; // [sp+50h] [bp-9Ch] BYREF float v97[2]; // [sp+58h] [bp-94h] BYREF char *v98; // [sp+60h] [bp-8Ch] BYREF char *v99; // [sp+64h] [bp-88h] char *v100; // [sp+68h] [bp-84h] char v101[24]; // [sp+6Ch] [bp-80h] BYREF _DWORD v102[6]; // [sp+84h] [bp-68h] BYREF _DWORD v103[6]; // [sp+9Ch] [bp-50h] BYREF float v104[6]; // [sp+B4h] [bp-38h] BYREF _BYTE v105[24]; // [sp+CCh] [bp-20h] BYREF v89 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 609) + 68))(*((_DWORD *)this + 609)); v90 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 609) + 76))(*((_DWORD *)this + 609)); v3 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 609) + 96))(*((_DWORD *)this + 609)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, v3); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 609) + 80))(*((_DWORD *)this + 609), 1065353216); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 609) + 92))(*((_DWORD *)this + 609), &unk_D2C400); v4 = *((_DWORD *)this + 381); v98 = nullptr; v99 = nullptr; v5 = *(_DWORD *)(v4 + 784); v6 = *(_DWORD *)(v4 + 788); v100 = nullptr; v7 = v6 - v5; if ( v7 >> 2 ) { if ( (unsigned int)(v7 >> 2) >= 0x40000000 ) sub_388B48(); v8 = (char *)operator new(v7); v9 = *(const void **)(v4 + 784); v100 = &v8[v7]; v10 = *(_DWORD *)(v4 + 788); v99 = v8; v11 = v10 - (_DWORD)v9; v98 = v8; if ( v11 > 3 ) { memcpy(v8, v9, v11); v99 += v11; } } v12 = v98; v91 = v99; while ( v12 != v91 ) { v13 = *(_DWORD *)v12; v12 += 4; MainObject = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)this, *(_DWORD *)(v13 + 44)); StaticGroup = GJBaseGameLayer::getStaticGroup(this, *(_DWORD *)(*((_DWORD *)v12 - 1) + 40)); OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(this, *(_DWORD *)(*((_DWORD *)v12 - 1) + 40)); if ( cocos2d::CCArray::count(StaticGroup) ) { OptimizedGroup = GJBaseGameLayer::getGroup(this, *(_DWORD *)(*((_DWORD *)v12 - 1) + 40)); v17 = 0; } else { v17 = 1; } *((_DWORD *)this + 2877) += cocos2d::CCArray::count(OptimizedGroup); v18 = *((_DWORD *)v12 - 1); if ( v17 ) { v19 = *(double *)(v18 + 168); v20 = *(double *)(v18 + 280); } else { v19 = *(double *)(v18 + 160); v20 = *(double *)(v18 + 272); } v21 = *(unsigned __int8 *)(v18 + 290); v83 = *(unsigned __int8 *)(v18 + 288); v88 = *(_BYTE *)(v18 + 114); v84 = *(double *)(v18 + 256); v86 = *(double *)(v18 + 264); if ( v88 ) { v22 = 1; goto LABEL_21; } if ( *(_BYTE *)(v18 + 476) ) v22 = 1; else v22 = a2; if ( v19 != v20 ) { LABEL_21: v23 = *(double *)(v18 + 296); v24 = *(double *)(v18 + 240) - 1.0; v25 = *(double *)(v18 + 248) - 1.0; v26 = v24 * v19 + 1.0; v27 = v25 * v19 + 1.0; if ( v23 == 0.0 ) { v23 = v24 * v20 + 1.0; v28 = v25 * v20 + 1.0; } else { v28 = *(double *)(v18 + 304); } if ( fabs(v23) < 0.01 ) { v29 = v23 < 0.0; v23 = -0.01; if ( !v29 ) v23 = 0.01; } if ( fabs(v26) < 0.01 ) { v30 = v26 < 0.0; v26 = -0.01; if ( !v30 ) v26 = 0.01; } if ( fabs(v28) < 0.01 ) { v31 = v28 < 0.0; v28 = -0.01; if ( !v31 ) v28 = 0.01; } if ( fabs(v27) < 0.01 ) { v32 = v27 < 0.0; v27 = -0.01; if ( !v32 ) v27 = 0.01; } if ( MainObject ) { GameObject::getUnmodifiedPosition((GameObject *)v96, MainObject); if ( v21 ) v33 = (*(float (__fastcall **)(int))(*(_DWORD *)MainObject + 192))(MainObject) + 0.0; else v33 = 0.0; v93 = 0.0; v94 = 0.0; GJBaseGameLayer::claimRotationAction( this, *(_DWORD *)(*((_DWORD *)v12 - 1) + 40), *(_DWORD *)(*((_DWORD *)v12 - 1) + 44), &v93, &v94, v17, 0); GJBaseGameLayer::claimMoveAction((GJBaseGameLayer *)v97, (int)this, *(_DWORD *)(*((_DWORD *)v12 - 1) + 40), v17); (*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)this + 367) + 92))(*((_DWORD *)this + 367), v96); v34 = v26; (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 367) + 64))(*((_DWORD *)this + 367), LODWORD(v34)); v35 = v27; (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 367) + 72))(*((_DWORD *)this + 367), LODWORD(v35)); v36 = 1.0 / v23; (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 369) + 64))(*((_DWORD *)this + 369), LODWORD(v36)); v37 = 1.0 / v28; (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 369) + 72))(*((_DWORD *)this + 369), LODWORD(v37)); v38 = v84 * v19; (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 367) + 132))( *((_DWORD *)this + 367), LODWORD(v38)); v39 = v86 * v19; (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 367) + 140))( *((_DWORD *)this + 367), LODWORD(v39)); v40 = -(v84 * v20); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 368) + 132))( *((_DWORD *)this + 368), LODWORD(v40)); v41 = -(v86 * v20); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 368) + 140))( *((_DWORD *)this + 368), LODWORD(v41)); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 367) + 180))(*((_DWORD *)this + 367), v33 + v93); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 370) + 180))(*((_DWORD *)this + 370), -v33); GJBaseGameLayer::prepareTransformParent((cocos2d::CCObject **)this, 1); (*(void (__fastcall **)(char *))(**((_DWORD **)this + 367) + 412))(v101); (*(void (__fastcall **)(float *))(**((_DWORD **)this + 368) + 412))(v104); (*(void (__fastcall **)(_BYTE *))(**((_DWORD **)this + 369) + 412))(v105); (*(void (__fastcall **)(_DWORD *))(**((_DWORD **)this + 370) + 412))(v102); v103[0] = v102[0]; v103[1] = v102[1]; v103[2] = v102[2]; v103[3] = v102[3]; v103[4] = v102[4]; v103[5] = v102[5]; if ( OptimizedGroup ) { v42 = *((_DWORD **)OptimizedGroup + 13); if ( *v42 ) { v43 = (int *)v42[3]; v85 = &v43[*v42 - 1]; while ( v43 <= v85 ) { v45 = *v43++; v44 = v45; if ( !v45 ) break; v54 = *(float *)(v44 + 568); v55 = *(double *)(v44 + 808); *(_BYTE *)(v44 + 1111) = v88; v56 = v55 - v54; v57 = *(double *)(v44 + 816) - *(float *)(v44 + 572); if ( !*(_BYTE *)(v44 + 1110) ) { if ( *(_DWORD *)(v44 + 1080) != *((_DWORD *)this + 202) ) { *(_DWORD *)(v44 + 852) = *(_DWORD *)(v44 + 1008); *(_DWORD *)(v44 + 856) = *(_DWORD *)(v44 + 1012); *(_DWORD *)(v44 + 1080) = *((_DWORD *)this + 202); GameObject::dirtifyObjectRect(v44); } if ( *(_DWORD *)(v44 + 1072) != *((_DWORD *)this + 202) ) { v58 = *(double *)(v44 + 808); *(float *)(v44 + 1060) = v58; v59 = *(double *)(v44 + 816); *(float *)(v44 + 1064) = v59; *(_DWORD *)(v44 + 1072) = *((_DWORD *)this + 202); GameObject::dirtifyObjectRect(v44); } } v60 = v96[0]; *(_BYTE *)(v44 + 708) = 1; *(_BYTE *)(v44 + 710) = 1; v61 = *((_DWORD *)this + 371); v87 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v61 + 92); v62 = v56 - v60; v63 = v57 - v96[1]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, v62, v63); v87(v61, v105); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 371) + 64))( *((_DWORD *)this + 371), *(float *)(v44 + 1008) - *(float *)(v44 + 600)); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 371) + 72))( *((_DWORD *)this + 371), *(float *)(v44 + 1012) - *(float *)(v44 + 604)); v64 = (float)(*(float *)(v44 + 836) + *(float *)(v44 + 576)) - *(float *)(v44 + 580); v65 = (float)(*(float *)(v44 + 840) + *(float *)(v44 + 584)) - *(float *)(v44 + 588); (*(void (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 371) + 188))( *((_DWORD *)this + 371), COERCE_FLOAT(LODWORD(v64))); (*(void (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 371) + 196))( *((_DWORD *)this + 371), COERCE_FLOAT(LODWORD(v65))); (*(void (__fastcall **)(_BYTE *))(**((_DWORD **)this + 371) + 400))(v105); cocos2d::CCAffineTransformConcat(v104, v105, v103); v66 = (float)(v104[4] + v97[0]) - v56 + *(double *)(v44 + 808); v67 = (float)(v104[5] + v97[1]) - v57 + *(double *)(v44 + 816); *(double *)(v44 + 808) = v66; *(double *)(v44 + 816) = v67; if ( v66 <= 10000000.0 ) { if ( v66 < -10000000.0 ) *(_QWORD *)(v44 + 808) = 0xC16312D000000000LL; } else { *(_QWORD *)(v44 + 808) = 0x416312D000000000LL; } if ( v67 <= 10000000.0 ) { if ( v67 < -10000000.0 ) *(_QWORD *)(v44 + 816) = 0xC16312D000000000LL; } else { *(_QWORD *)(v44 + 816) = 0x416312D000000000LL; } if ( v83 ) { if ( v94 != 0.0 ) GameObject::fastRotateObject((GameObject *)v44, v94); } else { v68 = v104[1]; v69 = v104[0]; v70 = sqrtf((float)(v68 * v68) + (float)(v69 * v69)); v71 = v104[3]; v72 = v104[2]; v73 = v70; v74 = sqrtf((float)(v71 * v71) + (float)(v72 * v72)); v75 = atan2f(v71, v72); v77 = atan2f(v68, v69); v78 = *(_DWORD *)v44; v76 = v75 * 57.2957795 - 90.0; v79 = *(float *)(v44 + 584); *(float *)&v75 = *(float *)(v44 + 576) + (float)-v76 - v64; *(_DWORD *)(v44 + 576) = LODWORD(v75); v80 = v77 * 57.2957795; *(float *)&v75 = v79 + (float)-v80 - v65; *(_DWORD *)(v44 + 584) = LODWORD(v75); (*(void (__fastcall **)(int, _DWORD))(v78 + 740))(v44, 0); if ( *(_DWORD *)(v44 + 784) != 7 && !*(_BYTE *)(v44 + 636) ) GameObject::calculateOrientedBox((GameObject *)v44); GameObject::addToCustomScaleX(v44, (float)(v73 - *(float *)(v44 + 1008)) + *(float *)(v44 + 600)); GameObject::addToCustomScaleY(v44, (float)(v74 - *(float *)(v44 + 1012)) + *(float *)(v44 + 604)); if ( v22 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v44 + 728))(v44, 1065353216); } (*(void (__fastcall **)(GJBaseGameLayer *, int))(*(_DWORD *)this + 684))(this, v44); } } } (*(void (__fastcall **)(GJBaseGameLayer *, cocos2d::CCObject *))(*(_DWORD *)this + 688))(this, OptimizedGroup); } else if ( !*(_BYTE *)(v18 + 288) ) { if ( OptimizedGroup ) { v46 = *((_DWORD **)OptimizedGroup + 13); if ( *v46 ) { v47 = *v46 + 0x40000000; v48 = (int *)v46[3]; v49 = (unsigned int)&v48[v47 - 1]; v50 = v48; while ( (unsigned int)v50 <= v49 ) { v52 = *v50++; v51 = v52; if ( !v52 ) break; if ( !*(_BYTE *)(v51 + 1110) && *(_DWORD *)(v51 + 1080) != *((_DWORD *)this + 202) ) { *(_DWORD *)(v51 + 852) = *(_DWORD *)(v51 + 1008); *(_DWORD *)(v51 + 856) = *(_DWORD *)(v51 + 1012); *(_DWORD *)(v51 + 1080) = *((_DWORD *)this + 202); GameObject::dirtifyObjectRect(v51); } *(_BYTE *)(v51 + 708) = 1; v81 = *(float *)(v51 + 1008) * (v26 / v23) - *(float *)(v51 + 1008); GameObject::addToCustomScaleX(v51, v81); v82 = *(float *)(v51 + 1012) * (v27 / v28) - *(float *)(v51 + 1012); GameObject::addToCustomScaleY(v51, v82); if ( v22 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v51 + 728))(v51, 1065353216); } } } } } } (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 609) + 64))(*((_DWORD *)this + 609), v89); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 609) + 72))(*((_DWORD *)this + 609), v90); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 609) + 92))(*((_DWORD *)this + 609), v95); return std::__vector_base::~__vector_base(&v98); }
GD Web Decomp Icon

GD Web Decomp

Raw Source