// // GJBaseGameLayer::rotateAreaObjects from 0x100292f68 to 0x100293300 (920 bytes) // // 1 xrefs: // > GJBaseGameLayer::processAreaRotateGroupAction @ 0x100291668 // // 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:04 +0000 // __int64 __fastcall GJBaseGameLayer::rotateAreaObjects(__int64 a1, __int64 a2, __int64 a3, int a4, __n128 a5) { unsigned int *v9; // x9 __int64 v10; // x8 __int64 *v11; // x25 unsigned __int64 v12; // x26 __int64 v13; // x22 _BOOL4 v14; // w23 __int64 v15; // x24 double v16; // d0 float v17; // s8 float v18; // s9 _BOOL4 v19; // w0 __n128 v20; // q0 float32x4_t v22; // [xsp+0h] [xbp-E0h] _QWORD v24[3]; // [xsp+28h] [xbp-B8h] BYREF float32x2_t v25[2]; // [xsp+40h] [xbp-A0h] BYREF float v26; // [xsp+50h] [xbp-90h] float v27; // [xsp+54h] [xbp-8Ch] float32x2_t v28; // [xsp+58h] [xbp-88h] BYREF _QWORD v29[3]; // [xsp+60h] [xbp-80h] BYREF float32x2_t v30; // [xsp+78h] [xbp-68h] BYREF if ( GJBaseGameLayer::resetAreaObjectValues((_DWORD *)a1, a2, 1) ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1368LL))(a1, a2); (*(void (__fastcall **)(float32x2_t *__return_ptr, __int64))(*(_QWORD *)a2 + 1360LL))(&v30, a2); (*(void (__fastcall **)(_QWORD, float32x2_t *))(**(_QWORD **)(a1 + 2040) + 184LL))(*(_QWORD *)(a1 + 2040), &v30); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2040) + 128LL))(*(_QWORD *)(a1 + 2040), 1.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2040) + 144LL))(*(_QWORD *)(a1 + 2040), 1.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2040) + 264LL))(*(_QWORD *)(a1 + 2040), 0.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2040) + 280LL))(*(_QWORD *)(a1 + 2040), 0.0); (*(void (__fastcall **)(_QWORD, __n128))(**(_QWORD **)(a1 + 2040) + 360LL))(*(_QWORD *)(a1 + 2040), a5); GJBaseGameLayer::prepareTransformParent(a1, 0); (*(void (__fastcall **)(_QWORD *__return_ptr))(**(_QWORD **)(a1 + 2040) + 824LL))(v29); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2072) + 128LL))(*(_QWORD *)(a1 + 2072), 1.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2072) + 144LL))(*(_QWORD *)(a1 + 2072), 1.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2072) + 264LL))(*(_QWORD *)(a1 + 2072), 0.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2072) + 280LL))(*(_QWORD *)(a1 + 2072), 0.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2072) + 360LL))(*(_QWORD *)(a1 + 2072), 0.0); sub_1000262EC(&v28); if ( a3 ) { v9 = *(unsigned int **)(a3 + 56); v10 = *v9; if ( (_DWORD)v10 ) { v11 = *((__int64 **)v9 + 2); v12 = (unsigned __int64)&v11[v10 - 1]; v22 = (float32x4_t)vdupq_lane_s32((int32x2_t)a5.n128_u64[0], 0); while ( 1 ) { v13 = *v11; if ( !*v11 ) return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1376LL))(a1, a3); if ( (*(_BYTE *)(v13 + 1304) & 1) == 0 ) break; LABEL_27: if ( (unsigned __int64)++v11 > v12 ) return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1376LL))(a1, a3); } v14 = GJBaseGameLayer::resetAreaObjectValues((_DWORD *)a1, *v11, 1); *(_BYTE *)(v13 + 840) = 1; (*(void (__fastcall **)(float32x2_t *__return_ptr, __int64))(*(_QWORD *)v13 + 1360LL))(v25, v13); sub_10002630C(&v28, (double *)v25); v15 = *(_QWORD *)(a1 + 2072); *(float32x2_t *)&v16 = sub_10002632C(&v28, &v30, v25); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v15 + 184LL))(v15, v25, v16); (*(void (__fastcall **)(_QWORD *__return_ptr))(**(_QWORD **)(a1 + 2072) + 800LL))(v24); cocos2d::CCAffineTransformConcat(v25, v24, v29); v17 = v26 - v28.f32[0]; v18 = v27 - v28.f32[1]; v19 = GJBaseGameLayer::resetAreaObjectValues((_DWORD *)a1, v13, 1); if ( v17 == 0.0 && v18 == 0.0 ) { if ( !v19 ) { LABEL_18: v20 = a5; if ( a5.n128_f32[0] != 0.0 && *(_BYTE *)(v13 + 868) == 1 ) { v20 = (__n128)vaddq_f32(*(float32x4_t *)(v13 + 676), v22); *(__n128 *)(v13 + 676) = v20; if ( a4 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 1480LL))(v13, 0.0); if ( *(_DWORD *)(v13 + 920) != 7 && (*(_BYTE *)(v13 + 744) & 1) == 0 ) sub_1002FEBA4(v13); } if ( v14 ) (*(void (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)a1 + 1368LL))(a1, v13, v20); goto LABEL_27; } } else { if ( v18 != 0.0 ) { *(double *)(v13 + 952) = *(double *)(v13 + 952) + v18; *(float *)(v13 + 672) = v18 + *(float *)(v13 + 672); } sub_1002F7D78(v13); sub_1002F7D6C(v13); if ( v17 != 0.0 && (*(_BYTE *)(v13 + 708) & 1) == 0 ) { *(float *)(v13 + 668) = v17 + *(float *)(v13 + 668); *(double *)(v13 + 944) = *(double *)(v13 + 944) + v17; } } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1368LL))(a1, v13); goto LABEL_18; } } return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1376LL))(a1, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source