{"type": "func", "start": 4299352240, "end": 4299352654, "name": "CCScrollLayerExt::doConstraintContent", "pseudocode": "// \n// CCScrollLayerExt::doConstraintContent from 0x10042e8b0 to 0x10042ea4e (414 bytes)\n// \n// 7 xrefs:\n// > CCScrollLayerExt::constraintContent @ 0x10042e8a7\n// > CCScrollLayerExt::setContentOffset @ 0x10042eb40\n// > CCScrollLayerExt::ccTouchEnded @ 0x10042ed50\n// > CCScrollLayerExt::ccTouchEnded @ 0x10042ee77\n// > CCScrollLayerExt::ccTouchCancelled @ 0x10042ef5b\n// > sub_10042EF80 @ 0x10042ef92\n// > MPLobbyLayer::updateComments @ 0x1004945fd\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 __fastcall CCScrollLayerExt::doConstraintContent(CCScrollLayerExt *a1, bool a2)\n{\n  __int64 v3; // rax\n  float m_scrollLimitBottom; // xmm0_4\n  CCScrollLayerExtDelegate *v5; // rdi\n  CCScrollLayerExtDelegate *v6; // rdi\n  cocos2d::CCMoveTo *v7; // rax\n  cocos2d::CCEaseInOut *v8; // r14\n  cocos2d::CCCallFunc *v9; // rax\n  CCContentLayer *m_contentLayer; // rbx\n  cocos2d::CCSequence *v11; // rax\n  CCScrollLayerExtDelegate *m_delegate; // rdi\n  cocos2d::CCPoint v13; // [rsp+Ch] [rbp-24h] BYREF\n  float v14; // [rsp+14h] [rbp-1Ch]\n  float v15; // [rsp+18h] [rbp-18h]\n  float v16; // [rsp+1Ch] [rbp-14h]\n\n  v15 = *(float *)((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer);\n  v16 = *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer) + 4);\n  v14 = *(float *)(((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getContentSize)(a1) + 4);\n  v3 = ((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer);\n  m_scrollLimitBottom = a1->m_scrollLimitBottom;\n  if ( v16 <= m_scrollLimitBottom\n    && (m_scrollLimitBottom = (float)(v14 - *(float *)(v3 + 4)) - a1->m_scrollLimitTop, m_scrollLimitBottom <= v16) )\n  {\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      ((void (__fastcall *)(CCScrollLayerExtDelegate *, CCScrollLayerExt *))m_delegate->scrollViewDidEndMoving)(\n        m_delegate,\n        a1);\n  }\n  else\n  {\n    v16 = m_scrollLimitBottom;\n    cocos2d::CCNode::stopAllActions(a1->m_contentLayer);\n    if ( a2 )\n    {\n      ((void (__fastcall *)(CCContentLayer *, float, float))a1->m_contentLayer->setPosition_0)(\n        a1->m_contentLayer,\n        v15,\n        v16);\n      cocos2d::CCNode::stopAllActions(a1->m_contentLayer);\n      a1->m_notAtEndOfScroll = 0;\n      v5 = a1->m_delegate;\n      if ( v5 )\n        ((void (__fastcall *)(CCScrollLayerExtDelegate *, CCScrollLayerExt *))v5->scrollViewDidEndDecelerating)(v5, a1);\n    }\n    else\n    {\n      v6 = a1->m_delegate;\n      if ( v6 )\n        ((void (__fastcall *)(CCScrollLayerExtDelegate *, CCScrollLayerExt *))v6->scrllViewWillBeginDecelerating)(\n          v6,\n          a1);\n      sub_10028CBE0((float *)&v13, v15, v16);\n      v7 = cocos2d::CCMoveTo::create(0.30000001, &v13);\n      v8 = cocos2d::CCEaseInOut::create(v7, 2.0);\n      v9 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)CCScrollLayerExt::scrollingEnd);\n      m_contentLayer = a1->m_contentLayer;\n      v11 = sub_1003B5760(v8, v9, 0);\n      cocos2d::CCNode::runAction(m_contentLayer, v11);\n    }\n  }\n}", "assembly": "; \n; CCScrollLayerExt::doConstraintContent from 0x10042e8b0 to 0x10042ea4e (414 bytes)\n; \n; 7 xrefs:\n; > CCScrollLayerExt::constraintContent @ 0x10042e8a7\n; > CCScrollLayerExt::setContentOffset @ 0x10042eb40\n; > CCScrollLayerExt::ccTouchEnded @ 0x10042ed50\n; > CCScrollLayerExt::ccTouchEnded @ 0x10042ee77\n; > CCScrollLayerExt::ccTouchCancelled @ 0x10042ef5b\n; > sub_10042EF80 @ 0x10042ef92\n; > MPLobbyLayer::updateComments @ 0x1004945fd\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    rbp                                                            ; +0x0, 0x10042e8b0\nmov     rbp, rsp                                                       ; +0x1, 0x10042e8b1\npush    r14                                                            ; +0x4, 0x10042e8b4\npush    rbx                                                            ; +0x6, 0x10042e8b6\nsub     rsp, 20h                                                       ; +0x7, 0x10042e8b7\nmov     r14d, esi                                                      ; +0xb, 0x10042e8bb\nmov     rbx, rdi                                                       ; +0xe, 0x10042e8be\nmov     rdi, [rdi+1E0h]                                                ; +0x11, 0x10042e8c1\nmov     rax, [rdi]                                                     ; +0x18, 0x10042e8c8\ncall    qword ptr [rax+0C0h]                                           ; +0x1b, 0x10042e8cb\nmovss   xmm0, dword ptr [rax]                                          ; +0x21, 0x10042e8d1\nmovss   [rbp+var_18], xmm0                                             ; +0x25, 0x10042e8d5\nmov     rdi, [rbx+1E0h]                                                ; +0x2a, 0x10042e8da\nmov     rax, [rdi]                                                     ; +0x31, 0x10042e8e1\ncall    qword ptr [rax+0C0h]                                           ; +0x34, 0x10042e8e4\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x3a, 0x10042e8ea\nmovss   [rbp+var_14], xmm0                                             ; +0x3f, 0x10042e8ef\nmov     rax, [rbx]                                                     ; +0x44, 0x10042e8f4\nmov     rdi, rbx                                                       ; +0x47, 0x10042e8f7\ncall    qword ptr [rax+138h]                                           ; +0x4a, 0x10042e8fa\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x50, 0x10042e900\nmovss   [rbp+var_1C], xmm0                                             ; +0x55, 0x10042e905\nmov     rdi, [rbx+1E0h]                                                ; +0x5a, 0x10042e90a\nmov     rax, [rdi]                                                     ; +0x61, 0x10042e911\ncall    qword ptr [rax+138h]                                           ; +0x64, 0x10042e914\nmovss   xmm1, [rbp+var_14]                                             ; +0x6a, 0x10042e91a\nmovss   xmm0, dword ptr [rbx+1F4h]                                     ; +0x6f, 0x10042e91f\nucomiss xmm1, xmm0                                                     ; +0x77, 0x10042e927\nja      short loc_10042E947                                            ; +0x7a, 0x10042e92a\nmovss   xmm0, [rbp+var_1C]                                             ; +0x7c, 0x10042e92c\nsubss   xmm0, dword ptr [rax+4]                                        ; +0x81, 0x10042e931\nsubss   xmm0, dword ptr [rbx+1F0h]                                     ; +0x86, 0x10042e936\nucomiss xmm0, xmm1                                                     ; +0x8e, 0x10042e93e\njbe     loc_10042EA2E                                                  ; +0x91, 0x10042e941\nmovss   [rbp+var_14], xmm0                                             ; +0x97, 0x10042e947\nmov     rdi, [rbx+1E0h]                                                ; +0x9c, 0x10042e94c\ncall    cocos2d__CCNode__stopAllActions                                ; +0xa3, 0x10042e953\ntest    r14b, r14b                                                     ; +0xa8, 0x10042e958\njz      short loc_10042E9A6                                            ; +0xab, 0x10042e95b\nmov     rdi, [rbx+1E0h]                                                ; +0xad, 0x10042e95d\nmov     rax, [rdi]                                                     ; +0xb4, 0x10042e964\nmovss   xmm0, [rbp+var_18]                                             ; +0xb7, 0x10042e967\nmovss   xmm1, [rbp+var_14]                                             ; +0xbc, 0x10042e96c\ncall    qword ptr [rax+0C8h]                                           ; +0xc1, 0x10042e971\nmov     rdi, [rbx+1E0h]                                                ; +0xc7, 0x10042e977\ncall    cocos2d__CCNode__stopAllActions                                ; +0xce, 0x10042e97e\nmov     byte ptr [rbx+1C1h], 0                                         ; +0xd3, 0x10042e983\nmov     rdi, [rbx+1D8h]                                                ; +0xda, 0x10042e98a\ntest    rdi, rdi                                                       ; +0xe1, 0x10042e991\njz      loc_10042EA25                                                  ; +0xe4, 0x10042e994\nmov     rax, [rdi]                                                     ; +0xea, 0x10042e99a\nmov     rax, [rax+8]                                                   ; +0xed, 0x10042e99d\njmp     loc_10042EA41                                                  ; +0xf1, 0x10042e9a1\nmov     rdi, [rbx+1D8h]                                                ; +0xf6, 0x10042e9a6\ntest    rdi, rdi                                                       ; +0xfd, 0x10042e9ad\njz      short loc_10042E9BA                                            ; +0x100, 0x10042e9b0\nmov     rax, [rdi]                                                     ; +0x102, 0x10042e9b2\nmov     rsi, rbx                                                       ; +0x105, 0x10042e9b5\ncall    qword ptr [rax]                                                ; +0x108, 0x10042e9b8\nlea     r14, [rbp+var_24]                                              ; +0x10a, 0x10042e9ba\nmov     rdi, r14                                                       ; +0x10e, 0x10042e9be\nmovss   xmm0, [rbp+var_18]                                             ; +0x111, 0x10042e9c1\nmovss   xmm1, [rbp+var_14]                                             ; +0x116, 0x10042e9c6\ncall    sub_10028CBE0                                                  ; +0x11b, 0x10042e9cb\nmovss   xmm0, cs:dword_100815420                                       ; +0x120, 0x10042e9d0\nmov     rdi, r14                                                       ; +0x128, 0x10042e9d8\ncall    cocos2d__CCMoveTo__create                                      ; +0x12b, 0x10042e9db\nmovss   xmm0, cs:width                                                 ; +0x130, 0x10042e9e0\nmov     rdi, rax                                                       ; +0x138, 0x10042e9e8\ncall    cocos2d__CCEaseInOut__create                                   ; +0x13b, 0x10042e9eb\nmov     r14, rax                                                       ; +0x140, 0x10042e9f0\nlea     rsi, CCScrollLayerExt__scrollingEnd                            ; +0x143, 0x10042e9f3\nmov     rdi, rbx                                                       ; +0x14a, 0x10042e9fa\nxor     edx, edx                                                       ; +0x14d, 0x10042e9fd\ncall    cocos2d__CCCallFunc__create                                    ; +0x14f, 0x10042e9ff\nmov     rbx, [rbx+1E0h]                                                ; +0x154, 0x10042ea04\nmov     rdi, r14                                                       ; +0x15b, 0x10042ea0b\nmov     rsi, rax                                                       ; +0x15e, 0x10042ea0e\nxor     edx, edx                                                       ; +0x161, 0x10042ea11\nxor     eax, eax                                                       ; +0x163, 0x10042ea13\ncall    sub_1003B5760                                                  ; +0x165, 0x10042ea15\nmov     rdi, rbx                                                       ; +0x16a, 0x10042ea1a\nmov     rsi, rax                                                       ; +0x16d, 0x10042ea1d\ncall    cocos2d__CCNode__runAction                                     ; +0x170, 0x10042ea20\nadd     rsp, 20h                                                       ; +0x175, 0x10042ea25\npop     rbx                                                            ; +0x179, 0x10042ea29\npop     r14                                                            ; +0x17a, 0x10042ea2a\npop     rbp                                                            ; +0x17c, 0x10042ea2c\nretn                                                                   ; +0x17d, 0x10042ea2d\nmov     rdi, [rbx+1D8h]                                                ; +0x17e, 0x10042ea2e\ntest    rdi, rdi                                                       ; +0x185, 0x10042ea35\njz      short loc_10042EA25                                            ; +0x188, 0x10042ea38\nmov     rax, [rdi]                                                     ; +0x18a, 0x10042ea3a\nmov     rax, [rax+18h]                                                 ; +0x18d, 0x10042ea3d\nmov     rsi, rbx                                                       ; +0x191, 0x10042ea41\nadd     rsp, 20h                                                       ; +0x194, 0x10042ea44\npop     rbx                                                            ; +0x198, 0x10042ea48\npop     r14                                                            ; +0x199, 0x10042ea49\npop     rbp                                                            ; +0x19b, 0x10042ea4b\njmp     rax                                                            ; +0x19c, 0x10042ea4c", "xrefs": ["CCScrollLayerExt::constraintContent @ 0x10042e8a7", "CCScrollLayerExt::setContentOffset @ 0x10042eb40", "CCScrollLayerExt::ccTouchEnded @ 0x10042ed50", "CCScrollLayerExt::ccTouchEnded @ 0x10042ee77", "CCScrollLayerExt::ccTouchCancelled @ 0x10042ef5b", "sub_10042EF80 @ 0x10042ef92", "MPLobbyLayer::updateComments @ 0x1004945fd"], "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"}