{"type": "func", "start": 4299081448, "end": 4299081580, "name": "EditorUI::createObject", "pseudocode": "// \n// EditorUI::createObject from 0x1003ec6e8 to 0x1003ec76c (132 bytes)\n// \n// 14 xrefs:\n// > EditorUI::createEdgeForObject @ 0x100078828\n// > EditorUI::createOutlines @ 0x100078de8\n// > EditorUI::createOutlines @ 0x100078eac\n// > EditorUI::createRockBases @ 0x1000799dc\n// > EditorUI::createRockBases @ 0x100079af4\n// > EditorUI::createExtraObject @ 0x10007c0b4\n// > EditorUI::onCreateObject @ 0x1003eb538\n// > EditorUI::addObjectsToSmartTemplate @ 0x1003f135c\n// > EditorUI::createPrefab @ 0x1003f243c\n// > EditorUI::processSmartObjectsFromType @ 0x1003f2a40\n// > EditorUI::processSmartObjectsFromType @ 0x1003f2b28\n// > EditorUI::createNewKeyframeAnim @ 0x1003f35e8\n// > EditorUI::createLoop @ 0x1003f38e4\n// > EditorUI::createLoop @ 0x1003f3adc\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; // x2\n  LevelEditorLayer *m_editorLayer; // x20\n  GameObject *Object; // x0\n  GameObject *v7; // x19\n  float m_pixelScaleX; // s0\n  __int64 v10; // [xsp+8h] [xbp-18h] BYREF\n  cocos2d::CCPoint v11; // 0:s0.4,4:s1.4\n\n  m_editorLayer = a1->m_editorLayer;\n  v11.x = sub_1000229B8(&v10, v3);\n  Object = LevelEditorLayer::createObject(m_editorLayer, a2, v11, (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 0x1003ec6e8 to 0x1003ec76c (132 bytes)\n; \n; 14 xrefs:\n; > EditorUI::createEdgeForObject @ 0x100078828\n; > EditorUI::createOutlines @ 0x100078de8\n; > EditorUI::createOutlines @ 0x100078eac\n; > EditorUI::createRockBases @ 0x1000799dc\n; > EditorUI::createRockBases @ 0x100079af4\n; > EditorUI::createExtraObject @ 0x10007c0b4\n; > EditorUI::onCreateObject @ 0x1003eb538\n; > EditorUI::addObjectsToSmartTemplate @ 0x1003f135c\n; > EditorUI::createPrefab @ 0x1003f243c\n; > EditorUI::processSmartObjectsFromType @ 0x1003f2a40\n; > EditorUI::processSmartObjectsFromType @ 0x1003f2b28\n; > EditorUI::createNewKeyframeAnim @ 0x1003f35e8\n; > EditorUI::createLoop @ 0x1003f38e4\n; > EditorUI::createLoop @ 0x1003f3adc\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1003ec6e8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003ec6ec\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003ec6f0\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003ec6f4\nMOV             X19, X1                                                ; +0x10, 0x1003ec6f8\nLDR             X20, [X0,#0x4E8]                                       ; +0x14, 0x1003ec6fc\nADD             X0, SP, #0x20+var_18                                   ; +0x18, 0x1003ec700\nMOV             X1, X2                                                 ; +0x1c, 0x1003ec704\nBL              sub_1000229B8                                          ; +0x20, 0x1003ec708\nADD             X2, SP, #0x20+var_18                                   ; +0x24, 0x1003ec70c\nMOV             X0, X20                                                ; +0x28, 0x1003ec710\nMOV             X1, X19                                                ; +0x2c, 0x1003ec714\nMOV             W3, #0                                                 ; +0x30, 0x1003ec718\nBL              LevelEditorLayer__createObject                         ; +0x34, 0x1003ec71c\nMOV             X19, X0                                                ; +0x38, 0x1003ec720\nCBZ             X0, loc_1003EC758                                      ; +0x3c, 0x1003ec724\nLDR             S0, [X19,#0x520]                                       ; +0x40, 0x1003ec728\nFMOV            S1, #1.0                                               ; +0x44, 0x1003ec72c\nFCMP            S0, S1                                                 ; +0x48, 0x1003ec730\nB.NE            loc_1003EC744                                          ; +0x4c, 0x1003ec734\nLDR             S2, [X19,#0x524]                                       ; +0x50, 0x1003ec738\nFCMP            S2, S1                                                 ; +0x54, 0x1003ec73c\nB.EQ            loc_1003EC758                                          ; +0x58, 0x1003ec740\nMOV             X0, X19                                                ; +0x5c, 0x1003ec744\nBL              GameObject__updateCustomScaleX                         ; +0x60, 0x1003ec748\nLDR             S0, [X19,#0x524]                                       ; +0x64, 0x1003ec74c\nMOV             X0, X19                                                ; +0x68, 0x1003ec750\nBL              GameObject__updateCustomScaleY                         ; +0x6c, 0x1003ec754\nMOV             X0, X19                                                ; +0x70, 0x1003ec758\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0x1003ec75c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0x1003ec760\nADD             SP, SP, #0x30 ; '0'                                    ; +0x7c, 0x1003ec764\nRET                                                                    ; +0x80, 0x1003ec768", "xrefs": ["EditorUI::createEdgeForObject @ 0x100078828", "EditorUI::createOutlines @ 0x100078de8", "EditorUI::createOutlines @ 0x100078eac", "EditorUI::createRockBases @ 0x1000799dc", "EditorUI::createRockBases @ 0x100079af4", "EditorUI::createExtraObject @ 0x10007c0b4", "EditorUI::onCreateObject @ 0x1003eb538", "EditorUI::addObjectsToSmartTemplate @ 0x1003f135c", "EditorUI::createPrefab @ 0x1003f243c", "EditorUI::processSmartObjectsFromType @ 0x1003f2a40", "EditorUI::processSmartObjectsFromType @ 0x1003f2b28", "EditorUI::createNewKeyframeAnim @ 0x1003f35e8", "EditorUI::createLoop @ 0x1003f38e4", "EditorUI::createLoop @ 0x1003f3adc"], "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"}