{"type": "func", "start": 8135376, "end": 8135564, "name": "EditorUI::createObject", "pseudocode": "// \n// EditorUI::createObject from 0x7c22d0 to 0x7c238c (188 bytes)\n// \n// 16 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x7c3338\n// > EditorUI::processSmartObjectsFromType @ 0x7c34d0\n// > EditorUI::createNewKeyframeAnim @ 0x7c3df4\n// > EditorUI::createLoop @ 0x7c4128\n// > EditorUI::createLoop @ 0x7c4290\n// > EditorUI::createPrefab @ 0x7c9d3c\n// > EditorUI::onCreateObject @ 0x7ca1cc\n// > EditorUI::createGradientFromSelection @ 0x7cacb0\n// > EditorUI::addObjectsToSmartTemplate @ 0x7cc4c8\n// > EditorUI::createEdgeForObject @ 0xb079a0\n// > EditorUI::createOutlines @ 0xb08248\n// > EditorUI::createOutlines @ 0xb0831c\n// > EditorUI::createRockBases @ 0xb08c08\n// > EditorUI::createRockBases @ 0xb08d28\n// > EditorUI::createExtraObject @ 0xb093dc\n// > <???> @ 0x51af0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:07 +0000\n// \n\nfloat *__fastcall EditorUI::createObject(__int64 a1, unsigned int a2, const cocos2d::CCPoint *a3)\n{\n  cocos2d::CCArray **v4; // x22\n  float *result; // x0\n  float *v6; // x19\n  float v7; // s0\n  _BYTE v8[8]; // [xsp+30h] [xbp+30h] BYREF\n\n  v4 = *(cocos2d::CCArray ***)(a1 + 1440);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, a3);\n  result = (float *)LevelEditorLayer::createObject(v4, a2, (const cocos2d::CCPoint *)v8, 0);\n  v6 = result;\n  if ( !result )\n    return nullptr;\n  v7 = result[328];\n  if ( v7 != 1.0 || result[329] != 1.0 )\n  {\n    GameObject::updateCustomScaleX((GameObject *)result, v7);\n    GameObject::updateCustomScaleY((GameObject *)v6, v6[329]);\n    return v6;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::createObject from 0x7c22d0 to 0x7c238c (188 bytes)\n; \n; 16 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x7c3338\n; > EditorUI::processSmartObjectsFromType @ 0x7c34d0\n; > EditorUI::createNewKeyframeAnim @ 0x7c3df4\n; > EditorUI::createLoop @ 0x7c4128\n; > EditorUI::createLoop @ 0x7c4290\n; > EditorUI::createPrefab @ 0x7c9d3c\n; > EditorUI::onCreateObject @ 0x7ca1cc\n; > EditorUI::createGradientFromSelection @ 0x7cacb0\n; > EditorUI::addObjectsToSmartTemplate @ 0x7cc4c8\n; > EditorUI::createEdgeForObject @ 0xb079a0\n; > EditorUI::createOutlines @ 0xb08248\n; > EditorUI::createOutlines @ 0xb0831c\n; > EditorUI::createRockBases @ 0xb08c08\n; > EditorUI::createRockBases @ 0xb08d28\n; > EditorUI::createExtraObject @ 0xb093dc\n; > <???> @ 0x51af0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:07 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x7c22d0\nMOV             X29, SP                                                ; +0x4, 0x7c22d4\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x7c22d8\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7c22dc\nADD             X19, X29, #0x40+var_10                                 ; +0x10, 0x7c22e0\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x7c22e4\nMOV             W21, W1                                                ; +0x18, 0x7c22e8\nMOV             X1, X2; cocos2d::CCPoint *                             ; +0x1c, 0x7c22ec\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x7c22f0\nLDR             X22, [X0,#0x5A0]                                       ; +0x24, 0x7c22f4\nMOV             X0, X19; this                                          ; +0x28, 0x7c22f8\nLDR             X2, [X2]                                               ; +0x2c, 0x7c22fc\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x30, 0x7c2300\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x34, 0x7c2304\nMOV             X2, X19                                                ; +0x38, 0x7c2308\nMOV             X0, X22                                                ; +0x3c, 0x7c230c\nMOV             W1, W21                                                ; +0x40, 0x7c2310\nMOV             W3, #0                                                 ; +0x44, 0x7c2314\nBL              _ZN16LevelEditorLayer12createObjectEiN7cocos2d7CCPointEb; LevelEditorLayer::createObject(int,cocos2d::CCPoint,bool) ; +0x48, 0x7c2318\nMOV             X19, X0                                                ; +0x4c, 0x7c231c\nCBZ             X0, loc_7C2380                                         ; +0x50, 0x7c2320\nLDR             S0, [X0,#0x520]                                        ; +0x54, 0x7c2324\nFMOV            S1, #1.0                                               ; +0x58, 0x7c2328\nFCMP            S0, S1; float                                          ; +0x5c, 0x7c232c\nB.NE            loc_7C2364                                             ; +0x60, 0x7c2330\nLDR             S2, [X0,#0x524]                                        ; +0x64, 0x7c2334\nFCMP            S2, S1                                                 ; +0x68, 0x7c2338\nB.NE            loc_7C2364                                             ; +0x6c, 0x7c233c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x70, 0x7c2340\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x74, 0x7c2344\nLDR             X1, [X20]                                              ; +0x78, 0x7c2348\nCMP             X2, X1                                                 ; +0x7c, 0x7c234c\nB.NE            loc_7C2388                                             ; +0x80, 0x7c2350\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x84, 0x7c2354\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x88, 0x7c2358\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x8c, 0x7c235c\nRET                                                                    ; +0x90, 0x7c2360\nMOV             X0, X19; this                                          ; +0x94, 0x7c2364\nBL              _ZN10GameObject18updateCustomScaleXEf; GameObject::updateCustomScaleX(float) ; +0x98, 0x7c2368\nLDR             S0, [X19,#0x524]; float                                ; +0x9c, 0x7c236c\nMOV             X0, X19; this                                          ; +0xa0, 0x7c2370\nBL              _ZN10GameObject18updateCustomScaleYEf; GameObject::updateCustomScaleY(float) ; +0xa4, 0x7c2374\nMOV             X0, X19                                                ; +0xa8, 0x7c2378\nB               loc_7C2340                                             ; +0xac, 0x7c237c\nMOV             X0, #0                                                 ; +0xb0, 0x7c2380\nB               loc_7C2340                                             ; +0xb4, 0x7c2384\nBL              .__stack_chk_fail                                      ; +0xb8, 0x7c2388", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x7c3338", "EditorUI::processSmartObjectsFromType @ 0x7c34d0", "EditorUI::createNewKeyframeAnim @ 0x7c3df4", "EditorUI::createLoop @ 0x7c4128", "EditorUI::createLoop @ 0x7c4290", "EditorUI::createPrefab @ 0x7c9d3c", "EditorUI::onCreateObject @ 0x7ca1cc", "EditorUI::createGradientFromSelection @ 0x7cacb0", "EditorUI::addObjectsToSmartTemplate @ 0x7cc4c8", "EditorUI::createEdgeForObject @ 0xb079a0", "EditorUI::createOutlines @ 0xb08248", "EditorUI::createOutlines @ 0xb0831c", "EditorUI::createRockBases @ 0xb08c08", "EditorUI::createRockBases @ 0xb08d28", "EditorUI::createExtraObject @ 0xb093dc", "<???> @ 0x51af0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}