{"type": "func", "start": 6852264, "end": 6852452, "name": "EditorUI::createObject", "pseudocode": "// \n// EditorUI::createObject from 0x688ea8 to 0x688f64 (188 bytes)\n// \n// 15 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x68a334\n// > EditorUI::processSmartObjectsFromType @ 0x68a4cc\n// > EditorUI::addObjectsToSmartTemplate @ 0x6b43c4\n// > EditorUI::createLoop @ 0x6b6990\n// > EditorUI::createLoop @ 0x6b6af4\n// > EditorUI::createNewKeyframeAnim @ 0x6bf168\n// > EditorUI::onCreateObject @ 0x6bfe68\n// > EditorUI::createPrefab @ 0x6c07b4\n// > EditorUI::createEdgeForObject @ 0x9cc18c\n// > EditorUI::createOutlines @ 0x9cca34\n// > EditorUI::createOutlines @ 0x9ccb08\n// > EditorUI::createRockBases @ 0x9cd3f4\n// > EditorUI::createRockBases @ 0x9cd518\n// > EditorUI::createExtraObject @ 0x9cdbcc\n// > <???> @ 0x37ea8\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 *EditorUI::createObject(EditorUI *a1, int a2, cocos2d::CCPoint a3)\n{\n  const cocos2d::CCPoint *v3; // x2\n  LevelEditorLayer *m_editorLayer; // x22\n  GameObject *result; // x0\n  GameObject *v7; // x19\n  float m_pixelScaleX; // s0\n  cocos2d::CCPoint v9; // [xsp+30h] [xbp+30h] BYREF\n  cocos2d::CCPoint v10; // 0:s0.4,4:s1.4\n\n  m_editorLayer = a1->m_editorLayer;\n  cocos2d::CCPoint::CCPoint(&v9, v3);\n  result = LevelEditorLayer::createObject(m_editorLayer, a2, v10, (bool)&v9);\n  v7 = result;\n  if ( !result )\n    return nullptr;\n  m_pixelScaleX = result->m_pixelScaleX;\n  if ( m_pixelScaleX != 1.0 || result->m_pixelScaleY != 1.0 )\n  {\n    GameObject::updateCustomScaleX(result, m_pixelScaleX);\n    GameObject::updateCustomScaleY(v7, v7->m_pixelScaleY);\n    return v7;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::createObject from 0x688ea8 to 0x688f64 (188 bytes)\n; \n; 15 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x68a334\n; > EditorUI::processSmartObjectsFromType @ 0x68a4cc\n; > EditorUI::addObjectsToSmartTemplate @ 0x6b43c4\n; > EditorUI::createLoop @ 0x6b6990\n; > EditorUI::createLoop @ 0x6b6af4\n; > EditorUI::createNewKeyframeAnim @ 0x6bf168\n; > EditorUI::onCreateObject @ 0x6bfe68\n; > EditorUI::createPrefab @ 0x6c07b4\n; > EditorUI::createEdgeForObject @ 0x9cc18c\n; > EditorUI::createOutlines @ 0x9cca34\n; > EditorUI::createOutlines @ 0x9ccb08\n; > EditorUI::createRockBases @ 0x9cd3f4\n; > EditorUI::createRockBases @ 0x9cd518\n; > EditorUI::createExtraObject @ 0x9cdbcc\n; > <???> @ 0x37ea8\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x688ea8\nMOV             X29, SP                                                ; +0x4, 0x688eac\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x688eb0\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x688eb4\nADD             X19, X29, #0x40+var_10                                 ; +0x10, 0x688eb8\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x688ebc\nMOV             W21, W1                                                ; +0x18, 0x688ec0\nMOV             X1, X2; cocos2d::CCPoint *                             ; +0x1c, 0x688ec4\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x688ec8\nLDR             X22, [X0,#0x4F8]                                       ; +0x24, 0x688ecc\nMOV             X0, X19; this                                          ; +0x28, 0x688ed0\nLDR             X2, [X2]                                               ; +0x2c, 0x688ed4\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x30, 0x688ed8\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x34, 0x688edc\nMOV             X2, X19                                                ; +0x38, 0x688ee0\nMOV             X0, X22                                                ; +0x3c, 0x688ee4\nMOV             W1, W21                                                ; +0x40, 0x688ee8\nMOV             W3, #0                                                 ; +0x44, 0x688eec\nBL              _ZN16LevelEditorLayer12createObjectEiN7cocos2d7CCPointEb; LevelEditorLayer::createObject(int,cocos2d::CCPoint,bool) ; +0x48, 0x688ef0\nMOV             X19, X0                                                ; +0x4c, 0x688ef4\nCBZ             X0, loc_688F58                                         ; +0x50, 0x688ef8\nLDR             S0, [X0,#0x510]                                        ; +0x54, 0x688efc\nFMOV            S1, #1.0                                               ; +0x58, 0x688f00\nFCMP            S0, S1; float                                          ; +0x5c, 0x688f04\nB.NE            loc_688F3C                                             ; +0x60, 0x688f08\nLDR             S2, [X0,#0x514]                                        ; +0x64, 0x688f0c\nFCMP            S2, S1                                                 ; +0x68, 0x688f10\nB.NE            loc_688F3C                                             ; +0x6c, 0x688f14\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x70, 0x688f18\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x74, 0x688f1c\nLDR             X1, [X20]                                              ; +0x78, 0x688f20\nCMP             X2, X1                                                 ; +0x7c, 0x688f24\nB.NE            loc_688F60                                             ; +0x80, 0x688f28\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x84, 0x688f2c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x88, 0x688f30\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x8c, 0x688f34\nRET                                                                    ; +0x90, 0x688f38\nMOV             X0, X19; this                                          ; +0x94, 0x688f3c\nBL              _ZN10GameObject18updateCustomScaleXEf; GameObject::updateCustomScaleX(float) ; +0x98, 0x688f40\nLDR             S0, [X19,#0x514]; float                                ; +0x9c, 0x688f44\nMOV             X0, X19; this                                          ; +0xa0, 0x688f48\nBL              _ZN10GameObject18updateCustomScaleYEf; GameObject::updateCustomScaleY(float) ; +0xa4, 0x688f4c\nMOV             X0, X19                                                ; +0xa8, 0x688f50\nB               loc_688F18                                             ; +0xac, 0x688f54\nMOV             X0, #0                                                 ; +0xb0, 0x688f58\nB               loc_688F18                                             ; +0xb4, 0x688f5c\nBL              .__stack_chk_fail                                      ; +0xb8, 0x688f60", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x68a334", "EditorUI::processSmartObjectsFromType @ 0x68a4cc", "EditorUI::addObjectsToSmartTemplate @ 0x6b43c4", "EditorUI::createLoop @ 0x6b6990", "EditorUI::createLoop @ 0x6b6af4", "EditorUI::createNewKeyframeAnim @ 0x6bf168", "EditorUI::onCreateObject @ 0x6bfe68", "EditorUI::createPrefab @ 0x6c07b4", "EditorUI::createEdgeForObject @ 0x9cc18c", "EditorUI::createOutlines @ 0x9cca34", "EditorUI::createOutlines @ 0x9ccb08", "EditorUI::createRockBases @ 0x9cd3f4", "EditorUI::createRockBases @ 0x9cd518", "EditorUI::createExtraObject @ 0x9cdbcc", "<???> @ 0x37ea8"], "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"}