{"type": "func", "start": 4727248, "end": 4727460, "name": "EditorUI::createUndoObject", "pseudocode": "// \n// EditorUI::createUndoObject from 0x4821d0 to 0x4822a4 (212 bytes)\n// \n// 8 xrefs:\n// > EditorUI::startFreeMoveTouch @ 0x6eff9a\n// > EditorUI::transformObjectCall @ 0x70e442\n// > EditorUI::angleChangeBegin @ 0x70e6ba\n// > EditorUI::scaleChangeBegin @ 0x70ea1e\n// > EditorUI::moveObjectCall @ 0x70ed48\n// > EditorUI::alignObjectsOnAxis @ 0x70f1ee\n// > EditorUI::alignObjects @ 0x70f4ee\n// > EditorUI::transformChangeBegin @ 0x70f6b0\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\nUndoObject *__fastcall EditorUI::createUndoObject(int a1, int a2, int a3)\n{\n  UndoObject *v6; // r0\n  UndoObject *v7; // r4\n  int TransformState; // r5\n\n  if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 668)) )\n    v6 = UndoObject::createWithTransformObjects(*(cocos2d::CCArray **)(a1 + 668), a2);\n  else\n    v6 = UndoObject::create(*(GameObjectCopy **)(a1 + 996), a2);\n  v7 = v6;\n  if ( (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 596) + 176))(*(_DWORD *)(a1 + 596)) )\n  {\n    TransformState = EditorUI::getTransformState((EditorUI *)a1);\n    *((_DWORD *)v7 + 17) = *(_DWORD *)TransformState;\n    *((_DWORD *)v7 + 18) = *(_DWORD *)(TransformState + 4);\n    *((_DWORD *)v7 + 19) = *(_DWORD *)(TransformState + 8);\n    *((_DWORD *)v7 + 20) = *(_DWORD *)(TransformState + 12);\n    *((_DWORD *)v7 + 21) = *(_DWORD *)(TransformState + 16);\n    *((_DWORD *)v7 + 22) = *(_DWORD *)(TransformState + 20);\n    *((_DWORD *)v7 + 23) = *(_DWORD *)(TransformState + 24);\n    *((_BYTE *)v7 + 96) = *(_BYTE *)(TransformState + 28);\n    *((_DWORD *)v7 + 25) = *(_DWORD *)(TransformState + 32);\n    *((_DWORD *)v7 + 26) = *(_DWORD *)(TransformState + 36);\n    cocos2d::CCPoint::operator=((char *)v7 + 108, TransformState + 40);\n    cocos2d::CCPoint::operator=((char *)v7 + 116, TransformState + 48);\n    cocos2d::CCPoint::operator=((char *)v7 + 124, TransformState + 56);\n    *((_DWORD *)v7 + 33) = *(_DWORD *)(TransformState + 64);\n    *((_DWORD *)v7 + 34) = *(_DWORD *)(TransformState + 68);\n    *((_BYTE *)v7 + 65) = 1;\n  }\n  if ( (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 576) + 176))(*(_DWORD *)(a1 + 576)) )\n  {\n    *((_DWORD *)v7 + 36) = *(_DWORD *)(*(_DWORD *)(a1 + 576) + 340);\n    *((_BYTE *)v7 + 140) = 1;\n  }\n  if ( !a3 )\n    LevelEditorLayer::addToUndoList(*(cocos2d::CCArray ***)(a1 + 944), v7, 0);\n  return v7;\n}", "assembly": "; \n; EditorUI::createUndoObject from 0x4821d0 to 0x4822a4 (212 bytes)\n; \n; 8 xrefs:\n; > EditorUI::startFreeMoveTouch @ 0x6eff9a\n; > EditorUI::transformObjectCall @ 0x70e442\n; > EditorUI::angleChangeBegin @ 0x70e6ba\n; > EditorUI::scaleChangeBegin @ 0x70ea1e\n; > EditorUI::moveObjectCall @ 0x70ed48\n; > EditorUI::alignObjectsOnAxis @ 0x70f1ee\n; > EditorUI::alignObjects @ 0x70f4ee\n; > EditorUI::transformChangeBegin @ 0x70f6b0\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            {R3-R7,LR}                                             ; +0x0, 0x4821d0\nMOV             R6, R0                                                 ; +0x2, 0x4821d2\nLDR.W           R0, [R0,#0x29C]; this                                  ; +0x4, 0x4821d4\nMOV             R4, R1                                                 ; +0x8, 0x4821d8\nMOV             R7, R2                                                 ; +0xa, 0x4821da\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc, 0x4821dc\nCBZ             R0, loc_4821EE                                         ; +0x10, 0x4821e0\nLDR.W           R0, [R6,#0x29C]                                        ; +0x12, 0x4821e2\nMOV             R1, R4                                                 ; +0x16, 0x4821e6\nBL              _ZN10UndoObject26createWithTransformObjectsEPN7cocos2d7CCArrayE11UndoCommand; UndoObject::createWithTransformObjects(cocos2d::CCArray *,UndoCommand) ; +0x18, 0x4821e8\nB               loc_4821F8                                             ; +0x1c, 0x4821ec\nLDR.W           R0, [R6,#0x3E4]                                        ; +0x1e, 0x4821ee\nMOV             R1, R4                                                 ; +0x22, 0x4821f2\nBL              _ZN10UndoObject6createEP10GameObject11UndoCommand; UndoObject::create(GameObject *,UndoCommand) ; +0x24, 0x4821f4\nMOV             R4, R0                                                 ; +0x28, 0x4821f8\nLDR.W           R0, [R6,#0x254]                                        ; +0x2a, 0x4821fa\nLDR             R3, [R0]                                               ; +0x2e, 0x4821fe\nLDR.W           R3, [R3,#0xB0]                                         ; +0x30, 0x482200\nBLX             R3                                                     ; +0x34, 0x482204\nCMP             R0, #0                                                 ; +0x36, 0x482206\nBEQ             loc_482272                                             ; +0x38, 0x482208\nMOV             R0, R6; this                                           ; +0x3a, 0x48220a\nBL              _ZN8EditorUI17getTransformStateEv; EditorUI::getTransformState(void) ; +0x3c, 0x48220c\nLDR             R3, [R0]                                               ; +0x40, 0x482210\nMOV             R5, R0                                                 ; +0x42, 0x482212\nADD.W           R1, R5, #0x28 ; '('                                    ; +0x44, 0x482214\nSTR             R3, [R4,#0x44]                                         ; +0x48, 0x482218\nLDR             R3, [R0,#4]                                            ; +0x4a, 0x48221a\nSTR             R3, [R4,#0x48]                                         ; +0x4c, 0x48221c\nLDR             R3, [R0,#8]                                            ; +0x4e, 0x48221e\nSTR             R3, [R4,#0x4C]                                         ; +0x50, 0x482220\nLDR             R3, [R0,#0xC]                                          ; +0x52, 0x482222\nSTR             R3, [R4,#0x50]                                         ; +0x54, 0x482224\nLDR             R3, [R0,#0x10]                                         ; +0x56, 0x482226\nSTR             R3, [R4,#0x54]                                         ; +0x58, 0x482228\nLDR             R3, [R0,#0x14]                                         ; +0x5a, 0x48222a\nSTR             R3, [R4,#0x58]                                         ; +0x5c, 0x48222c\nLDR             R3, [R0,#0x18]                                         ; +0x5e, 0x48222e\nSTR             R3, [R4,#0x5C]                                         ; +0x60, 0x482230\nLDRB            R3, [R0,#0x1C]                                         ; +0x62, 0x482232\nSTRB.W          R3, [R4,#0x60]                                         ; +0x64, 0x482234\nLDR             R3, [R0,#0x20]                                         ; +0x68, 0x482238\nSTR             R3, [R4,#0x64]                                         ; +0x6a, 0x48223a\nLDR             R3, [R0,#0x24]                                         ; +0x6c, 0x48223c\nADD.W           R0, R4, #0x6C ; 'l'                                    ; +0x6e, 0x48223e\nSTR             R3, [R4,#0x68]                                         ; +0x72, 0x482242\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x74, 0x482244\nADD.W           R1, R5, #0x30 ; '0'                                    ; +0x78, 0x482248\nADD.W           R0, R4, #0x74 ; 't'                                    ; +0x7c, 0x48224c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x80, 0x482250\nADD.W           R0, R4, #0x7C ; '|'                                    ; +0x84, 0x482254\nADD.W           R1, R5, #0x38 ; '8'                                    ; +0x88, 0x482258\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x8c, 0x48225c\nLDR             R3, [R5,#0x40]                                         ; +0x90, 0x482260\nSTR.W           R3, [R4,#0x84]                                         ; +0x92, 0x482262\nLDR             R3, [R5,#0x44]                                         ; +0x96, 0x482266\nSTR.W           R3, [R4,#0x88]                                         ; +0x98, 0x482268\nMOVS            R3, #1                                                 ; +0x9c, 0x48226c\nSTRB.W          R3, [R4,#0x41]                                         ; +0x9e, 0x48226e\nLDR.W           R0, [R6,#0x240]                                        ; +0xa2, 0x482272\nLDR             R3, [R0]                                               ; +0xa6, 0x482276\nLDR.W           R3, [R3,#0xB0]                                         ; +0xa8, 0x482278\nBLX             R3                                                     ; +0xac, 0x48227c\nCBZ             R0, loc_482292                                         ; +0xae, 0x48227e\nLDR.W           R3, [R6,#0x240]                                        ; +0xb0, 0x482280\nLDR.W           R3, [R3,#0x154]                                        ; +0xb4, 0x482284\nSTR.W           R3, [R4,#0x90]                                         ; +0xb8, 0x482288\nMOVS            R3, #1                                                 ; +0xbc, 0x48228c\nSTRB.W          R3, [R4,#0x8C]                                         ; +0xbe, 0x48228e\nCBNZ            R7, loc_4822A0                                         ; +0xc2, 0x482292\nLDR.W           R0, [R6,#0x3B0]; this                                  ; +0xc4, 0x482294\nMOV             R1, R4; UndoObject *                                   ; +0xc8, 0x482298\nMOV             R2, R7; bool                                           ; +0xca, 0x48229a\nBL              _ZN16LevelEditorLayer13addToUndoListEP10UndoObjectb; LevelEditorLayer::addToUndoList(UndoObject *,bool) ; +0xcc, 0x48229c\nMOV             R0, R4                                                 ; +0xd0, 0x4822a0\nPOP             {R3-R7,PC}                                             ; +0xd2, 0x4822a2", "xrefs": ["EditorUI::startFreeMoveTouch @ 0x6eff9a", "EditorUI::transformObjectCall @ 0x70e442", "EditorUI::angleChangeBegin @ 0x70e6ba", "EditorUI::scaleChangeBegin @ 0x70ea1e", "EditorUI::moveObjectCall @ 0x70ed48", "EditorUI::alignObjectsOnAxis @ 0x70f1ee", "EditorUI::alignObjects @ 0x70f4ee", "EditorUI::transformChangeBegin @ 0x70f6b0"], "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"}