{"type": "func", "start": 4299222160, "end": 4299222327, "name": "GJSmartTemplate::init", "pseudocode": "// \n// GJSmartTemplate::init from 0x10040ec90 to 0x10040ed37 (167 bytes)\n// \n// 2 xrefs:\n// > GJSmartTemplate::create @ 0x10040ec61\n// > GJSmartTemplate::createWithCoder @ 0x100414cf4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:30:08 +0000\n// \n\nchar __fastcall GJSmartTemplate::init(_QWORD *a1)\n{\n  _QWORD *v2; // rax\n  _QWORD *v3; // rdi\n  _QWORD *v4; // r14\n  _QWORD *v5; // rax\n  _QWORD *v6; // rax\n  _QWORD *v7; // rax\n  _QWORD *v8; // rax\n  _QWORD *v9; // rax\n  _QWORD *v10; // rax\n\n  v2 = cocos2d::CCDictionary::create();\n  v3 = (_QWORD *)a1[7];\n  if ( v3 != v2 )\n  {\n    v4 = v2;\n    if ( v2 )\n    {\n      cocos2d::CCObject::retain(v2);\n      v3 = (_QWORD *)a1[7];\n    }\n    if ( v3 )\n      cocos2d::CCObject::release(v3);\n    a1[7] = v4;\n  }\n  v5 = cocos2d::CCDictionary::create();\n  a1[8] = v5;\n  cocos2d::CCObject::retain(v5);\n  v6 = cocos2d::CCDictionary::create();\n  a1[9] = v6;\n  cocos2d::CCObject::retain(v6);\n  v7 = cocos2d::CCDictionary::create();\n  a1[10] = v7;\n  cocos2d::CCObject::retain(v7);\n  v8 = cocos2d::CCDictionary::create();\n  a1[11] = v8;\n  cocos2d::CCObject::retain(v8);\n  v9 = cocos2d::CCDictionary::create();\n  a1[12] = v9;\n  cocos2d::CCObject::retain(v9);\n  v10 = cocos2d::CCDictionary::create();\n  a1[13] = v10;\n  cocos2d::CCObject::retain(v10);\n  return 1;\n}", "assembly": "; \n; GJSmartTemplate::init from 0x10040ec90 to 0x10040ed37 (167 bytes)\n; \n; 2 xrefs:\n; > GJSmartTemplate::create @ 0x10040ec61\n; > GJSmartTemplate::createWithCoder @ 0x100414cf4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:30:08 +0000\n; \npush    rbp                                                            ; +0x0, 0x10040ec90\nmov     rbp, rsp                                                       ; +0x1, 0x10040ec91\npush    r14                                                            ; +0x4, 0x10040ec94\npush    rbx                                                            ; +0x6, 0x10040ec96\nmov     rbx, rdi                                                       ; +0x7, 0x10040ec97\ncall    cocos2d__CCDictionary__create                                  ; +0xa, 0x10040ec9a\nmov     rdi, [rbx+38h]                                                 ; +0xf, 0x10040ec9f\ncmp     rdi, rax                                                       ; +0x13, 0x10040eca3\njz      short loc_10040ECCA                                            ; +0x16, 0x10040eca6\nmov     r14, rax                                                       ; +0x18, 0x10040eca8\ntest    rax, rax                                                       ; +0x1b, 0x10040ecab\njz      short loc_10040ECBC                                            ; +0x1e, 0x10040ecae\nmov     rdi, r14                                                       ; +0x20, 0x10040ecb0\ncall    cocos2d__CCObject__retain                                      ; +0x23, 0x10040ecb3\nmov     rdi, [rbx+38h]                                                 ; +0x28, 0x10040ecb8\ntest    rdi, rdi                                                       ; +0x2c, 0x10040ecbc\njz      short loc_10040ECC6                                            ; +0x2f, 0x10040ecbf\ncall    cocos2d__CCObject__release                                     ; +0x31, 0x10040ecc1\nmov     [rbx+38h], r14                                                 ; +0x36, 0x10040ecc6\ncall    cocos2d__CCDictionary__create                                  ; +0x3a, 0x10040ecca\nmov     [rbx+40h], rax                                                 ; +0x3f, 0x10040eccf\nmov     rdi, rax                                                       ; +0x43, 0x10040ecd3\ncall    cocos2d__CCObject__retain                                      ; +0x46, 0x10040ecd6\ncall    cocos2d__CCDictionary__create                                  ; +0x4b, 0x10040ecdb\nmov     [rbx+48h], rax                                                 ; +0x50, 0x10040ece0\nmov     rdi, rax                                                       ; +0x54, 0x10040ece4\ncall    cocos2d__CCObject__retain                                      ; +0x57, 0x10040ece7\ncall    cocos2d__CCDictionary__create                                  ; +0x5c, 0x10040ecec\nmov     [rbx+50h], rax                                                 ; +0x61, 0x10040ecf1\nmov     rdi, rax                                                       ; +0x65, 0x10040ecf5\ncall    cocos2d__CCObject__retain                                      ; +0x68, 0x10040ecf8\ncall    cocos2d__CCDictionary__create                                  ; +0x6d, 0x10040ecfd\nmov     [rbx+58h], rax                                                 ; +0x72, 0x10040ed02\nmov     rdi, rax                                                       ; +0x76, 0x10040ed06\ncall    cocos2d__CCObject__retain                                      ; +0x79, 0x10040ed09\ncall    cocos2d__CCDictionary__create                                  ; +0x7e, 0x10040ed0e\nmov     [rbx+60h], rax                                                 ; +0x83, 0x10040ed13\nmov     rdi, rax                                                       ; +0x87, 0x10040ed17\ncall    cocos2d__CCObject__retain                                      ; +0x8a, 0x10040ed1a\ncall    cocos2d__CCDictionary__create                                  ; +0x8f, 0x10040ed1f\nmov     [rbx+68h], rax                                                 ; +0x94, 0x10040ed24\nmov     rdi, rax                                                       ; +0x98, 0x10040ed28\ncall    cocos2d__CCObject__retain                                      ; +0x9b, 0x10040ed2b\nmov     al, 1                                                          ; +0xa0, 0x10040ed30\npop     rbx                                                            ; +0xa2, 0x10040ed32\npop     r14                                                            ; +0xa3, 0x10040ed33\npop     rbp                                                            ; +0xa5, 0x10040ed35\nretn                                                                   ; +0xa6, 0x10040ed36", "xrefs": ["GJSmartTemplate::create @ 0x10040ec61", "GJSmartTemplate::createWithCoder @ 0x100414cf4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}