// // GJBaseGameLayer::processAreaRotateGroupAction from 0x1403329d0 to 0x140332d3e (878 bytes) // // 4 xrefs: // > GJBaseGameLayer::processAreaEffects @ 0x140331ac5 // > @ 0x1408b68cc // > @ 0x1408b6918 // > @ 0x14091f6f4 // // This function is hookable on this platform (idp: pc, 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:30:33 +0000 // __int64 __fastcall GJBaseGameLayer::processAreaRotateGroupAction( __int64 a1, cocos2d::CCArray *a2, __int64 a3, float *a4, int a5, int a6, int a7, int a8, int a9, char a10, char a11) { __m128 v11; // xmm0 float *v13; // r15 int v16; // edx unsigned int v17; // r8d unsigned int *v18; // r14 __int64 v19; // rax __int64 *v20; // r14 __int64 *v21; // rbx int v22; // r12d __int64 v23; // rdi int v24; // eax int v25; // eax char v26; // r13 __int64 v27; // rdx __m128 v28; // xmm6 float v29; // xmm7_4 __m128 v30; // xmm6 __int64 v31; // rbx cocos2d::CCDictionary *v32; // rax cocos2d::CCArray *v33; // r15 __int64 v34; // rbx cocos2d::CCDictionary *v35; // rax unsigned int v36; // ebx unsigned int v37; // eax int v38; // r9d bool v39; // zf __int64 v40; // rax __int64 result; // rax int v42; // [rsp+30h] [rbp-88h] __int64 *v43; // [rsp+38h] [rbp-80h] unsigned __int8 v44; // [rsp+C0h] [rbp+8h] BYREF unsigned int v45; // [rsp+C8h] [rbp+10h] float *v46; // [rsp+D8h] [rbp+20h] v46 = a4; v13 = a4; *(_DWORD *)(a1 + 14348) += cocos2d::CCArray::count(a2); v16 = 0; v45 = 0; v17 = 0; if ( a2 ) { v18 = *((unsigned int **)a2 + 7); v19 = *v18; if ( (_DWORD)v19 ) { v20 = *((__int64 **)v18 + 2); v21 = &v20[v19 - 1]; v43 = v21; if ( v20 <= v21 ) { v22 = a9 - 1; do { v23 = *v20; if ( !*v20 ) break; ++v22; if ( !*(_BYTE *)(v23 + 773) ) { v24 = *(_DWORD *)(v23 + 632); if ( v24 > a6 ) continue; if ( v24 < a5 ) continue; v25 = *(_DWORD *)(v23 + 636); if ( v25 > a8 || v25 < a7 ) continue; } v42 = v16 + 1; v26 = GJBaseGameLayer::resetAreaObjectValues(a1, v23, 1); v44 = 0; v11.m128_f32[0] = GJBaseGameLayer::getAreaObjectValue(a1, a3, (__int16 *)v23, v13, (bool *)&v44); if ( v11.m128_f32[0] < 1.0 ) { v28 = 0; v29 = (float)(*(float *)(a1 + 4LL * *(__int16 *)(v23 + 1012) + 4596) * *(float *)(a3 + 108)) + *(float *)(a3 + 104); if ( v29 != 0.0 ) { v11.m128_u64[0] = GJBaseGameLayer::getEasedAreaValue(a1, v27, a3, *(double *)v11.m128_u64, v44, v22).m128_u64[0]; v28 = (__m128)0x3F800000u; v28.m128_f32[0] = (float)(1.0 - v11.m128_f32[0]) * v29; } v30 = _mm_shuffle_ps(v28, v28, 0); if ( a10 ) { v31 = *(int *)(v23 + 924); v32 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 4184), *(_DWORD *)(a3 + 192) + 1); v33 = cocos2d::CCDictionary::objectForKey(v32, v31); v34 = *(int *)(v23 + 924); v35 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 4184), *(_DWORD *)(a3 + 192) + 2); v36 = (unsigned int)cocos2d::CCDictionary::objectForKey(v35, v34); v37 = cocos2d::CCArray::count(v33); v45 = v37 + v45 - 1; if ( *(_BYTE *)(*(_QWORD *)(a3 + 160) + 2037LL) ) *(_BYTE *)(v23 + 1312) = 1; GJBaseGameLayer::rotateAreaObjects(a1, v36, (_DWORD)v33, v38, a11); v21 = v43; v13 = v46; *(_BYTE *)(v23 + 1312) = 0; } else if ( v30.m128_f32[0] != 0.0 ) { v39 = a11 == 0; v11 = _mm_add_ps(*(__m128 *)(v23 + 680), v30); *(__m128 *)(v23 + 680) = v11; if ( !v39 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v23 + 1328LL))(v23); if ( *(_DWORD *)(v23 + 928) != 7 ) { v39 = *(_BYTE *)(v23 + 744) == 0; *(_WORD *)(v23 + 872) = 257; if ( v39 ) { v40 = *(_QWORD *)v23; *(_BYTE *)(v23 + 744) = 1; (*(void (__fastcall **)(__int64))(v40 + 1416))(v23); (*(void (__fastcall **)(__int64))(*(_QWORD *)v23 + 1184LL))(v23); } } } } if ( v26 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1216LL))(a1, v23); v16 = v42; ++v20; } while ( v20 <= v21 ); v17 = v45; } } } *(_DWORD *)(a1 + 14348) += v17; result = v17 + v16; *(_DWORD *)(a1 + 14364) += result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source