// // CCScrollLayerExt::doConstraintContent from 0x3c8c0c to 0x3c8d0e (258 bytes) // // 3 xrefs: // > CCScrollLayerExt::constraintContent @ 0x3c8d1e // > MPLobbyLayer::updateComments @ 0x66a398 // > SFXBrowser::restoreListScroll @ 0x6c39fa // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:46:36 +0000 // int __fastcall CCScrollLayerExt::doConstraintContent(CCScrollLayerExt *this, int a2) { float v4; // r7 float v5; // s18 float MinY; // s17 float v7; // s16 int result; // r0 void (__fastcall ***v9)(_DWORD, CCScrollLayerExt *); // r0 const cocos2d::CCPoint *v10; // r2 cocos2d::CCEaseInOut *v11; // r0 float v12; // r2 cocos2d::CCSequence *v13; // r0 cocos2d::CCSequence *v14; // r8 cocos2d::CCFiniteTimeAction *v15; // r0 cocos2d::CCNode *v16; // r4 cocos2d::CCAction *v17; // r0 _DWORD v18[2]; // [sp+4h] [bp-Ch] BYREF v4 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 91) + 96))(*((_DWORD *)this + 91)); v5 = *(float *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 91) + 96))(*((_DWORD *)this + 91)) + 4); MinY = CCScrollLayerExt::getMinY(this); v7 = COERCE_FLOAT(CCScrollLayerExt::getMaxY(this)); if ( v5 <= v7 ) { if ( v5 >= MinY ) { result = *((_DWORD *)this + 90); if ( result ) return (*(int (__fastcall **)(int, CCScrollLayerExt *))(*(_DWORD *)result + 12))(result, this); return result; } v7 = MinY; } cocos2d::CCNode::stopAllActions(*((cocos2d::CCNode **)this + 91)); if ( a2 ) { (*(void (__fastcall **)(_DWORD, float, float))(**((_DWORD **)this + 91) + 100))( *((_DWORD *)this + 91), COERCE_FLOAT(LODWORD(v4)), COERCE_FLOAT(LODWORD(v7))); return CCScrollLayerExt::scrollingEnd((cocos2d::CCNode **)this); } else { v9 = *((void (__fastcall ****)(_DWORD, CCScrollLayerExt *))this + 90); if ( v9 ) (**v9)(v9, this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v4, v7); v11 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)0x3E99999A, COERCE_FLOAT(v18), v10); v13 = (cocos2d::CCSequence *)cocos2d::CCEaseInOut::create(v11, (cocos2d::CCActionInterval *)0x40000000, v12); v18[1] = 0; v18[0] = CCScrollLayerExt::scrollingEnd; v14 = v13; v15 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, CCScrollLayerExt::scrollingEnd, 0); v16 = *((cocos2d::CCNode **)this + 91); v17 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v14, v15, 0); return cocos2d::CCNode::runAction(v16, v17); } }