{"type": "func", "start": 6442529568, "end": 6442529939, "name": "cocos2d::extension::CCScrollView::visit", "pseudocode": "// \n// cocos2d::extension::CCScrollView::visit from 0x180013320 to 0x180013493 (371 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x18002aca0\n// > <???> @ 0x18002b238\n// > <???> @ 0x180031008\n// > <???> @ 0x18003103c\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c470\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 12:15:40 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCScrollView::visit(cocos2d::extension::CCScrollView *this)\n{\n  cocos2d::CCGridBase *v2; // rcx\n  __int64 v3; // rsi\n  __int64 v4; // rsi\n  __int64 i; // rbx\n  __int64 v6; // r14\n  __int64 v7; // rcx\n  __int64 v8; // rax\n  cocos2d::CCGridBase *v9; // rcx\n\n  if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCScrollView *))(*(_QWORD *)this + 344LL))(this) )\n  {\n    kmGLPushMatrix();\n    v2 = *((cocos2d::CCGridBase **)this + 25);\n    if ( v2 && *((_BYTE *)v2 + 56) )\n    {\n      cocos2d::CCGridBase::beforeDraw(v2);\n      cocos2d::CCNode::transformAncestors(this);\n    }\n    cocos2d::CCNode::transform(this);\n    cocos2d::extension::CCScrollView::beforeDraw(this);\n    v3 = *((_QWORD *)this + 26);\n    if ( v3 )\n    {\n      v4 = *(_QWORD *)(v3 + 56);\n      for ( i = 0; (unsigned int)i < *(_DWORD *)v4; i = (unsigned int)(i + 1) )\n      {\n        v6 = *(_QWORD *)(*(_QWORD *)(v4 + 16) + 8 * i);\n        if ( (*(int (__fastcall **)(__int64))(*(_QWORD *)v6 + 96LL))(v6) >= 0 )\n          break;\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 744LL))(v6);\n      }\n      (*(void (__fastcall **)(cocos2d::extension::CCScrollView *))(*(_QWORD *)this + 736LL))(this);\n      for ( ; (unsigned int)i < *(_DWORD *)v4; i = (unsigned int)(i + 1) )\n      {\n        v7 = *(_QWORD *)(*(_QWORD *)(v4 + 16) + 8 * i);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 744LL))(v7);\n      }\n    }\n    else\n    {\n      (*(void (__fastcall **)(cocos2d::extension::CCScrollView *))(*(_QWORD *)this + 736LL))(this);\n    }\n    if ( *((_BYTE *)this + 477) )\n    {\n      if ( *((_BYTE *)this + 544) )\n      {\n        v8 = cocos2d::CCEGLView::sharedOpenGLView();\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 104LL))(v8);\n      }\n      else\n      {\n        glDisable(0xC11u);\n      }\n    }\n    v9 = *((cocos2d::CCGridBase **)this + 25);\n    if ( v9 )\n    {\n      if ( *((_BYTE *)v9 + 56) )\n        cocos2d::CCGridBase::afterDraw(v9, this);\n    }\n    kmGLPopMatrix();\n  }\n}", "assembly": "; \n; cocos2d::extension::CCScrollView::visit from 0x180013320 to 0x180013493 (371 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x18002aca0\n; > <???> @ 0x18002b238\n; > <???> @ 0x180031008\n; > <???> @ 0x18003103c\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c470\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 12:15:40 +0000\n; \npush    rdi                                                            ; +0x0, 0x180013320\nsub     rsp, 30h                                                       ; +0x2, 0x180013322\nmov     rax, [rcx]                                                     ; +0x6, 0x180013326\nmov     rdi, rcx                                                       ; +0x9, 0x180013329\ncall    qword ptr [rax+158h]                                           ; +0xc, 0x18001332c\ntest    al, al                                                         ; +0x12, 0x180013332\njz      loc_18001348D                                                  ; +0x14, 0x180013334\nmov     [rsp+38h+arg_8], rsi                                           ; +0x1a, 0x18001333a\ncall    cs:kmGLPushMatrix                                              ; +0x1f, 0x18001333f\nmov     rcx, [rdi+0C8h]                                                ; +0x25, 0x180013345\ntest    rcx, rcx                                                       ; +0x2c, 0x18001334c\njz      short loc_180013366                                            ; +0x2f, 0x18001334f\ncmp     byte ptr [rcx+38h], 0                                          ; +0x31, 0x180013351\njz      short loc_180013366                                            ; +0x35, 0x180013355\ncall    cs:?beforeDraw@CCGridBase@cocos2d@@QEAAXXZ; cocos2d::CCGridBase::beforeDraw(void) ; +0x37, 0x180013357\nmov     rcx, rdi                                                       ; +0x3d, 0x18001335d\ncall    cs:?transformAncestors@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::transformAncestors(void) ; +0x40, 0x180013360\nmov     rcx, rdi                                                       ; +0x46, 0x180013366\nmov     [rsp+38h+arg_0], rbx                                           ; +0x49, 0x180013369\ncall    cs:?transform@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::transform(void) ; +0x4e, 0x18001336e\nmov     rcx, rdi; this                                                 ; +0x54, 0x180013374\ncall    ?beforeDraw@CCScrollView@extension@cocos2d@@AEAAXXZ; cocos2d::extension::CCScrollView::beforeDraw(void) ; +0x57, 0x180013377\nmov     rsi, [rdi+0D0h]                                                ; +0x5c, 0x18001337c\ntest    rsi, rsi                                                       ; +0x63, 0x180013383\njz      short loc_1800133F9                                            ; +0x66, 0x180013386\nmov     rsi, [rsi+38h]                                                 ; +0x68, 0x180013388\nxor     ebx, ebx                                                       ; +0x6c, 0x18001338c\ncmp     [rsi], ebx                                                     ; +0x6e, 0x18001338e\njbe     short loc_1800133CC                                            ; +0x70, 0x180013390\nmov     [rsp+38h+arg_10], r14                                          ; +0x72, 0x180013392\nnop     word ptr [rax+rax+00000000h]                                   ; +0x77, 0x180013397\nmov     rax, [rsi+10h]                                                 ; +0x80, 0x1800133a0\nmov     r14, [rax+rbx*8]                                               ; +0x84, 0x1800133a4\nmov     rcx, r14                                                       ; +0x88, 0x1800133a8\nmov     rax, [r14]                                                     ; +0x8b, 0x1800133ab\ncall    qword ptr [rax+60h]                                            ; +0x8e, 0x1800133ae\ntest    eax, eax                                                       ; +0x91, 0x1800133b1\njns     short loc_1800133C7                                            ; +0x93, 0x1800133b3\nmov     rax, [r14]                                                     ; +0x95, 0x1800133b5\nmov     rcx, r14                                                       ; +0x98, 0x1800133b8\ncall    qword ptr [rax+2E8h]                                           ; +0x9b, 0x1800133bb\ninc     ebx                                                            ; +0xa1, 0x1800133c1\ncmp     ebx, [rsi]                                                     ; +0xa3, 0x1800133c3\njb      short loc_1800133A0                                            ; +0xa5, 0x1800133c5\nmov     r14, [rsp+38h+arg_10]                                          ; +0xa7, 0x1800133c7\nmov     rax, [rdi]                                                     ; +0xac, 0x1800133cc\nmov     rcx, rdi                                                       ; +0xaf, 0x1800133cf\ncall    qword ptr [rax+2E0h]                                           ; +0xb2, 0x1800133d2\ncmp     ebx, [rsi]                                                     ; +0xb8, 0x1800133d8\njnb     short loc_180013405                                            ; +0xba, 0x1800133da\nnop     dword ptr [rax+00h]                                            ; +0xbc, 0x1800133dc\nmov     rax, [rsi+10h]                                                 ; +0xc0, 0x1800133e0\nmov     rcx, [rax+rbx*8]                                               ; +0xc4, 0x1800133e4\nmov     rax, [rcx]                                                     ; +0xc8, 0x1800133e8\ncall    qword ptr [rax+2E8h]                                           ; +0xcb, 0x1800133eb\ninc     ebx                                                            ; +0xd1, 0x1800133f1\ncmp     ebx, [rsi]                                                     ; +0xd3, 0x1800133f3\njb      short loc_1800133E0                                            ; +0xd5, 0x1800133f5\njmp     short loc_180013405                                            ; +0xd7, 0x1800133f7\nmov     rax, [rdi]                                                     ; +0xd9, 0x1800133f9\nmov     rcx, rdi                                                       ; +0xdc, 0x1800133fc\ncall    qword ptr [rax+2E0h]                                           ; +0xdf, 0x1800133ff\ncmp     byte ptr [rdi+1DDh], 0                                         ; +0xe5, 0x180013405\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xec, 0x18001340c\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xf1, 0x180013411\njz      short loc_180013466                                            ; +0xf6, 0x180013416\ncmp     byte ptr [rdi+220h], 0                                         ; +0xf8, 0x180013418\njz      short loc_18001345B                                            ; +0xff, 0x18001341f\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x101, 0x180013421\nmovss   xmm0, dword ptr [rdi+21Ch]                                     ; +0x107, 0x180013427\nmovss   xmm3, dword ptr [rdi+218h]                                     ; +0x10f, 0x18001342f\nmovss   xmm2, dword ptr [rdi+214h]                                     ; +0x117, 0x180013437\nmov     rcx, [rax]                                                     ; +0x11f, 0x18001343f\nmovss   xmm1, dword ptr [rdi+210h]                                     ; +0x122, 0x180013442\nmovss   [rsp+38h+var_18], xmm0                                         ; +0x12a, 0x18001344a\nmov     rdx, [rcx+68h]                                                 ; +0x130, 0x180013450\nmov     rcx, rax                                                       ; +0x134, 0x180013454\ncall    rdx                                                            ; +0x137, 0x180013457\njmp     short loc_180013466                                            ; +0x139, 0x180013459\nmov     ecx, 0C11h; cap                                                ; +0x13b, 0x18001345b\ncall    cs:glDisable                                                   ; +0x140, 0x180013460\nmov     rcx, [rdi+0C8h]                                                ; +0x146, 0x180013466\ntest    rcx, rcx                                                       ; +0x14d, 0x18001346d\njz      short loc_180013481                                            ; +0x150, 0x180013470\ncmp     byte ptr [rcx+38h], 0                                          ; +0x152, 0x180013472\njz      short loc_180013481                                            ; +0x156, 0x180013476\nmov     rdx, rdi                                                       ; +0x158, 0x180013478\ncall    cs:?afterDraw@CCGridBase@cocos2d@@QEAAXPEAVCCNode@2@@Z; cocos2d::CCGridBase::afterDraw(cocos2d::CCNode *) ; +0x15b, 0x18001347b\nadd     rsp, 30h                                                       ; +0x161, 0x180013481\npop     rdi                                                            ; +0x165, 0x180013485\njmp     cs:kmGLPopMatrix                                               ; +0x166, 0x180013486\nadd     rsp, 30h                                                       ; +0x16d, 0x18001348d\npop     rdi                                                            ; +0x171, 0x180013491\nretn                                                                   ; +0x172, 0x180013492", "xrefs": ["<???> @ 0x18002aca0", "<???> @ 0x18002b238", "<???> @ 0x180031008", "<???> @ 0x18003103c", "<???> @ 0x180032408", "<???> @ 0x18004c470"], "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"}