{"type": "func", "start": 4300610704, "end": 4300610820, "name": "GJLevelList::init", "pseudocode": "// \n// GJLevelList::init from 0x100561c90 to 0x100561d04 (116 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100962860\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 __fastcall GJLevelList::init(GJLevelList *a1)\n{\n  bool result; // al\n  bool v3; // r15\n  cocos2d::CCDictionary *v4; // rax\n  cocos2d::CCDictionary *m_levelsDict; // rdi\n  cocos2d::CCDictionary *v6; // r14\n  int v7; // eax\n\n  result = cocos2d::CCNode::init(a1);\n  if ( result )\n  {\n    v3 = result;\n    v4 = cocos2d::CCDictionary::create();\n    m_levelsDict = a1->m_levelsDict;\n    if ( m_levelsDict != v4 )\n    {\n      v6 = v4;\n      if ( v4 )\n      {\n        cocos2d::CCObject::retain(v4);\n        m_levelsDict = a1->m_levelsDict;\n      }\n      if ( m_levelsDict )\n        cocos2d::CCObject::release(m_levelsDict);\n      a1->m_levelsDict = v6;\n    }\n    v7 = dword_1009A28F0;\n    a1->m_M_ID = dword_1009A28F0;\n    dword_1009A28F0 = v7 + 1;\n    return v3;\n  }\n  return result;\n}", "assembly": "; \n; GJLevelList::init from 0x100561c90 to 0x100561d04 (116 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100962860\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    rbp                                                            ; +0x0, 0x100561c90\nmov     rbp, rsp                                                       ; +0x1, 0x100561c91\npush    r15                                                            ; +0x4, 0x100561c94\npush    r14                                                            ; +0x6, 0x100561c96\npush    rbx                                                            ; +0x8, 0x100561c98\npush    rax                                                            ; +0x9, 0x100561c99\nmov     rbx, rdi                                                       ; +0xa, 0x100561c9a\ncall    cocos2d__CCNode__init                                          ; +0xd, 0x100561c9d\ntest    al, al                                                         ; +0x12, 0x100561ca2\njz      short loc_100561CF9                                            ; +0x14, 0x100561ca4\nmov     r15d, eax                                                      ; +0x16, 0x100561ca6\ncall    cocos2d__CCDictionary__create                                  ; +0x19, 0x100561ca9\nmov     rdi, [rbx+210h]                                                ; +0x1e, 0x100561cae\ncmp     rdi, rax                                                       ; +0x25, 0x100561cb5\njz      short loc_100561CE2                                            ; +0x28, 0x100561cb8\nmov     r14, rax                                                       ; +0x2a, 0x100561cba\ntest    rax, rax                                                       ; +0x2d, 0x100561cbd\njz      short loc_100561CD1                                            ; +0x30, 0x100561cc0\nmov     rdi, r14                                                       ; +0x32, 0x100561cc2\ncall    cocos2d__CCObject__retain                                      ; +0x35, 0x100561cc5\nmov     rdi, [rbx+210h]                                                ; +0x3a, 0x100561cca\ntest    rdi, rdi                                                       ; +0x41, 0x100561cd1\njz      short loc_100561CDB                                            ; +0x44, 0x100561cd4\ncall    cocos2d__CCObject__release                                     ; +0x46, 0x100561cd6\nmov     [rbx+210h], r14                                                ; +0x4b, 0x100561cdb\nmov     eax, cs:dword_1009A28F0                                        ; +0x52, 0x100561ce2\nmov     [rbx+21Ch], eax                                                ; +0x58, 0x100561ce8\ninc     eax                                                            ; +0x5e, 0x100561cee\nmov     cs:dword_1009A28F0, eax                                        ; +0x60, 0x100561cf0\nmov     eax, r15d                                                      ; +0x66, 0x100561cf6\nadd     rsp, 8                                                         ; +0x69, 0x100561cf9\npop     rbx                                                            ; +0x6d, 0x100561cfd\npop     r14                                                            ; +0x6e, 0x100561cfe\npop     r15                                                            ; +0x70, 0x100561d00\npop     rbp                                                            ; +0x72, 0x100561d02\nretn                                                                   ; +0x73, 0x100561d03", "xrefs": ["<???> @ 0x100962860"], "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"}