{"type": "func", "start": 6443025392, "end": 6443025511, "name": "cocos2d::CCSprite::setDirtyRecursively", "pseudocode": "// \n// cocos2d::CCSprite::setDirtyRecursively from 0x18008c3f0 to 0x18008c467 (119 bytes)\n// \n// 9 xrefs:\n// > <???> @ 0x1800ebca8\n// > <???> @ 0x1800ec180\n// > <???> @ 0x1800ecd00\n// > <???> @ 0x180103bb8\n// > <???> @ 0x180106bb0\n// > <???> @ 0x18013d6d0\n// > <???> @ 0x18013d6e0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5d3c\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::CCSprite::setDirtyRecursively(cocos2d::CCSprite *this, bool a2)\n{\n  cocos2d::CCSprite_vtbl *v2; // rax\n  __int64 v4; // rdx\n  cocos2d::CCArray *m_pChildren; // rax\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rdi\n\n  v2 = this->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  this->m_bRecursiveDirty = a2;\n  ((void (*)(void))v2->setDirty)();\n  if ( this->m_bHasChildren )\n  {\n    m_pChildren = this->m_pChildren;\n    if ( m_pChildren )\n    {\n      data = m_pChildren->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = data->arr;\n        for ( i = &arr[num - 1]; arr <= i; ++arr )\n        {\n          if ( !*arr )\n            break;\n          LOBYTE(v4) = 1;\n          ((void (__fastcall *)(cocos2d::CCObject *, __int64))(*arr)->__vftable[14].getTag)(*arr, v4);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCSprite::setDirtyRecursively from 0x18008c3f0 to 0x18008c467 (119 bytes)\n; \n; 9 xrefs:\n; > <???> @ 0x1800ebca8\n; > <???> @ 0x1800ec180\n; > <???> @ 0x1800ecd00\n; > <???> @ 0x180103bb8\n; > <???> @ 0x180106bb0\n; > <???> @ 0x18013d6d0\n; > <???> @ 0x18013d6e0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5d3c\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, 0x18008c3f0\nsub     rsp, 20h                                                       ; +0x2, 0x18008c3f2\nmov     rax, [rcx]                                                     ; +0x6, 0x18008c3f6\nmov     rbx, rcx                                                       ; +0x9, 0x18008c3f9\nmov     [rcx+179h], dl                                                 ; +0xc, 0x18008c3fc\ncall    qword ptr [rax+408h]                                           ; +0x12, 0x18008c402\ncmp     byte ptr [rbx+17Ah], 0                                         ; +0x18, 0x18008c408\njz      short loc_18008C461                                            ; +0x1f, 0x18008c40f\nmov     rax, [rbx+0D0h]                                                ; +0x21, 0x18008c411\ntest    rax, rax                                                       ; +0x28, 0x18008c418\njz      short loc_18008C461                                            ; +0x2b, 0x18008c41b\nmov     rbx, [rax+38h]                                                 ; +0x2d, 0x18008c41d\nmov     eax, [rbx]                                                     ; +0x31, 0x18008c421\ntest    eax, eax                                                       ; +0x33, 0x18008c423\njz      short loc_18008C461                                            ; +0x35, 0x18008c425\nmov     rbx, [rbx+10h]                                                 ; +0x37, 0x18008c427\nmov     [rsp+28h+arg_0], rdi                                           ; +0x3b, 0x18008c42b\nlea     rdi, [rax-1]                                                   ; +0x40, 0x18008c430\nlea     rdi, [rbx+rdi*8]                                               ; +0x44, 0x18008c434\ncmp     rbx, rdi                                                       ; +0x48, 0x18008c438\nja      short loc_18008C45C                                            ; +0x4b, 0x18008c43b\nnop     dword ptr [rax]                                                ; +0x4d, 0x18008c43d\nmov     rcx, [rbx]                                                     ; +0x50, 0x18008c440\ntest    rcx, rcx                                                       ; +0x53, 0x18008c443\njz      short loc_18008C45C                                            ; +0x56, 0x18008c446\nmov     rax, [rcx]                                                     ; +0x58, 0x18008c448\nmov     dl, 1                                                          ; +0x5b, 0x18008c44b\ncall    qword ptr [rax+428h]                                           ; +0x5d, 0x18008c44d\nadd     rbx, 8                                                         ; +0x63, 0x18008c453\ncmp     rbx, rdi                                                       ; +0x67, 0x18008c457\njbe     short loc_18008C440                                            ; +0x6a, 0x18008c45a\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x6c, 0x18008c45c\nadd     rsp, 20h                                                       ; +0x71, 0x18008c461\npop     rbx                                                            ; +0x75, 0x18008c465\nretn                                                                   ; +0x76, 0x18008c466", "xrefs": ["<???> @ 0x1800ebca8", "<???> @ 0x1800ec180", "<???> @ 0x1800ecd00", "<???> @ 0x180103bb8", "<???> @ 0x180106bb0", "<???> @ 0x18013d6d0", "<???> @ 0x18013d6e0", "<???> @ 0x1801438a8", "<???> @ 0x1801b5d3c"], "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"}