{"type": "func", "start": 5369823008, "end": 5369823155, "name": "EditorUI::createObject", "pseudocode": "// \n// EditorUI::createObject from 0x14010ff20 to 0x14010ffb3 (147 bytes)\n// \n// 15 xrefs:\n// > EditorUI::onCreateObject @ 0x14010f978\n// > EditorUI::addObjectsToSmartTemplate @ 0x140116890\n// > EditorUI::createPrefab @ 0x140117c76\n// > EditorUI::processSmartObjectsFromType @ 0x140118570\n// > EditorUI::processSmartObjectsFromType @ 0x140118669\n// > EditorUI::createNewKeyframeAnim @ 0x140119517\n// > EditorUI::createLoop @ 0x1401198e9\n// > EditorUI::createLoop @ 0x140119b9d\n// > EditorUI::createEdgeForObject @ 0x14012eb75\n// > EditorUI::createOutlines @ 0x14012f295\n// > EditorUI::createOutlines @ 0x14012f36b\n// > EditorUI::createRockBases @ 0x14012fbe5\n// > EditorUI::createRockBases @ 0x14012fd0f\n// > EditorUI::createExtraObject @ 0x140132d1f\n// > <???> @ 0x1406c8e74\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  cocos2d::CCPoint v5; // rax\n  GameObject *result; // rax\n  GameObject *v7; // rbx\n  cocos2d::CCPoint v8; // [rsp+30h] [rbp+8h] BYREF\n\n  cocos2d::CCPoint::CCPoint(&v8, *(const struct cocos2d::CCPoint **)&a3);\n  result = LevelEditorLayer::createObject(a1->m_editorLayer, a2, v5, 0);\n  v7 = result;\n  if ( result )\n  {\n    if ( result->m_pixelScaleX != 1.0 || result->m_pixelScaleY != 1.0 )\n    {\n      GameObject::updateCustomScaleX(result, result->m_pixelScaleX);\n      GameObject::updateCustomScaleY(v7, v7->m_pixelScaleY);\n    }\n    return v7;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::createObject from 0x14010ff20 to 0x14010ffb3 (147 bytes)\n; \n; 15 xrefs:\n; > EditorUI::onCreateObject @ 0x14010f978\n; > EditorUI::addObjectsToSmartTemplate @ 0x140116890\n; > EditorUI::createPrefab @ 0x140117c76\n; > EditorUI::processSmartObjectsFromType @ 0x140118570\n; > EditorUI::processSmartObjectsFromType @ 0x140118669\n; > EditorUI::createNewKeyframeAnim @ 0x140119517\n; > EditorUI::createLoop @ 0x1401198e9\n; > EditorUI::createLoop @ 0x140119b9d\n; > EditorUI::createEdgeForObject @ 0x14012eb75\n; > EditorUI::createOutlines @ 0x14012f295\n; > EditorUI::createOutlines @ 0x14012f36b\n; > EditorUI::createRockBases @ 0x14012fbe5\n; > EditorUI::createRockBases @ 0x14012fd0f\n; > EditorUI::createExtraObject @ 0x140132d1f\n; > <???> @ 0x1406c8e74\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14010ff20\npush    rdi                                                            ; +0x5, 0x14010ff25\nsub     rsp, 20h                                                       ; +0x6, 0x14010ff26\nmov     ebx, edx                                                       ; +0xa, 0x14010ff2a\nmov     rdi, rcx                                                       ; +0xc, 0x14010ff2c\nmov     rdx, r8                                                        ; +0xf, 0x14010ff2f\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x12, 0x14010ff32\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x17, 0x14010ff37\nmov     rcx, [rdi+500h]                                                ; +0x1d, 0x14010ff3d\nxor     r9d, r9d                                                       ; +0x24, 0x14010ff44\nmov     r8, rax                                                        ; +0x27, 0x14010ff47\nmov     edx, ebx                                                       ; +0x2a, 0x14010ff4a\ncall    LevelEditorLayer__createObject                                 ; +0x2c, 0x14010ff4c\nmov     rbx, rax                                                       ; +0x31, 0x14010ff51\ntest    rax, rax                                                       ; +0x34, 0x14010ff54\njnz     short loc_14010FF64                                            ; +0x37, 0x14010ff57\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x39, 0x14010ff59\nadd     rsp, 20h                                                       ; +0x3e, 0x14010ff5e\npop     rdi                                                            ; +0x42, 0x14010ff62\nretn                                                                   ; +0x43, 0x14010ff63\nmovss   xmm2, dword ptr [rax+528h]                                     ; +0x44, 0x14010ff64\nmovss   xmm1, cs:flt_140622C24                                         ; +0x4c, 0x14010ff6c\nucomiss xmm2, xmm1                                                     ; +0x54, 0x14010ff74\njp      short loc_14010FF8A                                            ; +0x57, 0x14010ff77\njnz     short loc_14010FF8A                                            ; +0x59, 0x14010ff79\nmovss   xmm0, dword ptr [rax+52Ch]                                     ; +0x5b, 0x14010ff7b\nucomiss xmm0, xmm1                                                     ; +0x63, 0x14010ff83\njp      short loc_14010FF8A                                            ; +0x66, 0x14010ff86\njz      short loc_14010FFA5                                            ; +0x68, 0x14010ff88\nmovaps  xmm1, xmm2                                                     ; +0x6a, 0x14010ff8a\nmov     rcx, rbx                                                       ; +0x6d, 0x14010ff8d\ncall    GameObject__updateCustomScaleX                                 ; +0x70, 0x14010ff90\nmovss   xmm1, dword ptr [rbx+52Ch]                                     ; +0x75, 0x14010ff95\nmov     rcx, rbx                                                       ; +0x7d, 0x14010ff9d\ncall    GameObject__updateCustomScaleY                                 ; +0x80, 0x14010ffa0\nmov     rax, rbx                                                       ; +0x85, 0x14010ffa5\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x88, 0x14010ffa8\nadd     rsp, 20h                                                       ; +0x8d, 0x14010ffad\npop     rdi                                                            ; +0x91, 0x14010ffb1\nretn                                                                   ; +0x92, 0x14010ffb2", "xrefs": ["EditorUI::onCreateObject @ 0x14010f978", "EditorUI::addObjectsToSmartTemplate @ 0x140116890", "EditorUI::createPrefab @ 0x140117c76", "EditorUI::processSmartObjectsFromType @ 0x140118570", "EditorUI::processSmartObjectsFromType @ 0x140118669", "EditorUI::createNewKeyframeAnim @ 0x140119517", "EditorUI::createLoop @ 0x1401198e9", "EditorUI::createLoop @ 0x140119b9d", "EditorUI::createEdgeForObject @ 0x14012eb75", "EditorUI::createOutlines @ 0x14012f295", "EditorUI::createOutlines @ 0x14012f36b", "EditorUI::createRockBases @ 0x14012fbe5", "EditorUI::createRockBases @ 0x14012fd0f", "EditorUI::createExtraObject @ 0x140132d1f", "<???> @ 0x1406c8e74"], "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"}