{"type": "func", "start": 6442529040, "end": 6442529456, "name": "cocos2d::extension::CCScrollView::beforeDraw", "pseudocode": "// \n// cocos2d::extension::CCScrollView::beforeDraw from 0x180013110 to 0x1800132b0 (416 bytes)\n// \n// 5 xrefs:\n// > cocos2d::extension::CCScrollView::visit @ 0x180013377\n// > <???> @ 0x180030fb0\n// > <???> @ 0x180030ff0\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c428\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::beforeDraw(cocos2d::extension::CCScrollView *this)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // rax\n  int v7; // [rsp+30h] [rbp-68h] BYREF\n  _BYTE v8[16]; // [rsp+40h] [rbp-58h] BYREF\n\n  if ( *((_BYTE *)this + 477) )\n  {\n    *((_BYTE *)this + 544) = 0;\n    cocos2d::extension::CCScrollView::getViewRect(this, &v7);\n    v2 = cocos2d::CCEGLView::sharedOpenGLView();\n    if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 112LL))(v2) )\n    {\n      *((_BYTE *)this + 544) = 1;\n      v3 = cocos2d::CCEGLView::sharedOpenGLView();\n      v4 = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v3 + 120LL))(v3, v8);\n      cocos2d::CCRect::operator=((char *)this + 528, v4);\n      if ( cocos2d::CCRect::intersectsRect(\n             (cocos2d::CCRect *)&v7,\n             (cocos2d::extension::CCScrollView *)((char *)this + 528)) )\n      {\n        v5 = cocos2d::CCEGLView::sharedOpenGLView();\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 104LL))(v5);\n      }\n    }\n    else\n    {\n      glEnable(0xC11u);\n      v6 = cocos2d::CCEGLView::sharedOpenGLView();\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 104LL))(v6);\n    }\n  }\n}", "assembly": "; \n; cocos2d::extension::CCScrollView::beforeDraw from 0x180013110 to 0x1800132b0 (416 bytes)\n; \n; 5 xrefs:\n; > cocos2d::extension::CCScrollView::visit @ 0x180013377\n; > <???> @ 0x180030fb0\n; > <???> @ 0x180030ff0\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c428\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    rbx                                                            ; +0x0, 0x180013110\nsub     rsp, 90h                                                       ; +0x2, 0x180013112\ncmp     byte ptr [rcx+1DDh], 0                                         ; +0x9, 0x180013119\nmov     rbx, rcx                                                       ; +0x10, 0x180013120\njz      loc_180013263                                                  ; +0x13, 0x180013123\nlea     rdx, [rsp+98h+var_68]                                          ; +0x19, 0x180013129\nmov     byte ptr [rcx+220h], 0                                         ; +0x1e, 0x18001312e\ncall    ?getViewRect@CCScrollView@extension@cocos2d@@IEAA?AVCCRect@3@XZ; cocos2d::extension::CCScrollView::getViewRect(void) ; +0x25, 0x180013135\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x2a, 0x18001313a\nmov     rcx, rax                                                       ; +0x30, 0x180013140\nmov     rdx, [rax]                                                     ; +0x33, 0x180013143\ncall    qword ptr [rdx+70h]                                            ; +0x36, 0x180013146\ntest    al, al                                                         ; +0x39, 0x180013149\njz      loc_18001326C                                                  ; +0x3b, 0x18001314b\nmov     [rsp+98h+arg_0], rdi                                           ; +0x41, 0x180013151\nmov     byte ptr [rbx+220h], 1                                         ; +0x49, 0x180013159\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x50, 0x180013160\nlea     rdx, [rsp+98h+var_58]                                          ; +0x56, 0x180013166\nmov     rcx, [rax]                                                     ; +0x5b, 0x18001316b\nmov     r8, [rcx+78h]                                                  ; +0x5e, 0x18001316e\nmov     rcx, rax                                                       ; +0x62, 0x180013172\ncall    r8                                                             ; +0x65, 0x180013175\nmov     rdx, rax                                                       ; +0x68, 0x180013178\nlea     rcx, [rbx+210h]                                                ; +0x6b, 0x18001317b\ncall    cs:??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x72, 0x180013182\nlea     rdx, [rbx+210h]                                                ; +0x78, 0x180013188\nlea     rcx, [rsp+98h+var_68]                                          ; +0x7f, 0x18001318f\ncall    cs:?intersectsRect@CCRect@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCRect::intersectsRect(cocos2d::CCRect const &) ; +0x84, 0x180013194\ntest    al, al                                                         ; +0x8a, 0x18001319a\njz      loc_18001325B                                                  ; +0x8c, 0x18001319c\nmovss   xmm0, [rsp+98h+var_68]                                         ; +0x92, 0x1800131a2\nmovss   xmm1, [rsp+98h+var_64]                                         ; +0x98, 0x1800131a8\nmovss   xmm2, dword ptr [rbx+210h]                                     ; +0x9e, 0x1800131ae\nmovss   xmm4, dword ptr [rbx+214h]                                     ; +0xa6, 0x1800131b6\nmovaps  [rsp+98h+var_18], xmm6                                         ; +0xae, 0x1800131be\nmovss   xmm6, [rsp+98h+var_5C]                                         ; +0xb6, 0x1800131c6\nmovaps  [rsp+98h+var_28], xmm7                                         ; +0xbc, 0x1800131cc\naddss   xmm6, xmm1                                                     ; +0xc1, 0x1800131d1\nmovss   xmm7, [rsp+98h+var_60]                                         ; +0xc5, 0x1800131d5\nmovaps  [rsp+98h+var_38], xmm8                                         ; +0xcb, 0x1800131db\naddss   xmm7, xmm0                                                     ; +0xd1, 0x1800131e1\nmovaps  [rsp+98h+var_48], xmm9                                         ; +0xd5, 0x1800131e5\nmovaps  xmm8, xmm1                                                     ; +0xdb, 0x1800131eb\nmovaps  xmm9, xmm0                                                     ; +0xdf, 0x1800131ef\nmaxss   xmm8, xmm4                                                     ; +0xe3, 0x1800131f3\naddss   xmm4, dword ptr [rbx+21Ch]                                     ; +0xe8, 0x1800131f8\nmaxss   xmm9, xmm2                                                     ; +0xf0, 0x180013200\naddss   xmm2, dword ptr [rbx+218h]                                     ; +0xf5, 0x180013205\nminss   xmm6, xmm4                                                     ; +0xfd, 0x18001320d\nminss   xmm7, xmm2                                                     ; +0x101, 0x180013211\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x105, 0x180013215\nsubss   xmm7, xmm9                                                     ; +0x10b, 0x18001321b\nmovaps  xmm2, xmm8                                                     ; +0x110, 0x180013220\nsubss   xmm6, xmm8                                                     ; +0x114, 0x180013224\nmovaps  xmm1, xmm9                                                     ; +0x119, 0x180013229\nmov     rcx, [rax]                                                     ; +0x11d, 0x18001322d\nmovaps  xmm3, xmm7                                                     ; +0x120, 0x180013230\nmovss   [rsp+98h+var_78], xmm6                                         ; +0x123, 0x180013233\nmov     rdx, [rcx+68h]                                                 ; +0x129, 0x180013239\nmov     rcx, rax                                                       ; +0x12d, 0x18001323d\ncall    rdx                                                            ; +0x130, 0x180013240\nmovaps  xmm9, [rsp+98h+var_48]                                         ; +0x132, 0x180013242\nmovaps  xmm8, [rsp+98h+var_38]                                         ; +0x138, 0x180013248\nmovaps  xmm7, [rsp+98h+var_28]                                         ; +0x13e, 0x18001324e\nmovaps  xmm6, [rsp+98h+var_18]                                         ; +0x143, 0x180013253\nmov     rdi, [rsp+98h+arg_0]                                           ; +0x14b, 0x18001325b\nadd     rsp, 90h                                                       ; +0x153, 0x180013263\npop     rbx                                                            ; +0x15a, 0x18001326a\nretn                                                                   ; +0x15b, 0x18001326b\nmov     ecx, 0C11h; cap                                                ; +0x15c, 0x18001326c\ncall    cs:glEnable                                                    ; +0x161, 0x180013271\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x167, 0x180013277\nmovss   xmm0, [rsp+98h+var_5C]                                         ; +0x16d, 0x18001327d\nmovss   xmm3, [rsp+98h+var_60]                                         ; +0x173, 0x180013283\nmovss   xmm2, [rsp+98h+var_64]                                         ; +0x179, 0x180013289\nmov     rcx, [rax]                                                     ; +0x17f, 0x18001328f\nmovss   xmm1, [rsp+98h+var_68]                                         ; +0x182, 0x180013292\nmovss   [rsp+98h+var_78], xmm0                                         ; +0x188, 0x180013298\nmov     rdx, [rcx+68h]                                                 ; +0x18e, 0x18001329e\nmov     rcx, rax                                                       ; +0x192, 0x1800132a2\ncall    rdx                                                            ; +0x195, 0x1800132a5\nadd     rsp, 90h                                                       ; +0x197, 0x1800132a7\npop     rbx                                                            ; +0x19e, 0x1800132ae\nretn                                                                   ; +0x19f, 0x1800132af", "xrefs": ["cocos2d::extension::CCScrollView::visit @ 0x180013377", "<???> @ 0x180030fb0", "<???> @ 0x180030ff0", "<???> @ 0x180032408", "<???> @ 0x18004c428"], "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"}