{"type": "func", "start": 4295206096, "end": 4295206229, "name": "EditorUI::createObject", "pseudocode": "// \n// EditorUI::createObject from 0x10003a4d0 to 0x10003a555 (133 bytes)\n// \n// 6 xrefs:\n// > EditorUI::createEdgeForObject @ 0x100614621\n// > EditorUI::createOutlines @ 0x100614dca\n// > EditorUI::createOutlines @ 0x100614e88\n// > EditorUI::createRockBases @ 0x100615ba7\n// > EditorUI::createRockBases @ 0x100615cc4\n// > EditorUI::createExtraObject @ 0x100618ae1\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\nGameObject *__fastcall EditorUI::createObject(EditorUI *a1, int a2, cocos2d::CCPoint a3)\n{\n  __int64 v3; // rax\n  LevelEditorLayer *m_editorLayer; // r14\n  cocos2d::CCPoint v5; // xmm0_8\n  GameObject *Object; // rax\n  GameObject *v7; // rbx\n  float m_pixelScaleX; // xmm0_4\n  _QWORD v10[4]; // [rsp+0h] [rbp-20h] BYREF\n\n  v10[0] = v3;\n  m_editorLayer = a1->m_editorLayer;\n  *(double *)&v5 = sub_10028CC60(v10);\n  Object = LevelEditorLayer::createObject(m_editorLayer, a2, v5, (bool)v10);\n  v7 = Object;\n  if ( Object )\n  {\n    m_pixelScaleX = Object->m_pixelScaleX;\n    if ( m_pixelScaleX != 1.0 || Object->m_pixelScaleY != 1.0 )\n    {\n      GameObject::updateCustomScaleX(Object, m_pixelScaleX);\n      GameObject::updateCustomScaleY(v7, v7->m_pixelScaleY);\n    }\n  }\n  return v7;\n}", "assembly": "; \n; EditorUI::createObject from 0x10003a4d0 to 0x10003a555 (133 bytes)\n; \n; 6 xrefs:\n; > EditorUI::createEdgeForObject @ 0x100614621\n; > EditorUI::createOutlines @ 0x100614dca\n; > EditorUI::createOutlines @ 0x100614e88\n; > EditorUI::createRockBases @ 0x100615ba7\n; > EditorUI::createRockBases @ 0x100615cc4\n; > EditorUI::createExtraObject @ 0x100618ae1\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, 0x10003a4d0\nmov     rbp, rsp                                                       ; +0x1, 0x10003a4d1\npush    r15                                                            ; +0x4, 0x10003a4d4\npush    r14                                                            ; +0x6, 0x10003a4d6\npush    rbx                                                            ; +0x8, 0x10003a4d8\npush    rax                                                            ; +0x9, 0x10003a4d9\nmov     ebx, esi                                                       ; +0xa, 0x10003a4da\nmov     r14, [rdi+4E8h]                                                ; +0xc, 0x10003a4dc\nlea     r15, [rbp+var_20]                                              ; +0x13, 0x10003a4e3\nmov     rdi, r15                                                       ; +0x17, 0x10003a4e7\nmov     rsi, rdx                                                       ; +0x1a, 0x10003a4ea\ncall    sub_10028CC60                                                  ; +0x1d, 0x10003a4ed\nmov     rdi, r14                                                       ; +0x22, 0x10003a4f2\nmov     esi, ebx                                                       ; +0x25, 0x10003a4f5\nmov     rdx, r15                                                       ; +0x27, 0x10003a4f7\nxor     ecx, ecx                                                       ; +0x2a, 0x10003a4fa\ncall    LevelEditorLayer__createObject                                 ; +0x2c, 0x10003a4fc\nmov     rbx, rax                                                       ; +0x31, 0x10003a501\ntest    rax, rax                                                       ; +0x34, 0x10003a504\njz      short loc_10003A547                                            ; +0x37, 0x10003a507\nmovss   xmm0, dword ptr [rbx+520h]                                     ; +0x39, 0x10003a509\nucomiss xmm0, cs:alpha                                                 ; +0x41, 0x10003a511\njnz     short loc_10003A52F                                            ; +0x48, 0x10003a518\njp      short loc_10003A52F                                            ; +0x4a, 0x10003a51a\nmovss   xmm1, dword ptr [rbx+524h]                                     ; +0x4c, 0x10003a51c\nucomiss xmm1, cs:alpha                                                 ; +0x54, 0x10003a524\njnz     short loc_10003A52F                                            ; +0x5b, 0x10003a52b\njnp     short loc_10003A547                                            ; +0x5d, 0x10003a52d\nmov     rdi, rbx                                                       ; +0x5f, 0x10003a52f\ncall    GameObject__updateCustomScaleX                                 ; +0x62, 0x10003a532\nmovss   xmm0, dword ptr [rbx+524h]                                     ; +0x67, 0x10003a537\nmov     rdi, rbx                                                       ; +0x6f, 0x10003a53f\ncall    GameObject__updateCustomScaleY                                 ; +0x72, 0x10003a542\nmov     rax, rbx                                                       ; +0x77, 0x10003a547\nadd     rsp, 8                                                         ; +0x7a, 0x10003a54a\npop     rbx                                                            ; +0x7e, 0x10003a54e\npop     r14                                                            ; +0x7f, 0x10003a54f\npop     r15                                                            ; +0x81, 0x10003a551\npop     rbp                                                            ; +0x83, 0x10003a553\nretn                                                                   ; +0x84, 0x10003a554", "xrefs": ["EditorUI::createEdgeForObject @ 0x100614621", "EditorUI::createOutlines @ 0x100614dca", "EditorUI::createOutlines @ 0x100614e88", "EditorUI::createRockBases @ 0x100615ba7", "EditorUI::createRockBases @ 0x100615cc4", "EditorUI::createExtraObject @ 0x100618ae1"], "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"}