{"type": "func", "start": 4299318496, "end": 4299318588, "name": "GJSmartTemplate::offsetForObject", "pseudocode": "// \n// GJSmartTemplate::offsetForObject from 0x1004264e0 to 0x10042653c (92 bytes)\n// \n// 2 xrefs:\n// > EditorUI::createSmartObjectsFromTemplate @ 0x100042b2b\n// > EditorUI::createSmartObjectsFromTemplate @ 0x100042d06\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\ncocos2d::CCPoint __fastcall GJSmartTemplate::offsetForObject(SmartGameObject *a1)\n{\n  __int64 v1; // rax\n  SmartGameObject *v2; // rsi\n  cocos2d::CCPoint v3; // xmm0_8\n  _QWORD v4[4]; // [rsp+0h] [rbp-20h] BYREF\n  cocos2d::CCPoint result; // 0:xmm0_8.8\n\n  v4[0] = v1;\n  if ( v2 )\n  {\n    *(double *)&v3 = sub_10028CC60(v4, &dbl_1009A15B8);\n    GJSmartTemplate::smartObjectToType(v2, v3);\n    return GJSmartTemplate::offsetForType((SmartBlockType)a1);\n  }\n  else\n  {\n    *(double *)&result = sub_10028CC60(a1, &dbl_1009A15B8);\n  }\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::offsetForObject from 0x1004264e0 to 0x10042653c (92 bytes)\n; \n; 2 xrefs:\n; > EditorUI::createSmartObjectsFromTemplate @ 0x100042b2b\n; > EditorUI::createSmartObjectsFromTemplate @ 0x100042d06\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, 0x1004264e0\nmov     rbp, rsp                                                       ; +0x1, 0x1004264e1\npush    r15                                                            ; +0x4, 0x1004264e4\npush    r14                                                            ; +0x6, 0x1004264e6\npush    rbx                                                            ; +0x8, 0x1004264e8\npush    rax                                                            ; +0x9, 0x1004264e9\nmov     rbx, rdi                                                       ; +0xa, 0x1004264ea\ntest    rsi, rsi                                                       ; +0xd, 0x1004264ed\njz      short loc_10042651F                                            ; +0x10, 0x1004264f0\nmov     r14, rsi                                                       ; +0x12, 0x1004264f2\nlea     rsi, dbl_1009A15B8                                             ; +0x15, 0x1004264f5\nlea     r15, [rbp+var_20]                                              ; +0x1c, 0x1004264fc\nmov     rdi, r15                                                       ; +0x20, 0x100426500\ncall    sub_10028CC60                                                  ; +0x23, 0x100426503\nmov     rdi, r14                                                       ; +0x28, 0x100426508\nmov     rsi, r15                                                       ; +0x2b, 0x10042650b\ncall    GJSmartTemplate__smartObjectToType                             ; +0x2e, 0x10042650e\nmov     rdi, rbx                                                       ; +0x33, 0x100426513\nmov     esi, eax                                                       ; +0x36, 0x100426516\ncall    GJSmartTemplate__offsetForType                                 ; +0x38, 0x100426518\njmp     short loc_10042652E                                            ; +0x3d, 0x10042651d\nlea     rsi, dbl_1009A15B8                                             ; +0x3f, 0x10042651f\nmov     rdi, rbx                                                       ; +0x46, 0x100426526\ncall    sub_10028CC60                                                  ; +0x49, 0x100426529\nmov     rax, rbx                                                       ; +0x4e, 0x10042652e\nadd     rsp, 8                                                         ; +0x51, 0x100426531\npop     rbx                                                            ; +0x55, 0x100426535\npop     r14                                                            ; +0x56, 0x100426536\npop     r15                                                            ; +0x58, 0x100426538\npop     rbp                                                            ; +0x5a, 0x10042653a\nretn                                                                   ; +0x5b, 0x10042653b", "xrefs": ["EditorUI::createSmartObjectsFromTemplate @ 0x100042b2b", "EditorUI::createSmartObjectsFromTemplate @ 0x100042d06"], "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"}