{"type": "func", "start": 5369120240, "end": 5369120403, "name": "GameToolbox::preVisitWithClippingRect", "pseudocode": "// \n// GameToolbox::preVisitWithClippingRect from 0x1400645f0 to 0x140064693 (163 bytes)\n// \n// 5 xrefs:\n// > BoomScrollLayer::visit @ 0x14003dc4a\n// > CCScrollLayerExt::visit @ 0x140047c0c\n// > ScrollingLayer::visit @ 0x140070ff9\n// > ParticlePreviewLayer::visit @ 0x1404358e5\n// > <???> @ 0x1406c5d0c\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 GameToolbox::preVisitWithClippingRect(cocos2d::CCNode *a1, cocos2d::CCRect *a2)\n{\n  const cocos2d::CCPoint *v4; // rax\n  cocos2d::CCNode *v5; // rax\n  struct cocos2d::CCPoint v6; // rax\n  __int64 v7; // rax\n  char v8; // [rsp+40h] [rbp+8h] BYREF\n  struct cocos2d::CCPoint v9; // [rsp+50h] [rbp+18h] BYREF\n\n  if ( a1->isVisible(a1) )\n  {\n    glEnable(0xC11u);\n    v4 = a1->getPosition_0(a1);\n    cocos2d::CCPoint::operator+(v4, &v8);\n    v5 = a1->getParent(a1);\n    v6 = cocos2d::CCNode::convertToWorldSpace(v5, &v9);\n    ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(a2, v6);\n    v7 = cocos2d::CCEGLView::sharedOpenGLView();\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 104LL))(v7);\n  }\n}", "assembly": "; \n; GameToolbox::preVisitWithClippingRect from 0x1400645f0 to 0x140064693 (163 bytes)\n; \n; 5 xrefs:\n; > BoomScrollLayer::visit @ 0x14003dc4a\n; > CCScrollLayerExt::visit @ 0x140047c0c\n; > ScrollingLayer::visit @ 0x140070ff9\n; > ParticlePreviewLayer::visit @ 0x1404358e5\n; > <???> @ 0x1406c5d0c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400645f0\npush    rdi                                                            ; +0x5, 0x1400645f5\nsub     rsp, 30h                                                       ; +0x6, 0x1400645f6\nmov     rax, [rcx]                                                     ; +0xa, 0x1400645fa\nmov     rdi, rdx                                                       ; +0xd, 0x1400645fd\nmov     rbx, rcx                                                       ; +0x10, 0x140064600\ncall    qword ptr [rax+148h]                                           ; +0x13, 0x140064603\ntest    al, al                                                         ; +0x19, 0x140064609\njz      short loc_140064688                                            ; +0x1b, 0x14006460b\nmov     ecx, 0C11h; cap                                                ; +0x1d, 0x14006460d\ncall    cs:glEnable                                                    ; +0x22, 0x140064612\nmov     rax, [rbx]                                                     ; +0x28, 0x140064618\nmov     rcx, rbx                                                       ; +0x2b, 0x14006461b\ncall    qword ptr [rax+0C8h]                                           ; +0x2e, 0x14006461e\nmov     r8, rdi                                                        ; +0x34, 0x140064624\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x37, 0x140064627\nmov     rcx, rax                                                       ; +0x3c, 0x14006462c\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x3f, 0x14006462f\nmov     rax, [rbx]                                                     ; +0x45, 0x140064635\nmov     rcx, rbx                                                       ; +0x48, 0x140064638\ncall    qword ptr [rax+1E8h]                                           ; +0x4b, 0x14006463b\nmov     rcx, rax                                                       ; +0x51, 0x140064641\nlea     r8, [rsp+38h+arg_0]                                            ; +0x54, 0x140064644\nlea     rdx, [rsp+38h+arg_10]                                          ; +0x59, 0x140064649\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x5e, 0x14006464e\nmov     rdx, rax                                                       ; +0x64, 0x140064654\nmov     rcx, rdi                                                       ; +0x67, 0x140064657\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x6a, 0x14006465a\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x70, 0x140064660\nmovss   xmm0, dword ptr [rdi+0Ch]                                      ; +0x76, 0x140064666\nmov     rcx, rax                                                       ; +0x7b, 0x14006466b\nmovss   xmm3, dword ptr [rdi+8]                                        ; +0x7e, 0x14006466e\nmovss   xmm2, dword ptr [rdi+4]                                        ; +0x83, 0x140064673\nmov     rdx, [rax]                                                     ; +0x88, 0x140064678\nmovss   xmm1, dword ptr [rdi]                                          ; +0x8b, 0x14006467b\nmovss   [rsp+38h+var_18], xmm0                                         ; +0x8f, 0x14006467f\ncall    qword ptr [rdx+68h]                                            ; +0x95, 0x140064685\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x98, 0x140064688\nadd     rsp, 30h                                                       ; +0x9d, 0x14006468d\npop     rdi                                                            ; +0xa1, 0x140064691\nretn                                                                   ; +0xa2, 0x140064692", "xrefs": ["BoomScrollLayer::visit @ 0x14003dc4a", "CCScrollLayerExt::visit @ 0x140047c0c", "ScrollingLayer::visit @ 0x140070ff9", "ParticlePreviewLayer::visit @ 0x1404358e5", "<???> @ 0x1406c5d0c"], "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"}