{"type": "func", "start": 6443038096, "end": 6443038241, "name": "cocos2d::CCSpriteBatchNode::visit", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::visit from 0x18008f590 to 0x18008f621 (145 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800ec558\n// > <???> @ 0x180103f58\n// > <???> @ 0x180105cc0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b61c8\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::CCSpriteBatchNode::visit(cocos2d::CCSpriteBatchNode *this)\n{\n  cocos2d::CCGridBase *m_pGrid; // rcx\n  cocos2d::CCGridBase *v3; // rcx\n\n  if ( ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getTotalQuads)(this->m_pobTextureAtlas)\n    && 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    ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *))this->sortAllChildren)(this);\n    cocos2d::CCNode::transform(this);\n    ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *))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  }\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::visit from 0x18008f590 to 0x18008f621 (145 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800ec558\n; > <???> @ 0x180103f58\n; > <???> @ 0x180105cc0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b61c8\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, 0x18008f590\nsub     rsp, 20h                                                       ; +0x2, 0x18008f592\nmov     rbx, rcx                                                       ; +0x6, 0x18008f596\nmov     rcx, [rcx+148h]                                                ; +0x9, 0x18008f599\nmov     rax, [rcx]                                                     ; +0x10, 0x18008f5a0\ncall    qword ptr [rax+48h]                                            ; +0x13, 0x18008f5a3\ntest    eax, eax                                                       ; +0x16, 0x18008f5a6\njz      short loc_18008F61B                                            ; +0x18, 0x18008f5a8\ncmp     byte ptr [rbx+11Eh], 0                                         ; +0x1a, 0x18008f5aa\njz      short loc_18008F61B                                            ; +0x21, 0x18008f5b1\ncall    kmGLPushMatrix                                                 ; +0x23, 0x18008f5b3\nmov     rcx, [rbx+0C8h]; this                                          ; +0x28, 0x18008f5b8\ntest    rcx, rcx                                                       ; +0x2f, 0x18008f5bf\njz      short loc_18008F5D7                                            ; +0x32, 0x18008f5c2\ncmp     byte ptr [rcx+38h], 0                                          ; +0x34, 0x18008f5c4\njz      short loc_18008F5D7                                            ; +0x38, 0x18008f5c8\ncall    ?beforeDraw@CCGridBase@cocos2d@@QEAAXXZ; cocos2d::CCGridBase::beforeDraw(void) ; +0x3a, 0x18008f5ca\nmov     rcx, rbx; this                                                 ; +0x3f, 0x18008f5cf\ncall    ?transformAncestors@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::transformAncestors(void) ; +0x42, 0x18008f5d2\nmov     rax, [rbx]                                                     ; +0x47, 0x18008f5d7\nmov     rcx, rbx                                                       ; +0x4a, 0x18008f5da\ncall    qword ptr [rax+240h]                                           ; +0x4d, 0x18008f5dd\nmov     rcx, rbx; this                                                 ; +0x53, 0x18008f5e3\ncall    ?transform@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::transform(void) ; +0x56, 0x18008f5e6\nmov     rax, [rbx]                                                     ; +0x5b, 0x18008f5eb\nmov     rcx, rbx                                                       ; +0x5e, 0x18008f5ee\ncall    qword ptr [rax+2D0h]                                           ; +0x61, 0x18008f5f1\nmov     rcx, [rbx+0C8h]; this                                          ; +0x67, 0x18008f5f7\ntest    rcx, rcx                                                       ; +0x6e, 0x18008f5fe\njz      short loc_18008F611                                            ; +0x71, 0x18008f601\ncmp     byte ptr [rcx+38h], 0                                          ; +0x73, 0x18008f603\njz      short loc_18008F611                                            ; +0x77, 0x18008f607\nmov     rdx, rbx; struct cocos2d::CCNode *                             ; +0x79, 0x18008f609\ncall    ?afterDraw@CCGridBase@cocos2d@@QEAAXPEAVCCNode@2@@Z; cocos2d::CCGridBase::afterDraw(cocos2d::CCNode *) ; +0x7c, 0x18008f60c\nadd     rsp, 20h                                                       ; +0x81, 0x18008f611\npop     rbx                                                            ; +0x85, 0x18008f615\njmp     kmGLPopMatrix                                                  ; +0x86, 0x18008f616\nadd     rsp, 20h                                                       ; +0x8b, 0x18008f61b\npop     rbx                                                            ; +0x8f, 0x18008f61f\nretn                                                                   ; +0x90, 0x18008f620", "xrefs": ["<???> @ 0x1800ec558", "<???> @ 0x180103f58", "<???> @ 0x180105cc0", "<???> @ 0x1801438a8", "<???> @ 0x1801b61c8"], "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"}