{"type": "func", "start": 5369000320, "end": 5369000741, "name": "CCScrollLayerExt::doConstraintContent", "pseudocode": "// \n// CCScrollLayerExt::doConstraintContent from 0x140047180 to 0x140047325 (421 bytes)\n// \n// 7 xrefs:\n// > CCScrollLayerExt::constraintContent @ 0x140047172\n// > CCScrollLayerExt::ccTouchEnded @ 0x1400478f3\n// > CCScrollLayerExt::ccTouchEnded @ 0x140047967\n// > CCScrollLayerExt::ccTouchCancelled @ 0x1400479a2\n// > TableView::ccTouchCancelled @ 0x1400754b7\n// > CustomListView::setupList @ 0x1400ac1c9\n// > <???> @ 0x1406c48b4\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  float v2; // xmm3_4\n  float x; // xmm8_4\n  float y; // xmm7_4\n  const cocos2d::CCSize *v7; // rbx\n  const cocos2d::CCSize *v8; // rax\n  float m_scrollLimitBottom; // xmm6_4\n  CCScrollLayerExtDelegate *m_delegate; // rcx\n  CCScrollLayerExtDelegate *v11; // rcx\n  const struct cocos2d::CCPoint *v12; // rax\n  struct cocos2d::CCMoveTo *v13; // rax\n  struct cocos2d::CCEaseInOut *v14; // rbx\n  __int64 v15; // rax\n  struct cocos2d::CCSequence *v16; // rax\n  cocos2d::ccColor3B *v17; // r8\n  CCScrollLayerExtDelegate *v18; // rcx\n  float v19; // [rsp+20h] [rbp-38h]\n  cocos2d::CCPoint v20; // [rsp+60h] [rbp+8h] BYREF\n\n  x = a1->m_contentLayer->getPosition_0(a1->m_contentLayer)->x;\n  y = a1->m_contentLayer->getPosition_0(a1->m_contentLayer)->y;\n  v7 = a1->getContentSize(a1);\n  v8 = a1->m_contentLayer->getContentSize(a1->m_contentLayer);\n  m_scrollLimitBottom = a1->m_scrollLimitBottom;\n  if ( y > m_scrollLimitBottom )\n  {\nLABEL_4:\n    cocos2d::CCNode::stopAllActions(a1->m_contentLayer);\n    if ( a2 )\n    {\n      ((void (__fastcall *)(CCContentLayer *))a1->m_contentLayer->setPosition)(a1->m_contentLayer);\n      cocos2d::CCNode::stopAllActions(a1->m_contentLayer);\n      m_delegate = a1->m_delegate;\n      a1->m_notAtEndOfScroll = 0;\n      if ( m_delegate )\n        m_delegate->scrollViewDidEndDecelerating(m_delegate, a1);\n    }\n    else\n    {\n      v11 = a1->m_delegate;\n      if ( v11 )\n        v11->scrllViewWillBeginDecelerating(v11, a1);\n      cocos2d::CCPoint::CCPoint(&v20, x, m_scrollLimitBottom);\n      v13 = cocos2d::CCMoveTo::create(0.30000001, v12);\n      v14 = cocos2d::CCEaseInOut::create(v13, 2.0);\n      v15 = cocos2d::CCCallFunc::create(a1, CCScrollLayerExt::scrollingEnd);\n      v16 = cocos2d::CCSequence::create(v14, v15, 0);\n      cocos2d::CCNode::runAction((CCLightFlash *)a1->m_contentLayer, (cocos2d::CCPoint)v16, v17, v2, v19);\n    }\n    return;\n  }\n  if ( (float)((float)(v7->height - v8->height) - a1->m_scrollLimitTop) > y )\n  {\n    m_scrollLimitBottom = (float)(v7->height - v8->height) - a1->m_scrollLimitTop;\n    goto LABEL_4;\n  }\n  v18 = a1->m_delegate;\n  if ( v18 )\n    v18->scrollViewDidEndMoving(v18, a1);\n}", "assembly": "; \n; CCScrollLayerExt::doConstraintContent from 0x140047180 to 0x140047325 (421 bytes)\n; \n; 7 xrefs:\n; > CCScrollLayerExt::constraintContent @ 0x140047172\n; > CCScrollLayerExt::ccTouchEnded @ 0x1400478f3\n; > CCScrollLayerExt::ccTouchEnded @ 0x140047967\n; > CCScrollLayerExt::ccTouchCancelled @ 0x1400479a2\n; > TableView::ccTouchCancelled @ 0x1400754b7\n; > CustomListView::setupList @ 0x1400ac1c9\n; > <???> @ 0x1406c48b4\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140047180\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140047185\npush    rdi                                                            ; +0xa, 0x14004718a\nsub     rsp, 50h                                                       ; +0xb, 0x14004718b\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0xf, 0x14004718f\nmov     rdi, rcx                                                       ; +0x14, 0x140047194\nmov     rcx, [rcx+1D8h]                                                ; +0x17, 0x140047197\nmovzx   esi, dl                                                        ; +0x1e, 0x14004719e\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x21, 0x1400471a1\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x26, 0x1400471a6\nmov     rax, [rcx]                                                     ; +0x2c, 0x1400471ac\ncall    qword ptr [rax+0C8h]                                           ; +0x2f, 0x1400471af\nmov     rcx, [rdi+1D8h]                                                ; +0x35, 0x1400471b5\nmovss   xmm8, dword ptr [rax]                                          ; +0x3c, 0x1400471bc\nmov     rax, [rcx]                                                     ; +0x41, 0x1400471c1\ncall    qword ptr [rax+0C8h]                                           ; +0x44, 0x1400471c4\nmov     rcx, rdi                                                       ; +0x4a, 0x1400471ca\nmovss   xmm7, dword ptr [rax+4]                                        ; +0x4d, 0x1400471cd\nmov     rax, [rdi]                                                     ; +0x52, 0x1400471d2\ncall    qword ptr [rax+130h]                                           ; +0x55, 0x1400471d5\nmov     rcx, [rdi+1D8h]                                                ; +0x5b, 0x1400471db\nmov     rbx, rax                                                       ; +0x62, 0x1400471e2\nmov     rdx, [rcx]                                                     ; +0x65, 0x1400471e5\ncall    qword ptr [rdx+130h]                                           ; +0x68, 0x1400471e8\nmovss   xmm0, dword ptr [rbx+4]                                        ; +0x6e, 0x1400471ee\nmovss   xmm6, dword ptr [rdi+1ECh]                                     ; +0x73, 0x1400471f3\ncomiss  xmm7, xmm6                                                     ; +0x7b, 0x1400471fb\nsubss   xmm0, dword ptr [rax+4]                                        ; +0x7e, 0x1400471fe\nsubss   xmm0, dword ptr [rdi+1E8h]                                     ; +0x83, 0x140047203\nja      short loc_140047219                                            ; +0x8b, 0x14004720b\ncomiss  xmm0, xmm7                                                     ; +0x8d, 0x14004720d\njbe     loc_1400472F0                                                  ; +0x90, 0x140047210\nmovaps  xmm6, xmm0                                                     ; +0x96, 0x140047216\nmov     rcx, [rdi+1D8h]                                                ; +0x99, 0x140047219\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xa0, 0x140047220\ntest    sil, sil                                                       ; +0xa6, 0x140047226\njz      short loc_140047274                                            ; +0xa9, 0x140047229\nmov     rcx, [rdi+1D8h]                                                ; +0xab, 0x14004722b\nmovaps  xmm2, xmm6                                                     ; +0xb2, 0x140047232\nmovaps  xmm1, xmm8                                                     ; +0xb5, 0x140047235\nmov     rax, [rcx]                                                     ; +0xb9, 0x140047239\ncall    qword ptr [rax+0B0h]                                           ; +0xbc, 0x14004723c\nmov     rcx, [rdi+1D8h]                                                ; +0xc2, 0x140047242\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xc9, 0x140047249\nmov     rcx, [rdi+1D0h]                                                ; +0xcf, 0x14004724f\nmov     byte ptr [rdi+1B9h], 0                                         ; +0xd6, 0x140047256\ntest    rcx, rcx                                                       ; +0xdd, 0x14004725d\njz      loc_140047305                                                  ; +0xe0, 0x140047260\nmov     rax, [rcx]                                                     ; +0xe6, 0x140047266\nmov     rdx, rdi                                                       ; +0xe9, 0x140047269\ncall    qword ptr [rax+8]                                              ; +0xec, 0x14004726c\njmp     loc_140047305                                                  ; +0xef, 0x14004726f\nmov     rcx, [rdi+1D0h]                                                ; +0xf4, 0x140047274\ntest    rcx, rcx                                                       ; +0xfb, 0x14004727b\njz      short loc_140047288                                            ; +0xfe, 0x14004727e\nmov     rax, [rcx]                                                     ; +0x100, 0x140047280\nmov     rdx, rdi                                                       ; +0x103, 0x140047283\ncall    qword ptr [rax]                                                ; +0x106, 0x140047286\nmovaps  xmm2, xmm6                                                     ; +0x108, 0x140047288\nlea     rcx, [rsp+58h+arg_0]                                           ; +0x10b, 0x14004728b\nmovaps  xmm1, xmm8                                                     ; +0x110, 0x140047290\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x114, 0x140047294\nmovss   xmm0, cs:dword_140622AA0                                       ; +0x11a, 0x14004729a\nmov     rdx, rax                                                       ; +0x122, 0x1400472a2\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0x125, 0x1400472a5\nmovss   xmm1, cs:width                                                 ; +0x12b, 0x1400472ab\nmov     rcx, rax                                                       ; +0x133, 0x1400472b3\ncall    cs:?create@CCEaseInOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseInOut::create(cocos2d::CCActionInterval *,float) ; +0x136, 0x1400472b6\nlea     rdx, CCScrollLayerExt__scrollingEnd                            ; +0x13c, 0x1400472bc\nmov     rcx, rdi                                                       ; +0x143, 0x1400472c3\nmov     rbx, rax                                                       ; +0x146, 0x1400472c6\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x149, 0x1400472c9\nxor     r8d, r8d                                                       ; +0x14f, 0x1400472cf\nmov     rcx, rbx                                                       ; +0x152, 0x1400472d2\nmov     rdx, rax                                                       ; +0x155, 0x1400472d5\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x158, 0x1400472d8\nmov     rcx, [rdi+1D8h]                                                ; +0x15e, 0x1400472de\nmov     rdx, rax                                                       ; +0x165, 0x1400472e5\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x168, 0x1400472e8\njmp     short loc_140047305                                            ; +0x16e, 0x1400472ee\nmov     rcx, [rdi+1D0h]                                                ; +0x170, 0x1400472f0\ntest    rcx, rcx                                                       ; +0x177, 0x1400472f7\njz      short loc_140047305                                            ; +0x17a, 0x1400472fa\nmov     rax, [rcx]                                                     ; +0x17c, 0x1400472fc\nmov     rdx, rdi                                                       ; +0x17f, 0x1400472ff\ncall    qword ptr [rax+18h]                                            ; +0x182, 0x140047302\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x185, 0x140047305\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x18a, 0x14004730a\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x18f, 0x14004730f\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x194, 0x140047314\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x199, 0x140047319\nadd     rsp, 50h                                                       ; +0x19f, 0x14004731f\npop     rdi                                                            ; +0x1a3, 0x140047323\nretn                                                                   ; +0x1a4, 0x140047324", "xrefs": ["CCScrollLayerExt::constraintContent @ 0x140047172", "CCScrollLayerExt::ccTouchEnded @ 0x1400478f3", "CCScrollLayerExt::ccTouchEnded @ 0x140047967", "CCScrollLayerExt::ccTouchCancelled @ 0x1400479a2", "TableView::ccTouchCancelled @ 0x1400754b7", "CustomListView::setupList @ 0x1400ac1c9", "<???> @ 0x1406c48b4"], "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"}