// // GJBaseGameLayer::processAreaRotateGroupAction from 0x1001f515c to 0x1001f54d4 (888 bytes) // // 1 xrefs: // > GJBaseGameLayer::processAreaEffects @ 0x1001f498c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! void __fastcall GJBaseGameLayer::processAreaRotateGroupAction( GJBaseGameLayer *a1, cocos2d::CCArray *a2, EnterEffectInstance *a3, cocos2d::CCPoint a4, int a5, int a6, int a7, int a8, int a9, bool a10, bool a11) { __int64 v11; // x26 int m_areaRotatedCount; // w8 cocos2d::ccArray *data; // x10 __int64 num; // x9 int v19; // w21 GameObject **arr; // x23 __int64 v21; // x22 int v22; // w20 GameObject *v23; // x27 _BOOL4 v24; // w28 float AreaObjectValue; // s0 float v26; // s11 EnterEffectObject *m_gameObject; // x8 _BOOL4 v28; // w9 std::__vector_base::pointer begin; // x10 int v30; // w12 int m_easeIndex; // w11 int m_outerSectionIndex; // w8 bool v33; // cc int m_middleSectionIndex; // w8 bool v35; // cc int32x2_t v36; // d1 int m_easingOutType; // w1 float m_easingOutRate; // s1 int m_easingOutBuffer; // w2 __int64 v40; // x24 intptr_t m_uniqueID; // x20 cocos2d::CCDictionary *v42; // x0 cocos2d::CCArray *v43; // x26 intptr_t v44; // x20 cocos2d::CCDictionary *v45; // x0 GameObject *v46; // x20 int v47; // w0 int v48; // [xsp+8h] [xbp-B8h] float v49; // [xsp+10h] [xbp-B0h] int v51; // [xsp+30h] [xbp-90h] cocos2d::CCPoint *v53; // [xsp+38h] [xbp-88h] unsigned __int64 v54; // [xsp+40h] [xbp-80h] bool v55; // [xsp+4Fh] [xbp-71h] BYREF char v56; // [xsp+D4h] [xbp+14h] bool v57; // [xsp+D5h] [xbp+15h] v11 = *(_QWORD *)&a9; v53 = *(cocos2d::CCPoint **)&a5; m_areaRotatedCount = a1->m_areaRotatedCount + sub_10024A36C(a2); a1->m_areaRotatedCount = m_areaRotatedCount; if ( !a2 ) { LODWORD(num) = 0; goto LABEL_48; } data = a2->data; num = data->num; if ( !(_DWORD)num ) { LABEL_48: v19 = 0; goto LABEL_49; } v19 = 0; v51 = 0; arr = (GameObject **)data->arr; v54 = (unsigned __int64)&arr[num - 1]; v21 = a10; v22 = a7; v48 = a8; do { v23 = *arr; if ( !*arr ) break; if ( v23->m_isActivated || ((m_outerSectionIndex = v23->m_outerSectionIndex, m_outerSectionIndex <= v22) ? (v33 = m_outerSectionIndex < a6) : (v33 = 1), !v33 && ((m_middleSectionIndex = v23->m_middleSectionIndex, m_middleSectionIndex <= (int)v11) ? (v35 = m_middleSectionIndex < a8) : (v35 = 1), !v35)) ) { v24 = GJBaseGameLayer::resetAreaObjectValues(a1, *arr, 1); v55 = 0; AreaObjectValue = GJBaseGameLayer::getAreaObjectValue(a1, a3, v23, v53, &v55); if ( AreaObjectValue >= 1.0 ) goto LABEL_35; v26 = a3->m_rotation + (float)(a3->m_rotationVariance * a1->m_varianceValues.__elems_[v23->m_varianceIndex + 18]); if ( v26 != 0.0 ) { m_gameObject = a3->m_gameObject; if ( m_gameObject->m_easeOutEnabled ) { v28 = v55; if ( AreaObjectValue <= 0.01 || AreaObjectValue >= 0.99 ) { if ( !v55 ) goto LABEL_30; } else { begin = a3->m_easeIndices.__begin_; v30 = begin[v21]; m_easeIndex = a3->m_easeIndex; if ( v30 == m_easeIndex - 2 ) { begin[v21] = m_easeIndex; goto LABEL_30; } if ( v30 == m_easeIndex - 1 ) v28 = 1; begin[v21] = m_easeIndex + v28; if ( !v28 ) { LABEL_30: m_easingOutType = m_gameObject->m_easingOutType; m_easingOutRate = m_gameObject->m_easingOutRate; m_easingOutBuffer = m_gameObject->m_easingOutBuffer; LABEL_31: *(float *)v36.i32 = v26 * (float)(1.0 - GJBaseGameLayer::getEnterEasingValue( a1, AreaObjectValue, m_easingOutType, m_easingOutRate, m_easingOutBuffer)); if ( (v56 & 1) != 0 ) { LABEL_32: v49 = *(float *)v36.i32; v40 = v11; m_uniqueID = v23->m_uniqueID; v42 = (cocos2d::CCDictionary *)sub_10024A388( a1->m_targetGroupsArray, (unsigned int)(a3->m_targetGroupIndex + 1)); v43 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v42, m_uniqueID); v44 = v23->m_uniqueID; v45 = (cocos2d::CCDictionary *)sub_10024A388( a1->m_targetGroupsArray, (unsigned int)(a3->m_targetGroupIndex + 2)); v46 = (GameObject *)cocos2d::CCDictionary::objectForKey(v45, v44); v47 = sub_10024A36C(v43); if ( a3->m_gameObject->m_dontEditAreaParent ) v23->m_unk508 = 1; v51 = v51 + v47 - 1; GJBaseGameLayer::rotateAreaObjects(a1, v46, v43, v49, v57); v23->m_unk508 = 0; v11 = v40; a8 = v48; v22 = a7; } else if ( *(float *)v36.i32 != 0.0 ) { *(float32x4_t *)&v23->m_rotationXOffset = vaddq_f32( (float32x4_t)vdupq_lane_s32(v36, 0), *(float32x4_t *)&v23->m_rotationXOffset); if ( v57 ) ((void (__fastcall *)(GameObject *, float))v23->setRRotation)(v23, 0.0); if ( v23->m_objectType != Decoration ) { *(_WORD *)&v23->m_isObjectRectDirty = 257; if ( !v23->m_shouldUseOuterOb ) GameObject::calculateOrientedBox(v23); } } LABEL_35: if ( v24 ) ((void (__fastcall *)(GJBaseGameLayer *, GameObject *))a1->updateObjectSection)(a1, v23); ++v19; goto LABEL_38; } } } m_easingOutType = m_gameObject->m_easingInType; m_easingOutRate = m_gameObject->m_easingInRate; m_easingOutBuffer = m_gameObject->m_easingInBuffer; goto LABEL_31; } v36.i32[0] = 0; if ( v56 ) goto LABEL_32; goto LABEL_35; } LABEL_38: ++arr; ++v21; } while ( (unsigned __int64)arr <= v54 ); m_areaRotatedCount = a1->m_areaRotatedCount; LODWORD(num) = v51; LABEL_49: a1->m_areaRotatedCount = m_areaRotatedCount + num; a1->m_areaRotatedCountTotal += v19 + num; }
GD Web Decomp Icon

GD Web Decomp

Raw Source