{"type": "func", "start": 5372603888, "end": 5372604264, "name": "GJSmartTemplate::create", "pseudocode": "// \n// GJSmartTemplate::create from 0x1403b6df0 to 0x1403b6f68 (376 bytes)\n// \n// 3 xrefs:\n// > GJObjectDecoder::getDecodedObject @ 0x140392087\n// > LevelBrowserLayer::onNew @ 0x1403e7df6\n// > <???> @ 0x140923ce4\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 11:31:25 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nchar *GJSmartTemplate::create()\n{\n  char *v0; // rdi\n  _QWORD *v1; // rax\n  __int64 v2; // rcx\n  cocos2d::CCObject *v3; // rax\n  cocos2d::CCObject *v4; // rcx\n  cocos2d::CCObject *v5; // rbx\n  cocos2d::CCObject *v6; // rax\n  __int64 v7; // rcx\n  cocos2d::CCObject *v8; // rax\n  __int64 v9; // rcx\n  cocos2d::CCObject *v10; // rax\n  __int64 v11; // rcx\n  cocos2d::CCObject *v12; // rax\n  __int64 v13; // rcx\n  cocos2d::CCObject *v14; // rax\n  __int64 v15; // rcx\n  cocos2d::CCObject *v16; // rax\n\n  v0 = (char *)operator new(0xD0u);\n  cocos2d::CCObject::CCObject((cocos2d::CCObject *)v0);\n  *(_QWORD *)v0 = &GJSmartTemplate::`vftable';\n  *((_QWORD *)v0 + 7) = 0;\n  *((_QWORD *)v0 + 8) = 0;\n  *((_QWORD *)v0 + 10) = 0;\n  *((_QWORD *)v0 + 14) = 0;\n  *((_QWORD *)v0 + 15) = 0;\n  v1 = operator new(0x98u);\n  *v1 = v1;\n  v1[1] = v1;\n  v1[2] = v1;\n  *((_WORD *)v1 + 12) = 257;\n  *((_QWORD *)v0 + 14) = v1;\n  *((_DWORD *)v0 + 32) = 0;\n  *(_OWORD *)(v0 + 136) = 0;\n  *((_QWORD *)v0 + 19) = 0;\n  *((_QWORD *)v0 + 20) = 15;\n  v0[136] = 0;\n  *(_OWORD *)(v0 + 168) = 0;\n  *((_QWORD *)v0 + 23) = 0;\n  *((_QWORD *)v0 + 24) = 15;\n  v0[168] = 0;\n  *((_QWORD *)v0 + 25) = 0;\n  v3 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v2);\n  v5 = v3;\n  if ( *((cocos2d::CCObject **)v0 + 7) != v3 )\n  {\n    if ( v3 )\n      cocos2d::CCObject::retain(v3);\n    v4 = *((cocos2d::CCObject **)v0 + 7);\n    if ( v4 )\n      cocos2d::CCObject::release(v4);\n    *((_QWORD *)v0 + 7) = v5;\n  }\n  v6 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v4);\n  *((_QWORD *)v0 + 8) = v6;\n  cocos2d::CCObject::retain(v6);\n  v8 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v7);\n  *((_QWORD *)v0 + 9) = v8;\n  cocos2d::CCObject::retain(v8);\n  v10 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v9);\n  *((_QWORD *)v0 + 10) = v10;\n  cocos2d::CCObject::retain(v10);\n  v12 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v11);\n  *((_QWORD *)v0 + 11) = v12;\n  cocos2d::CCObject::retain(v12);\n  v14 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v13);\n  *((_QWORD *)v0 + 12) = v14;\n  cocos2d::CCObject::retain(v14);\n  v16 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v15);\n  *((_QWORD *)v0 + 13) = v16;\n  cocos2d::CCObject::retain(v16);\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n  return v0;\n}", "assembly": "; \n; GJSmartTemplate::create from 0x1403b6df0 to 0x1403b6f68 (376 bytes)\n; \n; 3 xrefs:\n; > GJObjectDecoder::getDecodedObject @ 0x140392087\n; > LevelBrowserLayer::onNew @ 0x1403e7df6\n; > <???> @ 0x140923ce4\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 11:31:25 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1403b6df0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1403b6df5\npush    rdi                                                            ; +0xa, 0x1403b6dfa\nsub     rsp, 20h                                                       ; +0xb, 0x1403b6dfb\nmov     ecx, 0D0h; Size                                                ; +0xf, 0x1403b6dff\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x14, 0x1403b6e04\nmov     rdi, rax                                                       ; +0x19, 0x1403b6e09\nmov     [rsp+28h+arg_0], rax                                           ; +0x1c, 0x1403b6e0c\nmov     rcx, rax                                                       ; +0x21, 0x1403b6e11\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x24, 0x1403b6e14\nnop                                                                    ; +0x2a, 0x1403b6e1a\nlea     rax, ??_7GJSmartTemplate@@6B@; const GJSmartTemplate::`vftable' ; +0x2b, 0x1403b6e1b\nmov     [rdi], rax                                                     ; +0x32, 0x1403b6e22\nxor     esi, esi                                                       ; +0x35, 0x1403b6e25\nmov     [rdi+38h], rsi                                                 ; +0x37, 0x1403b6e27\nmov     [rdi+40h], rsi                                                 ; +0x3b, 0x1403b6e2b\nmov     [rdi+50h], rsi                                                 ; +0x3f, 0x1403b6e2f\nmov     [rdi+70h], rsi                                                 ; +0x43, 0x1403b6e33\nmov     [rdi+78h], rsi                                                 ; +0x47, 0x1403b6e37\nmov     ecx, 98h; Size                                                 ; +0x4b, 0x1403b6e3b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x50, 0x1403b6e40\nmov     [rax], rax                                                     ; +0x55, 0x1403b6e45\nmov     [rax+8], rax                                                   ; +0x58, 0x1403b6e48\nmov     [rax+10h], rax                                                 ; +0x5c, 0x1403b6e4c\nmov     word ptr [rax+18h], 101h                                       ; +0x60, 0x1403b6e50\nmov     [rdi+70h], rax                                                 ; +0x66, 0x1403b6e56\nmov     [rdi+80h], esi                                                 ; +0x6a, 0x1403b6e5a\nxorps   xmm0, xmm0                                                     ; +0x70, 0x1403b6e60\nmovups  xmmword ptr [rdi+88h], xmm0                                    ; +0x73, 0x1403b6e63\nmov     [rdi+98h], rsi                                                 ; +0x7a, 0x1403b6e6a\nmov     qword ptr [rdi+0A0h], 0Fh                                      ; +0x81, 0x1403b6e71\nmov     [rdi+88h], sil                                                 ; +0x8c, 0x1403b6e7c\nmovups  xmmword ptr [rdi+0A8h], xmm0                                   ; +0x93, 0x1403b6e83\nmov     [rdi+0B8h], rsi                                                ; +0x9a, 0x1403b6e8a\nmov     qword ptr [rdi+0C0h], 0Fh                                      ; +0xa1, 0x1403b6e91\nmov     [rdi+0A8h], sil                                                ; +0xac, 0x1403b6e9c\nmov     [rdi+0C8h], rsi                                                ; +0xb3, 0x1403b6ea3\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0xba, 0x1403b6eaa\nmov     rbx, rax                                                       ; +0xc0, 0x1403b6eb0\ncmp     [rdi+38h], rax                                                 ; +0xc3, 0x1403b6eb3\njz      short loc_1403B6EDA                                            ; +0xc7, 0x1403b6eb7\ntest    rax, rax                                                       ; +0xc9, 0x1403b6eb9\njz      short loc_1403B6EC7                                            ; +0xcc, 0x1403b6ebc\nmov     rcx, rax                                                       ; +0xce, 0x1403b6ebe\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xd1, 0x1403b6ec1\nmov     rcx, [rdi+38h]                                                 ; +0xd7, 0x1403b6ec7\ntest    rcx, rcx                                                       ; +0xdb, 0x1403b6ecb\njz      short loc_1403B6ED6                                            ; +0xde, 0x1403b6ece\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xe0, 0x1403b6ed0\nmov     [rdi+38h], rbx                                                 ; +0xe6, 0x1403b6ed6\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0xea, 0x1403b6eda\nmov     [rdi+40h], rax                                                 ; +0xf0, 0x1403b6ee0\nmov     rcx, rax                                                       ; +0xf4, 0x1403b6ee4\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xf7, 0x1403b6ee7\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0xfd, 0x1403b6eed\nmov     [rdi+48h], rax                                                 ; +0x103, 0x1403b6ef3\nmov     rcx, rax                                                       ; +0x107, 0x1403b6ef7\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x10a, 0x1403b6efa\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x110, 0x1403b6f00\nmov     [rdi+50h], rax                                                 ; +0x116, 0x1403b6f06\nmov     rcx, rax                                                       ; +0x11a, 0x1403b6f0a\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x11d, 0x1403b6f0d\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x123, 0x1403b6f13\nmov     [rdi+58h], rax                                                 ; +0x129, 0x1403b6f19\nmov     rcx, rax                                                       ; +0x12d, 0x1403b6f1d\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x130, 0x1403b6f20\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x136, 0x1403b6f26\nmov     [rdi+60h], rax                                                 ; +0x13c, 0x1403b6f2c\nmov     rcx, rax                                                       ; +0x140, 0x1403b6f30\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x143, 0x1403b6f33\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x149, 0x1403b6f39\nmov     [rdi+68h], rax                                                 ; +0x14f, 0x1403b6f3f\nmov     rcx, rax                                                       ; +0x153, 0x1403b6f43\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x156, 0x1403b6f46\nmov     rcx, rdi                                                       ; +0x15c, 0x1403b6f4c\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x15f, 0x1403b6f4f\nmov     rax, rdi                                                       ; +0x165, 0x1403b6f55\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x168, 0x1403b6f58\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x16d, 0x1403b6f5d\nadd     rsp, 20h                                                       ; +0x172, 0x1403b6f62\npop     rdi                                                            ; +0x176, 0x1403b6f66\nretn                                                                   ; +0x177, 0x1403b6f67", "xrefs": ["GJObjectDecoder::getDecodedObject @ 0x140392087", "LevelBrowserLayer::onNew @ 0x1403e7df6", "<???> @ 0x140923ce4"], "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"}