// // CCContentLayer::setPosition from 0x140046c80 to 0x140046dcd (333 bytes) // // 4 xrefs: // > @ 0x140708140 // > @ 0x140885654 // > @ 0x140885698 // > @ 0x14090f9d4 // // 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:25:31 +0000 // int __fastcall CCContentLayer::setPosition(cocos2d::CCNode *a1, const struct 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; // rdi __int64 v11; // rbx __int64 v12; // rdx float v13; // xmm0_4 cocos2d::CCNode::setPosition(a1, a2); v3 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 480LL))(a1); v4 = v3; if ( v3 ) { v5 = 0; for ( LODWORD(v3) = cocos2d::CCArray::count(v3); v5 < (unsigned int)v3; LODWORD(v3) = cocos2d::CCArray::count(v4) ) { v6 = cocos2d::CCArray::objectAtIndex(v4, v5); v7 = v6; if ( *((_QWORD *)v6 + 52) ) { v8 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v6 + 320LL))(v6) + 4); v9 = *(float *)((*(__int64 (__fastcall **)(_QWORD *))(**((_QWORD **)v7 + 52) + 320LL))(*((_QWORD **)v7 + 52)) + 4); v10 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 504LL))(v7); v11 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 200LL))(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))(*(_QWORD *)v7 + 336LL))(v7, v12); } ++v5; } } return (int)v3; }