// // GJBaseGameLayer::rotateObjects from 0x1002950a4 to 0x1002953d0 (812 bytes) // // 1 xrefs: // > GJBaseGameLayer::processAdvancedFollowAction @ 0x1002968f4 // // 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:05 +0000 // __int64 __fastcall GJBaseGameLayer::rotateObjects( __int64 result, __int64 a2, float32x2_t *a3, float32x2_t *a4, char a5, float a6) { __int64 v11; // x19 float v12; // s8 float v13; // s10 double *v14; // x0 unsigned int *v15; // x9 __int64 v16; // x8 __int64 *v17; // x25 unsigned __int64 v18; // x26 __int64 v19; // x24 float64x2_t v20; // q0 int v21; // w8 _QWORD *v22; // x0 float32x2_t v23; // [xsp+8h] [xbp-B8h] BYREF float32x2_t v24; // [xsp+10h] [xbp-B0h] BYREF float32x2_t v25[3]; // [xsp+18h] [xbp-A8h] BYREF _QWORD v26[3]; // [xsp+30h] [xbp-90h] BYREF __int64 v27; // [xsp+48h] [xbp-78h] BYREF if ( a2 ) { v11 = result; v12 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(result + 3920) + 136LL))(*(_QWORD *)(result + 3920)); v13 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v11 + 3920) + 152LL))(*(_QWORD *)(v11 + 3920)); v14 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v11 + 3920) + 192LL))(*(_QWORD *)(v11 + 3920)); sub_1000262F4(&v27, v14); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 3920) + 160LL))(*(_QWORD *)(v11 + 3920), 1.0); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(v11 + 3920) + 184LL))( *(_QWORD *)(v11 + 3920), &qword_1009F5820); (*(void (__fastcall **)(_QWORD, float32x2_t *))(**(_QWORD **)(v11 + 2040) + 184LL))(*(_QWORD *)(v11 + 2040), a3); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 2040) + 128LL))(*(_QWORD *)(v11 + 2040), 1.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 2040) + 144LL))(*(_QWORD *)(v11 + 2040), 1.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 2056) + 128LL))(*(_QWORD *)(v11 + 2056), 1.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 2056) + 144LL))(*(_QWORD *)(v11 + 2056), 1.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 2040) + 264LL))(*(_QWORD *)(v11 + 2040), 0.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 2040) + 280LL))(*(_QWORD *)(v11 + 2040), 0.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 2048) + 264LL))(*(_QWORD *)(v11 + 2048), 0.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 2048) + 280LL))(*(_QWORD *)(v11 + 2048), 0.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 2040) + 360LL))(*(_QWORD *)(v11 + 2040), a6); GJBaseGameLayer::prepareTransformParent(v11, 0); (*(void (__fastcall **)(_QWORD *__return_ptr))(**(_QWORD **)(v11 + 2040) + 824LL))(v26); (*(void (__fastcall **)(float32x2_t *__return_ptr))(**(_QWORD **)(v11 + 2048) + 824LL))(v25); (*(void (__fastcall **)(float32x2_t *__return_ptr))(**(_QWORD **)(v11 + 2056) + 824LL))(v25); sub_1000262EC(v25); v15 = *(unsigned int **)(a2 + 56); v16 = *v15; if ( (_DWORD)v16 ) { v17 = *((__int64 **)v15 + 2); v18 = (unsigned __int64)&v17[v16 - 1]; do { v19 = *v17; if ( !*v17 ) break; *(_BYTE *)(v19 + 1291) = a5; v20 = *(float64x2_t *)(v19 + 944); v25[0] = vcvt_f32_f64(vsubq_f64(v20, vcvtq_f64_f32(*(float32x2_t *)(v19 + 668)))); if ( (*(_BYTE *)(v19 + 1290) & 1) == 0 ) { v21 = *(_DWORD *)(v11 + 944); if ( *(_DWORD *)(v19 + 1236) != v21 ) { *(float32x2_t *)(v19 + 1224) = vcvt_f32_f64(v20); *(_DWORD *)(v19 + 1236) = v21; sub_1002F7D6C(v19); } } *(_BYTE *)(v19 + 840) = 1; *(_BYTE *)(v19 + 842) = 1; sub_10002632C(v25, a3, &v23); v22 = cocos2d::__CCPointApplyAffineTransform(&v24, &v23, v26); *(float64x2_t *)(v19 + 944) = vaddq_f64( *(float64x2_t *)(v19 + 944), vcvtq_f64_f32(vsub_f32(vadd_f32(v24, *a4), v25[0]))); GJBaseGameLayer::rotateObject(a6, (__int64)v22, v19); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 1368LL))(v11, v19); ++v17; } while ( (unsigned __int64)v17 <= v18 ); } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 1376LL))(v11, a2); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 3920) + 128LL))(*(_QWORD *)(v11 + 3920), v12); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v11 + 3920) + 144LL))(*(_QWORD *)(v11 + 3920), v13); return (*(__int64 (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(v11 + 3920) + 184LL))( *(_QWORD *)(v11 + 3920), &v27); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source