{"type": "func", "start": 5369158416, "end": 5369158669, "name": "GameToolbox::preVisitWithClippingRect", "pseudocode": "// \n// GameToolbox::preVisitWithClippingRect from 0x14006db10 to 0x14006dc0d (253 bytes)\n// \n// 7 xrefs:\n// > BoomScrollLayer::visit @ 0x1400414ba\n// > CCScrollLayerExt::visit @ 0x14004bb12\n// > ScrollingLayer::visit @ 0x140083ca9\n// > ParticlePreviewLayer::visit @ 0x1405cb1d3\n// > <???> @ 0x1408897ec\n// > <???> @ 0x1408897fc\n// > <???> @ 0x14091169c\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 11:25:48 +0000\n// \n\n__int64 __fastcall GameToolbox::preVisitWithClippingRect(__int64 a1, const struct cocos2d::CCRect *a2)\n{\n  __int64 result; // rax\n  const struct cocos2d::CCRect *v5; // rsi\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rax\n  _BYTE v10[16]; // [rsp+30h] [rbp-38h] BYREF\n  _BYTE v11[16]; // [rsp+40h] [rbp-28h] BYREF\n  char v12; // [rsp+70h] [rbp+8h] BYREF\n  char v13; // [rsp+80h] [rbp+18h] BYREF\n  char v14; // [rsp+88h] [rbp+20h] BYREF\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 344LL))(a1);\n  if ( (_BYTE)result )\n  {\n    glEnable(0xC11u);\n    v5 = (const struct cocos2d::CCRect *)cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, a2);\n    v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);\n    cocos2d::CCPoint::operator+(v6, &v12, v5);\n    v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 504LL))(a1);\n    if ( v7 )\n      cocos2d::CCNode::convertToWorldSpace(v7, &v13, &v12);\n    else\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, (const struct cocos2d::CCPoint *)&v12);\n    cocos2d::CCPoint::operator=(v5, v8);\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v10, v5);\n    cocos2d::CCRect::operator=(a2, v10);\n    v9 = cocos2d::CCEGLView::sharedOpenGLView();\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 104LL))(v9);\n  }\n  return result;\n}", "assembly": "; \n; GameToolbox::preVisitWithClippingRect from 0x14006db10 to 0x14006dc0d (253 bytes)\n; \n; 7 xrefs:\n; > BoomScrollLayer::visit @ 0x1400414ba\n; > CCScrollLayerExt::visit @ 0x14004bb12\n; > ScrollingLayer::visit @ 0x140083ca9\n; > ParticlePreviewLayer::visit @ 0x1405cb1d3\n; > <???> @ 0x1408897ec\n; > <???> @ 0x1408897fc\n; > <???> @ 0x14091169c\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 11:25:48 +0000\n; \npush    rbx                                                            ; +0x0, 0x14006db10\npush    rdi                                                            ; +0x2, 0x14006db12\nsub     rsp, 58h                                                       ; +0x3, 0x14006db13\nmov     rax, [rcx]                                                     ; +0x7, 0x14006db17\nmov     rdi, rdx                                                       ; +0xa, 0x14006db1a\nmov     rbx, rcx                                                       ; +0xd, 0x14006db1d\ncall    qword ptr [rax+158h]                                           ; +0x10, 0x14006db20\ntest    al, al                                                         ; +0x16, 0x14006db26\njz      loc_14006DC06                                                  ; +0x18, 0x14006db28\nmov     ecx, 0C11h; cap                                                ; +0x1e, 0x14006db2e\nmov     [rsp+68h+var_18], rsi                                          ; +0x23, 0x14006db33\ncall    cs:glEnable                                                    ; +0x28, 0x14006db38\nmov     rdx, rdi                                                       ; +0x2e, 0x14006db3e\nlea     rcx, [rsp+68h+var_28]                                          ; +0x31, 0x14006db41\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x36, 0x14006db46\nmov     rcx, [rbx]                                                     ; +0x3c, 0x14006db4c\nmov     rsi, rax                                                       ; +0x3f, 0x14006db4f\nmov     rdx, [rcx+0C8h]                                                ; +0x42, 0x14006db52\nmov     rcx, rbx                                                       ; +0x49, 0x14006db59\ncall    rdx                                                            ; +0x4c, 0x14006db5c\nmov     r8, rsi                                                        ; +0x4e, 0x14006db5e\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x51, 0x14006db61\nmov     rcx, rax                                                       ; +0x56, 0x14006db66\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x59, 0x14006db69\nmov     rcx, [rbx]                                                     ; +0x5f, 0x14006db6f\nmov     rdx, [rcx+1F8h]                                                ; +0x62, 0x14006db72\nmov     rcx, rbx                                                       ; +0x69, 0x14006db79\ncall    rdx                                                            ; +0x6c, 0x14006db7c\ntest    rax, rax                                                       ; +0x6e, 0x14006db7e\njz      short loc_14006DB9B                                            ; +0x71, 0x14006db81\nlea     r8, [rsp+68h+arg_0]                                            ; +0x73, 0x14006db83\nmov     rcx, rax                                                       ; +0x78, 0x14006db88\nlea     rdx, [rsp+68h+arg_10]                                          ; +0x7b, 0x14006db8b\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x83, 0x14006db93\njmp     short loc_14006DBAE                                            ; +0x89, 0x14006db99\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x8b, 0x14006db9b\nlea     rcx, [rsp+68h+arg_18]                                          ; +0x90, 0x14006dba0\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x98, 0x14006dba8\nmov     rdx, rax                                                       ; +0x9e, 0x14006dbae\nmov     rcx, rsi                                                       ; +0xa1, 0x14006dbb1\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xa4, 0x14006dbb4\nmov     rdx, rsi                                                       ; +0xaa, 0x14006dbba\nlea     rcx, [rsp+68h+var_38]                                          ; +0xad, 0x14006dbbd\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0xb2, 0x14006dbc2\nlea     rdx, [rsp+68h+var_38]                                          ; +0xb8, 0x14006dbc8\nmov     rcx, rdi                                                       ; +0xbd, 0x14006dbcd\ncall    cs:??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0xc0, 0x14006dbd0\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0xc6, 0x14006dbd6\nmovss   xmm0, dword ptr [rdi+0Ch]                                      ; +0xcc, 0x14006dbdc\nmovss   xmm3, dword ptr [rdi+8]                                        ; +0xd1, 0x14006dbe1\nmovss   xmm2, dword ptr [rdi+4]                                        ; +0xd6, 0x14006dbe6\nmov     rcx, [rax]                                                     ; +0xdb, 0x14006dbeb\nmovss   xmm1, dword ptr [rdi]                                          ; +0xde, 0x14006dbee\nmovss   [rsp+68h+var_48], xmm0                                         ; +0xe2, 0x14006dbf2\nmov     rdx, [rcx+68h]                                                 ; +0xe8, 0x14006dbf8\nmov     rcx, rax                                                       ; +0xec, 0x14006dbfc\ncall    rdx                                                            ; +0xef, 0x14006dbff\nmov     rsi, [rsp+68h+var_18]                                          ; +0xf1, 0x14006dc01\nadd     rsp, 58h                                                       ; +0xf6, 0x14006dc06\npop     rdi                                                            ; +0xfa, 0x14006dc0a\npop     rbx                                                            ; +0xfb, 0x14006dc0b\nretn                                                                   ; +0xfc, 0x14006dc0c", "xrefs": ["BoomScrollLayer::visit @ 0x1400414ba", "CCScrollLayerExt::visit @ 0x14004bb12", "ScrollingLayer::visit @ 0x140083ca9", "ParticlePreviewLayer::visit @ 0x1405cb1d3", "<???> @ 0x1408897ec", "<???> @ 0x1408897fc", "<???> @ 0x14091169c"], "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"}