{"type": "func", "start": 5370243328, "end": 5370243448, "name": "GJLevelList::init", "pseudocode": "// \n// GJLevelList::init from 0x140176900 to 0x140176978 (120 bytes)\n// \n// 4 xrefs:\n// > GJLevelList::create_1 @ 0x1401768b7\n// > GJLevelList::create_1 @ 0x1401768a8\n// > <???> @ 0x14055b1d0\n// > <???> @ 0x1406caf74\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\nbool GJLevelList::init(GJLevelList *a1)\n{\n  bool result; // al\n  __int64 v3; // rcx\n  cocos2d::CCDictionary *v4; // rax\n  cocos2d::CCDictionary *v5; // rdi\n  cocos2d::CCDictionary *m_levelsDict; // rcx\n  int v7; // eax\n\n  result = cocos2d::CCNode::init(a1);\n  if ( result )\n  {\n    v4 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v3);\n    v5 = v4;\n    if ( a1->m_levelsDict != v4 )\n    {\n      if ( v4 )\n        cocos2d::CCObject::retain(v4);\n      m_levelsDict = a1->m_levelsDict;\n      if ( m_levelsDict )\n        cocos2d::CCObject::release(m_levelsDict);\n      a1->m_levelsDict = v5;\n    }\n    v7 = dword_1406C2ECC;\n    a1->m_M_ID = dword_1406C2ECC;\n    dword_1406C2ECC = v7 + 1;\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; GJLevelList::init from 0x140176900 to 0x140176978 (120 bytes)\n; \n; 4 xrefs:\n; > GJLevelList::create_1 @ 0x1401768b7\n; > GJLevelList::create_1 @ 0x1401768a8\n; > <???> @ 0x14055b1d0\n; > <???> @ 0x1406caf74\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, 0x140176900\nsub     rsp, 20h                                                       ; +0x2, 0x140176902\nmov     rbx, rcx                                                       ; +0x6, 0x140176906\ncall    cs:__imp_?init@CCNode@cocos2d@@UEAA_NXZ; cocos2d::CCNode::init(void) ; +0x9, 0x140176909\ntest    al, al                                                         ; +0xf, 0x14017690f\njnz     short loc_140176919                                            ; +0x11, 0x140176911\nadd     rsp, 20h                                                       ; +0x13, 0x140176913\npop     rbx                                                            ; +0x17, 0x140176917\nretn                                                                   ; +0x18, 0x140176918\nmov     [rsp+28h+arg_0], rdi                                           ; +0x19, 0x140176919\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x1e, 0x14017691e\nmov     rdi, rax                                                       ; +0x24, 0x140176924\ncmp     [rbx+238h], rax                                                ; +0x27, 0x140176927\njz      short loc_140176957                                            ; +0x2e, 0x14017692e\ntest    rax, rax                                                       ; +0x30, 0x140176930\njz      short loc_14017693E                                            ; +0x33, 0x140176933\nmov     rcx, rax                                                       ; +0x35, 0x140176935\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x38, 0x140176938\nmov     rcx, [rbx+238h]                                                ; +0x3e, 0x14017693e\ntest    rcx, rcx                                                       ; +0x45, 0x140176945\njz      short loc_140176950                                            ; +0x48, 0x140176948\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x4a, 0x14017694a\nmov     [rbx+238h], rdi                                                ; +0x50, 0x140176950\nmov     eax, cs:dword_1406C2ECC                                        ; +0x57, 0x140176957\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x5d, 0x14017695d\nmov     [rbx+244h], eax                                                ; +0x62, 0x140176962\ninc     eax                                                            ; +0x68, 0x140176968\nmov     cs:dword_1406C2ECC, eax                                        ; +0x6a, 0x14017696a\nmov     al, 1                                                          ; +0x70, 0x140176970\nadd     rsp, 20h                                                       ; +0x72, 0x140176972\npop     rbx                                                            ; +0x76, 0x140176976\nretn                                                                   ; +0x77, 0x140176977", "xrefs": ["GJLevelList::create_1 @ 0x1401768b7", "GJLevelList::create_1 @ 0x1401768a8", "<???> @ 0x14055b1d0", "<???> @ 0x1406caf74"], "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"}