{"type": "func", "start": 5741868, "end": 5742256, "name": "CCScrollLayerExt::doConstraintContent", "pseudocode": "// \n// CCScrollLayerExt::doConstraintContent from 0x579d2c to 0x579eb0 (388 bytes)\n// \n// 3 xrefs:\n// > CCScrollLayerExt::constraintContent @ 0x579eb8\n// > MPLobbyLayer::updateComments @ 0x9c9b6c\n// > <???> @ 0x6e280\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CCScrollLayerExt::doConstraintContent(CCScrollLayerExt *a1, bool a2)\n{\n  _BOOL4 v2; // w21\n  float x; // s11\n  float y; // s9\n  float MinY; // s10\n  float MaxY; // s8\n  CCScrollLayerExtDelegate *m_delegate; // x0\n  CCScrollLayerExtDelegate *v9; // x0\n  cocos2d::CCMoveTo *v10; // x0\n  cocos2d::CCEaseInOut *v11; // x21\n  cocos2d::CCFiniteTimeAction *v12; // x0\n  CCContentLayer *m_contentLayer; // x19\n  cocos2d::CCAction *v14; // x0\n  cocos2d::CCPoint v15; // [xsp+50h] [xbp+50h] BYREF\n\n  v2 = a2;\n  x = a1->m_contentLayer->getPosition(a1->m_contentLayer)->x;\n  y = a1->m_contentLayer->getPosition(a1->m_contentLayer)->y;\n  MinY = CCScrollLayerExt::getMinY(a1);\n  MaxY = CCScrollLayerExt::getMaxY(a1);\n  if ( y <= MaxY )\n  {\n    if ( y >= MinY )\n    {\n      m_delegate = a1->m_delegate;\n      if ( m_delegate )\n        m_delegate->scrollViewDidEndMoving(m_delegate, a1);\n      return;\n    }\n    MaxY = MinY;\n  }\n  cocos2d::CCNode::stopAllActions(a1->m_contentLayer);\n  if ( v2 )\n  {\n    a1->m_contentLayer->setPosition_0(a1->m_contentLayer, x, MaxY);\n    CCScrollLayerExt::scrollingEnd(a1);\n  }\n  else\n  {\n    v9 = a1->m_delegate;\n    if ( v9 )\n      v9->scrllViewWillBeginDecelerating(v9, a1);\n    cocos2d::CCPoint::CCPoint(&v15, x, MaxY);\n    v10 = cocos2d::CCMoveTo::create(0.3, &v15);\n    v11 = cocos2d::CCEaseInOut::create(v10, 2.0);\n    v12 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, CCScrollLayerExt::scrollingEnd, 0);\n    m_contentLayer = a1->m_contentLayer;\n    v14 = (cocos2d::CCAction *)cocos2d::CCSequence::create((cocos2d::CCSequence *)v11, v12, 0);\n    cocos2d::CCNode::runAction(m_contentLayer, v14);\n  }\n}", "assembly": "; \n; CCScrollLayerExt::doConstraintContent from 0x579d2c to 0x579eb0 (388 bytes)\n; \n; 3 xrefs:\n; > CCScrollLayerExt::constraintContent @ 0x579eb8\n; > MPLobbyLayer::updateComments @ 0x9c9b6c\n; > <???> @ 0x6e280\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x579d2c\nMOV             X29, SP                                                ; +0x4, 0x579d30\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x579d34\nSTP             D8, D9, [SP,#0x60+var_38]                              ; +0xc, 0x579d38\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x10, 0x579d3c\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0x579d40\nUXTB            W21, W1                                                ; +0x18, 0x579d44\nLDR             X1, [X0,#0x1E0]                                        ; +0x1c, 0x579d48\nMOV             X19, X0                                                ; +0x20, 0x579d4c\nSTP             D10, D11, [SP,#0x60+var_28]                            ; +0x24, 0x579d50\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x579d54\nMOV             X0, X1                                                 ; +0x2c, 0x579d58\nLDR             X1, [X1]                                               ; +0x30, 0x579d5c\nLDR             X2, [X2]                                               ; +0x34, 0x579d60\nLDR             X1, [X1,#0xC0]                                         ; +0x38, 0x579d64\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x3c, 0x579d68\nBLR             X1                                                     ; +0x40, 0x579d6c\nLDR             X1, [X19,#0x1E0]                                       ; +0x44, 0x579d70\nLDR             S11, [X0]                                              ; +0x48, 0x579d74\nMOV             X0, X1                                                 ; +0x4c, 0x579d78\nLDR             X1, [X1]                                               ; +0x50, 0x579d7c\nLDR             X1, [X1,#0xC0]                                         ; +0x54, 0x579d80\nBLR             X1                                                     ; +0x58, 0x579d84\nLDR             S9, [X0,#4]                                            ; +0x5c, 0x579d88\nMOV             X0, X19; this                                          ; +0x60, 0x579d8c\nBL              _ZN16CCScrollLayerExt7getMinYEv; CCScrollLayerExt::getMinY(void) ; +0x64, 0x579d90\nFMOV            S10, S0                                                ; +0x68, 0x579d94\nMOV             X0, X19; this                                          ; +0x6c, 0x579d98\nBL              _ZN16CCScrollLayerExt7getMaxYEv; CCScrollLayerExt::getMaxY(void) ; +0x70, 0x579d9c\nFCMPE           S9, S0                                                 ; +0x74, 0x579da0\nFMOV            S8, S0                                                 ; +0x78, 0x579da4\nB.GT            loc_579DFC                                             ; +0x7c, 0x579da8\nFCMPE           S9, S10                                                ; +0x80, 0x579dac\nB.MI            loc_579DF8                                             ; +0x84, 0x579db0\nLDR             X0, [X19,#0x1D8]                                       ; +0x88, 0x579db4\nCBZ             X0, loc_579DCC                                         ; +0x8c, 0x579db8\nLDR             X2, [X0]                                               ; +0x90, 0x579dbc\nMOV             X1, X19                                                ; +0x94, 0x579dc0\nLDR             X2, [X2,#0x18]                                         ; +0x98, 0x579dc4\nBLR             X2                                                     ; +0x9c, 0x579dc8\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xa0, 0x579dcc\nLDR             X1, [X29,#0x60+var_8]                                  ; +0xa4, 0x579dd0\nLDR             X0, [X20]                                              ; +0xa8, 0x579dd4\nCMP             X1, X0                                                 ; +0xac, 0x579dd8\nB.NE            loc_579EAC                                             ; +0xb0, 0x579ddc\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xb4, 0x579de0\nLDP             D8, D9, [SP,#0x60+var_38]                              ; +0xb8, 0x579de4\nLDR             X21, [SP,#0x60+var_40]                                 ; +0xbc, 0x579de8\nLDP             D10, D11, [SP,#0x60+var_28]                            ; +0xc0, 0x579dec\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xc4, 0x579df0\nRET                                                                    ; +0xc8, 0x579df4\nFMOV            S8, S10                                                ; +0xcc, 0x579df8\nLDR             X0, [X19,#0x1E0]; this                                 ; +0xd0, 0x579dfc\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0xd4, 0x579e00\nCBNZ            W21, loc_579E84                                        ; +0xd8, 0x579e04\nLDR             X0, [X19,#0x1D8]                                       ; +0xdc, 0x579e08\nCBZ             X0, loc_579E20                                         ; +0xe0, 0x579e0c\nLDR             X2, [X0]                                               ; +0xe4, 0x579e10\nMOV             X1, X19                                                ; +0xe8, 0x579e14\nLDR             X2, [X2]                                               ; +0xec, 0x579e18\nBLR             X2                                                     ; +0xf0, 0x579e1c\nFMOV            S0, S11; float                                         ; +0xf4, 0x579e20\nADD             X21, X29, #0x60+var_10                                 ; +0xf8, 0x579e24\nFMOV            S1, S8; float                                          ; +0xfc, 0x579e28\nMOV             X0, X21; this                                          ; +0x100, 0x579e2c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x104, 0x579e30\nLDR             S0, flt_579EB0; float                                  ; +0x108, 0x579e34\nMOV             X0, X21; this                                          ; +0x10c, 0x579e38\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x110, 0x579e3c\nFMOV            S0, #2.0; float                                        ; +0x114, 0x579e40\nBL              _ZN7cocos2d11CCEaseInOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseInOut::create(cocos2d::CCActionInterval *,float) ; +0x118, 0x579e44\nMOV             X21, X0                                                ; +0x11c, 0x579e48\nADRP            X1, #_ZN16CCScrollLayerExt12scrollingEndEv_ptr@PAGE    ; +0x120, 0x579e4c\nMOV             X0, X19                                                ; +0x124, 0x579e50\nMOV             X2, #0                                                 ; +0x128, 0x579e54\nLDR             X1, [X1,#_ZN16CCScrollLayerExt12scrollingEndEv_ptr@PAGEOFF]; CCScrollLayerExt::scrollingEnd(void) ... ; +0x12c, 0x579e58\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x130, 0x579e5c\nMOV             X1, X0; cocos2d::CCFiniteTimeAction *                  ; +0x134, 0x579e60\nMOV             X2, #0                                                 ; +0x138, 0x579e64\nMOV             X0, X21; this                                          ; +0x13c, 0x579e68\nLDR             X19, [X19,#0x1E0]                                      ; +0x140, 0x579e6c\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x144, 0x579e70\nMOV             X1, X0; cocos2d::CCAction *                            ; +0x148, 0x579e74\nMOV             X0, X19; this                                          ; +0x14c, 0x579e78\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x150, 0x579e7c\nB               loc_579DCC                                             ; +0x154, 0x579e80\nLDR             X1, [X19,#0x1E0]                                       ; +0x158, 0x579e84\nFMOV            S0, S11                                                ; +0x15c, 0x579e88\nMOV             X0, X1                                                 ; +0x160, 0x579e8c\nLDR             X1, [X1]                                               ; +0x164, 0x579e90\nFMOV            S1, S8                                                 ; +0x168, 0x579e94\nLDR             X1, [X1,#0xC8]                                         ; +0x16c, 0x579e98\nBLR             X1                                                     ; +0x170, 0x579e9c\nMOV             X0, X19; this                                          ; +0x174, 0x579ea0\nBL              _ZN16CCScrollLayerExt12scrollingEndEv; CCScrollLayerExt::scrollingEnd(void) ; +0x178, 0x579ea4\nB               loc_579DCC                                             ; +0x17c, 0x579ea8\nBL              .__stack_chk_fail                                      ; +0x180, 0x579eac", "xrefs": ["CCScrollLayerExt::constraintContent @ 0x579eb8", "MPLobbyLayer::updateComments @ 0x9c9b6c", "<???> @ 0x6e280"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}