{"type": "func", "start": 7035692, "end": 7036020, "name": "EditorUI::createUndoObject", "pseudocode": "// \n// EditorUI::createUndoObject from 0x6b5b2c to 0x6b5c74 (328 bytes)\n// \n// 8 xrefs:\n// > EditorUI::scaleChangeBegin @ 0x6b5c7c\n// > EditorUI::transformChangeBegin @ 0x6b5c90\n// > EditorUI::alignObjects @ 0x6b5f60\n// > EditorUI::angleChangeBegin @ 0x6b61a4\n// > EditorUI::moveObjectCall @ 0x6b94a8\n// > EditorUI::transformObjectCall @ 0x6b9df8\n// > EditorUI::ccTouchBegan @ 0x6c54b0\n// > <???> @ 0xa6758\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\nUndoObject *EditorUI::createUndoObject(EditorUI *a1, UndoCommand a2, bool a3)\n{\n  _BOOL4 v4; // w23\n  UndoObject *v5; // x21\n  GJTransformState *TransformState; // x20\n  float m_scaleX; // w11\n  float m_scaleY; // w9\n  float m_angleX; // w8\n  float m_angleY; // w7\n  float m_skewX; // w6\n  float m_skewY; // w5\n  float m_transformRotation; // w4\n  float m_transformRotationX; // w3\n  float m_transformRotationY; // w2\n  float v17; // s0\n  float v18; // s1\n  float v19; // s0\n  float v20; // s1\n  float v21; // s0\n  float v22; // s1\n  float m_transformScaleX; // w1\n\n  v4 = a3;\n  if ( (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) )\n  {\n    v5 = UndoObject::createWithTransformObjects(a1->m_selectedObjects, a2);\n    if ( !a1->m_transformControl->isVisible(a1->m_transformControl) )\n      goto LABEL_3;\n  }\n  else\n  {\n    v5 = UndoObject::create(a1->m_selectedObject, a2);\n    if ( !a1->m_transformControl->isVisible(a1->m_transformControl) )\n      goto LABEL_3;\n  }\n  TransformState = EditorUI::getTransformState(a1);\n  m_scaleX = TransformState->m_scaleX;\n  m_scaleY = TransformState->m_scaleY;\n  m_angleX = TransformState->m_angleX;\n  m_angleY = TransformState->m_angleY;\n  m_skewX = TransformState->m_skewX;\n  m_skewY = TransformState->m_skewY;\n  m_transformRotation = TransformState->m_transformRotation;\n  m_transformRotationX = TransformState->m_transformRotationX;\n  m_transformRotationY = TransformState->m_transformRotationY;\n  v5->m_transformState.m_transformReset = TransformState->m_transformReset;\n  v5->m_transformState.m_scaleX = m_scaleX;\n  v5->m_transformState.m_scaleY = m_scaleY;\n  v5->m_transformState.m_angleX = m_angleX;\n  v5->m_transformState.m_angleY = m_angleY;\n  v5->m_transformState.m_skewX = m_skewX;\n  v5->m_transformState.m_skewY = m_skewY;\n  v5->m_transformState.m_transformRotation = m_transformRotation;\n  v5->m_transformState.m_transformRotationX = m_transformRotationX;\n  v5->m_transformState.m_transformRotationY = m_transformRotationY;\n  cocos2d::CCPoint::operator=(&v5->m_transformState.m_transformPosition, v17, v18);\n  cocos2d::CCPoint::operator=(&v5->m_transformState.m_transformSkewX, v19, v20);\n  cocos2d::CCPoint::operator=(&v5->m_transformState.m_transformSkewY, v21, v22);\n  m_transformScaleX = TransformState->m_transformScaleX;\n  v5->m_transformState.m_transformScaleY = TransformState->m_transformScaleY;\n  v5->m_transformState.m_transformScaleX = m_transformScaleX;\n  v5->m_undoTransform = 1;\nLABEL_3:\n  if ( !v4 )\n    LevelEditorLayer::addToUndoList(a1->m_editorLayer, v5, 0);\n  return v5;\n}", "assembly": "; \n; EditorUI::createUndoObject from 0x6b5b2c to 0x6b5c74 (328 bytes)\n; \n; 8 xrefs:\n; > EditorUI::scaleChangeBegin @ 0x6b5c7c\n; > EditorUI::transformChangeBegin @ 0x6b5c90\n; > EditorUI::alignObjects @ 0x6b5f60\n; > EditorUI::angleChangeBegin @ 0x6b61a4\n; > EditorUI::moveObjectCall @ 0x6b94a8\n; > EditorUI::transformObjectCall @ 0x6b9df8\n; > EditorUI::ccTouchBegan @ 0x6c54b0\n; > <???> @ 0xa6758\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x6b5b2c\nMOV             X29, SP                                                ; +0x4, 0x6b5b30\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x6b5b34\nMOV             X19, X0                                                ; +0xc, 0x6b5b38\nLDR             X0, [X0,#0x338]; this                                  ; +0x10, 0x6b5b3c\nSTR             X23, [SP,#0x50+var_20]                                 ; +0x14, 0x6b5b40\nUXTB            W23, W2                                                ; +0x18, 0x6b5b44\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x1c, 0x6b5b48\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x20, 0x6b5b4c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x24, 0x6b5b50\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x28, 0x6b5b54\nCBZ             W0, loc_6B5BB0                                         ; +0x2c, 0x6b5b58\nLDR             X0, [X19,#0x338]                                       ; +0x30, 0x6b5b5c\nBL              _ZN10UndoObject26createWithTransformObjectsEPN7cocos2d7CCArrayE11UndoCommand; UndoObject::createWithTransformObjects(cocos2d::CCArray *,UndoCommand) ; +0x34, 0x6b5b60\nMOV             X21, X0                                                ; +0x38, 0x6b5b64\nLDR             X1, [X19,#0x2D0]                                       ; +0x3c, 0x6b5b68\nMOV             X0, X1                                                 ; +0x40, 0x6b5b6c\nLDR             X1, [X1]                                               ; +0x44, 0x6b5b70\nLDR             X1, [X1,#0x150]                                        ; +0x48, 0x6b5b74\nBLR             X1                                                     ; +0x4c, 0x6b5b78\nUXTB            W0, W0                                                 ; +0x50, 0x6b5b7c\nCBNZ            W0, loc_6B5BD8                                         ; +0x54, 0x6b5b80\nCBNZ            W23, loc_6B5B98                                        ; +0x58, 0x6b5b84\nLDR             X0, [X19,#0x4F8]; this                                 ; +0x5c, 0x6b5b88\nMOV             X1, X21; UndoObject *                                  ; +0x60, 0x6b5b8c\nMOV             W2, #0; bool                                           ; +0x64, 0x6b5b90\nBL              _ZN16LevelEditorLayer13addToUndoListEP10UndoObjectb; LevelEditorLayer::addToUndoList(UndoObject *,bool) ; +0x68, 0x6b5b94\nMOV             X0, X21                                                ; +0x6c, 0x6b5b98\nLDR             X23, [SP,#0x50+var_20]                                 ; +0x70, 0x6b5b9c\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x74, 0x6b5ba0\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x78, 0x6b5ba4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x7c, 0x6b5ba8\nRET                                                                    ; +0x80, 0x6b5bac\nLDR             X0, [X19,#0x530]                                       ; +0x84, 0x6b5bb0\nBL              _ZN10UndoObject6createEP10GameObject11UndoCommand; UndoObject::create(GameObject *,UndoCommand) ; +0x88, 0x6b5bb4\nMOV             X21, X0                                                ; +0x8c, 0x6b5bb8\nLDR             X1, [X19,#0x2D0]                                       ; +0x90, 0x6b5bbc\nMOV             X0, X1                                                 ; +0x94, 0x6b5bc0\nLDR             X1, [X1]                                               ; +0x98, 0x6b5bc4\nLDR             X1, [X1,#0x150]                                        ; +0x9c, 0x6b5bc8\nBLR             X1                                                     ; +0xa0, 0x6b5bcc\nUXTB            W0, W0                                                 ; +0xa4, 0x6b5bd0\nCBZ             W0, loc_6B5B84                                         ; +0xa8, 0x6b5bd4\nMOV             X0, X19; this                                          ; +0xac, 0x6b5bd8\nBL              _ZN8EditorUI17getTransformStateEv; EditorUI::getTransformState(void) ; +0xb0, 0x6b5bdc\nMOV             X20, X0                                                ; +0xb4, 0x6b5be0\nADD             X1, X0, #0x28 ; '('                                    ; +0xb8, 0x6b5be4\nADD             X0, X21, #0x7C ; '|'                                   ; +0xbc, 0x6b5be8\nLDR             W11, [X20]                                             ; +0xc0, 0x6b5bec\nLDR             W9, [X20,#4]                                           ; +0xc4, 0x6b5bf0\nLDRB            W10, [X20,#0x1C]                                       ; +0xc8, 0x6b5bf4\nLDR             W8, [X20,#8]                                           ; +0xcc, 0x6b5bf8\nLDR             W7, [X20,#0xC]                                         ; +0xd0, 0x6b5bfc\nLDR             W6, [X20,#0x10]                                        ; +0xd4, 0x6b5c00\nLDR             W5, [X20,#0x14]                                        ; +0xd8, 0x6b5c04\nLDR             W4, [X20,#0x18]                                        ; +0xdc, 0x6b5c08\nLDR             W3, [X20,#0x20]                                        ; +0xe0, 0x6b5c0c\nLDR             W2, [X20,#0x24]                                        ; +0xe4, 0x6b5c10\nSTRB            W10, [X21,#0x70]                                       ; +0xe8, 0x6b5c14\nSTR             W11, [X21,#0x54]                                       ; +0xec, 0x6b5c18\nSTR             W9, [X21,#0x58]                                        ; +0xf0, 0x6b5c1c\nSTR             W8, [X21,#0x5C]                                        ; +0xf4, 0x6b5c20\nSTR             W7, [X21,#0x60]                                        ; +0xf8, 0x6b5c24\nSTR             W6, [X21,#0x64]                                        ; +0xfc, 0x6b5c28\nSTR             W5, [X21,#0x68]                                        ; +0x100, 0x6b5c2c\nSTR             W4, [X21,#0x6C]                                        ; +0x104, 0x6b5c30\nSTR             W3, [X21,#0x74]                                        ; +0x108, 0x6b5c34\nSTR             W2, [X21,#0x78]                                        ; +0x10c, 0x6b5c38\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x110, 0x6b5c3c\nADD             X1, X20, #0x30 ; '0'                                   ; +0x114, 0x6b5c40\nADD             X0, X21, #0x84                                         ; +0x118, 0x6b5c44\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x11c, 0x6b5c48\nADD             X1, X20, #0x38 ; '8'                                   ; +0x120, 0x6b5c4c\nADD             X0, X21, #0x8C                                         ; +0x124, 0x6b5c50\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x128, 0x6b5c54\nLDR             W0, [X20,#0x44]                                        ; +0x12c, 0x6b5c58\nLDR             W1, [X20,#0x40]                                        ; +0x130, 0x6b5c5c\nSTR             W0, [X21,#0x98]                                        ; +0x134, 0x6b5c60\nMOV             W0, #1                                                 ; +0x138, 0x6b5c64\nSTR             W1, [X21,#0x94]                                        ; +0x13c, 0x6b5c68\nSTRB            W0, [X21,#0x51]                                        ; +0x140, 0x6b5c6c\nB               loc_6B5B84                                             ; +0x144, 0x6b5c70", "xrefs": ["EditorUI::scaleChangeBegin @ 0x6b5c7c", "EditorUI::transformChangeBegin @ 0x6b5c90", "EditorUI::alignObjects @ 0x6b5f60", "EditorUI::angleChangeBegin @ 0x6b61a4", "EditorUI::moveObjectCall @ 0x6b94a8", "EditorUI::transformObjectCall @ 0x6b9df8", "EditorUI::ccTouchBegan @ 0x6c54b0", "<???> @ 0xa6758"], "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"}