{"type": "func", "start": 4300139424, "end": 4300139588, "name": "GameToolbox::preVisitWithClippingRect", "pseudocode": "// \n// GameToolbox::preVisitWithClippingRect from 0x1004eeba0 to 0x1004eec44 (164 bytes)\n// \n// 4 xrefs:\n// > BoomScrollLayer::visit @ 0x1003a6370\n// > CCScrollLayerExt::visit @ 0x10042f2c2\n// > ParticlePreviewLayer::visit @ 0x1004777a8\n// > ScrollingLayer::visit @ 0x100720ab2\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 GameToolbox::preVisitWithClippingRect(cocos2d::CCNode *a1, cocos2d::CCRect a2)\n{\n  float *v2; // rsi\n  const cocos2d::CCPoint *v3; // r15\n  unsigned __int64 *v4; // rax\n  cocos2d::CCEGLView *v5; // rax\n  double v6; // [rsp+0h] [rbp-30h] BYREF\n  double v7[5]; // [rsp+8h] [rbp-28h] BYREF\n\n  if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCNode *, double, double))a1->isVisible)(\n         a1,\n         *(double *)&a2.origin,\n         *(double *)&a2.size) )\n  {\n    glEnable(0xC11u);\n    v3 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCNode *))a1->getParent)(a1);\n    v4 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCNode *))a1->getPosition)(a1);\n    sub_10028CCE0(v7, v4, (unsigned __int64 *)v2);\n    cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v6, v3);\n    sub_10028CC90(v2, &v6);\n    v5 = cocos2d::CCEGLView::sharedOpenGLView();\n    ((void (__fastcall *)(cocos2d::CCEGLView *, float, float, float, float))v5->setScissorInPoints)(\n      v5,\n      *v2,\n      v2[1],\n      v2[2],\n      v2[3]);\n  }\n}", "assembly": "; \n; GameToolbox::preVisitWithClippingRect from 0x1004eeba0 to 0x1004eec44 (164 bytes)\n; \n; 4 xrefs:\n; > BoomScrollLayer::visit @ 0x1003a6370\n; > CCScrollLayerExt::visit @ 0x10042f2c2\n; > ParticlePreviewLayer::visit @ 0x1004777a8\n; > ScrollingLayer::visit @ 0x100720ab2\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, 0x1004eeba0\nmov     rbp, rsp                                                       ; +0x1, 0x1004eeba1\npush    r15                                                            ; +0x4, 0x1004eeba4\npush    r14                                                            ; +0x6, 0x1004eeba6\npush    r12                                                            ; +0x8, 0x1004eeba8\npush    rbx                                                            ; +0xa, 0x1004eebaa\nsub     rsp, 10h                                                       ; +0xb, 0x1004eebab\nmov     rbx, rsi                                                       ; +0xf, 0x1004eebaf\nmov     r14, rdi                                                       ; +0x12, 0x1004eebb2\nmov     rax, [rdi]                                                     ; +0x15, 0x1004eebb5\ncall    qword ptr [rax+150h]                                           ; +0x18, 0x1004eebb8\ntest    al, al                                                         ; +0x1e, 0x1004eebbe\njz      short loc_1004EEC37                                            ; +0x20, 0x1004eebc0\nmov     edi, 0C11h; cap                                                ; +0x22, 0x1004eebc2\ncall    _glEnable                                                      ; +0x27, 0x1004eebc7\nmov     rax, [r14]                                                     ; +0x2c, 0x1004eebcc\nmov     rdi, r14                                                       ; +0x2f, 0x1004eebcf\ncall    qword ptr [rax+1F0h]                                           ; +0x32, 0x1004eebd2\nmov     r15, rax                                                       ; +0x38, 0x1004eebd8\nmov     rax, [r14]                                                     ; +0x3b, 0x1004eebdb\nmov     rdi, r14                                                       ; +0x3e, 0x1004eebde\ncall    qword ptr [rax+0C0h]                                           ; +0x41, 0x1004eebe1\nlea     r14, [rbp+var_28]                                              ; +0x47, 0x1004eebe7\nmov     rdi, r14                                                       ; +0x4b, 0x1004eebeb\nmov     rsi, rax                                                       ; +0x4e, 0x1004eebee\nmov     rdx, rbx                                                       ; +0x51, 0x1004eebf1\ncall    sub_10028CCE0                                                  ; +0x54, 0x1004eebf4\nlea     r12, [rbp+var_30]                                              ; +0x59, 0x1004eebf9\nmov     rdi, r12                                                       ; +0x5d, 0x1004eebfd\nmov     rsi, r15                                                       ; +0x60, 0x1004eec00\nmov     rdx, r14                                                       ; +0x63, 0x1004eec03\ncall    cocos2d__CCNode__convertToWorldSpace                           ; +0x66, 0x1004eec06\nmov     rdi, rbx                                                       ; +0x6b, 0x1004eec0b\nmov     rsi, r12                                                       ; +0x6e, 0x1004eec0e\ncall    sub_10028CC90                                                  ; +0x71, 0x1004eec11\ncall    cocos2d__CCEGLView__sharedOpenGLView                           ; +0x76, 0x1004eec16\nmovss   xmm0, dword ptr [rbx]                                          ; +0x7b, 0x1004eec1b\nmovss   xmm1, dword ptr [rbx+4]                                        ; +0x7f, 0x1004eec1f\nmovss   xmm2, dword ptr [rbx+8]                                        ; +0x84, 0x1004eec24\nmovss   xmm3, dword ptr [rbx+0Ch]                                      ; +0x89, 0x1004eec29\nmov     rcx, [rax]                                                     ; +0x8e, 0x1004eec2e\nmov     rdi, rax                                                       ; +0x91, 0x1004eec31\ncall    qword ptr [rcx+70h]                                            ; +0x94, 0x1004eec34\nadd     rsp, 10h                                                       ; +0x97, 0x1004eec37\npop     rbx                                                            ; +0x9b, 0x1004eec3b\npop     r12                                                            ; +0x9c, 0x1004eec3c\npop     r14                                                            ; +0x9e, 0x1004eec3e\npop     r15                                                            ; +0xa0, 0x1004eec40\npop     rbp                                                            ; +0xa2, 0x1004eec42\nretn                                                                   ; +0xa3, 0x1004eec43", "xrefs": ["BoomScrollLayer::visit @ 0x1003a6370", "CCScrollLayerExt::visit @ 0x10042f2c2", "ParticlePreviewLayer::visit @ 0x1004777a8", "ScrollingLayer::visit @ 0x100720ab2"], "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"}