{"type": "func", "start": 4300139616, "end": 4300139677, "name": "GameToolbox::preVisitWithClipRect", "pseudocode": "// \n// GameToolbox::preVisitWithClipRect from 0x1004eec60 to 0x1004eec9d (61 bytes)\n// \n// 1 xrefs:\n// > GJSmartBlockPreviewSprite::visit @ 0x1004298eb\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::preVisitWithClipRect(cocos2d::CCRect a1)\n{\n  float *v1; // rdi\n  cocos2d::CCEGLView *v2; // rax\n\n  glEnable(0xC11u);\n  v2 = cocos2d::CCEGLView::sharedOpenGLView();\n  ((void (__fastcall *)(cocos2d::CCEGLView *, float, float, float, float))v2->setScissorInPoints)(\n    v2,\n    *v1,\n    v1[1],\n    v1[2],\n    v1[3]);\n}", "assembly": "; \n; GameToolbox::preVisitWithClipRect from 0x1004eec60 to 0x1004eec9d (61 bytes)\n; \n; 1 xrefs:\n; > GJSmartBlockPreviewSprite::visit @ 0x1004298eb\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, 0x1004eec60\nmov     rbp, rsp                                                       ; +0x1, 0x1004eec61\npush    rbx                                                            ; +0x4, 0x1004eec64\npush    rax                                                            ; +0x5, 0x1004eec65\nmov     rbx, rdi                                                       ; +0x6, 0x1004eec66\nmov     edi, 0C11h; cap                                                ; +0x9, 0x1004eec69\ncall    _glEnable                                                      ; +0xe, 0x1004eec6e\ncall    cocos2d__CCEGLView__sharedOpenGLView                           ; +0x13, 0x1004eec73\nmovss   xmm0, dword ptr [rbx]                                          ; +0x18, 0x1004eec78\nmovss   xmm1, dword ptr [rbx+4]                                        ; +0x1c, 0x1004eec7c\nmovss   xmm2, dword ptr [rbx+8]                                        ; +0x21, 0x1004eec81\nmovss   xmm3, dword ptr [rbx+0Ch]                                      ; +0x26, 0x1004eec86\nmov     rcx, [rax]                                                     ; +0x2b, 0x1004eec8b\nmov     rcx, [rcx+70h]                                                 ; +0x2e, 0x1004eec8e\nmov     rdi, rax                                                       ; +0x32, 0x1004eec92\nadd     rsp, 8                                                         ; +0x35, 0x1004eec95\npop     rbx                                                            ; +0x39, 0x1004eec99\npop     rbp                                                            ; +0x3a, 0x1004eec9a\njmp     rcx                                                            ; +0x3b, 0x1004eec9b", "xrefs": ["GJSmartBlockPreviewSprite::visit @ 0x1004298eb"], "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"}