// // GJBaseGameLayer::transformAreaObjects from 0x1001f67a8 to 0x1001f6c60 (1208 bytes) // // 1 xrefs: // > GJBaseGameLayer::processAreaTransformGroupAction @ 0x1001f500c // // 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 // void __fastcall GJBaseGameLayer::transformAreaObjects( GJBaseGameLayer *a1, GameObject *a2, cocos2d::CCArray *a3, float a4, float a5, bool a6) { _BOOL4 v6; // w20 cocos2d::ccArray *data; // x9 __int64 num; // x8 cocos2d::CCObject **arr; // x25 unsigned __int64 v15; // x26 cocos2d::CCObject *v16; // x22 _BOOL4 v17; // w23 cocos2d::CCNode *m_areaTransformNode2; // x24 double v19; // d0 float v20; // s8 float v21; // s9 float v22; // s10 float v23; // s11 _BOOL4 v24; // w0 float a; // s11 float b; // s13 float c; // s10 float d; // s12 float v29; // s14 int32x2_t v30; // d1 int32x2_t v31; // d0 float32x2_t v32; // d0 float v33; // s2 float v34; // s3 float v35; // s0 float v36; // s1 cocos2d::CCAffineTransform v37; // [xsp+10h] [xbp-F0h] BYREF cocos2d::CCAffineTransform v38; // [xsp+28h] [xbp-D8h] BYREF float32x2_t v39; // [xsp+40h] [xbp-C0h] BYREF cocos2d::CCAffineTransform v40; // [xsp+48h] [xbp-B8h] BYREF float32x2_t v41[2]; // [xsp+60h] [xbp-A0h] BYREF v6 = a6; if ( GJBaseGameLayer::resetAreaObjectValues(a1, a2, 1) ) ((void (__fastcall *)(GJBaseGameLayer *, GameObject *))a1->updateObjectSection)(a1, a2); ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *))a2->getRealPosition)(v41, a2); ((void (__fastcall *)(cocos2d::CCNode *, float32x2_t *))a1->m_areaTransformNode->setPosition)( a1->m_areaTransformNode, v41); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_areaTransformNode->setScaleX)(a1->m_areaTransformNode, a4); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_areaTransformNode->setScaleY)(a1->m_areaTransformNode, a5); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_areaTransformNode->setSkewX)(a1->m_areaTransformNode, 0.0); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_areaTransformNode->setSkewY)(a1->m_areaTransformNode, 0.0); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_areaTransformNode->setRotation)(a1->m_areaTransformNode, 0.0); GJBaseGameLayer::prepareTransformParent(a1, 0); ((void (__fastcall *)(cocos2d::CCAffineTransform *__return_ptr))a1->m_areaTransformNode->nodeToWorldTransform)(&v40); sub_1000229B0(&v39); if ( a3 ) { data = a3->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; v15 = (unsigned __int64)&arr[num - 1]; while ( 1 ) { v16 = *arr; if ( !*arr ) goto LABEL_32; if ( (v16[23].m_nTag & 1) == 0 ) break; LABEL_31: if ( (unsigned __int64)++arr > v15 ) goto LABEL_32; } ((void (__fastcall *)(cocos2d::CCAffineTransform *__return_ptr, cocos2d::CCObject *))v16->__vftable[16].getTag)( &v38, *arr); sub_1000229D0(&v39, (double *)&v38.a); v17 = GJBaseGameLayer::resetAreaObjectValues(a1, (GameObject *)v16, 1); LOBYTE(v16[15].__vftable) = 1; ((void (__fastcall *)(cocos2d::CCAffineTransform *__return_ptr, cocos2d::CCObject *))v16->__vftable[16].getTag)( &v38, v16); sub_1000229D0(&v39, (double *)&v38.a); m_areaTransformNode2 = a1->m_areaTransformNode2; *(float32x2_t *)&v19 = sub_1000229F0(&v39, v41, (float32x2_t *)&v38); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCAffineTransform *, double))m_areaTransformNode2->setPosition)( m_areaTransformNode2, &v38, v19); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_areaTransformNode2->setScaleX)( a1->m_areaTransformNode2, *(float *)&v16[20].m_uIndexInArray); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_areaTransformNode2->setScaleY)( a1->m_areaTransformNode2, *(float *)&v16[20].m_uUnknown); v20 = *(float *)&v16[17].m_uReference + *((float *)&v16[12].__vftable + 1); v21 = *(float *)&v16[17].m_uAutoReleaseCount + *(float *)&v16[12].m_nLuaID; ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_areaTransformNode2->setRotationX)( a1->m_areaTransformNode2, v20); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_areaTransformNode2->setRotationY)( a1->m_areaTransformNode2, v21); ((void (__fastcall *)(cocos2d::CCAffineTransform *__return_ptr))a1->m_areaTransformNode2->nodeToParentTransform)(&v37); cocos2d::CCAffineTransformConcat(&v38, &v37, &v40); v22 = v38.tx - v39.f32[0]; v23 = v38.ty - v39.f32[1]; v24 = GJBaseGameLayer::resetAreaObjectValues(a1, (GameObject *)v16, 1); if ( v22 == 0.0 && v23 == 0.0 ) { if ( !v24 ) { LABEL_18: a = v38.a; b = v38.b; c = v38.c; d = v38.d; v29 = atan2f(v38.d, v38.c); *(float *)v31.i32 = atan2f(b, a); *(float *)v30.i32 = (float)-(float)((float)(v29 * 57.296) + -90.0) - v20; *(float *)v31.i32 = (float)(*(float *)v31.i32 * -57.296) - v21; if ( *(float *)v30.i32 != 0.0 || *(float *)v31.i32 != 0.0 ) { v32 = vadd_f32((float32x2_t)vdup_lane_s32(v31, 0), *(float32x2_t *)&v16[12].m_nLuaID); *(float32x2_t *)((char *)&v16[12].__vftable + 4) = vadd_f32( (float32x2_t)vdup_lane_s32(v30, 0), *(float32x2_t *)((char *)&v16[12].__vftable + 4)); *(float32x2_t *)&v16[12].m_nLuaID = v32; if ( v6 ) ((void (__fastcall *)(cocos2d::CCObject *, float))v16->__vftable[18].isEqual)(v16, 0.0); if ( v16[16].m_uAutoReleaseCount != 7 && (v16[13].m_nTag & 1) == 0 ) GameObject::calculateOrientedBox((GameObject *)v16); } v33 = *(float *)&v16[20].m_uIndexInArray; v34 = sqrtf((float)(b * b) + (float)(a * a)) - v33; v35 = *(float *)&v16[20].m_uUnknown; v36 = sqrtf((float)(d * d) + (float)(c * c)) - v35; if ( v34 != 0.0 || v36 != 0.0 ) { *(float *)&v16[12].m_uReference = v34 + *(float *)&v16[12].m_uReference; *(float *)&v16[12].m_eObjType = v34 + *(float *)&v16[12].m_eObjType; *(float *)&v16[20].m_uIndexInArray = v33 + v34; *(float *)&v16[12].m_uAutoReleaseCount = v36 + *(float *)&v16[12].m_uAutoReleaseCount; *(float *)&v16[12].m_uIndexInArray = v36 + *(float *)&v16[12].m_uIndexInArray; *(float *)&v16[20].m_uUnknown = v35 + v36; LOBYTE(v16[15].__vftable) = 1; LOBYTE(v16[15].m_uAutoReleaseCount) = 1; if ( v6 ) ((void (__fastcall *)(cocos2d::CCObject *, float))v16->__vftable[18].copyWithZone)(v16, 1.0); } if ( v17 ) ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCObject *))a1->updateObjectSection)(a1, v16); goto LABEL_31; } } else { if ( v23 != 0.0 ) { *(double *)&v16[17].__vftable = *(double *)&v16[17].__vftable + v23; *(float *)&v16[12].__vftable = v23 + *(float *)&v16[12].__vftable; } GameObject::dirtifyObjectPos((GameObject *)v16); GameObject::dirtifyObjectRect((GameObject *)v16); if ( v22 != 0.0 && (v16[12].m_uUnknown & 1) == 0 ) { *(float *)&v16[11].m_unknown5 = v22 + *(float *)&v16[11].m_unknown5; *(double *)&v16[16].m_uOrderOfArrival = *(double *)&v16[16].m_uOrderOfArrival + v22; } } ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCObject *))a1->updateObjectSection)(a1, v16); goto LABEL_18; } } LABEL_32: ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCArray *))a1->updateDisabledObjectsLastPos)(a1, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source