{"type": "func", "start": 4299354864, "end": 4299354990, "name": "CCScrollLayerExt::preVisitWithClippingRect", "pseudocode": "// \n// CCScrollLayerExt::preVisitWithClippingRect from 0x10042f2f0 to 0x10042f36e (126 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1009360a0\n// > <???> @ 0x1009827e8\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::preVisitWithClippingRect(CCScrollLayerExt *a1, cocos2d::CCRect a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // rsi\n  const cocos2d::CCPoint *v4; // r15\n  cocos2d::CCEGLView *v5; // rax\n  __int64 v6; // [rsp+0h] [rbp-20h] BYREF\n\n  v6 = v2;\n  if ( ((unsigned __int8 (__fastcall *)(CCScrollLayerExt *, double, double))a1->isVisible)(\n         a1,\n         *(double *)&a2.origin,\n         *(double *)&a2.size) )\n  {\n    glEnable(0xC11u);\n    v4 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getParent)(a1);\n    ((void (__fastcall *)(CCScrollLayerExt *))a1->getPosition)(a1);\n    cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v6, v4);\n    v5 = cocos2d::CCEGLView::sharedOpenGLView();\n    ((void (__fastcall *)(cocos2d::CCEGLView *, float, float, float, float))v5->setScissorInPoints)(\n      v5,\n      *(float *)&v6,\n      *((float *)&v6 + 1),\n      *(float *)(v3 + 8),\n      *(float *)(v3 + 12));\n  }\n}", "assembly": "; \n; CCScrollLayerExt::preVisitWithClippingRect from 0x10042f2f0 to 0x10042f36e (126 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1009360a0\n; > <???> @ 0x1009827e8\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, 0x10042f2f0\nmov     rbp, rsp                                                       ; +0x1, 0x10042f2f1\npush    r15                                                            ; +0x4, 0x10042f2f4\npush    r14                                                            ; +0x6, 0x10042f2f6\npush    rbx                                                            ; +0x8, 0x10042f2f8\npush    rax                                                            ; +0x9, 0x10042f2f9\nmov     rbx, rsi                                                       ; +0xa, 0x10042f2fa\nmov     r14, rdi                                                       ; +0xd, 0x10042f2fd\nmov     rax, [rdi]                                                     ; +0x10, 0x10042f300\ncall    qword ptr [rax+150h]                                           ; +0x13, 0x10042f303\ntest    al, al                                                         ; +0x19, 0x10042f309\njz      short loc_10042F363                                            ; +0x1b, 0x10042f30b\nmov     edi, 0C11h; cap                                                ; +0x1d, 0x10042f30d\ncall    _glEnable                                                      ; +0x22, 0x10042f312\nmov     rax, [r14]                                                     ; +0x27, 0x10042f317\nmov     rdi, r14                                                       ; +0x2a, 0x10042f31a\ncall    qword ptr [rax+1F0h]                                           ; +0x2d, 0x10042f31d\nmov     r15, rax                                                       ; +0x33, 0x10042f323\nmov     rax, [r14]                                                     ; +0x36, 0x10042f326\nmov     rdi, r14                                                       ; +0x39, 0x10042f329\ncall    qword ptr [rax+0C0h]                                           ; +0x3c, 0x10042f32c\nlea     rdi, [rbp+var_20]                                              ; +0x42, 0x10042f332\nmov     rsi, r15                                                       ; +0x46, 0x10042f336\nmov     rdx, rax                                                       ; +0x49, 0x10042f339\ncall    cocos2d__CCNode__convertToWorldSpace                           ; +0x4c, 0x10042f33c\ncall    cocos2d__CCEGLView__sharedOpenGLView                           ; +0x51, 0x10042f341\nmovss   xmm0, [rbp+var_20]                                             ; +0x56, 0x10042f346\nmovss   xmm1, [rbp+var_1C]                                             ; +0x5b, 0x10042f34b\nmovss   xmm2, dword ptr [rbx+8]                                        ; +0x60, 0x10042f350\nmovss   xmm3, dword ptr [rbx+0Ch]                                      ; +0x65, 0x10042f355\nmov     rcx, [rax]                                                     ; +0x6a, 0x10042f35a\nmov     rdi, rax                                                       ; +0x6d, 0x10042f35d\ncall    qword ptr [rcx+70h]                                            ; +0x70, 0x10042f360\nadd     rsp, 8                                                         ; +0x73, 0x10042f363\npop     rbx                                                            ; +0x77, 0x10042f367\npop     r14                                                            ; +0x78, 0x10042f368\npop     r15                                                            ; +0x7a, 0x10042f36a\npop     rbp                                                            ; +0x7c, 0x10042f36c\nretn                                                                   ; +0x7d, 0x10042f36d", "xrefs": ["<???> @ 0x1009360a0", "<???> @ 0x1009827e8"], "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"}