// // GJBaseGameLayer::processAreaRotateGroupAction from 0x1002913e8 to 0x100291764 (892 bytes) // // 1 xrefs: // > GJBaseGameLayer::processAreaEffects @ 0x100290c14 // // 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 11:02:03 +0000 // void __fastcall GJBaseGameLayer::processAreaRotateGroupAction( __int64 a1, __int64 a2, __int64 a3, __int64 a4, int a5, int a6, int a7, __int64 a8, int a9, char a10, unsigned __int8 a11) { int v16; // w8 unsigned int *v17; // x10 __int64 v18; // x9 int v19; // w21 __int64 *v20; // x23 __int64 v21; // x22 int v22; // w20 __int64 v23; // x27 _BOOL4 v24; // w28 double v25; // d0 __n128 v26; // q1 float v27; // s11 __int64 v28; // x8 int v29; // w9 __int64 v30; // x10 int v31; // w12 int v32; // w11 int v33; // w8 bool v34; // cc int v35; // w8 bool v36; // cc int v37; // w1 float v38; // s1 int v39; // w2 __int64 v40; // x24 __int64 v41; // x20 __int64 v42; // x0 __int64 v43; // x0 __int64 v44; // x26 __int64 v45; // x20 __int64 v46; // x0 __int64 v47; // x0 __int64 v48; // x20 int v49; // w0 int v50; // [xsp+8h] [xbp-B8h] __n128 v51; // [xsp+10h] [xbp-B0h] int v53; // [xsp+30h] [xbp-90h] unsigned __int64 v56; // [xsp+40h] [xbp-80h] unsigned __int8 v57; // [xsp+4Fh] [xbp-71h] BYREF v16 = *(_DWORD *)(a1 + 13716) + sub_1002E757C(a2); *(_DWORD *)(a1 + 13716) = v16; if ( !a2 ) { LODWORD(v18) = 0; goto LABEL_48; } v17 = *(unsigned int **)(a2 + 56); v18 = *v17; if ( !(_DWORD)v18 ) { LABEL_48: v19 = 0; goto LABEL_49; } v19 = 0; v53 = 0; v20 = *((__int64 **)v17 + 2); v56 = (unsigned __int64)&v20[v18 - 1]; v21 = 4LL * a9; v22 = a6; v50 = a7; do { v23 = *v20; if ( !*v20 ) break; if ( (*(_BYTE *)(v23 + 773) & 1) != 0 || ((v33 = *(_DWORD *)(v23 + 628), v33 <= v22) ? (v34 = v33 < a5) : (v34 = 1), !v34 && ((v35 = *(_DWORD *)(v23 + 632), v35 <= (int)a8) ? (v36 = v35 < a7) : (v36 = 1), !v36)) ) { v24 = GJBaseGameLayer::resetAreaObjectValues((_DWORD *)a1, *v20, 1); v57 = 0; *(float *)&v25 = GJBaseGameLayer::getAreaObjectValue(a1, a3, v23, a4, &v57); if ( *(float *)&v25 >= 1.0 ) goto LABEL_35; v27 = *(float *)(a3 + 112) + (float)(*(float *)(a3 + 116) * *(float *)(a1 + 4108 + 4LL * *(__int16 *)(v23 + 1004) + 72)); if ( v27 != 0.0 ) { v28 = *(_QWORD *)(a3 + 168); if ( *(_BYTE *)(v28 + 1973) == 1 ) { v29 = v57; if ( *(float *)&v25 <= 0.01 || *(float *)&v25 >= 0.99 ) { if ( !v57 ) goto LABEL_30; } else { v30 = *(_QWORD *)(a3 + 208); v31 = *(_DWORD *)(v30 + v21); v32 = *(_DWORD *)(a3 + 192); if ( v31 == v32 - 2 ) { *(_DWORD *)(v30 + v21) = v32; goto LABEL_30; } if ( v31 == v32 - 1 ) v29 = 1; *(_DWORD *)(v30 + v21) = v32 + v29; if ( (v29 & 1) == 0 ) { LABEL_30: v37 = *(_DWORD *)(v28 + 1932); v38 = *(float *)(v28 + 1936); v39 = *(_DWORD *)(v28 + 1940); LABEL_31: v26.n128_f32[0] = v27 * (float)(1.0 - GJBaseGameLayer::getEnterEasingValue(a1, v37, v39, v25, v38)); if ( (a10 & 1) != 0 ) { LABEL_32: v51 = v26; v40 = a8; v41 = *(int *)(v23 + 916); v42 = sub_1002E75A0(*(_QWORD *)(a1 + 3832), (unsigned int)(*(_DWORD *)(a3 + 200) + 1)); cocos2d::CCDictionary::objectForKey_1(v42, v41); v44 = v43; v45 = *(int *)(v23 + 916); v46 = sub_1002E75A0(*(_QWORD *)(a1 + 3832), (unsigned int)(*(_DWORD *)(a3 + 200) + 2)); cocos2d::CCDictionary::objectForKey_1(v46, v45); v48 = v47; v49 = sub_1002E757C(v44); if ( *(_BYTE *)(*(_QWORD *)(a3 + 168) + 2021LL) == 1 ) *(_BYTE *)(v23 + 1304) = 1; v53 = v53 + v49 - 1; GJBaseGameLayer::rotateAreaObjects(a1, v48, v44, a11, v51); *(_BYTE *)(v23 + 1304) = 0; a8 = v40; a7 = v50; v22 = a6; } else if ( v26.n128_f32[0] != 0.0 ) { *(float32x4_t *)(v23 + 676) = vaddq_f32( (float32x4_t)vdupq_lane_s32((int32x2_t)v26.n128_u64[0], 0), *(float32x4_t *)(v23 + 676)); if ( a11 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v23 + 1480LL))(v23, 0.0); if ( *(_DWORD *)(v23 + 920) != 7 ) { *(_WORD *)(v23 + 864) = 257; if ( (*(_BYTE *)(v23 + 744) & 1) == 0 ) sub_1002FEBA4(v23); } } LABEL_35: if ( v24 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1368LL))(a1, v23); ++v19; goto LABEL_38; } } } v37 = *(_DWORD *)(v28 + 1920); v38 = *(float *)(v28 + 1924); v39 = *(_DWORD *)(v28 + 1928); goto LABEL_31; } v26.n128_u32[0] = 0; if ( a10 ) goto LABEL_32; goto LABEL_35; } LABEL_38: ++v20; v21 += 4; } while ( (unsigned __int64)v20 <= v56 ); v16 = *(_DWORD *)(a1 + 13716); LODWORD(v18) = v53; LABEL_49: *(_DWORD *)(a1 + 13716) = v16 + v18; *(_DWORD *)(a1 + 13732) += v19 + v18; }
GD Web Decomp Icon

GD Web Decomp

Raw Source