{"type": "func", "start": 4726992, "end": 4727114, "name": "EditorUI::createObject", "pseudocode": "// \n// EditorUI::createObject from 0x4820d0 to 0x48214a (122 bytes)\n// \n// 15 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x482b08\n// > EditorUI::processSmartObjectsFromType @ 0x482b98\n// > EditorUI::createNewKeyframeAnim @ 0x4830d4\n// > EditorUI::createLoop @ 0x4854ca\n// > EditorUI::createLoop @ 0x485640\n// > EditorUI::createPrefab @ 0x48717a\n// > EditorUI::onCreateObject @ 0x487442\n// > EditorUI::createGradientFromSelection @ 0x487b32\n// > EditorUI::addObjectsToSmartTemplate @ 0x48882c\n// > EditorUI::createEdgeForObject @ 0x66bbbc\n// > EditorUI::createOutlines @ 0x66c3e0\n// > EditorUI::createOutlines @ 0x66c472\n// > EditorUI::createRockBases @ 0x66c83c\n// > EditorUI::createRockBases @ 0x66c8fa\n// > EditorUI::createExtraObject @ 0x66cb9a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:23 +0000\n// \n\nGameObject *__fastcall EditorUI::createObject(int a1, GameObject *a2, const cocos2d::CCPoint *a3)\n{\n  cocos2d::CCArray **v3; // r7\n  float *Object; // r0\n  GameObject *v6; // r5\n  float *v7; // r6\n  _BYTE v9[8]; // [sp+4h] [bp-10h] BYREF\n\n  v3 = *(cocos2d::CCArray ***)(a1 + 944);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, a3);\n  Object = (float *)LevelEditorLayer::createObject(v3, a2, (const cocos2d::CCPoint *)v9, 0);\n  v6 = (GameObject *)Object;\n  if ( Object )\n  {\n    v7 = Object + 284;\n    if ( Object[283] != 1.0 || *v7 != 1.0 )\n    {\n      GameObject::updateCustomScaleX((GameObject *)Object, Object[283]);\n      GameObject::updateCustomScaleY(v6, *v7);\n    }\n  }\n  return v6;\n}", "assembly": "; \n; EditorUI::createObject from 0x4820d0 to 0x48214a (122 bytes)\n; \n; 15 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x482b08\n; > EditorUI::processSmartObjectsFromType @ 0x482b98\n; > EditorUI::createNewKeyframeAnim @ 0x4830d4\n; > EditorUI::createLoop @ 0x4854ca\n; > EditorUI::createLoop @ 0x485640\n; > EditorUI::createPrefab @ 0x48717a\n; > EditorUI::onCreateObject @ 0x487442\n; > EditorUI::createGradientFromSelection @ 0x487b32\n; > EditorUI::addObjectsToSmartTemplate @ 0x48882c\n; > EditorUI::createEdgeForObject @ 0x66bbbc\n; > EditorUI::createOutlines @ 0x66c3e0\n; > EditorUI::createOutlines @ 0x66c472\n; > EditorUI::createRockBases @ 0x66c83c\n; > EditorUI::createRockBases @ 0x66c8fa\n; > EditorUI::createExtraObject @ 0x66cb9a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:23 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x4820d0\nSUB             SP, SP, #0x14                                          ; +0x2, 0x4820d2\nLDR             R4, =(__stack_chk_guard_ptr - 0x4820E2)                ; +0x4, 0x4820d4\nADD             R5, SP, #0x14+var_10                                   ; +0x6, 0x4820d6\nLDR.W           R7, [R0,#0x3B0]                                        ; +0x8, 0x4820d8\nMOV             R6, R1                                                 ; +0xc, 0x4820dc\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4820de\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x4820e0\nMOV             R1, R2; cocos2d::CCPoint *                             ; +0x12, 0x4820e2\nMOV             R0, R5; this                                           ; +0x14, 0x4820e4\nLDR             R3, [R4]                                               ; +0x16, 0x4820e6\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x18, 0x4820e8\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1a, 0x4820ea\nMOV             R2, R5                                                 ; +0x1e, 0x4820ee\nMOV             R0, R7                                                 ; +0x20, 0x4820f0\nMOV             R1, R6                                                 ; +0x22, 0x4820f2\nMOVS            R3, #0                                                 ; +0x24, 0x4820f4\nBL              _ZN16LevelEditorLayer12createObjectEiN7cocos2d7CCPointEb; LevelEditorLayer::createObject(int,cocos2d::CCPoint,bool) ; +0x26, 0x4820f6\nMOV             R5, R0                                                 ; +0x2a, 0x4820fa\nCBZ             R0, loc_482138                                         ; +0x2c, 0x4820fc\nVMOV.F32        S14, #1.0                                              ; +0x2e, 0x4820fe\nADDW            R3, R0, #0x46C                                         ; +0x32, 0x482102\nADD.W           R6, R0, #0x470                                         ; +0x36, 0x482106\nVLDR            S15, [R3]                                              ; +0x3a, 0x48210a\nVCMP.F32        S15, S14                                               ; +0x3e, 0x48210e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x42, 0x482112\nBNE             loc_482126                                             ; +0x46, 0x482116\nVLDR            S13, [R6]                                              ; +0x48, 0x482118\nVCMP.F32        S13, S14                                               ; +0x4c, 0x48211c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x50, 0x482120\nBEQ             loc_482138                                             ; +0x54, 0x482124\nMOV             R0, R5; this                                           ; +0x56, 0x482126\nVMOV            R1, S15; float                                         ; +0x58, 0x482128\nBL              _ZN10GameObject18updateCustomScaleXEf; GameObject::updateCustomScaleX(float) ; +0x5c, 0x48212c\nMOV             R0, R5; this                                           ; +0x60, 0x482130\nLDR             R1, [R6]; float                                        ; +0x62, 0x482132\nBL              _ZN10GameObject18updateCustomScaleYEf; GameObject::updateCustomScaleY(float) ; +0x64, 0x482134\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x68, 0x482138\nMOV             R0, R5                                                 ; +0x6a, 0x48213a\nLDR             R3, [R4]                                               ; +0x6c, 0x48213c\nCMP             R2, R3                                                 ; +0x6e, 0x48213e\nBEQ             loc_482146                                             ; +0x70, 0x482140\nBLX             __stack_chk_fail                                       ; +0x72, 0x482142\nADD             SP, SP, #0x14                                          ; +0x76, 0x482146\nPOP             {R4-R7,PC}                                             ; +0x78, 0x482148", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x482b08", "EditorUI::processSmartObjectsFromType @ 0x482b98", "EditorUI::createNewKeyframeAnim @ 0x4830d4", "EditorUI::createLoop @ 0x4854ca", "EditorUI::createLoop @ 0x485640", "EditorUI::createPrefab @ 0x48717a", "EditorUI::onCreateObject @ 0x487442", "EditorUI::createGradientFromSelection @ 0x487b32", "EditorUI::addObjectsToSmartTemplate @ 0x48882c", "EditorUI::createEdgeForObject @ 0x66bbbc", "EditorUI::createOutlines @ 0x66c3e0", "EditorUI::createOutlines @ 0x66c472", "EditorUI::createRockBases @ 0x66c83c", "EditorUI::createRockBases @ 0x66c8fa", "EditorUI::createExtraObject @ 0x66cb9a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}