{"type": "func", "start": 8135792, "end": 8136168, "name": "EditorUI::createUndoObject", "pseudocode": "// \n// EditorUI::createUndoObject from 0x7c2470 to 0x7c25e8 (376 bytes)\n// \n// 10 xrefs:\n// > EditorUI::startFreeMoveTouch @ 0xbd5110\n// > EditorUI::transformObjectCall @ 0xc017f4\n// > EditorUI::transformObjectCall @ 0xc01890\n// > EditorUI::angleChangeBegin @ 0xc01c28\n// > EditorUI::scaleChangeBegin @ 0xc0212c\n// > EditorUI::moveObjectCall @ 0xc02610\n// > EditorUI::alignObjectsOnAxis @ 0xc02c2c\n// > EditorUI::alignObjects @ 0xc031c0\n// > EditorUI::transformChangeBegin @ 0xc034a0\n// > <???> @ 0xda998\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\n__int64 __fastcall EditorUI::createUndoObject(__int64 a1, int a2, unsigned __int8 a3)\n{\n  int v4; // w23\n  __int64 v5; // x20\n  int v6; // w0\n  __int64 TransformState; // x21\n\n  v4 = a3;\n  if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)) )\n  {\n    v5 = UndoObject::createWithTransformObjects(*(cocos2d::CCArray **)(a1 + 896), a2);\n    if ( !(*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) )\n      goto LABEL_3;\n  }\n  else\n  {\n    v5 = UndoObject::create(*(GameObjectCopy **)(a1 + 1496), a2);\n    if ( !(*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) )\n      goto LABEL_3;\n  }\n  TransformState = EditorUI::getTransformState((EditorUI *)a1);\n  *(_DWORD *)(v5 + 84) = *(_DWORD *)TransformState;\n  *(_DWORD *)(v5 + 88) = *(_DWORD *)(TransformState + 4);\n  *(_DWORD *)(v5 + 92) = *(_DWORD *)(TransformState + 8);\n  *(_DWORD *)(v5 + 96) = *(_DWORD *)(TransformState + 12);\n  *(_DWORD *)(v5 + 100) = *(_DWORD *)(TransformState + 16);\n  *(_DWORD *)(v5 + 104) = *(_DWORD *)(TransformState + 20);\n  *(_DWORD *)(v5 + 108) = *(_DWORD *)(TransformState + 24);\n  *(_BYTE *)(v5 + 112) = *(_BYTE *)(TransformState + 28);\n  *(_DWORD *)(v5 + 116) = *(_DWORD *)(TransformState + 32);\n  *(_DWORD *)(v5 + 120) = *(_DWORD *)(TransformState + 36);\n  cocos2d::CCPoint::operator=(v5 + 124, TransformState + 40);\n  cocos2d::CCPoint::operator=(v5 + 132, TransformState + 48);\n  cocos2d::CCPoint::operator=(v5 + 140, TransformState + 56);\n  *(_DWORD *)(v5 + 148) = *(_DWORD *)(TransformState + 64);\n  *(_DWORD *)(v5 + 152) = *(_DWORD *)(TransformState + 68);\n  *(_BYTE *)(v5 + 81) = 1;\nLABEL_3:\n  if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 760) + 352LL))(*(_QWORD *)(a1 + 760)) )\n  {\n    v6 = *(_DWORD *)(*(_QWORD *)(a1 + 760) + 436LL);\n    *(_BYTE *)(v5 + 156) = 1;\n    *(_DWORD *)(v5 + 160) = v6;\n  }\n  if ( !v4 )\n    LevelEditorLayer::addToUndoList(*(cocos2d::CCArray ***)(a1 + 1440), (UndoObject *)v5, 0);\n  return v5;\n}", "assembly": "; \n; EditorUI::createUndoObject from 0x7c2470 to 0x7c25e8 (376 bytes)\n; \n; 10 xrefs:\n; > EditorUI::startFreeMoveTouch @ 0xbd5110\n; > EditorUI::transformObjectCall @ 0xc017f4\n; > EditorUI::transformObjectCall @ 0xc01890\n; > EditorUI::angleChangeBegin @ 0xc01c28\n; > EditorUI::scaleChangeBegin @ 0xc0212c\n; > EditorUI::moveObjectCall @ 0xc02610\n; > EditorUI::alignObjectsOnAxis @ 0xc02c2c\n; > EditorUI::alignObjects @ 0xc031c0\n; > EditorUI::transformChangeBegin @ 0xc034a0\n; > <???> @ 0xda998\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_50]!                                ; +0x0, 0x7c2470\nMOV             X29, SP                                                ; +0x4, 0x7c2474\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x7c2478\nSTR             X23, [SP,#0x50+var_20]                                 ; +0xc, 0x7c247c\nMOV             X19, X0                                                ; +0x10, 0x7c2480\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0x7c2484\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x18, 0x7c2488\nUXTB            W23, W2                                                ; +0x1c, 0x7c248c\nLDR             X0, [X0,#0x380]; this                                  ; +0x20, 0x7c2490\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x24, 0x7c2494\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x28, 0x7c2498\nCBZ             W0, loc_7C2524                                         ; +0x2c, 0x7c249c\nLDR             X0, [X19,#0x380]                                       ; +0x30, 0x7c24a0\nBL              _ZN10UndoObject26createWithTransformObjectsEPN7cocos2d7CCArrayE11UndoCommand; UndoObject::createWithTransformObjects(cocos2d::CCArray *,UndoCommand) ; +0x34, 0x7c24a4\nMOV             X20, X0                                                ; +0x38, 0x7c24a8\nLDR             X1, [X19,#0x318]                                       ; +0x3c, 0x7c24ac\nMOV             X0, X1                                                 ; +0x40, 0x7c24b0\nLDR             X1, [X1]                                               ; +0x44, 0x7c24b4\nLDR             X1, [X1,#0x160]                                        ; +0x48, 0x7c24b8\nBLR             X1                                                     ; +0x4c, 0x7c24bc\nUXTB            W0, W0                                                 ; +0x50, 0x7c24c0\nCBNZ            W0, loc_7C254C                                         ; +0x54, 0x7c24c4\nLDR             X1, [X19,#0x2F8]                                       ; +0x58, 0x7c24c8\nMOV             X0, X1                                                 ; +0x5c, 0x7c24cc\nLDR             X1, [X1]                                               ; +0x60, 0x7c24d0\nLDR             X1, [X1,#0x160]                                        ; +0x64, 0x7c24d4\nBLR             X1                                                     ; +0x68, 0x7c24d8\nUXTB            W0, W0                                                 ; +0x6c, 0x7c24dc\nCBZ             W0, loc_7C24F8                                         ; +0x70, 0x7c24e0\nLDR             X0, [X19,#0x2F8]                                       ; +0x74, 0x7c24e4\nMOV             W1, #1                                                 ; +0x78, 0x7c24e8\nLDR             W0, [X0,#0x1B4]                                        ; +0x7c, 0x7c24ec\nSTRB            W1, [X20,#0x9C]                                        ; +0x80, 0x7c24f0\nSTR             W0, [X20,#0xA0]                                        ; +0x84, 0x7c24f4\nCBNZ            W23, loc_7C250C                                        ; +0x88, 0x7c24f8\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x8c, 0x7c24fc\nMOV             X1, X20; UndoObject *                                  ; +0x90, 0x7c2500\nMOV             W2, #0; bool                                           ; +0x94, 0x7c2504\nBL              _ZN16LevelEditorLayer13addToUndoListEP10UndoObjectb; LevelEditorLayer::addToUndoList(UndoObject *,bool) ; +0x98, 0x7c2508\nMOV             X0, X20                                                ; +0x9c, 0x7c250c\nLDR             X23, [SP,#0x50+var_20]                                 ; +0xa0, 0x7c2510\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xa4, 0x7c2514\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xa8, 0x7c2518\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xac, 0x7c251c\nRET                                                                    ; +0xb0, 0x7c2520\nLDR             X0, [X19,#0x5D8]                                       ; +0xb4, 0x7c2524\nBL              _ZN10UndoObject6createEP10GameObject11UndoCommand; UndoObject::create(GameObject *,UndoCommand) ; +0xb8, 0x7c2528\nMOV             X20, X0                                                ; +0xbc, 0x7c252c\nLDR             X1, [X19,#0x318]                                       ; +0xc0, 0x7c2530\nMOV             X0, X1                                                 ; +0xc4, 0x7c2534\nLDR             X1, [X1]                                               ; +0xc8, 0x7c2538\nLDR             X1, [X1,#0x160]                                        ; +0xcc, 0x7c253c\nBLR             X1                                                     ; +0xd0, 0x7c2540\nUXTB            W0, W0                                                 ; +0xd4, 0x7c2544\nCBZ             W0, loc_7C24C8                                         ; +0xd8, 0x7c2548\nMOV             X0, X19; this                                          ; +0xdc, 0x7c254c\nBL              _ZN8EditorUI17getTransformStateEv; EditorUI::getTransformState(void) ; +0xe0, 0x7c2550\nMOV             X21, X0                                                ; +0xe4, 0x7c2554\nADD             X1, X0, #0x28 ; '('                                    ; +0xe8, 0x7c2558\nADD             X0, X20, #0x7C ; '|'                                   ; +0xec, 0x7c255c\nLDR             W2, [X21]                                              ; +0xf0, 0x7c2560\nSTR             W2, [X20,#0x54]                                        ; +0xf4, 0x7c2564\nLDR             W2, [X21,#4]                                           ; +0xf8, 0x7c2568\nSTR             W2, [X20,#0x58]                                        ; +0xfc, 0x7c256c\nLDR             W2, [X21,#8]                                           ; +0x100, 0x7c2570\nSTR             W2, [X20,#0x5C]                                        ; +0x104, 0x7c2574\nLDR             W2, [X21,#0xC]                                         ; +0x108, 0x7c2578\nSTR             W2, [X20,#0x60]                                        ; +0x10c, 0x7c257c\nLDR             W2, [X21,#0x10]                                        ; +0x110, 0x7c2580\nSTR             W2, [X20,#0x64]                                        ; +0x114, 0x7c2584\nLDR             W2, [X21,#0x14]                                        ; +0x118, 0x7c2588\nSTR             W2, [X20,#0x68]                                        ; +0x11c, 0x7c258c\nLDR             W2, [X21,#0x18]                                        ; +0x120, 0x7c2590\nSTR             W2, [X20,#0x6C]                                        ; +0x124, 0x7c2594\nLDRB            W2, [X21,#0x1C]                                        ; +0x128, 0x7c2598\nSTRB            W2, [X20,#0x70]                                        ; +0x12c, 0x7c259c\nLDR             W2, [X21,#0x20]                                        ; +0x130, 0x7c25a0\nSTR             W2, [X20,#0x74]                                        ; +0x134, 0x7c25a4\nLDR             W2, [X21,#0x24]                                        ; +0x138, 0x7c25a8\nSTR             W2, [X20,#0x78]                                        ; +0x13c, 0x7c25ac\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x140, 0x7c25b0\nADD             X1, X21, #0x30 ; '0'                                   ; +0x144, 0x7c25b4\nADD             X0, X20, #0x84                                         ; +0x148, 0x7c25b8\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x14c, 0x7c25bc\nADD             X0, X20, #0x8C                                         ; +0x150, 0x7c25c0\nADD             X1, X21, #0x38 ; '8'                                   ; +0x154, 0x7c25c4\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x158, 0x7c25c8\nLDR             W0, [X21,#0x40]                                        ; +0x15c, 0x7c25cc\nSTR             W0, [X20,#0x94]                                        ; +0x160, 0x7c25d0\nLDR             W0, [X21,#0x44]                                        ; +0x164, 0x7c25d4\nSTR             W0, [X20,#0x98]                                        ; +0x168, 0x7c25d8\nMOV             W0, #1                                                 ; +0x16c, 0x7c25dc\nSTRB            W0, [X20,#0x51]                                        ; +0x170, 0x7c25e0\nB               loc_7C24C8                                             ; +0x174, 0x7c25e4", "xrefs": ["EditorUI::startFreeMoveTouch @ 0xbd5110", "EditorUI::transformObjectCall @ 0xc017f4", "EditorUI::transformObjectCall @ 0xc01890", "EditorUI::angleChangeBegin @ 0xc01c28", "EditorUI::scaleChangeBegin @ 0xc0212c", "EditorUI::moveObjectCall @ 0xc02610", "EditorUI::alignObjectsOnAxis @ 0xc02c2c", "EditorUI::alignObjects @ 0xc031c0", "EditorUI::transformChangeBegin @ 0xc034a0", "<???> @ 0xda998"], "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"}