{"type": "func", "start": 5372053776, "end": 5372053914, "name": "LocalLevelManager::firstLoad", "pseudocode": "// \n// LocalLevelManager::firstLoad from 0x140330910 to 0x14033099a (138 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1405aa688\n// > <???> @ 0x1406d5024\n// > <???> @ 0x1406d5030\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 LocalLevelManager::firstLoad(LocalLevelManager *a1)\n{\n  cocos2d::CCArray *v2; // rax\n  cocos2d::CCArray *m_localLevels; // rcx\n  cocos2d::CCArray *v4; // rdi\n  cocos2d::CCArray *v5; // rax\n  cocos2d::CCArray *v6; // rdi\n  cocos2d::CCArray *m_localLists; // rcx\n\n  v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);\n  v4 = v2;\n  if ( a1->m_localLevels != v2 )\n  {\n    if ( v2 )\n      cocos2d::CCObject::retain(v2);\n    m_localLevels = a1->m_localLevels;\n    if ( m_localLevels )\n      cocos2d::CCObject::release(m_localLevels);\n    a1->m_localLevels = v4;\n  }\n  v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(m_localLevels);\n  v6 = v5;\n  if ( a1->m_localLists != v5 )\n  {\n    if ( v5 )\n      cocos2d::CCObject::retain(v5);\n    m_localLists = a1->m_localLists;\n    if ( m_localLists )\n      cocos2d::CCObject::release(m_localLists);\n    a1->m_localLists = v6;\n  }\n}", "assembly": "; \n; LocalLevelManager::firstLoad from 0x140330910 to 0x14033099a (138 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1405aa688\n; > <???> @ 0x1406d5024\n; > <???> @ 0x1406d5030\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_0], rbx                                               ; +0x0, 0x140330910\npush    rdi                                                            ; +0x5, 0x140330915\nsub     rsp, 20h                                                       ; +0x6, 0x140330916\nmov     rbx, rcx                                                       ; +0xa, 0x14033091a\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0xd, 0x14033091d\nmov     rdi, rax                                                       ; +0x13, 0x140330923\ncmp     [rbx+168h], rax                                                ; +0x16, 0x140330926\njz      short loc_140330956                                            ; +0x1d, 0x14033092d\ntest    rax, rax                                                       ; +0x1f, 0x14033092f\njz      short loc_14033093D                                            ; +0x22, 0x140330932\nmov     rcx, rax                                                       ; +0x24, 0x140330934\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x27, 0x140330937\nmov     rcx, [rbx+168h]                                                ; +0x2d, 0x14033093d\ntest    rcx, rcx                                                       ; +0x34, 0x140330944\njz      short loc_14033094F                                            ; +0x37, 0x140330947\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x39, 0x140330949\nmov     [rbx+168h], rdi                                                ; +0x3f, 0x14033094f\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x46, 0x140330956\nmov     rdi, rax                                                       ; +0x4c, 0x14033095c\ncmp     [rbx+170h], rax                                                ; +0x4f, 0x14033095f\njz      short loc_14033098F                                            ; +0x56, 0x140330966\ntest    rax, rax                                                       ; +0x58, 0x140330968\njz      short loc_140330976                                            ; +0x5b, 0x14033096b\nmov     rcx, rax                                                       ; +0x5d, 0x14033096d\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x60, 0x140330970\nmov     rcx, [rbx+170h]                                                ; +0x66, 0x140330976\ntest    rcx, rcx                                                       ; +0x6d, 0x14033097d\njz      short loc_140330988                                            ; +0x70, 0x140330980\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x72, 0x140330982\nmov     [rbx+170h], rdi                                                ; +0x78, 0x140330988\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7f, 0x14033098f\nadd     rsp, 20h                                                       ; +0x84, 0x140330994\npop     rdi                                                            ; +0x88, 0x140330998\nretn                                                                   ; +0x89, 0x140330999", "xrefs": ["<???> @ 0x1405aa688", "<???> @ 0x1406d5024", "<???> @ 0x1406d5030"], "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"}