{"type": "func", "start": 4299300896, "end": 4299301063, "name": "GJSmartTemplate::init", "pseudocode": "// \n// GJSmartTemplate::init from 0x100422020 to 0x1004220c7 (167 bytes)\n// \n// 2 xrefs:\n// > GJSmartTemplate::create @ 0x100421ff1\n// > GJSmartTemplate::createWithCoder @ 0x100428084\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 GJSmartTemplate::init(GJSmartTemplate *a1)\n{\n  cocos2d::CCDictionary *v2; // rax\n  cocos2d::CCDictionary *m_prefabArrays; // rdi\n  cocos2d::CCDictionary *v4; // r14\n  cocos2d::CCDictionary *v5; // rax\n  cocos2d::CCDictionary *v6; // rax\n  cocos2d::CCDictionary *v7; // rax\n  cocos2d::CCDictionary *v8; // rax\n  cocos2d::CCDictionary *v9; // rax\n  cocos2d::CCDictionary *v10; // rax\n\n  v2 = cocos2d::CCDictionary::create();\n  m_prefabArrays = a1->m_prefabArrays;\n  if ( m_prefabArrays != v2 )\n  {\n    v4 = v2;\n    if ( v2 )\n    {\n      cocos2d::CCObject::retain(v2);\n      m_prefabArrays = a1->m_prefabArrays;\n    }\n    if ( m_prefabArrays )\n      cocos2d::CCObject::release(m_prefabArrays);\n    a1->m_prefabArrays = v4;\n  }\n  v5 = cocos2d::CCDictionary::create();\n  a1->m_remapDict1 = v5;\n  cocos2d::CCObject::retain(v5);\n  v6 = cocos2d::CCDictionary::create();\n  a1->m_remapDict2 = v6;\n  cocos2d::CCObject::retain(v6);\n  v7 = cocos2d::CCDictionary::create();\n  a1->m_remapDict3 = v7;\n  cocos2d::CCObject::retain(v7);\n  v8 = cocos2d::CCDictionary::create();\n  a1->m_remapDict4 = v8;\n  cocos2d::CCObject::retain(v8);\n  v9 = cocos2d::CCDictionary::create();\n  a1->m_remapDict5 = v9;\n  cocos2d::CCObject::retain(v9);\n  v10 = cocos2d::CCDictionary::create();\n  a1->m_remapDict6 = v10;\n  cocos2d::CCObject::retain(v10);\n  return 1;\n}", "assembly": "; \n; GJSmartTemplate::init from 0x100422020 to 0x1004220c7 (167 bytes)\n; \n; 2 xrefs:\n; > GJSmartTemplate::create @ 0x100421ff1\n; > GJSmartTemplate::createWithCoder @ 0x100428084\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, 0x100422020\nmov     rbp, rsp                                                       ; +0x1, 0x100422021\npush    r14                                                            ; +0x4, 0x100422024\npush    rbx                                                            ; +0x6, 0x100422026\nmov     rbx, rdi                                                       ; +0x7, 0x100422027\ncall    cocos2d__CCDictionary__create                                  ; +0xa, 0x10042202a\nmov     rdi, [rbx+38h]                                                 ; +0xf, 0x10042202f\ncmp     rdi, rax                                                       ; +0x13, 0x100422033\njz      short loc_10042205A                                            ; +0x16, 0x100422036\nmov     r14, rax                                                       ; +0x18, 0x100422038\ntest    rax, rax                                                       ; +0x1b, 0x10042203b\njz      short loc_10042204C                                            ; +0x1e, 0x10042203e\nmov     rdi, r14                                                       ; +0x20, 0x100422040\ncall    cocos2d__CCObject__retain                                      ; +0x23, 0x100422043\nmov     rdi, [rbx+38h]                                                 ; +0x28, 0x100422048\ntest    rdi, rdi                                                       ; +0x2c, 0x10042204c\njz      short loc_100422056                                            ; +0x2f, 0x10042204f\ncall    cocos2d__CCObject__release                                     ; +0x31, 0x100422051\nmov     [rbx+38h], r14                                                 ; +0x36, 0x100422056\ncall    cocos2d__CCDictionary__create                                  ; +0x3a, 0x10042205a\nmov     [rbx+40h], rax                                                 ; +0x3f, 0x10042205f\nmov     rdi, rax                                                       ; +0x43, 0x100422063\ncall    cocos2d__CCObject__retain                                      ; +0x46, 0x100422066\ncall    cocos2d__CCDictionary__create                                  ; +0x4b, 0x10042206b\nmov     [rbx+48h], rax                                                 ; +0x50, 0x100422070\nmov     rdi, rax                                                       ; +0x54, 0x100422074\ncall    cocos2d__CCObject__retain                                      ; +0x57, 0x100422077\ncall    cocos2d__CCDictionary__create                                  ; +0x5c, 0x10042207c\nmov     [rbx+50h], rax                                                 ; +0x61, 0x100422081\nmov     rdi, rax                                                       ; +0x65, 0x100422085\ncall    cocos2d__CCObject__retain                                      ; +0x68, 0x100422088\ncall    cocos2d__CCDictionary__create                                  ; +0x6d, 0x10042208d\nmov     [rbx+58h], rax                                                 ; +0x72, 0x100422092\nmov     rdi, rax                                                       ; +0x76, 0x100422096\ncall    cocos2d__CCObject__retain                                      ; +0x79, 0x100422099\ncall    cocos2d__CCDictionary__create                                  ; +0x7e, 0x10042209e\nmov     [rbx+60h], rax                                                 ; +0x83, 0x1004220a3\nmov     rdi, rax                                                       ; +0x87, 0x1004220a7\ncall    cocos2d__CCObject__retain                                      ; +0x8a, 0x1004220aa\ncall    cocos2d__CCDictionary__create                                  ; +0x8f, 0x1004220af\nmov     [rbx+68h], rax                                                 ; +0x94, 0x1004220b4\nmov     rdi, rax                                                       ; +0x98, 0x1004220b8\ncall    cocos2d__CCObject__retain                                      ; +0x9b, 0x1004220bb\nmov     al, 1                                                          ; +0xa0, 0x1004220c0\npop     rbx                                                            ; +0xa2, 0x1004220c2\npop     r14                                                            ; +0xa3, 0x1004220c3\npop     rbp                                                            ; +0xa5, 0x1004220c5\nretn                                                                   ; +0xa6, 0x1004220c6", "xrefs": ["GJSmartTemplate::create @ 0x100421ff1", "GJSmartTemplate::createWithCoder @ 0x100428084"], "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"}