{"type": "func", "start": 3926128, "end": 3926192, "name": "GJLevelList::init", "pseudocode": "// \n// GJLevelList::init from 0x3be870 to 0x3be8b0 (64 bytes)\n// \n// 1 xrefs:\n// > GJLevelList::create @ 0x3cdc1a\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  _BOOL4 v2; // r6\n  cocos2d::CCDictionary *v3; // r0\n  cocos2d::CCDictionary *v4; // r5\n  cocos2d::CCDictionary *m_levelsDict; // r0\n  int v6; // r3\n\n  v2 = cocos2d::CCNode::init(a1);\n  if ( v2 )\n  {\n    v3 = cocos2d::CCDictionary::create();\n    v4 = v3;\n    if ( a1->m_levelsDict != v3 )\n    {\n      if ( v3 )\n        cocos2d::CCObject::retain(v3);\n      m_levelsDict = a1->m_levelsDict;\n      if ( m_levelsDict )\n        cocos2d::CCObject::release(m_levelsDict);\n      a1->m_levelsDict = v4;\n    }\n    v6 = dword_AC5F50;\n    a1->m_M_ID = dword_AC5F50;\n    dword_AC5F50 = v6 + 1;\n  }\n  return v2;\n}", "assembly": "; \n; GJLevelList::init from 0x3be870 to 0x3be8b0 (64 bytes)\n; \n; 1 xrefs:\n; > GJLevelList::create @ 0x3cdc1a\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            {R4-R6,LR}                                             ; +0x0, 0x3be870\nMOV             R4, R0                                                 ; +0x2, 0x3be872\nBL              _ZN7cocos2d6CCNode4initEv; cocos2d::CCNode::init(void) ; +0x4, 0x3be874\nMOV             R6, R0                                                 ; +0x8, 0x3be878\nCBZ             R0, loc_3BE8AC                                         ; +0xa, 0x3be87a\nBL              _ZN7cocos2d12CCDictionary6createEv; cocos2d::CCDictionary::create(void) ; +0xc, 0x3be87c\nLDR.W           R3, [R4,#0x168]                                        ; +0x10, 0x3be880\nCMP             R3, R0                                                 ; +0x14, 0x3be884\nMOV             R5, R0                                                 ; +0x16, 0x3be886\nBEQ             loc_3BE89E                                             ; +0x18, 0x3be888\nCBZ             R0, loc_3BE890                                         ; +0x1a, 0x3be88a\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x1c, 0x3be88c\nLDR.W           R0, [R4,#0x168]; this                                  ; +0x20, 0x3be890\nCBZ             R0, loc_3BE89A                                         ; +0x24, 0x3be894\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x26, 0x3be896\nSTR.W           R5, [R4,#0x168]                                        ; +0x2a, 0x3be89a\nLDR             R2, =(dword_AC5F4C - 0x3BE8A4)                         ; +0x2e, 0x3be89e\nADD             R2, PC; dword_AC5F4C                                   ; +0x30, 0x3be8a0\nLDR             R3, [R2,#(dword_AC5F50 - 0xAC5F4C)]                    ; +0x32, 0x3be8a2\nSTR.W           R3, [R4,#0x170]                                        ; +0x34, 0x3be8a4\nADDS            R3, #1                                                 ; +0x38, 0x3be8a8\nSTR             R3, [R2,#(dword_AC5F50 - 0xAC5F4C)]                    ; +0x3a, 0x3be8aa\nMOV             R0, R6                                                 ; +0x3c, 0x3be8ac\nPOP             {R4-R6,PC}                                             ; +0x3e, 0x3be8ae", "xrefs": ["GJLevelList::create @ 0x3cdc1a"], "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"}