{"type": "func", "start": 4299316896, "end": 4299317048, "name": "GJSmartTemplate::getPrefab", "pseudocode": "// \n// GJSmartTemplate::getPrefab from 0x100425ea0 to 0x100425f38 (152 bytes)\n// \n// 0 xrefs:\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\n// local variable allocation has failed, the output may be wrong!\nGJSmartPrefab *__fastcall GJSmartTemplate::getPrefab(\n        GJSmartTemplate *a1,\n        cocos2d::CCPoint a2,\n        SmartGameObject *a3,\n        SmartGameObject *a4,\n        SmartGameObject *a5,\n        SmartGameObject *a6,\n        SmartGameObject *a7,\n        SmartGameObject *a8,\n        SmartGameObject *a9,\n        SmartGameObject *a10,\n        SmartGameObject *a11)\n{\n  int v11; // r14d\n  int v12; // r15d\n  int v13; // r12d\n  GJSmartPrefab *result; // rax\n  GJSmartPrefab *v15; // rbx\n  __int64 v16; // [rsp+28h] [rbp-58h] BYREF\n  std::string v17; // [rsp+30h] [rbp-50h] BYREF\n  GJSmartTemplate *v18; // [rsp+48h] [rbp-38h]\n  SmartGameObject *v19; // [rsp+50h] [rbp-30h]\n  __int64 v20; // [rsp+B0h] [rbp+30h]\n\n  v19 = a7;\n  v11 = (int)a6;\n  v12 = (int)a5;\n  v13 = (int)a4;\n  v18 = a1;\n  sub_10028CC60(&v16, (double *)a3);\n  GJSmartTemplate::keyFromNeighbors(\n    (unsigned int)&v17,\n    (unsigned int)&v16,\n    v13,\n    v12,\n    v11,\n    (_DWORD)v19,\n    (__int64)a8,\n    (__int64)a9,\n    (__int64)a10,\n    (__int64)a11,\n    v20);\n  result = (GJSmartPrefab *)GJSmartTemplate::getPrefab_1((__int64)v18, &v17, 0, 0, *(__m128 *)&a8);\n  if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) != 0 )\n  {\n    v15 = result;\n    operator delete(v17.__r_.__value_.__l.__data_);\n    return v15;\n  }\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::getPrefab from 0x100425ea0 to 0x100425f38 (152 bytes)\n; \n; 0 xrefs:\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, 0x100425ea0\nmov     rbp, rsp                                                       ; +0x1, 0x100425ea1\npush    r15                                                            ; +0x4, 0x100425ea4\npush    r14                                                            ; +0x6, 0x100425ea6\npush    r13                                                            ; +0x8, 0x100425ea8\npush    r12                                                            ; +0xa, 0x100425eaa\npush    rbx                                                            ; +0xc, 0x100425eac\nsub     rsp, 58h                                                       ; +0xd, 0x100425ead\nmov     [rbp+var_30], r9                                               ; +0x11, 0x100425eb1\nmov     r14, r8                                                        ; +0x15, 0x100425eb5\nmov     r15, rcx                                                       ; +0x18, 0x100425eb8\nmov     r12, rdx                                                       ; +0x1b, 0x100425ebb\nmov     [rbp+var_38], rdi                                              ; +0x1e, 0x100425ebe\nmov     r13, [rbp+arg_20]                                              ; +0x22, 0x100425ec2\nlea     rbx, [rbp+var_58]                                              ; +0x26, 0x100425ec6\nmov     rdi, rbx                                                       ; +0x2a, 0x100425eca\ncall    sub_10028CC60                                                  ; +0x2d, 0x100425ecd\nmov     [rsp+80h+var_60], r13                                          ; +0x32, 0x100425ed2\nmovaps  xmm0, xmmword ptr [rbp+arg_10]                                 ; +0x37, 0x100425ed7\nmovups  [rsp+80h+var_70], xmm0                                         ; +0x3b, 0x100425edb\nmovaps  xmm0, xmmword ptr [rbp+arg_0]                                  ; +0x40, 0x100425ee0\nmovups  [rsp+80h+var_80], xmm0                                         ; +0x44, 0x100425ee4\nlea     r13, [rbp+var_50]                                              ; +0x48, 0x100425ee8\nmov     rdi, r13                                                       ; +0x4c, 0x100425eec\nmov     rsi, rbx                                                       ; +0x4f, 0x100425eef\nmov     rdx, r12                                                       ; +0x52, 0x100425ef2\nmov     rcx, r15                                                       ; +0x55, 0x100425ef5\nmov     r8, r14                                                        ; +0x58, 0x100425ef8\nmov     r9, [rbp+var_30]                                               ; +0x5b, 0x100425efb\ncall    GJSmartTemplate__keyFromNeighbors                              ; +0x5f, 0x100425eff\nmov     rdi, [rbp+var_38]                                              ; +0x64, 0x100425f04\nmov     rsi, r13                                                       ; +0x68, 0x100425f08\nxor     edx, edx                                                       ; +0x6b, 0x100425f0b\nxor     ecx, ecx                                                       ; +0x6d, 0x100425f0d\ncall    GJSmartTemplate__getPrefab_1                                   ; +0x6f, 0x100425f0f\ntest    [rbp+var_50], 1                                                ; +0x74, 0x100425f14\njz      short loc_100425F29                                            ; +0x78, 0x100425f18\nmov     rdi, [rbp+__p]; __p                                            ; +0x7a, 0x100425f1a\nmov     rbx, rax                                                       ; +0x7e, 0x100425f1e\ncall    __ZdlPv; operator delete(void *)                               ; +0x81, 0x100425f21\nmov     rax, rbx                                                       ; +0x86, 0x100425f26\nadd     rsp, 58h                                                       ; +0x89, 0x100425f29\npop     rbx                                                            ; +0x8d, 0x100425f2d\npop     r12                                                            ; +0x8e, 0x100425f2e\npop     r13                                                            ; +0x90, 0x100425f30\npop     r14                                                            ; +0x92, 0x100425f32\npop     r15                                                            ; +0x94, 0x100425f34\npop     rbp                                                            ; +0x96, 0x100425f36\nretn                                                                   ; +0x97, 0x100425f37", "xrefs": [], "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"}