{"type": "func", "start": 4299098128, "end": 4299098756, "name": "EditorUI::checkDiffAfterTransformAnchor", "pseudocode": "// \n// EditorUI::checkDiffAfterTransformAnchor from 0x1003f0810 to 0x1003f0a84 (628 bytes)\n// \n// 2 xrefs:\n// > GJTransformControl::refreshControl @ 0x1003f61d0\n// > GJTransformControl::ccTouchEnded @ 0x1003fc484\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 __fastcall EditorUI::checkDiffAfterTransformAnchor(\n        EditorUI *a1,\n        cocos2d::CCPoint a2,\n        cocos2d::CCArray *a3)\n{\n  __int64 v3; // x2\n  float32x2_t *v4; // x8\n  __int64 v5; // x20\n  float32x2_t *v8; // x21\n  float v9; // s8\n  __int64 *v10; // x0\n  cocos2d::CCNode *m_transformNode; // x23\n  const cocos2d::CCPoint *v12; // x0\n  unsigned int v13; // w22\n  __int64 v14; // x24\n  int v17; // [xsp+Ch] [xbp-84h] BYREF\n  float32x2_t v18; // [xsp+10h] [xbp-80h] BYREF\n  float32x2_t v19[3]; // [xsp+18h] [xbp-78h] BYREF\n  __int64 v20; // [xsp+34h] [xbp-5Ch] BYREF\n  char v21; // [xsp+3Fh] [xbp-51h] BYREF\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  v5 = v3;\n  v8 = v4;\n  v9 = ((float (__fastcall *)(cocos2d::CCLayer *, __n128, __n128))a1->m_editorLayer->m_objectLayer->getScale)(\n         a1->m_editorLayer->m_objectLayer,\n         *(__n128 *)&a2.x,\n         *(__n128 *)&a2.y);\n  v10 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getPosition)(a1->m_editorLayer->m_objectLayer);\n  sub_1000229B8(&v20, v10);\n  ((void (__fastcall *)(cocos2d::CCLayer *, float))a1->m_editorLayer->m_objectLayer->setScale)(\n    a1->m_editorLayer->m_objectLayer,\n    1.0);\n  ((void (__fastcall *)(cocos2d::CCLayer *, int *))a1->m_editorLayer->m_objectLayer->setPosition)(\n    a1->m_editorLayer->m_objectLayer,\n    &dword_10086E8B0);\n  ((void (__fastcall *)(cocos2d::CCNode *, int *))a1->m_transformNode->setPosition)(\n    a1->m_transformNode,\n    &dword_10086E8B0);\n  ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setScaleX)(\n    a1->m_transformNode,\n    a1->m_transformState.m_scaleX);\n  ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setScaleY)(\n    a1->m_transformNode,\n    a1->m_transformState.m_scaleY);\n  ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setRotationX)(\n    a1->m_transformNode,\n    a1->m_transformState.m_angleX);\n  ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setRotationY)(\n    a1->m_transformNode,\n    a1->m_transformState.m_angleY);\n  ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setSkewX)(\n    a1->m_transformNode,\n    a1->m_transformState.m_skewX);\n  ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setSkewY)(\n    a1->m_transformNode,\n    a1->m_transformState.m_skewY);\n  ((void (__fastcall *)(float32x2_t *__return_ptr))a1->m_transformNode->nodeToWorldTransform)(v19);\n  ((void (__fastcall *)(cocos2d::CCNode *, int *))a1->m_transformChild->setPosition)(\n    a1->m_transformChild,\n    &dword_10086E8B0);\n  m_transformNode = a1->m_transformNode;\n  v12 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCNode *))m_transformNode->getPosition)(m_transformNode);\n  cocos2d::CCNode::convertToWorldSpace(m_transformNode, v12);\n  sub_1000229DC((float32x2_t *)a3, &v18, v19);\n  sub_1000229D0(&v18, (double *)v19);\n  cocos2d::CCNode::convertToNodeSpace(a1->m_transformNode, (const cocos2d::CCPoint *)&v18);\n  if ( (unsigned int)sub_10024A36C(v5) )\n  {\n    v13 = 0;\n    do\n    {\n      v17 = *(_DWORD *)(sub_10024A388(v5, v13) + 916);\n      v19[0] = (float32x2_t)&v17;\n      v14 = sub_1003FC990(&a1->m_objectEditorStates, &v17, &unk_100647441, v19, &v21);\n      sub_1000229DC((float32x2_t *)(v14 + 20), v8, v19);\n      sub_1000229D0((_QWORD *)(v14 + 20), (double *)v19);\n      ++v13;\n    }\n    while ( v13 < (unsigned int)sub_10024A36C(v5) );\n  }\n  ((void (__fastcall *)(cocos2d::CCLayer *, float))a1->m_editorLayer->m_objectLayer->setScale)(\n    a1->m_editorLayer->m_objectLayer,\n    v9);\n  ((void (__fastcall *)(cocos2d::CCLayer *, __int64 *))a1->m_editorLayer->m_objectLayer->setPosition)(\n    a1->m_editorLayer->m_objectLayer,\n    &v20);\n  return result;\n}", "assembly": "; \n; EditorUI::checkDiffAfterTransformAnchor from 0x1003f0810 to 0x1003f0a84 (628 bytes)\n; \n; 2 xrefs:\n; > GJTransformControl::refreshControl @ 0x1003f61d0\n; > GJTransformControl::ccTouchEnded @ 0x1003fc484\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\nSUB             SP, SP, #0xA0                                          ; +0x0, 0x1003f0810\nSTP             D9, D8, [SP,#0x90+var_50]                              ; +0x4, 0x1003f0814\nSTP             X26, X25, [SP,#0x90+var_40]                            ; +0x8, 0x1003f0818\nSTP             X24, X23, [SP,#0x90+var_30]                            ; +0xc, 0x1003f081c\nSTP             X22, X21, [SP,#0x90+var_20]                            ; +0x10, 0x1003f0820\nSTP             X20, X19, [SP,#0x90+var_10]                            ; +0x14, 0x1003f0824\nSTP             X29, X30, [SP,#0x90+var_s0]                            ; +0x18, 0x1003f0828\nADD             X29, SP, #0x90                                         ; +0x1c, 0x1003f082c\nMOV             X20, X2                                                ; +0x20, 0x1003f0830\nMOV             X22, X1                                                ; +0x24, 0x1003f0834\nMOV             X19, X0                                                ; +0x28, 0x1003f0838\nMOV             X21, X8                                                ; +0x2c, 0x1003f083c\nLDR             X8, [X0,#0x4E8]                                        ; +0x30, 0x1003f0840\nLDR             X0, [X8,#0xEE0]                                        ; +0x34, 0x1003f0844\nLDR             X8, [X0]                                               ; +0x38, 0x1003f0848\nLDR             X8, [X8,#0xA8]                                         ; +0x3c, 0x1003f084c\nBLR             X8                                                     ; +0x40, 0x1003f0850\nFMOV            S8, S0                                                 ; +0x44, 0x1003f0854\nLDR             X8, [X19,#0x4E8]                                       ; +0x48, 0x1003f0858\nLDR             X0, [X8,#0xEE0]                                        ; +0x4c, 0x1003f085c\nLDR             X8, [X0]                                               ; +0x50, 0x1003f0860\nLDR             X8, [X8,#0xC0]                                         ; +0x54, 0x1003f0864\nBLR             X8                                                     ; +0x58, 0x1003f0868\nMOV             X1, X0                                                 ; +0x5c, 0x1003f086c\nADD             X0, SP, #0x90+var_5C                                   ; +0x60, 0x1003f0870\nBL              sub_1000229B8                                          ; +0x64, 0x1003f0874\nLDR             X8, [X19,#0x4E8]                                       ; +0x68, 0x1003f0878\nLDR             X0, [X8,#0xEE0]                                        ; +0x6c, 0x1003f087c\nLDR             X8, [X0]                                               ; +0x70, 0x1003f0880\nLDR             X8, [X8,#0xA0]                                         ; +0x74, 0x1003f0884\nFMOV            S0, #1.0                                               ; +0x78, 0x1003f0888\nBLR             X8                                                     ; +0x7c, 0x1003f088c\nLDR             X8, [X19,#0x4E8]                                       ; +0x80, 0x1003f0890\nLDR             X0, [X8,#0xEE0]                                        ; +0x84, 0x1003f0894\nLDR             X8, [X0]                                               ; +0x88, 0x1003f0898\nLDR             X8, [X8,#0xB8]                                         ; +0x8c, 0x1003f089c\nADRL            X23, dword_10086E8B0                                   ; +0x90, 0x1003f08a0\nMOV             X1, X23                                                ; +0x98, 0x1003f08a8\nBLR             X8                                                     ; +0x9c, 0x1003f08ac\nLDR             X0, [X19,#0x2C8]                                       ; +0xa0, 0x1003f08b0\nLDR             X8, [X0]                                               ; +0xa4, 0x1003f08b4\nLDR             X8, [X8,#0xB8]                                         ; +0xa8, 0x1003f08b8\nMOV             X1, X23                                                ; +0xac, 0x1003f08bc\nBLR             X8                                                     ; +0xb0, 0x1003f08c0\nLDR             X0, [X19,#0x2C8]                                       ; +0xb4, 0x1003f08c4\nLDR             S0, [X19,#0x1F8]                                       ; +0xb8, 0x1003f08c8\nLDR             X8, [X0]                                               ; +0xbc, 0x1003f08cc\nLDR             X8, [X8,#0x80]                                         ; +0xc0, 0x1003f08d0\nBLR             X8                                                     ; +0xc4, 0x1003f08d4\nLDR             X0, [X19,#0x2C8]                                       ; +0xc8, 0x1003f08d8\nLDR             S0, [X19,#0x1FC]                                       ; +0xcc, 0x1003f08dc\nLDR             X8, [X0]                                               ; +0xd0, 0x1003f08e0\nLDR             X8, [X8,#0x90]                                         ; +0xd4, 0x1003f08e4\nBLR             X8                                                     ; +0xd8, 0x1003f08e8\nLDR             X0, [X19,#0x2C8]                                       ; +0xdc, 0x1003f08ec\nLDR             S0, [X19,#0x200]                                       ; +0xe0, 0x1003f08f0\nLDR             X8, [X0]                                               ; +0xe4, 0x1003f08f4\nLDR             X8, [X8,#0x168]                                        ; +0xe8, 0x1003f08f8\nBLR             X8                                                     ; +0xec, 0x1003f08fc\nLDR             X0, [X19,#0x2C8]                                       ; +0xf0, 0x1003f0900\nLDR             S0, [X19,#0x204]                                       ; +0xf4, 0x1003f0904\nLDR             X8, [X0]                                               ; +0xf8, 0x1003f0908\nLDR             X8, [X8,#0x178]                                        ; +0xfc, 0x1003f090c\nBLR             X8                                                     ; +0x100, 0x1003f0910\nLDR             X0, [X19,#0x2C8]                                       ; +0x104, 0x1003f0914\nLDR             S0, [X19,#0x208]                                       ; +0x108, 0x1003f0918\nLDR             X8, [X0]                                               ; +0x10c, 0x1003f091c\nLDR             X8, [X8,#0xF8]                                         ; +0x110, 0x1003f0920\nBLR             X8                                                     ; +0x114, 0x1003f0924\nLDR             X0, [X19,#0x2C8]                                       ; +0x118, 0x1003f0928\nLDR             S0, [X19,#0x20C]                                       ; +0x11c, 0x1003f092c\nLDR             X8, [X0]                                               ; +0x120, 0x1003f0930\nLDR             X8, [X8,#0x108]                                        ; +0x124, 0x1003f0934\nBLR             X8                                                     ; +0x128, 0x1003f0938\nLDR             X0, [X19,#0x2C8]                                       ; +0x12c, 0x1003f093c\nLDR             X8, [X0]                                               ; +0x130, 0x1003f0940\nLDR             X9, [X8,#0x328]                                        ; +0x134, 0x1003f0944\nADD             X8, SP, #0x90+var_78                                   ; +0x138, 0x1003f0948\nBLR             X9                                                     ; +0x13c, 0x1003f094c\nLDR             X0, [X19,#0x2D0]                                       ; +0x140, 0x1003f0950\nLDR             X8, [X0]                                               ; +0x144, 0x1003f0954\nLDR             X8, [X8,#0xB8]                                         ; +0x148, 0x1003f0958\nMOV             X1, X23                                                ; +0x14c, 0x1003f095c\nBLR             X8                                                     ; +0x150, 0x1003f0960\nLDR             X23, [X19,#0x2C8]                                      ; +0x154, 0x1003f0964\nLDR             X8, [X23]                                              ; +0x158, 0x1003f0968\nLDR             X8, [X8,#0xC0]                                         ; +0x15c, 0x1003f096c\nMOV             X0, X23                                                ; +0x160, 0x1003f0970\nBLR             X8                                                     ; +0x164, 0x1003f0974\nMOV             X1, X0                                                 ; +0x168, 0x1003f0978\nADD             X8, SP, #0x90+var_80                                   ; +0x16c, 0x1003f097c\nMOV             X0, X23                                                ; +0x170, 0x1003f0980\nBL              cocos2d__CCNode__convertToWorldSpace                   ; +0x174, 0x1003f0984\nADD             X8, SP, #0x90+var_78                                   ; +0x178, 0x1003f0988\nADD             X1, SP, #0x90+var_80                                   ; +0x17c, 0x1003f098c\nMOV             X0, X22                                                ; +0x180, 0x1003f0990\nBL              sub_1000229DC                                          ; +0x184, 0x1003f0994\nADD             X0, SP, #0x90+var_80                                   ; +0x188, 0x1003f0998\nADD             X1, SP, #0x90+var_78                                   ; +0x18c, 0x1003f099c\nBL              sub_1000229D0                                          ; +0x190, 0x1003f09a0\nLDR             X0, [X19,#0x2C8]                                       ; +0x194, 0x1003f09a4\nADD             X1, SP, #0x90+var_80                                   ; +0x198, 0x1003f09a8\nMOV             X8, X21                                                ; +0x19c, 0x1003f09ac\nBL              cocos2d__CCNode__convertToNodeSpace                    ; +0x1a0, 0x1003f09b0\nMOV             X0, X20                                                ; +0x1a4, 0x1003f09b4\nBL              sub_10024A36C                                          ; +0x1a8, 0x1003f09b8\nCBZ             W0, loc_1003F0A34                                      ; +0x1ac, 0x1003f09bc\nMOV             W22, #0                                                ; +0x1b0, 0x1003f09c0\nADD             X25, SP, #0x90+var_84                                  ; +0x1b4, 0x1003f09c4\nADRL            X23, unk_100647441                                     ; +0x1b8, 0x1003f09c8\nMOV             X0, X20                                                ; +0x1c0, 0x1003f09d0\nMOV             X1, X22                                                ; +0x1c4, 0x1003f09d4\nBL              sub_10024A388                                          ; +0x1c8, 0x1003f09d8\nLDR             W8, [X0,#0x394]                                        ; +0x1cc, 0x1003f09dc\nSTR             W8, [SP,#0x90+var_84]                                  ; +0x1d0, 0x1003f09e0\nSTR             X25, [SP,#0x90+var_78]                                 ; +0x1d4, 0x1003f09e4\nADD             X0, X19, #0x1D0                                        ; +0x1d8, 0x1003f09e8\nADD             X1, SP, #0x90+var_84                                   ; +0x1dc, 0x1003f09ec\nADD             X3, SP, #0x90+var_78                                   ; +0x1e0, 0x1003f09f0\nADD             X4, SP, #0x90+var_51                                   ; +0x1e4, 0x1003f09f4\nMOV             X2, X23                                                ; +0x1e8, 0x1003f09f8\nBL              sub_1003FC990                                          ; +0x1ec, 0x1003f09fc\nMOV             X24, X0                                                ; +0x1f0, 0x1003f0a00\nADD             X8, SP, #0x90+var_78                                   ; +0x1f4, 0x1003f0a04\nADD             X0, X0, #0x14                                          ; +0x1f8, 0x1003f0a08\nMOV             X1, X21                                                ; +0x1fc, 0x1003f0a0c\nBL              sub_1000229DC                                          ; +0x200, 0x1003f0a10\nADD             X0, X24, #0x14                                         ; +0x204, 0x1003f0a14\nADD             X1, SP, #0x90+var_78                                   ; +0x208, 0x1003f0a18\nBL              sub_1000229D0                                          ; +0x20c, 0x1003f0a1c\nADD             W22, W22, #1                                           ; +0x210, 0x1003f0a20\nMOV             X0, X20                                                ; +0x214, 0x1003f0a24\nBL              sub_10024A36C                                          ; +0x218, 0x1003f0a28\nCMP             W22, W0                                                ; +0x21c, 0x1003f0a2c\nB.CC            loc_1003F09D0                                          ; +0x220, 0x1003f0a30\nLDR             X8, [X19,#0x4E8]                                       ; +0x224, 0x1003f0a34\nLDR             X0, [X8,#0xEE0]                                        ; +0x228, 0x1003f0a38\nLDR             X8, [X0]                                               ; +0x22c, 0x1003f0a3c\nLDR             X8, [X8,#0xA0]                                         ; +0x230, 0x1003f0a40\nFMOV            S0, S8                                                 ; +0x234, 0x1003f0a44\nBLR             X8                                                     ; +0x238, 0x1003f0a48\nLDR             X8, [X19,#0x4E8]                                       ; +0x23c, 0x1003f0a4c\nLDR             X0, [X8,#0xEE0]                                        ; +0x240, 0x1003f0a50\nLDR             X8, [X0]                                               ; +0x244, 0x1003f0a54\nLDR             X8, [X8,#0xB8]                                         ; +0x248, 0x1003f0a58\nADD             X1, SP, #0x90+var_5C                                   ; +0x24c, 0x1003f0a5c\nBLR             X8                                                     ; +0x250, 0x1003f0a60\nLDP             X29, X30, [SP,#0x90+var_s0]                            ; +0x254, 0x1003f0a64\nLDP             X20, X19, [SP,#0x90+var_10]                            ; +0x258, 0x1003f0a68\nLDP             X22, X21, [SP,#0x90+var_20]                            ; +0x25c, 0x1003f0a6c\nLDP             X24, X23, [SP,#0x90+var_30]                            ; +0x260, 0x1003f0a70\nLDP             X26, X25, [SP,#0x90+var_40]                            ; +0x264, 0x1003f0a74\nLDP             D9, D8, [SP,#0x90+var_50]                              ; +0x268, 0x1003f0a78\nADD             SP, SP, #0xA0                                          ; +0x26c, 0x1003f0a7c\nRET                                                                    ; +0x270, 0x1003f0a80", "xrefs": ["GJTransformControl::refreshControl @ 0x1003f61d0", "GJTransformControl::ccTouchEnded @ 0x1003fc484"], "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"}