{"type": "func", "start": 6442593008, "end": 6442593207, "name": "cocos2d::CCGridBase::afterDraw", "pseudocode": "// \n// cocos2d::CCGridBase::afterDraw from 0x180022af0 to 0x180022bb7 (199 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCNode::visit @ 0x18000599b\n// > cocos2d::CCRenderTexture::visit @ 0x180062a4f\n// > cocos2d::CCParticleBatchNode::visit @ 0x18006433f\n// > cocos2d::CCSpriteBatchNode::visit @ 0x18009284c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9040\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:21:28 +0000\n// \n\nvoid __fastcall cocos2d::CCGridBase::afterDraw(cocos2d::CCGridBase *this, struct cocos2d::CCNode *a2)\n{\n  struct cocos2d::CCDirector *v4; // rax\n  _DWORD *v5; // rax\n  cocos2d::CCCamera *v6; // rax\n  unsigned int v7; // eax\n  unsigned int v8; // edx\n  int v9; // [rsp+30h] [rbp+8h] BYREF\n\n  cocos2d::CCGrabber::afterRender(*((_QWORD *)this + 11));\n  v4 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::setProjection(v4, *((unsigned int *)this + 28));\n  if ( *(_BYTE *)((*(__int64 (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 664LL))(a2) + 92) )\n  {\n    v5 = (_DWORD *)(*(__int64 (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 304LL))(a2);\n    cocos2d::cc_timeval::operator=(&v9, v5);\n    kmGLTranslatef();\n    v6 = (cocos2d::CCCamera *)(*(__int64 (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 664LL))(a2);\n    cocos2d::CCCamera::locate(v6);\n    kmGLTranslatef();\n  }\n  v7 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 9) + 96LL))(*((_QWORD *)this + 9));\n  cocos2d::ccGLBindTexture2D((cocos2d *)v7, v8);\n  (*(void (__fastcall **)(cocos2d::CCGridBase *))(*(_QWORD *)this + 72LL))(this);\n}", "assembly": "; \n; cocos2d::CCGridBase::afterDraw from 0x180022af0 to 0x180022bb7 (199 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCNode::visit @ 0x18000599b\n; > cocos2d::CCRenderTexture::visit @ 0x180062a4f\n; > cocos2d::CCParticleBatchNode::visit @ 0x18006433f\n; > cocos2d::CCSpriteBatchNode::visit @ 0x18009284c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9040\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:21:28 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180022af0\npush    rdi                                                            ; +0x5, 0x180022af5\nsub     rsp, 20h                                                       ; +0x6, 0x180022af6\nmov     rdi, rdx                                                       ; +0xa, 0x180022afa\nmov     rbx, rcx                                                       ; +0xd, 0x180022afd\nmov     rdx, [rcx+48h]                                                 ; +0x10, 0x180022b00\nmov     rcx, [rcx+58h]                                                 ; +0x14, 0x180022b04\ncall    cocos2d__CCGrabber__afterRender                                ; +0x18, 0x180022b08\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1d, 0x180022b0d\nmov     edx, [rbx+70h]                                                 ; +0x22, 0x180022b12\nmov     rcx, rax                                                       ; +0x25, 0x180022b15\ncall    ?setProjection@CCDirector@cocos2d@@QEAAXW4ccDirectorProjection@2@@Z; cocos2d::CCDirector::setProjection(cocos2d::ccDirectorProjection) ; +0x28, 0x180022b18\nmov     rax, [rdi]                                                     ; +0x2d, 0x180022b1d\nmov     rcx, rdi                                                       ; +0x30, 0x180022b20\ncall    qword ptr [rax+298h]                                           ; +0x33, 0x180022b23\ncmp     byte ptr [rax+5Ch], 0                                          ; +0x39, 0x180022b29\njz      short loc_180022B92                                            ; +0x3d, 0x180022b2d\nmov     rax, [rdi]                                                     ; +0x3f, 0x180022b2f\nmov     rcx, rdi                                                       ; +0x42, 0x180022b32\ncall    qword ptr [rax+130h]                                           ; +0x45, 0x180022b35\nmov     rdx, rax                                                       ; +0x4b, 0x180022b3b\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x4e, 0x180022b3e\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x53, 0x180022b43\nmovss   xmm1, [rsp+28h+arg_4]                                          ; +0x58, 0x180022b48\nxorps   xmm2, xmm2                                                     ; +0x5e, 0x180022b4e\nmovss   xmm0, [rsp+28h+arg_0]                                          ; +0x61, 0x180022b51\ncall    kmGLTranslatef                                                 ; +0x67, 0x180022b57\nmov     rax, [rdi]                                                     ; +0x6c, 0x180022b5c\nmov     rcx, rdi                                                       ; +0x6f, 0x180022b5f\ncall    qword ptr [rax+298h]                                           ; +0x72, 0x180022b62\nmov     rcx, rax; this                                                 ; +0x78, 0x180022b68\ncall    ?locate@CCCamera@cocos2d@@QEAAXXZ; cocos2d::CCCamera::locate(void) ; +0x7b, 0x180022b6b\nmovss   xmm1, [rsp+28h+arg_4]                                          ; +0x80, 0x180022b70\nxorps   xmm2, xmm2                                                     ; +0x86, 0x180022b76\nmovss   xmm0, [rsp+28h+arg_0]                                          ; +0x89, 0x180022b79\nxorps   xmm1, cs:xmmword_1800EC220                                     ; +0x8f, 0x180022b7f\nxorps   xmm0, cs:xmmword_1800EC220                                     ; +0x96, 0x180022b86\ncall    kmGLTranslatef                                                 ; +0x9d, 0x180022b8d\nmov     rcx, [rbx+48h]                                                 ; +0xa2, 0x180022b92\nmov     rax, [rcx]                                                     ; +0xa6, 0x180022b96\ncall    qword ptr [rax+60h]                                            ; +0xa9, 0x180022b99\nmov     ecx, eax; this                                                 ; +0xac, 0x180022b9c\ncall    ?ccGLBindTexture2D@cocos2d@@YAXI@Z; cocos2d::ccGLBindTexture2D(uint) ; +0xae, 0x180022b9e\nmov     rax, [rbx]                                                     ; +0xb3, 0x180022ba3\nmov     rcx, rbx                                                       ; +0xb6, 0x180022ba6\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb9, 0x180022ba9\nadd     rsp, 20h                                                       ; +0xbe, 0x180022bae\npop     rdi                                                            ; +0xc2, 0x180022bb2\njmp     qword ptr [rax+48h]                                            ; +0xc3, 0x180022bb3", "xrefs": ["cocos2d::CCNode::visit @ 0x18000599b", "cocos2d::CCRenderTexture::visit @ 0x180062a4f", "cocos2d::CCParticleBatchNode::visit @ 0x18006433f", "cocos2d::CCSpriteBatchNode::visit @ 0x18009284c", "<???> @ 0x18014cf68", "<???> @ 0x1801b9040"], "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"}