{"type": "func", "start": 5369016192, "end": 5369016629, "name": "CCScrollLayerExt::doConstraintContent", "pseudocode": "// \n// CCScrollLayerExt::doConstraintContent from 0x14004af80 to 0x14004b135 (437 bytes)\n// \n// 10 xrefs:\n// > BoomListView::restoreListOffset @ 0x14003fbeb\n// > CCScrollLayerExt::constraintContent @ 0x14004af72\n// > CCScrollLayerExt::ccTouchEnded @ 0x14004b754\n// > CCScrollLayerExt::ccTouchEnded @ 0x14004b7c2\n// > CCScrollLayerExt::ccTouchCancelled @ 0x14004b802\n// > TableView::ccTouchCancelled @ 0x140088477\n// > CustomListView::setupList @ 0x1401467ff\n// > SFXBrowser::restoreListScroll @ 0x14061b87c\n// > SFXBrowser::restoreListScroll @ 0x14061b886\n// > <???> @ 0x14090fdb8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:33 +0000\n// \n\nvoid __fastcall CCScrollLayerExt::doConstraintContent(__int64 a1, char a2)\n{\n  float v4; // xmm8_4\n  __int64 v5; // rax\n  __int64 v6; // rdi\n  float v7; // xmm7_4\n  __int64 v8; // rbx\n  __int64 v9; // rax\n  float v10; // xmm6_4\n  __int64 v11; // rcx\n  void (__fastcall ***v12)(_QWORD, __int64); // rcx\n  const struct cocos2d::CCPoint *v13; // rax\n  struct cocos2d::CCActionInterval *v14; // rax\n  struct cocos2d::CCFiniteTimeAction *v15; // rdi\n  __int64 v16; // rax\n  cocos2d::CCNode *v17; // rbx\n  struct cocos2d::CCAction *v18; // rax\n  __int64 v19; // rcx\n  char v20; // [rsp+60h] [rbp+8h] BYREF\n\n  v4 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 200LL))(*(_QWORD *)(a1 + 480));\n  v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 200LL))(*(_QWORD *)(a1 + 480));\n  v6 = *(_QWORD *)(a1 + 480);\n  v7 = *(float *)(v5 + 4);\n  v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1);\n  v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 320LL))(v6);\n  v10 = *(float *)(a1 + 500);\n  if ( v7 > v10 )\n  {\nLABEL_4:\n    cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(a1 + 480));\n    if ( a2 )\n    {\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 176LL))(*(_QWORD *)(a1 + 480));\n      cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(a1 + 480));\n      v11 = *(_QWORD *)(a1 + 472);\n      *(_BYTE *)(a1 + 449) = 0;\n      if ( v11 )\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 8LL))(v11, a1);\n    }\n    else\n    {\n      v12 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 472);\n      if ( v12 )\n        (**v12)(v12, a1);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v20, v4, v10);\n      v14 = cocos2d::CCMoveTo::create(0.30000001, v13);\n      v15 = cocos2d::CCEaseInOut::create(v14, 2.0);\n      v16 = cocos2d::CCCallFunc::create(a1, CCScrollLayerExt::scrollingEnd);\n      v17 = *(cocos2d::CCNode **)(a1 + 480);\n      v18 = cocos2d::CCSequence::create(v15, v16, 0);\n      cocos2d::CCNode::runAction(v17, v18);\n    }\n    return;\n  }\n  if ( (float)((float)(*(float *)(v8 + 4) - *(float *)(v9 + 4)) - *(float *)(a1 + 496)) > v7 )\n  {\n    v10 = (float)(*(float *)(v8 + 4) - *(float *)(v9 + 4)) - *(float *)(a1 + 496);\n    goto LABEL_4;\n  }\n  v19 = *(_QWORD *)(a1 + 472);\n  if ( v19 )\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v19 + 24LL))(v19, a1);\n}", "assembly": "; \n; CCScrollLayerExt::doConstraintContent from 0x14004af80 to 0x14004b135 (437 bytes)\n; \n; 10 xrefs:\n; > BoomListView::restoreListOffset @ 0x14003fbeb\n; > CCScrollLayerExt::constraintContent @ 0x14004af72\n; > CCScrollLayerExt::ccTouchEnded @ 0x14004b754\n; > CCScrollLayerExt::ccTouchEnded @ 0x14004b7c2\n; > CCScrollLayerExt::ccTouchCancelled @ 0x14004b802\n; > TableView::ccTouchCancelled @ 0x140088477\n; > CustomListView::setupList @ 0x1401467ff\n; > SFXBrowser::restoreListScroll @ 0x14061b87c\n; > SFXBrowser::restoreListScroll @ 0x14061b886\n; > <???> @ 0x14090fdb8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:33 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14004af80\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14004af85\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14004af8a\npush    rdi                                                            ; +0xf, 0x14004af8f\nsub     rsp, 50h                                                       ; +0x10, 0x14004af90\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x14, 0x14004af94\nmov     rsi, rcx                                                       ; +0x19, 0x14004af99\nmov     rcx, [rcx+1E0h]                                                ; +0x1c, 0x14004af9c\nmovzx   ebp, dl                                                        ; +0x23, 0x14004afa3\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x26, 0x14004afa6\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x2b, 0x14004afab\nmov     rax, [rcx]                                                     ; +0x31, 0x14004afb1\ncall    qword ptr [rax+0C8h]                                           ; +0x34, 0x14004afb4\nmov     rcx, [rsi+1E0h]                                                ; +0x3a, 0x14004afba\nmovss   xmm8, dword ptr [rax]                                          ; +0x41, 0x14004afc1\nmov     rax, [rcx]                                                     ; +0x46, 0x14004afc6\ncall    qword ptr [rax+0C8h]                                           ; +0x49, 0x14004afc9\nmov     rdi, [rsi+1E0h]                                                ; +0x4f, 0x14004afcf\nmov     rcx, rsi                                                       ; +0x56, 0x14004afd6\nmovss   xmm7, dword ptr [rax+4]                                        ; +0x59, 0x14004afd9\nmov     rax, [rsi]                                                     ; +0x5e, 0x14004afde\ncall    qword ptr [rax+140h]                                           ; +0x61, 0x14004afe1\nmov     rdx, [rdi]                                                     ; +0x67, 0x14004afe7\nmov     rcx, rdi                                                       ; +0x6a, 0x14004afea\nmov     rbx, rax                                                       ; +0x6d, 0x14004afed\ncall    qword ptr [rdx+140h]                                           ; +0x70, 0x14004aff0\nmovss   xmm0, dword ptr [rbx+4]                                        ; +0x76, 0x14004aff6\nmovss   xmm6, dword ptr [rsi+1F4h]                                     ; +0x7b, 0x14004affb\ncomiss  xmm7, xmm6                                                     ; +0x83, 0x14004b003\nsubss   xmm0, dword ptr [rax+4]                                        ; +0x86, 0x14004b006\nsubss   xmm0, dword ptr [rsi+1F0h]                                     ; +0x8b, 0x14004b00b\nja      short loc_14004B021                                            ; +0x93, 0x14004b013\ncomiss  xmm0, xmm7                                                     ; +0x95, 0x14004b015\njbe     loc_14004B0FB                                                  ; +0x98, 0x14004b018\nmovaps  xmm6, xmm0                                                     ; +0x9e, 0x14004b01e\nmov     rcx, [rsi+1E0h]                                                ; +0xa1, 0x14004b021\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xa8, 0x14004b028\ntest    bpl, bpl                                                       ; +0xae, 0x14004b02e\njz      short loc_14004B07C                                            ; +0xb1, 0x14004b031\nmov     rcx, [rsi+1E0h]                                                ; +0xb3, 0x14004b033\nmovaps  xmm2, xmm6                                                     ; +0xba, 0x14004b03a\nmovaps  xmm1, xmm8                                                     ; +0xbd, 0x14004b03d\nmov     rax, [rcx]                                                     ; +0xc1, 0x14004b041\ncall    qword ptr [rax+0B0h]                                           ; +0xc4, 0x14004b044\nmov     rcx, [rsi+1E0h]                                                ; +0xca, 0x14004b04a\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xd1, 0x14004b051\nmov     rcx, [rsi+1D8h]                                                ; +0xd7, 0x14004b057\nmov     byte ptr [rsi+1C1h], 0                                         ; +0xde, 0x14004b05e\ntest    rcx, rcx                                                       ; +0xe5, 0x14004b065\njz      loc_14004B110                                                  ; +0xe8, 0x14004b068\nmov     rax, [rcx]                                                     ; +0xee, 0x14004b06e\nmov     rdx, rsi                                                       ; +0xf1, 0x14004b071\ncall    qword ptr [rax+8]                                              ; +0xf4, 0x14004b074\njmp     loc_14004B110                                                  ; +0xf7, 0x14004b077\nmov     rcx, [rsi+1D8h]                                                ; +0xfc, 0x14004b07c\ntest    rcx, rcx                                                       ; +0x103, 0x14004b083\njz      short loc_14004B090                                            ; +0x106, 0x14004b086\nmov     rax, [rcx]                                                     ; +0x108, 0x14004b088\nmov     rdx, rsi                                                       ; +0x10b, 0x14004b08b\ncall    qword ptr [rax]                                                ; +0x10e, 0x14004b08e\nmovaps  xmm2, xmm6                                                     ; +0x110, 0x14004b090\nlea     rcx, [rsp+58h+arg_0]                                           ; +0x113, 0x14004b093\nmovaps  xmm1, xmm8                                                     ; +0x118, 0x14004b098\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x11c, 0x14004b09c\nmovss   xmm0, cs:dword_140834EA0                                       ; +0x122, 0x14004b0a2\nmov     rdx, rax                                                       ; +0x12a, 0x14004b0aa\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0x12d, 0x14004b0ad\nmovss   xmm1, cs:width                                                 ; +0x133, 0x14004b0b3\nmov     rcx, rax                                                       ; +0x13b, 0x14004b0bb\ncall    cs:?create@CCEaseInOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseInOut::create(cocos2d::CCActionInterval *,float) ; +0x13e, 0x14004b0be\nlea     rdx, CCScrollLayerExt__scrollingEnd                            ; +0x144, 0x14004b0c4\nmov     rcx, rsi                                                       ; +0x14b, 0x14004b0cb\nmov     rdi, rax                                                       ; +0x14e, 0x14004b0ce\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x151, 0x14004b0d1\nmov     rbx, [rsi+1E0h]                                                ; +0x157, 0x14004b0d7\nxor     r8d, r8d                                                       ; +0x15e, 0x14004b0de\nmov     rdx, rax                                                       ; +0x161, 0x14004b0e1\nmov     rcx, rdi                                                       ; +0x164, 0x14004b0e4\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x167, 0x14004b0e7\nmov     rdx, rax                                                       ; +0x16d, 0x14004b0ed\nmov     rcx, rbx                                                       ; +0x170, 0x14004b0f0\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x173, 0x14004b0f3\njmp     short loc_14004B110                                            ; +0x179, 0x14004b0f9\nmov     rcx, [rsi+1D8h]                                                ; +0x17b, 0x14004b0fb\ntest    rcx, rcx                                                       ; +0x182, 0x14004b102\njz      short loc_14004B110                                            ; +0x185, 0x14004b105\nmov     rax, [rcx]                                                     ; +0x187, 0x14004b107\nmov     rdx, rsi                                                       ; +0x18a, 0x14004b10a\ncall    qword ptr [rax+18h]                                            ; +0x18d, 0x14004b10d\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x190, 0x14004b110\nmov     rbp, [rsp+58h+arg_10]                                          ; +0x195, 0x14004b115\nmov     rsi, [rsp+58h+arg_18]                                          ; +0x19a, 0x14004b11a\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x19f, 0x14004b11f\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x1a4, 0x14004b124\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x1a9, 0x14004b129\nadd     rsp, 50h                                                       ; +0x1af, 0x14004b12f\npop     rdi                                                            ; +0x1b3, 0x14004b133\nretn                                                                   ; +0x1b4, 0x14004b134", "xrefs": ["BoomListView::restoreListOffset @ 0x14003fbeb", "CCScrollLayerExt::constraintContent @ 0x14004af72", "CCScrollLayerExt::ccTouchEnded @ 0x14004b754", "CCScrollLayerExt::ccTouchEnded @ 0x14004b7c2", "CCScrollLayerExt::ccTouchCancelled @ 0x14004b802", "TableView::ccTouchCancelled @ 0x140088477", "CustomListView::setupList @ 0x1401467ff", "SFXBrowser::restoreListScroll @ 0x14061b87c", "SFXBrowser::restoreListScroll @ 0x14061b886", "<???> @ 0x14090fdb8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}