{"type": "func", "start": 3049416, "end": 3049674, "name": "CCScrollLayerExt::doConstraintContent", "pseudocode": "// \n// CCScrollLayerExt::doConstraintContent from 0x2e87c8 to 0x2e88ca (258 bytes)\n// \n// 2 xrefs:\n// > CCScrollLayerExt::constraintContent @ 0x2e88da\n// > MPLobbyLayer::updateComments @ 0x535380\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 v3; // r5\n  float x; // r7\n  float y; // s18\n  float MinY; // s17\n  float MaxY; // s16\n  CCScrollLayerExtDelegate *m_delegate; // r0\n  CCScrollLayerExtDelegate *v9; // r0\n  cocos2d::CCMoveTo *v10; // r0\n  cocos2d::CCEaseInOut *v11; // r0\n  cocos2d::CCSequence *v12; // r8\n  cocos2d::CCFiniteTimeAction *v13; // r0\n  CCContentLayer *m_contentLayer; // r4\n  cocos2d::CCAction *v15; // r0\n  cocos2d::CCPoint v16; // [sp+4h] [bp-Ch] BYREF\n\n  v3 = 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 ( v3 )\n  {\n    ((void (__fastcall *)(CCContentLayer *, _DWORD, _DWORD))a1->m_contentLayer->setPosition_0)(\n      a1->m_contentLayer,\n      LODWORD(x),\n      LODWORD(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(&v16, x, MaxY);\n    v10 = cocos2d::CCMoveTo::create(0.3, &v16);\n    v11 = cocos2d::CCEaseInOut::create(v10, 2.0);\n    v16.y = 0.0;\n    LODWORD(v16.x) = CCScrollLayerExt::scrollingEnd;\n    v12 = (cocos2d::CCSequence *)v11;\n    v13 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, CCScrollLayerExt::scrollingEnd, 0);\n    m_contentLayer = a1->m_contentLayer;\n    v15 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v12, v13, 0);\n    cocos2d::CCNode::runAction(m_contentLayer, v15);\n  }\n}", "assembly": "; \n; CCScrollLayerExt::doConstraintContent from 0x2e87c8 to 0x2e88ca (258 bytes)\n; \n; 2 xrefs:\n; > CCScrollLayerExt::constraintContent @ 0x2e88da\n; > MPLobbyLayer::updateComments @ 0x535380\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\nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x2e87c8\nMOV             R4, R0                                                 ; +0x4, 0x2e87cc\nLDR             R6, =(__stack_chk_guard_ptr - 0x2E87DA)                ; +0x6, 0x2e87ce\nMOV             R5, R1                                                 ; +0x8, 0x2e87d0\nVPUSH           {D8-D9}                                                ; +0xa, 0x2e87d2\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x2e87d6\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x2e87d8\nLDR.W           R0, [R0,#0x168]                                        ; +0x12, 0x2e87da\nLDR             R3, [R6]                                               ; +0x16, 0x2e87de\nSUB             SP, SP, #0x10                                          ; +0x18, 0x2e87e0\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x1a, 0x2e87e2\nLDR             R3, [R0]                                               ; +0x1c, 0x2e87e4\nLDR             R3, [R3,#0x60]                                         ; +0x1e, 0x2e87e6\nBLX             R3                                                     ; +0x20, 0x2e87e8\nLDR             R7, [R0]                                               ; +0x22, 0x2e87ea\nLDR.W           R0, [R4,#0x168]                                        ; +0x24, 0x2e87ec\nLDR             R3, [R0]                                               ; +0x28, 0x2e87f0\nLDR             R3, [R3,#0x60]                                         ; +0x2a, 0x2e87f2\nBLX             R3                                                     ; +0x2c, 0x2e87f4\nVLDR            S18, [R0,#4]                                           ; +0x2e, 0x2e87f6\nMOV             R0, R4; this                                           ; +0x32, 0x2e87fa\nBL              _ZN16CCScrollLayerExt7getMinYEv; CCScrollLayerExt::getMinY(void) ; +0x34, 0x2e87fc\nVMOV            S17, R0                                                ; +0x38, 0x2e8800\nMOV             R0, R4; this                                           ; +0x3c, 0x2e8804\nBL              _ZN16CCScrollLayerExt7getMaxYEv; CCScrollLayerExt::getMaxY(void) ; +0x3e, 0x2e8806\nVMOV            S16, R0                                                ; +0x42, 0x2e880a\nVCMPE.F32       S18, S16                                               ; +0x46, 0x2e880e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4a, 0x2e8812\nBGT             loc_2E8838                                             ; +0x4e, 0x2e8816\nVCMPE.F32       S18, S17                                               ; +0x50, 0x2e8818\nVMRS            APSR_nzcv, FPSCR                                       ; +0x54, 0x2e881c\nBMI             loc_2E8834                                             ; +0x58, 0x2e8820\nLDR.W           R0, [R4,#0x164]                                        ; +0x5a, 0x2e8822\nCMP             R0, #0                                                 ; +0x5e, 0x2e8826\nBEQ             loc_2E88B4                                             ; +0x60, 0x2e8828\nLDR             R3, [R0]                                               ; +0x62, 0x2e882a\nMOV             R1, R4                                                 ; +0x64, 0x2e882c\nLDR             R3, [R3,#0xC]                                          ; +0x66, 0x2e882e\nBLX             R3                                                     ; +0x68, 0x2e8830\nB               loc_2E88B4                                             ; +0x6a, 0x2e8832\nVMOV.F32        S16, S17                                               ; +0x6c, 0x2e8834\nLDR.W           R0, [R4,#0x168]; this                                  ; +0x70, 0x2e8838\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x74, 0x2e883c\nCBZ             R5, loc_2E885A                                         ; +0x78, 0x2e8840\nLDR.W           R0, [R4,#0x168]                                        ; +0x7a, 0x2e8842\nMOV             R1, R7                                                 ; +0x7e, 0x2e8846\nVMOV            R2, S16                                                ; +0x80, 0x2e8848\nLDR             R3, [R0]                                               ; +0x84, 0x2e884c\nLDR             R3, [R3,#0x64]                                         ; +0x86, 0x2e884e\nBLX             R3                                                     ; +0x88, 0x2e8850\nMOV             R0, R4; this                                           ; +0x8a, 0x2e8852\nBL              _ZN16CCScrollLayerExt12scrollingEndEv; CCScrollLayerExt::scrollingEnd(void) ; +0x8c, 0x2e8854\nB               loc_2E88B4                                             ; +0x90, 0x2e8858\nLDR.W           R0, [R4,#0x164]                                        ; +0x92, 0x2e885a\nCBZ             R0, loc_2E8868                                         ; +0x96, 0x2e885e\nLDR             R3, [R0]                                               ; +0x98, 0x2e8860\nMOV             R1, R4                                                 ; +0x9a, 0x2e8862\nLDR             R3, [R3]                                               ; +0x9c, 0x2e8864\nBLX             R3                                                     ; +0x9e, 0x2e8866\nADD             R5, SP, #0x10+var_C                                    ; +0xa0, 0x2e8868\nVMOV            R2, S16; float                                         ; +0xa2, 0x2e886a\nMOV             R1, R7; float                                          ; +0xa6, 0x2e886e\nMOVS            R7, #0                                                 ; +0xa8, 0x2e8870\nMOV             R0, R5; this                                           ; +0xaa, 0x2e8872\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xac, 0x2e8874\nMOV             R1, R5; float                                          ; +0xb0, 0x2e8878\nLDR             R0, =0x3E99999A; this                                  ; +0xb2, 0x2e887a\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0xb4, 0x2e887c\nMOV.W           R1, #0x40000000; cocos2d::CCActionInterval *           ; +0xb8, 0x2e8880\nBL              _ZN7cocos2d11CCEaseInOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseInOut::create(cocos2d::CCActionInterval *,float) ; +0xbc, 0x2e8884\nLDR             R3, =(_ZN16CCScrollLayerExt12scrollingEndEv_ptr - 0x2E8890) ; +0xc0, 0x2e8888\nSTR             R7, [SP,#0x10+var_8]                                   ; +0xc2, 0x2e888a\nADD             R3, PC; _ZN16CCScrollLayerExt12scrollingEndEv_ptr      ; +0xc4, 0x2e888c\nLDR             R3, [R3]; CCScrollLayerExt::scrollingEnd(void)         ; +0xc6, 0x2e888e\nSTR             R3, [SP,#0x10+var_C]                                   ; +0xc8, 0x2e8890\nLDM.W           R5, {R1,R2}                                            ; +0xca, 0x2e8892\nMOV             R8, R0                                                 ; +0xce, 0x2e8896\nMOV             R0, R4                                                 ; +0xd0, 0x2e8898\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0xd2, 0x2e889a\nMOV             R2, R7                                                 ; +0xd6, 0x2e889e\nLDR.W           R4, [R4,#0x168]                                        ; +0xd8, 0x2e88a0\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0xdc, 0x2e88a4\nMOV             R0, R8; this                                           ; +0xde, 0x2e88a6\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0xe0, 0x2e88a8\nMOV             R1, R0; cocos2d::CCAction *                            ; +0xe4, 0x2e88ac\nMOV             R0, R4; this                                           ; +0xe6, 0x2e88ae\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xe8, 0x2e88b0\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xec, 0x2e88b4\nLDR             R3, [R6]                                               ; +0xee, 0x2e88b6\nCMP             R2, R3                                                 ; +0xf0, 0x2e88b8\nBEQ             loc_2E88C0                                             ; +0xf2, 0x2e88ba\nBLX             __stack_chk_fail                                       ; +0xf4, 0x2e88bc\nADD             SP, SP, #0x10                                          ; +0xf8, 0x2e88c0\nVPOP            {D8-D9}                                                ; +0xfa, 0x2e88c2\nPOP.W           {R4-R8,PC}                                             ; +0xfe, 0x2e88c6", "xrefs": ["CCScrollLayerExt::constraintContent @ 0x2e88da", "MPLobbyLayer::updateComments @ 0x535380"], "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"}