// // CCContentLayer::setPosition from 0x140042fe0 to 0x140043120 (320 bytes) // // 4 xrefs: // > @ 0x14052d548 // > @ 0x1406625b4 // > @ 0x1406625f8 // > @ 0x1406c44c4 // // 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 CCContentLayer::setPosition(CCContentLayer *a1, const cocos2d::CCPoint *a2) { cocos2d::CCArray *v3; // rax cocos2d::CCArray *v4; // r14 unsigned int v5; // ebp struct cocos2d::CCObject *v6; // rax struct cocos2d::CCObject *v7; // rsi float v8; // xmm7_4 float v9; // xmm6_4 __int64 v10; // rbx __int64 v11; // rdi __int64 v12; // rdx float v13; // xmm0_4 cocos2d::CCNode::setPosition(a1, a2); v3 = a1->getChildren(a1); v4 = v3; if ( v3 ) { v5 = 0; if ( cocos2d::CCArray::count(v3) ) { do { v6 = cocos2d::CCArray::objectAtIndex(v4, v5); v7 = v6; if ( *(_QWORD *)&v6[7].m_uAutoReleaseCount ) { v8 = *(float *)(((__int64 (__fastcall *)(struct cocos2d::CCObject *))v6->__vftable[4].isEqual)(v6) + 4); v9 = *(float *)((*(__int64 (__fastcall **)(_QWORD *))(**(_QWORD **)&v7[7].m_uAutoReleaseCount + 304LL))(*(_QWORD **)&v7[7].m_uAutoReleaseCount) + 4); v10 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v7->__vftable[6].getTag)(v7); v11 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v7->__vftable[2].getTag)(v7); v13 = *(float *)(v11 + 4) + *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 200LL))(v10) + 4); if ( v13 > v9 || (float)-v8 > v13 ) v12 = 0; else LOBYTE(v12) = 1; ((void (__fastcall *)(struct cocos2d::CCObject *, __int64))v7->__vftable[4].update)(v7, v12); } ++v5; } while ( v5 < cocos2d::CCArray::count(v4) ); } } }