{"type": "func", "start": 6442846112, "end": 6442846246, "name": "cocos2d::CCRenderTexture::visit", "pseudocode": "// \n// cocos2d::CCRenderTexture::visit from 0x1800607a0 to 0x180060826 (134 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f9f38\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b348c\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 cocos2d::CCRenderTexture::visit(cocos2d::CCRenderTexture *this)\n{\n  cocos2d::CCGridBase *m_pGrid; // rcx\n  cocos2d::CCGridBase *v3; // rcx\n\n  if ( this->m_bVisible )\n  {\n    kmGLPushMatrix();\n    m_pGrid = this->m_pGrid;\n    if ( m_pGrid && m_pGrid->m_bActive )\n    {\n      cocos2d::CCGridBase::beforeDraw(m_pGrid);\n      cocos2d::CCNode::transformAncestors(this);\n    }\n    cocos2d::CCNode::transform(this);\n    ((void (__fastcall *)(cocos2d::CCSprite *))this->m_pSprite->visit)(this->m_pSprite);\n    ((void (__fastcall *)(cocos2d::CCRenderTexture *))this->draw)(this);\n    v3 = this->m_pGrid;\n    if ( v3 )\n    {\n      if ( v3->m_bActive )\n        cocos2d::CCGridBase::afterDraw(v3, this);\n    }\n    kmGLPopMatrix();\n    this->m_uOrderOfArrival = 0;\n  }\n}", "assembly": "; \n; cocos2d::CCRenderTexture::visit from 0x1800607a0 to 0x180060826 (134 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f9f38\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b348c\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    rbx                                                            ; +0x0, 0x1800607a0\nsub     rsp, 20h                                                       ; +0x2, 0x1800607a2\ncmp     byte ptr [rcx+11Eh], 0                                         ; +0x6, 0x1800607a6\nmov     rbx, rcx                                                       ; +0xd, 0x1800607ad\njz      short loc_180060820                                            ; +0x10, 0x1800607b0\ncall    kmGLPushMatrix                                                 ; +0x12, 0x1800607b2\nmov     rcx, [rbx+0C8h]; this                                          ; +0x17, 0x1800607b7\ntest    rcx, rcx                                                       ; +0x1e, 0x1800607be\njz      short loc_1800607D6                                            ; +0x21, 0x1800607c1\ncmp     byte ptr [rcx+38h], 0                                          ; +0x23, 0x1800607c3\njz      short loc_1800607D6                                            ; +0x27, 0x1800607c7\ncall    ?beforeDraw@CCGridBase@cocos2d@@QEAAXXZ; cocos2d::CCGridBase::beforeDraw(void) ; +0x29, 0x1800607c9\nmov     rcx, rbx; this                                                 ; +0x2e, 0x1800607ce\ncall    ?transformAncestors@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::transformAncestors(void) ; +0x31, 0x1800607d1\nmov     rcx, rbx; this                                                 ; +0x36, 0x1800607d6\ncall    ?transform@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::transform(void) ; +0x39, 0x1800607d9\nmov     rcx, [rbx+140h]                                                ; +0x3e, 0x1800607de\nmov     rax, [rcx]                                                     ; +0x45, 0x1800607e5\ncall    qword ptr [rax+2D8h]                                           ; +0x48, 0x1800607e8\nmov     rax, [rbx]                                                     ; +0x4e, 0x1800607ee\nmov     rcx, rbx                                                       ; +0x51, 0x1800607f1\ncall    qword ptr [rax+2D0h]                                           ; +0x54, 0x1800607f4\nmov     rcx, [rbx+0C8h]; this                                          ; +0x5a, 0x1800607fa\ntest    rcx, rcx                                                       ; +0x61, 0x180060801\njz      short loc_180060814                                            ; +0x64, 0x180060804\ncmp     byte ptr [rcx+38h], 0                                          ; +0x66, 0x180060806\njz      short loc_180060814                                            ; +0x6a, 0x18006080a\nmov     rdx, rbx; struct cocos2d::CCNode *                             ; +0x6c, 0x18006080c\ncall    ?afterDraw@CCGridBase@cocos2d@@QEAAXPEAVCCNode@2@@Z; cocos2d::CCGridBase::afterDraw(cocos2d::CCNode *) ; +0x6f, 0x18006080f\ncall    kmGLPopMatrix                                                  ; +0x74, 0x180060814\nmov     dword ptr [rbx+30h], 0                                         ; +0x79, 0x180060819\nadd     rsp, 20h                                                       ; +0x80, 0x180060820\npop     rbx                                                            ; +0x84, 0x180060824\nretn                                                                   ; +0x85, 0x180060825", "xrefs": ["<???> @ 0x1800f9f38", "<???> @ 0x1801438a8", "<???> @ 0x1801b348c"], "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"}