{"type": "func", "start": 7042508, "end": 7043220, "name": "EditorUI::checkDiffAfterTransformAnchor", "pseudocode": "// \n// EditorUI::checkDiffAfterTransformAnchor from 0x6b75cc to 0x6b7894 (712 bytes)\n// \n// 3 xrefs:\n// > GJTransformControl::refreshControl @ 0x6b9308\n// > GJTransformControl::ccTouchEnded @ 0x6b9d08\n// > <???> @ 0xc1ce0\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\n// local variable allocation has failed, the output may be wrong!\ncocos2d::CCPoint EditorUI::checkDiffAfterTransformAnchor(EditorUI *a1, cocos2d::CCPoint a2, cocos2d::CCArray *a3)\n{\n  cocos2d::CCArray *v3; // x2\n  __int64 v4; // x8\n  cocos2d::CCArray *v6; // x22\n  unsigned int v7; // w19\n  __int64 v8; // x24\n  float v9; // s8\n  const cocos2d::CCPoint *v10; // x0\n  cocos2d::CCNode *m_transformNode; // x28\n  const cocos2d::CCPoint *v12; // x0\n  float v13; // s0\n  float v14; // s1\n  unsigned int v15; // w1\n  char *v16; // x23\n  float v17; // s0\n  float v18; // s1\n  cocos2d::CCPoint v22; // [xsp+80h] [xbp+80h] BYREF\n  cocos2d::CCPoint v23; // [xsp+88h] [xbp+88h] BYREF\n  _QWORD v24[3]; // [xsp+90h] [xbp+90h] BYREF\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  v6 = v3;\n  v7 = 0;\n  v8 = v4;\n  v9 = ((float (__fastcall *)(cocos2d::CCLayer *, long double, long double))a1->m_editorLayer->m_objectLayer->getScale)(\n         a1->m_editorLayer->m_objectLayer,\n         *(long double *)&a2.x,\n         *(long double *)&a2.y);\n  v10 = a1->m_editorLayer->m_objectLayer->getPosition(a1->m_editorLayer->m_objectLayer);\n  cocos2d::CCPoint::CCPoint(&v22, v10);\n  a1->m_editorLayer->m_objectLayer->setScale(a1->m_editorLayer->m_objectLayer, 1.0);\n  a1->m_editorLayer->m_objectLayer->setPosition(\n    a1->m_editorLayer->m_objectLayer,\n    (const cocos2d::CCPoint *)&dword_1242110);\n  a1->m_transformNode->setPosition(a1->m_transformNode, (const cocos2d::CCPoint *)&dword_1242110);\n  a1->m_transformNode->setScaleX(a1->m_transformNode, a1->m_transformState.m_scaleX);\n  a1->m_transformNode->setScaleY(a1->m_transformNode, a1->m_transformState.m_scaleY);\n  a1->m_transformNode->setRotationX(a1->m_transformNode, a1->m_transformState.m_angleX);\n  a1->m_transformNode->setRotationY(a1->m_transformNode, a1->m_transformState.m_angleY);\n  a1->m_transformNode->setSkewX(a1->m_transformNode, a1->m_transformState.m_skewX);\n  a1->m_transformNode->setSkewY(a1->m_transformNode, a1->m_transformState.m_skewY);\n  a1->m_transformNode->nodeToWorldTransform((cocos2d::CCAffineTransform *)v24, a1->m_transformNode);\n  a1->m_transformChild->setPosition(a1->m_transformChild, (const cocos2d::CCPoint *)&dword_1242110);\n  m_transformNode = a1->m_transformNode;\n  v12 = m_transformNode->getPosition(m_transformNode);\n  cocos2d::CCNode::convertToWorldSpace(m_transformNode, v12);\n  cocos2d::CCPoint::operator+(v24, a3, &v23);\n  cocos2d::CCPoint::operator=(&v23, v13, v14);\n  cocos2d::CCNode::convertToNodeSpace(a1->m_transformNode, &v23);\n  while ( v7 < (unsigned int)cocos2d::CCArray::count(v6) )\n  {\n    v15 = v7++;\n    LODWORD(v24[0]) = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v6, v15) + 900);\n    v16 = std::__detail::_Map_base<int,std::pair<int const,GameObjectEditorState>,std::allocator<std::pair<int const,GameObjectEditorState>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](\n            (__int64)&a1->m_objectEditorStates,\n            (int *)v24);\n    cocos2d::CCPoint::operator+(v24, v16, v8);\n    cocos2d::CCPoint::operator=(v16, v17, v18);\n  }\n  a1->m_editorLayer->m_objectLayer->setScale(a1->m_editorLayer->m_objectLayer, v9);\n  a1->m_editorLayer->m_objectLayer->setPosition(a1->m_editorLayer->m_objectLayer, &v22);\n  return result;\n}", "assembly": "; \n; EditorUI::checkDiffAfterTransformAnchor from 0x6b75cc to 0x6b7894 (712 bytes)\n; \n; 3 xrefs:\n; > GJTransformControl::refreshControl @ 0x6b9308\n; > GJTransformControl::ccTouchEnded @ 0x6b9d08\n; > <???> @ 0xc1ce0\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_B0]!                                ; +0x0, 0x6b75cc\nMOV             X29, SP                                                ; +0x4, 0x6b75d0\nSTP             X25, X26, [SP,#0xB0+var_70]                            ; +0x8, 0x6b75d4\nADRP            X26, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6b75d8\nSTR             X1, [X29,#0xB0+var_38]                                 ; +0x10, 0x6b75dc\nLDR             X1, [X0,#0x4F8]                                        ; +0x14, 0x6b75e0\nSTP             X21, X22, [SP,#0xB0+var_90]                            ; +0x18, 0x6b75e4\nMOV             X21, X0                                                ; +0x1c, 0x6b75e8\nLDR             X0, [X26,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x6b75ec\nLDR             X1, [X1,#0x1030]                                       ; +0x24, 0x6b75f0\nMOV             X22, X2                                                ; +0x28, 0x6b75f4\nSTP             X19, X20, [SP,#0xB0+var_A0]                            ; +0x2c, 0x6b75f8\nLDR             X2, [X0]                                               ; +0x30, 0x6b75fc\nMOV             X0, X1                                                 ; +0x34, 0x6b7600\nLDR             X1, [X1]                                               ; +0x38, 0x6b7604\nADD             X20, X29, #0xB0+var_20                                 ; +0x3c, 0x6b7608\nSTR             X2, [X29,#0xB0+var_8]                                  ; +0x40, 0x6b760c\nMOV             W19, #0                                                ; +0x44, 0x6b7610\nSTP             X23, X24, [SP,#0xB0+var_80]                            ; +0x48, 0x6b7614\nLDR             X1, [X1,#0xA8]                                         ; +0x4c, 0x6b7618\nMOV             X24, X8                                                ; +0x50, 0x6b761c\nSTP             X27, X28, [SP,#0xB0+var_60]                            ; +0x54, 0x6b7620\nSTR             D8, [SP,#0xB0+var_50]                                  ; +0x58, 0x6b7624\nADD             X27, X29, #0xB0+var_30                                 ; +0x5c, 0x6b7628\nBLR             X1                                                     ; +0x60, 0x6b762c\nADRP            X28, #dword_1242110@PAGE                               ; +0x64, 0x6b7630\nLDR             X0, [X21,#0x4F8]                                       ; +0x68, 0x6b7634\nADD             X28, X28, #dword_1242110@PAGEOFF                       ; +0x6c, 0x6b7638\nFMOV            S8, S0                                                 ; +0x70, 0x6b763c\nADD             X23, X29, #0xB0+var_28                                 ; +0x74, 0x6b7640\nADD             X25, X21, #0x1D0                                       ; +0x78, 0x6b7644\nLDR             X1, [X0,#0x1030]                                       ; +0x7c, 0x6b7648\nMOV             X0, X1                                                 ; +0x80, 0x6b764c\nLDR             X1, [X1]                                               ; +0x84, 0x6b7650\nLDR             X1, [X1,#0xC0]                                         ; +0x88, 0x6b7654\nBLR             X1                                                     ; +0x8c, 0x6b7658\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0x90, 0x6b765c\nMOV             X0, X27; this                                          ; +0x94, 0x6b7660\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x98, 0x6b7664\nLDR             X0, [X21,#0x4F8]                                       ; +0x9c, 0x6b7668\nFMOV            S0, #1.0                                               ; +0xa0, 0x6b766c\nLDR             X1, [X0,#0x1030]                                       ; +0xa4, 0x6b7670\nMOV             X0, X1                                                 ; +0xa8, 0x6b7674\nLDR             X1, [X1]                                               ; +0xac, 0x6b7678\nLDR             X1, [X1,#0xA0]                                         ; +0xb0, 0x6b767c\nBLR             X1                                                     ; +0xb4, 0x6b7680\nLDR             X0, [X21,#0x4F8]                                       ; +0xb8, 0x6b7684\nMOV             X1, X28                                                ; +0xbc, 0x6b7688\nLDR             X2, [X0,#0x1030]                                       ; +0xc0, 0x6b768c\nMOV             X0, X2                                                 ; +0xc4, 0x6b7690\nLDR             X2, [X2]                                               ; +0xc8, 0x6b7694\nLDR             X2, [X2,#0xB8]                                         ; +0xcc, 0x6b7698\nBLR             X2                                                     ; +0xd0, 0x6b769c\nLDR             X2, [X21,#0x2D8]                                       ; +0xd4, 0x6b76a0\nMOV             X1, X28                                                ; +0xd8, 0x6b76a4\nMOV             X0, X2                                                 ; +0xdc, 0x6b76a8\nLDR             X2, [X2]                                               ; +0xe0, 0x6b76ac\nLDR             X2, [X2,#0xB8]                                         ; +0xe4, 0x6b76b0\nBLR             X2                                                     ; +0xe8, 0x6b76b4\nLDR             X1, [X21,#0x2D8]                                       ; +0xec, 0x6b76b8\nLDR             S0, [X21,#0x208]                                       ; +0xf0, 0x6b76bc\nMOV             X0, X1                                                 ; +0xf4, 0x6b76c0\nLDR             X1, [X1]                                               ; +0xf8, 0x6b76c4\nLDR             X1, [X1,#0x80]                                         ; +0xfc, 0x6b76c8\nBLR             X1                                                     ; +0x100, 0x6b76cc\nLDR             X1, [X21,#0x2D8]                                       ; +0x104, 0x6b76d0\nLDR             S0, [X21,#0x20C]                                       ; +0x108, 0x6b76d4\nMOV             X0, X1                                                 ; +0x10c, 0x6b76d8\nLDR             X1, [X1]                                               ; +0x110, 0x6b76dc\nLDR             X1, [X1,#0x90]                                         ; +0x114, 0x6b76e0\nBLR             X1                                                     ; +0x118, 0x6b76e4\nLDR             X1, [X21,#0x2D8]                                       ; +0x11c, 0x6b76e8\nLDR             S0, [X21,#0x210]                                       ; +0x120, 0x6b76ec\nMOV             X0, X1                                                 ; +0x124, 0x6b76f0\nLDR             X1, [X1]                                               ; +0x128, 0x6b76f4\nLDR             X1, [X1,#0x168]                                        ; +0x12c, 0x6b76f8\nBLR             X1                                                     ; +0x130, 0x6b76fc\nLDR             X1, [X21,#0x2D8]                                       ; +0x134, 0x6b7700\nLDR             S0, [X21,#0x214]                                       ; +0x138, 0x6b7704\nMOV             X0, X1                                                 ; +0x13c, 0x6b7708\nLDR             X1, [X1]                                               ; +0x140, 0x6b770c\nLDR             X1, [X1,#0x178]                                        ; +0x144, 0x6b7710\nBLR             X1                                                     ; +0x148, 0x6b7714\nLDR             X1, [X21,#0x2D8]                                       ; +0x14c, 0x6b7718\nLDR             S0, [X21,#0x218]                                       ; +0x150, 0x6b771c\nMOV             X0, X1                                                 ; +0x154, 0x6b7720\nLDR             X1, [X1]                                               ; +0x158, 0x6b7724\nLDR             X1, [X1,#0xF8]                                         ; +0x15c, 0x6b7728\nBLR             X1                                                     ; +0x160, 0x6b772c\nLDR             X1, [X21,#0x2D8]                                       ; +0x164, 0x6b7730\nLDR             S0, [X21,#0x21C]                                       ; +0x168, 0x6b7734\nMOV             X0, X1                                                 ; +0x16c, 0x6b7738\nLDR             X1, [X1]                                               ; +0x170, 0x6b773c\nLDR             X1, [X1,#0x108]                                        ; +0x174, 0x6b7740\nBLR             X1                                                     ; +0x178, 0x6b7744\nLDR             X1, [X21,#0x2D8]                                       ; +0x17c, 0x6b7748\nMOV             X8, X20                                                ; +0x180, 0x6b774c\nMOV             X0, X1                                                 ; +0x184, 0x6b7750\nLDR             X1, [X1]                                               ; +0x188, 0x6b7754\nLDR             X1, [X1,#0x328]                                        ; +0x18c, 0x6b7758\nBLR             X1                                                     ; +0x190, 0x6b775c\nLDR             X2, [X21,#0x2E0]                                       ; +0x194, 0x6b7760\nMOV             X1, X28                                                ; +0x198, 0x6b7764\nMOV             X0, X2                                                 ; +0x19c, 0x6b7768\nLDR             X2, [X2]                                               ; +0x1a0, 0x6b776c\nLDR             X2, [X2,#0xB8]                                         ; +0x1a4, 0x6b7770\nBLR             X2                                                     ; +0x1a8, 0x6b7774\nLDR             X28, [X21,#0x2D8]                                      ; +0x1ac, 0x6b7778\nMOV             X0, X28                                                ; +0x1b0, 0x6b777c\nLDR             X1, [X28]                                              ; +0x1b4, 0x6b7780\nLDR             X1, [X1,#0xC0]                                         ; +0x1b8, 0x6b7784\nBLR             X1                                                     ; +0x1bc, 0x6b7788\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0x1c0, 0x6b778c\nMOV             X8, X23                                                ; +0x1c4, 0x6b7790\nMOV             X0, X28; this                                          ; +0x1c8, 0x6b7794\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x1cc, 0x6b7798\nLDR             X3, [X29,#0xB0+var_38]                                 ; +0x1d0, 0x6b779c\nMOV             X8, X20                                                ; +0x1d4, 0x6b77a0\nMOV             X1, X23                                                ; +0x1d8, 0x6b77a4\nMOV             X0, X3                                                 ; +0x1dc, 0x6b77a8\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x1e0, 0x6b77ac\nMOV             X1, X20                                                ; +0x1e4, 0x6b77b0\nMOV             X0, X23                                                ; +0x1e8, 0x6b77b4\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x1ec, 0x6b77b8\nLDR             X0, [X21,#0x2D8]; this                                 ; +0x1f0, 0x6b77bc\nMOV             X8, X24                                                ; +0x1f4, 0x6b77c0\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0x1f8, 0x6b77c4\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x1fc, 0x6b77c8\nB               loc_6B7810                                             ; +0x200, 0x6b77cc\nMOV             W1, W19; unsigned int                                  ; +0x204, 0x6b77d0\nMOV             X0, X22; this                                          ; +0x208, 0x6b77d4\nADD             W19, W19, #1                                           ; +0x20c, 0x6b77d8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x210, 0x6b77dc\nLDR             W2, [X0,#0x384]                                        ; +0x214, 0x6b77e0\nMOV             X1, X20                                                ; +0x218, 0x6b77e4\nMOV             X0, X25                                                ; +0x21c, 0x6b77e8\nSTR             W2, [X29,#0xB0+var_20]                                 ; +0x220, 0x6b77ec\nBL              _ZNSt8__detail9_Map_baseIiSt4pairIKi21GameObjectEditorStateESaIS4_ENS_10_Select1stESt8equal_toIiESt4hashIiENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOi; std::__detail::_Map_base<int,std::pair<int const,GameObjectEditorState>,std::allocator<std::pair<int const,GameObjectEditorState>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](int &&) ; +0x224, 0x6b77f0\nMOV             X23, X0                                                ; +0x228, 0x6b77f4\nMOV             X1, X24                                                ; +0x22c, 0x6b77f8\nMOV             X8, X20                                                ; +0x230, 0x6b77fc\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x234, 0x6b7800\nMOV             X0, X23                                                ; +0x238, 0x6b7804\nMOV             X1, X20                                                ; +0x23c, 0x6b7808\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x240, 0x6b780c\nMOV             X0, X22; this                                          ; +0x244, 0x6b7810\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x248, 0x6b7814\nCMP             W19, W0                                                ; +0x24c, 0x6b7818\nB.CC            loc_6B77D0                                             ; +0x250, 0x6b781c\nLDR             X0, [X21,#0x4F8]                                       ; +0x254, 0x6b7820\nFMOV            S0, S8                                                 ; +0x258, 0x6b7824\nLDR             X1, [X0,#0x1030]                                       ; +0x25c, 0x6b7828\nMOV             X0, X1                                                 ; +0x260, 0x6b782c\nLDR             X1, [X1]                                               ; +0x264, 0x6b7830\nLDR             X1, [X1,#0xA0]                                         ; +0x268, 0x6b7834\nBLR             X1                                                     ; +0x26c, 0x6b7838\nLDR             X0, [X21,#0x4F8]                                       ; +0x270, 0x6b783c\nMOV             X1, X27                                                ; +0x274, 0x6b7840\nLDR             X2, [X0,#0x1030]                                       ; +0x278, 0x6b7844\nMOV             X0, X2                                                 ; +0x27c, 0x6b7848\nLDR             X2, [X2]                                               ; +0x280, 0x6b784c\nLDR             X2, [X2,#0xB8]                                         ; +0x284, 0x6b7850\nBLR             X2                                                     ; +0x288, 0x6b7854\nLDR             X26, [X26,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28c, 0x6b7858\nLDR             X2, [X29,#0xB0+var_8]                                  ; +0x290, 0x6b785c\nMOV             X0, X24                                                ; +0x294, 0x6b7860\nLDR             X1, [X26]                                              ; +0x298, 0x6b7864\nCMP             X2, X1                                                 ; +0x29c, 0x6b7868\nB.NE            loc_6B7890                                             ; +0x2a0, 0x6b786c\nLDP             X19, X20, [SP,#0xB0+var_A0]                            ; +0x2a4, 0x6b7870\nLDP             X21, X22, [SP,#0xB0+var_90]                            ; +0x2a8, 0x6b7874\nLDP             X23, X24, [SP,#0xB0+var_80]                            ; +0x2ac, 0x6b7878\nLDP             X25, X26, [SP,#0xB0+var_70]                            ; +0x2b0, 0x6b787c\nLDP             X27, X28, [SP,#0xB0+var_60]                            ; +0x2b4, 0x6b7880\nLDR             D8, [SP,#0xB0+var_50]                                  ; +0x2b8, 0x6b7884\nLDP             X29, X30, [SP+0xB0+var_B0],#0xB0                       ; +0x2bc, 0x6b7888\nRET                                                                    ; +0x2c0, 0x6b788c\nBL              .__stack_chk_fail                                      ; +0x2c4, 0x6b7890", "xrefs": ["GJTransformControl::refreshControl @ 0x6b9308", "GJTransformControl::ccTouchEnded @ 0x6b9d08", "<???> @ 0xc1ce0"], "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"}