{"type": "func", "start": 6442591680, "end": 6442591879, "name": "cocos2d::CCGridBase::afterDraw", "pseudocode": "// \n// cocos2d::CCGridBase::afterDraw from 0x1800225c0 to 0x180022687 (199 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCNode::visit @ 0x18000589b\n// > cocos2d::CCRenderTexture::visit @ 0x18006080f\n// > cocos2d::CCParticleBatchNode::visit @ 0x180061f1f\n// > cocos2d::CCSpriteBatchNode::visit @ 0x18008f60c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801aef5c\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::CCGridBase::afterDraw(cocos2d::CCGridBase *this, struct cocos2d::CCNode *a2)\n{\n  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  sub_180022000((__int64)this->m_pGrabber);\n  v4 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::setProjection(v4, this->m_directorProjection);\n  if ( *(_BYTE *)(((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->getCamera)(a2) + 92) )\n  {\n    v5 = (_DWORD *)((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->getAnchorPointInPoints)(a2);\n    cocos2d::cc_timeval::operator=(&v9, v5);\n    kmGLTranslatef();\n    v6 = (cocos2d::CCCamera *)((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->getCamera)(a2);\n    cocos2d::CCCamera::locate(v6);\n    kmGLTranslatef();\n  }\n  v7 = ((__int64 (__fastcall *)(cocos2d::CCTexture2D *))this->m_pTexture->getName)(this->m_pTexture);\n  cocos2d::ccGLBindTexture2D((cocos2d *)v7, v8);\n  ((void (__fastcall *)(cocos2d::CCGridBase *))this->blit)(this);\n}", "assembly": "; \n; cocos2d::CCGridBase::afterDraw from 0x1800225c0 to 0x180022687 (199 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCNode::visit @ 0x18000589b\n; > cocos2d::CCRenderTexture::visit @ 0x18006080f\n; > cocos2d::CCParticleBatchNode::visit @ 0x180061f1f\n; > cocos2d::CCSpriteBatchNode::visit @ 0x18008f60c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801aef5c\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, 0x1800225c0\npush    rdi                                                            ; +0x5, 0x1800225c5\nsub     rsp, 20h                                                       ; +0x6, 0x1800225c6\nmov     rdi, rdx                                                       ; +0xa, 0x1800225ca\nmov     rbx, rcx                                                       ; +0xd, 0x1800225cd\nmov     rdx, [rcx+48h]                                                 ; +0x10, 0x1800225d0\nmov     rcx, [rcx+58h]                                                 ; +0x14, 0x1800225d4\ncall    sub_180022000                                                  ; +0x18, 0x1800225d8\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1d, 0x1800225dd\nmov     edx, [rbx+70h]                                                 ; +0x22, 0x1800225e2\nmov     rcx, rax                                                       ; +0x25, 0x1800225e5\ncall    ?setProjection@CCDirector@cocos2d@@QEAAXW4ccDirectorProjection@2@@Z; cocos2d::CCDirector::setProjection(cocos2d::ccDirectorProjection) ; +0x28, 0x1800225e8\nmov     rax, [rdi]                                                     ; +0x2d, 0x1800225ed\nmov     rcx, rdi                                                       ; +0x30, 0x1800225f0\ncall    qword ptr [rax+288h]                                           ; +0x33, 0x1800225f3\ncmp     byte ptr [rax+5Ch], 0                                          ; +0x39, 0x1800225f9\njz      short loc_180022662                                            ; +0x3d, 0x1800225fd\nmov     rax, [rdi]                                                     ; +0x3f, 0x1800225ff\nmov     rcx, rdi                                                       ; +0x42, 0x180022602\ncall    qword ptr [rax+120h]                                           ; +0x45, 0x180022605\nmov     rdx, rax                                                       ; +0x4b, 0x18002260b\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x4e, 0x18002260e\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x53, 0x180022613\nmovss   xmm1, [rsp+28h+arg_4]                                          ; +0x58, 0x180022618\nxorps   xmm2, xmm2                                                     ; +0x5e, 0x18002261e\nmovss   xmm0, [rsp+28h+arg_0]                                          ; +0x61, 0x180022621\ncall    kmGLTranslatef                                                 ; +0x67, 0x180022627\nmov     rax, [rdi]                                                     ; +0x6c, 0x18002262c\nmov     rcx, rdi                                                       ; +0x6f, 0x18002262f\ncall    qword ptr [rax+288h]                                           ; +0x72, 0x180022632\nmov     rcx, rax; this                                                 ; +0x78, 0x180022638\ncall    ?locate@CCCamera@cocos2d@@QEAAXXZ; cocos2d::CCCamera::locate(void) ; +0x7b, 0x18002263b\nmovss   xmm1, [rsp+28h+arg_4]                                          ; +0x80, 0x180022640\nxorps   xmm2, xmm2                                                     ; +0x86, 0x180022646\nmovss   xmm0, [rsp+28h+arg_0]                                          ; +0x89, 0x180022649\nxorps   xmm1, cs:xmmword_1800E61C0                                     ; +0x8f, 0x18002264f\nxorps   xmm0, cs:xmmword_1800E61C0                                     ; +0x96, 0x180022656\ncall    kmGLTranslatef                                                 ; +0x9d, 0x18002265d\nmov     rcx, [rbx+48h]                                                 ; +0xa2, 0x180022662\nmov     rax, [rcx]                                                     ; +0xa6, 0x180022666\ncall    qword ptr [rax+60h]                                            ; +0xa9, 0x180022669\nmov     ecx, eax; this                                                 ; +0xac, 0x18002266c\ncall    ?ccGLBindTexture2D@cocos2d@@YAXI@Z; cocos2d::ccGLBindTexture2D(uint) ; +0xae, 0x18002266e\nmov     rax, [rbx]                                                     ; +0xb3, 0x180022673\nmov     rcx, rbx                                                       ; +0xb6, 0x180022676\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb9, 0x180022679\nadd     rsp, 20h                                                       ; +0xbe, 0x18002267e\npop     rdi                                                            ; +0xc2, 0x180022682\njmp     qword ptr [rax+48h]                                            ; +0xc3, 0x180022683", "xrefs": ["cocos2d::CCNode::visit @ 0x18000589b", "cocos2d::CCRenderTexture::visit @ 0x18006080f", "cocos2d::CCParticleBatchNode::visit @ 0x180061f1f", "cocos2d::CCSpriteBatchNode::visit @ 0x18008f60c", "<???> @ 0x1801438a8", "<???> @ 0x1801aef5c"], "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"}