{"type": "func", "start": 5369846144, "end": 5369846830, "name": "EditorUI::checkDiffAfterTransformAnchor", "pseudocode": "// \n// EditorUI::checkDiffAfterTransformAnchor from 0x140115980 to 0x140115c2e (686 bytes)\n// \n// 5 xrefs:\n// > GJTransformControl::refreshControl @ 0x14012b4e7\n// > GJTransformControl::ccTouchEnded @ 0x14012cdb4\n// > <???> @ 0x14066f75c\n// > <???> @ 0x14066f76c\n// > <???> @ 0x1406c92ac\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\ncocos2d::CCPoint EditorUI::checkDiffAfterTransformAnchor(EditorUI *a1, cocos2d::CCPoint a2, cocos2d::CCArray *a3)\n{\n  cocos2d::CCArray *v3; // r9\n  cocos2d::CCArray *v5; // rsi\n  const struct cocos2d::CCPoint *v8; // rax\n  unsigned int i; // edi\n  __int64 v10; // rbx\n  cocos2d::CCObjectType m_eObjType; // [rsp+20h] [rbp-88h] BYREF\n  struct cocos2d::CCPoint v13; // [rsp+28h] [rbp-80h] BYREF\n  _BYTE v14[8]; // [rsp+30h] [rbp-78h] BYREF\n  cocos2d::CCPoint v15; // [rsp+38h] [rbp-70h] BYREF\n  _BYTE v16[24]; // [rsp+40h] [rbp-68h] BYREF\n\n  v5 = v3;\n  a1->m_editorLayer->m_objectLayer->getScale(a1->m_editorLayer->m_objectLayer);\n  v8 = a1->m_editorLayer->m_objectLayer->getPosition_0(a1->m_editorLayer->m_objectLayer);\n  cocos2d::CCPoint::CCPoint(&v15, v8);\n  ((void (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->setScale_0)(a1->m_editorLayer->m_objectLayer);\n  a1->m_editorLayer->m_objectLayer->setPosition_0(\n    a1->m_editorLayer->m_objectLayer,\n    (const cocos2d::CCPoint *)&dword_1406C1AA8);\n  a1->m_transformNode->setPosition_0(a1->m_transformNode, (const cocos2d::CCPoint *)&dword_1406C1AA8);\n  ((void (__fastcall *)(cocos2d::CCNode *))a1->m_transformNode->setScaleX)(a1->m_transformNode);\n  ((void (__fastcall *)(cocos2d::CCNode *))a1->m_transformNode->setScaleY)(a1->m_transformNode);\n  ((void (__fastcall *)(cocos2d::CCNode *))a1->m_transformNode->setRotationX)(a1->m_transformNode);\n  ((void (__fastcall *)(cocos2d::CCNode *))a1->m_transformNode->setRotationY)(a1->m_transformNode);\n  ((void (__fastcall *)(cocos2d::CCNode *))a1->m_transformNode->setSkewX)(a1->m_transformNode);\n  ((void (__fastcall *)(cocos2d::CCNode *))a1->m_transformNode->setSkewY)(a1->m_transformNode);\n  a1->m_transformNode->nodeToWorldTransform((cocos2d::CCAffineTransform *)a1->m_transformNode, (cocos2d::CCNode *)v16);\n  a1->m_transformChild->setPosition_0(a1->m_transformChild, (const cocos2d::CCPoint *)&dword_1406C1AA8);\n  a1->m_transformNode->getPosition_0(a1->m_transformNode);\n  cocos2d::CCNode::convertToWorldSpace(a1->m_transformNode, &v13);\n  cocos2d::CCPoint::operator+(a3, &m_eObjType);\n  cocos2d::CCPoint::operator=(&v13, &m_eObjType);\n  cocos2d::CCNode::convertToNodeSpace(a1->m_transformNode, *(const struct cocos2d::CCPoint **)&a2);\n  for ( i = 0; i < cocos2d::CCArray::count(v5); ++i )\n  {\n    m_eObjType = cocos2d::CCArray::objectAtIndex(v5, i)[16].m_eObjType;\n    v10 = *(_QWORD *)sub_14012CF70(&a1->m_objectEditorStates, v16, &m_eObjType);\n    cocos2d::CCPoint::operator+(v10 + 20, v14);\n    cocos2d::CCPoint::operator=(v10 + 20, v14);\n  }\n  ((void (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->setScale_0)(a1->m_editorLayer->m_objectLayer);\n  a1->m_editorLayer->m_objectLayer->setPosition_0(a1->m_editorLayer->m_objectLayer, &v15);\n  return a2;\n}", "assembly": "; \n; EditorUI::checkDiffAfterTransformAnchor from 0x140115980 to 0x140115c2e (686 bytes)\n; \n; 5 xrefs:\n; > GJTransformControl::refreshControl @ 0x14012b4e7\n; > GJTransformControl::ccTouchEnded @ 0x14012cdb4\n; > <???> @ 0x14066f75c\n; > <???> @ 0x14066f76c\n; > <???> @ 0x1406c92ac\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\npush    rbx                                                            ; +0x0, 0x140115980\npush    rbp                                                            ; +0x2, 0x140115982\npush    rsi                                                            ; +0x3, 0x140115983\npush    rdi                                                            ; +0x4, 0x140115984\npush    r15                                                            ; +0x5, 0x140115985\nsub     rsp, 80h                                                       ; +0x7, 0x140115987\nmovaps  [rsp+0A8h+var_48], xmm6                                        ; +0xe, 0x14011598e\nmov     rax, cs:__security_cookie                                      ; +0x13, 0x140115993\nxor     rax, rsp                                                       ; +0x1a, 0x14011599a\nmov     [rsp+0A8h+var_50], rax                                         ; +0x1d, 0x14011599d\nmov     rax, [rcx+500h]                                                ; +0x22, 0x1401159a2\nmov     r15, rcx                                                       ; +0x29, 0x1401159a9\nmov     rsi, r9                                                        ; +0x2c, 0x1401159ac\nmov     rbx, r8                                                        ; +0x2f, 0x1401159af\nmov     rbp, rdx                                                       ; +0x32, 0x1401159b2\nmov     rcx, [rax+0FE8h]                                               ; +0x35, 0x1401159b5\nmov     rax, [rcx]                                                     ; +0x3c, 0x1401159bc\ncall    qword ptr [rax+0A8h]                                           ; +0x3f, 0x1401159bf\nmov     rax, [r15+500h]                                                ; +0x45, 0x1401159c5\nmovaps  xmm6, xmm0                                                     ; +0x4c, 0x1401159cc\nmov     rcx, [rax+0FE8h]                                               ; +0x4f, 0x1401159cf\nmov     rax, [rcx]                                                     ; +0x56, 0x1401159d6\ncall    qword ptr [rax+0C8h]                                           ; +0x59, 0x1401159d9\nmov     rdx, rax                                                       ; +0x5f, 0x1401159df\nlea     rcx, [rsp+0A8h+var_70]                                         ; +0x62, 0x1401159e2\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x67, 0x1401159e7\nmov     rax, [r15+500h]                                                ; +0x6d, 0x1401159ed\nmovss   xmm1, cs:flt_140622C24                                         ; +0x74, 0x1401159f4\nmov     rcx, [rax+0FE8h]                                               ; +0x7c, 0x1401159fc\nmov     rax, [rcx]                                                     ; +0x83, 0x140115a03\ncall    qword ptr [rax+0A0h]                                           ; +0x86, 0x140115a06\nmov     rax, [r15+500h]                                                ; +0x8c, 0x140115a0c\nlea     rdx, dword_1406C1AA8                                           ; +0x93, 0x140115a13\nmov     rcx, [rax+0FE8h]                                               ; +0x9a, 0x140115a1a\nmov     rax, [rcx]                                                     ; +0xa1, 0x140115a21\ncall    qword ptr [rax+0B8h]                                           ; +0xa4, 0x140115a24\nmov     rcx, [r15+2E0h]                                                ; +0xaa, 0x140115a2a\nlea     rdx, dword_1406C1AA8                                           ; +0xb1, 0x140115a31\nmov     rax, [rcx]                                                     ; +0xb8, 0x140115a38\ncall    qword ptr [rax+0B8h]                                           ; +0xbb, 0x140115a3b\nmov     rcx, [r15+2E0h]                                                ; +0xc1, 0x140115a41\nmovss   xmm1, dword ptr [r15+210h]                                     ; +0xc8, 0x140115a48\nmov     rax, [rcx]                                                     ; +0xd1, 0x140115a51\ncall    qword ptr [rax+78h]                                            ; +0xd4, 0x140115a54\nmov     rcx, [r15+2E0h]                                                ; +0xd7, 0x140115a57\nmovss   xmm1, dword ptr [r15+214h]                                     ; +0xde, 0x140115a5e\nmov     rax, [rcx]                                                     ; +0xe7, 0x140115a67\ncall    qword ptr [rax+88h]                                            ; +0xea, 0x140115a6a\nmov     rcx, [r15+2E0h]                                                ; +0xf0, 0x140115a70\nmovss   xmm1, dword ptr [r15+218h]                                     ; +0xf7, 0x140115a77\nmov     rax, [rcx]                                                     ; +0x100, 0x140115a80\ncall    qword ptr [rax+160h]                                           ; +0x103, 0x140115a83\nmov     rcx, [r15+2E0h]                                                ; +0x109, 0x140115a89\nmovss   xmm1, dword ptr [r15+21Ch]                                     ; +0x110, 0x140115a90\nmov     rax, [rcx]                                                     ; +0x119, 0x140115a99\ncall    qword ptr [rax+170h]                                           ; +0x11c, 0x140115a9c\nmov     rcx, [r15+2E0h]                                                ; +0x122, 0x140115aa2\nmovss   xmm1, dword ptr [r15+220h]                                     ; +0x129, 0x140115aa9\nmov     rax, [rcx]                                                     ; +0x132, 0x140115ab2\ncall    qword ptr [rax+0F0h]                                           ; +0x135, 0x140115ab5\nmov     rcx, [r15+2E0h]                                                ; +0x13b, 0x140115abb\nmovss   xmm1, dword ptr [r15+224h]                                     ; +0x142, 0x140115ac2\nmov     rax, [rcx]                                                     ; +0x14b, 0x140115acb\ncall    qword ptr [rax+100h]                                           ; +0x14e, 0x140115ace\nmov     rcx, [r15+2E0h]                                                ; +0x154, 0x140115ad4\nlea     rdx, [rsp+0A8h+var_68]                                         ; +0x15b, 0x140115adb\nmov     rax, [rcx]                                                     ; +0x160, 0x140115ae0\ncall    qword ptr [rax+320h]                                           ; +0x163, 0x140115ae3\nmov     rcx, [r15+2E8h]                                                ; +0x169, 0x140115ae9\nlea     rdx, dword_1406C1AA8                                           ; +0x170, 0x140115af0\nmov     rax, [rcx]                                                     ; +0x177, 0x140115af7\ncall    qword ptr [rax+0B8h]                                           ; +0x17a, 0x140115afa\nmov     rcx, [r15+2E0h]                                                ; +0x180, 0x140115b00\nmov     rax, [rcx]                                                     ; +0x187, 0x140115b07\ncall    qword ptr [rax+0C8h]                                           ; +0x18a, 0x140115b0a\nmov     rcx, [r15+2E0h]                                                ; +0x190, 0x140115b10\nlea     rdx, [rsp+0A8h+var_80]                                         ; +0x197, 0x140115b17\nmov     r8, rax                                                        ; +0x19c, 0x140115b1c\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x19f, 0x140115b1f\nlea     r8, [rsp+0A8h+var_80]                                          ; +0x1a5, 0x140115b25\nmov     rcx, rbx                                                       ; +0x1aa, 0x140115b2a\nlea     rdx, [rsp+0A8h+var_88]                                         ; +0x1ad, 0x140115b2d\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x1b2, 0x140115b32\nlea     rdx, [rsp+0A8h+var_88]                                         ; +0x1b8, 0x140115b38\nlea     rcx, [rsp+0A8h+var_80]                                         ; +0x1bd, 0x140115b3d\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1c2, 0x140115b42\nmov     rcx, [r15+2E0h]                                                ; +0x1c8, 0x140115b48\nlea     r8, [rsp+0A8h+var_80]                                          ; +0x1cf, 0x140115b4f\nmov     rdx, rbp                                                       ; +0x1d4, 0x140115b54\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x1d7, 0x140115b57\nxor     edi, edi                                                       ; +0x1dd, 0x140115b5d\nmov     rcx, rsi                                                       ; +0x1df, 0x140115b5f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1e2, 0x140115b62\ntest    eax, eax                                                       ; +0x1e8, 0x140115b68\njz      short loc_140115BD4                                            ; +0x1ea, 0x140115b6a\nmov     [rsp+0A8h+var_30], r14                                         ; +0x1ec, 0x140115b6c\nmov     edx, edi                                                       ; +0x1f1, 0x140115b71\nmov     rcx, rsi                                                       ; +0x1f3, 0x140115b73\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1f6, 0x140115b76\nlea     r8, [rsp+0A8h+var_88]                                          ; +0x1fc, 0x140115b7c\nlea     rdx, [rsp+0A8h+var_68]                                         ; +0x201, 0x140115b81\nmov     ecx, [rax+39Ch]                                                ; +0x206, 0x140115b86\nmov     [rsp+0A8h+var_88], ecx                                         ; +0x20c, 0x140115b8c\nlea     rcx, [r15+1D0h]                                                ; +0x210, 0x140115b90\ncall    sub_14012CF70                                                  ; +0x217, 0x140115b97\nmov     r8, rbp                                                        ; +0x21c, 0x140115b9c\nlea     rdx, [rsp+0A8h+var_78]                                         ; +0x21f, 0x140115b9f\nmov     rbx, [rax]                                                     ; +0x224, 0x140115ba4\nlea     rcx, [rbx+14h]                                                 ; +0x227, 0x140115ba7\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x22b, 0x140115bab\nlea     rdx, [rsp+0A8h+var_78]                                         ; +0x231, 0x140115bb1\nlea     rcx, [rbx+14h]                                                 ; +0x236, 0x140115bb6\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x23a, 0x140115bba\nmov     rcx, rsi                                                       ; +0x240, 0x140115bc0\ninc     edi                                                            ; +0x243, 0x140115bc3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x245, 0x140115bc5\ncmp     edi, eax                                                       ; +0x24b, 0x140115bcb\njb      short loc_140115B71                                            ; +0x24d, 0x140115bcd\nmov     r14, [rsp+0A8h+var_30]                                         ; +0x24f, 0x140115bcf\nmov     rcx, [r15+500h]                                                ; +0x254, 0x140115bd4\nmovaps  xmm1, xmm6                                                     ; +0x25b, 0x140115bdb\nmov     rcx, [rcx+0FE8h]                                               ; +0x25e, 0x140115bde\nmov     rdx, [rcx]                                                     ; +0x265, 0x140115be5\ncall    qword ptr [rdx+0A0h]                                           ; +0x268, 0x140115be8\nmov     rcx, [r15+500h]                                                ; +0x26e, 0x140115bee\nlea     rdx, [rsp+0A8h+var_70]                                         ; +0x275, 0x140115bf5\nmov     rcx, [rcx+0FE8h]                                               ; +0x27a, 0x140115bfa\nmov     r8, [rcx]                                                      ; +0x281, 0x140115c01\ncall    qword ptr [r8+0B8h]                                            ; +0x284, 0x140115c04\nmov     rax, rbp                                                       ; +0x28b, 0x140115c0b\nmov     rcx, [rsp+0A8h+var_50]                                         ; +0x28e, 0x140115c0e\nxor     rcx, rsp; StackCookie                                          ; +0x293, 0x140115c13\ncall    __security_check_cookie                                        ; +0x296, 0x140115c16\nmovaps  xmm6, [rsp+0A8h+var_48]                                        ; +0x29b, 0x140115c1b\nadd     rsp, 80h                                                       ; +0x2a0, 0x140115c20\npop     r15                                                            ; +0x2a7, 0x140115c27\npop     rdi                                                            ; +0x2a9, 0x140115c29\npop     rsi                                                            ; +0x2aa, 0x140115c2a\npop     rbp                                                            ; +0x2ab, 0x140115c2b\npop     rbx                                                            ; +0x2ac, 0x140115c2c\nretn                                                                   ; +0x2ad, 0x140115c2d", "xrefs": ["GJTransformControl::refreshControl @ 0x14012b4e7", "GJTransformControl::ccTouchEnded @ 0x14012cdb4", "<???> @ 0x14066f75c", "<???> @ 0x14066f76c", "<???> @ 0x1406c92ac"], "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"}