{"type": "func", "start": 5370446512, "end": 5370446904, "name": "GJTransformControl::moveAnchorTo", "pseudocode": "// \n// GJTransformControl::moveAnchorTo from 0x1401a82b0 to 0x1401a8438 (392 bytes)\n// \n// 5 xrefs:\n// > GJTransformControl::ccTouchBegan @ 0x1401a7230\n// > GJTransformControl::ccTouchEnded @ 0x1401a7eef\n// > <???> @ 0x1408a0de4\n// > <???> @ 0x1408a0df4\n// > <???> @ 0x140919c70\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:51 +0000\n// \n\nvoid __fastcall GJTransformControl::moveAnchorTo(__int64 a1, const struct cocos2d::CCPoint *a2)\n{\n  cocos2d::CCArray *v4; // rcx\n  struct cocos2d::CCObject *v5; // rax\n  const struct cocos2d::CCPoint *v6; // rax\n  __int64 *v7; // rdi\n  __int64 v8; // rbx\n  __int64 v9; // rax\n  struct cocos2d::CCObject *v10; // rax\n  struct cocos2d::CCObject *v11; // rax\n  const struct cocos2d::CCPoint *v12; // rax\n  __int64 v13; // rsi\n  __int64 v14; // rbp\n  __int64 (__fastcall *v15)(__int64); // rdi\n  __int64 v16; // rax\n  __int64 v17; // rbx\n  __int64 v18; // rax\n  _BYTE v19[8]; // [rsp+20h] [rbp-38h] BYREF\n  _BYTE v20[8]; // [rsp+28h] [rbp-30h] BYREF\n  char v21; // [rsp+60h] [rbp+8h] BYREF\n  char v22; // [rsp+70h] [rbp+18h] BYREF\n  char v23; // [rsp+78h] [rbp+20h] BYREF\n\n  if ( *(_QWORD *)(a1 + 440) )\n  {\n    v4 = *(cocos2d::CCArray **)(a1 + 424);\n    if ( v4 )\n    {\n      if ( cocos2d::CCArray::count(v4) )\n      {\n        v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 424), 0);\n        v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v5 + 200LL))(v5);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, v6);\n        v7 = *(__int64 **)(a1 + 440);\n        v8 = *v7;\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, a2);\n        (*(void (__fastcall **)(__int64 *, __int64))(v8 + 104))(v7, v9);\n        v10 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 512), 0);\n        (*(void (__fastcall **)(struct cocos2d::CCObject *, void *))(*(_QWORD *)v10 + 184LL))(v10, &unk_14090A6C8);\n        GJTransformControl::updateButtons(a1, 0, 1);\n        GJTransformControl::updateButtons(a1, 0, 0);\n        v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 424), 0);\n        v12 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v11 + 200LL))(v11);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, v12);\n        cocos2d::CCPoint::operator-(&v22, &v23, &v21);\n        v13 = *(_QWORD *)(a1 + 440);\n        v14 = *(_QWORD *)(a1 + 424);\n        v15 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 120LL);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, (const struct cocos2d::CCPoint *)&v23);\n        v17 = v16;\n        v18 = v15(v13);\n        EditorUI::checkDiffAfterTransformAnchor(v18, v20, v17, v14);\n        GJTransformControl::updateButtons(a1, 0, 1);\n        GJTransformControl::updateButtons(a1, 0, 0);\n      }\n    }\n  }\n}", "assembly": "; \n; GJTransformControl::moveAnchorTo from 0x1401a82b0 to 0x1401a8438 (392 bytes)\n; \n; 5 xrefs:\n; > GJTransformControl::ccTouchBegan @ 0x1401a7230\n; > GJTransformControl::ccTouchEnded @ 0x1401a7eef\n; > <???> @ 0x1408a0de4\n; > <???> @ 0x1408a0df4\n; > <???> @ 0x140919c70\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:51 +0000\n; \npush    rsi                                                            ; +0x0, 0x1401a82b0\npush    r14                                                            ; +0x2, 0x1401a82b2\nsub     rsp, 48h                                                       ; +0x4, 0x1401a82b4\ncmp     qword ptr [rcx+1B8h], 0                                        ; +0x8, 0x1401a82b8\nmov     rsi, rdx                                                       ; +0x10, 0x1401a82c0\nmov     r14, rcx                                                       ; +0x13, 0x1401a82c3\njz      loc_1401A8430                                                  ; +0x16, 0x1401a82c6\nmov     rcx, [rcx+1A8h]                                                ; +0x1c, 0x1401a82cc\ntest    rcx, rcx                                                       ; +0x23, 0x1401a82d3\njz      loc_1401A8430                                                  ; +0x26, 0x1401a82d6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2c, 0x1401a82dc\ntest    eax, eax                                                       ; +0x32, 0x1401a82e2\njz      loc_1401A8430                                                  ; +0x34, 0x1401a82e4\nmov     rcx, [r14+1A8h]                                                ; +0x3a, 0x1401a82ea\nxor     edx, edx                                                       ; +0x41, 0x1401a82f1\nmov     [rsp+58h+var_18], rbx                                          ; +0x43, 0x1401a82f3\nmov     [rsp+58h+var_20], rbp                                          ; +0x48, 0x1401a82f8\nmov     [rsp+58h+var_28], rdi                                          ; +0x4d, 0x1401a82fd\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x52, 0x1401a8302\nmov     rcx, [rax]                                                     ; +0x58, 0x1401a8308\nmov     rdx, [rcx+0C8h]                                                ; +0x5b, 0x1401a830b\nmov     rcx, rax                                                       ; +0x62, 0x1401a8312\ncall    rdx                                                            ; +0x65, 0x1401a8315\nmov     rdx, rax                                                       ; +0x67, 0x1401a8317\nlea     rcx, [rsp+58h+arg_10]                                          ; +0x6a, 0x1401a831a\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x6f, 0x1401a831f\nmov     rdi, [r14+1B8h]                                                ; +0x75, 0x1401a8325\nlea     rcx, [rsp+58h+var_38]                                          ; +0x7c, 0x1401a832c\nmov     rdx, rsi                                                       ; +0x81, 0x1401a8331\nmov     rbx, [rdi]                                                     ; +0x84, 0x1401a8334\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x87, 0x1401a8337\nmov     rdx, rax                                                       ; +0x8d, 0x1401a833d\nmov     rcx, rdi                                                       ; +0x90, 0x1401a8340\ncall    qword ptr [rbx+68h]                                            ; +0x93, 0x1401a8343\nmov     rcx, [r14+200h]                                                ; +0x96, 0x1401a8346\nxor     edx, edx                                                       ; +0x9d, 0x1401a834d\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x9f, 0x1401a834f\nlea     rdx, unk_14090A6C8                                             ; +0xa5, 0x1401a8355\nmov     rcx, [rax]                                                     ; +0xac, 0x1401a835c\nmov     r8, [rcx+0B8h]                                                 ; +0xaf, 0x1401a835f\nmov     rcx, rax                                                       ; +0xb6, 0x1401a8366\ncall    r8                                                             ; +0xb9, 0x1401a8369\nmov     r8b, 1                                                         ; +0xbc, 0x1401a836c\nxor     edx, edx                                                       ; +0xbf, 0x1401a836f\nmov     rcx, r14                                                       ; +0xc1, 0x1401a8371\ncall    GJTransformControl__updateButtons                              ; +0xc4, 0x1401a8374\nxor     r8d, r8d                                                       ; +0xc9, 0x1401a8379\nxor     edx, edx                                                       ; +0xcc, 0x1401a837c\nmov     rcx, r14                                                       ; +0xce, 0x1401a837e\ncall    GJTransformControl__updateButtons                              ; +0xd1, 0x1401a8381\nmov     rcx, [r14+1A8h]                                                ; +0xd6, 0x1401a8386\nxor     edx, edx                                                       ; +0xdd, 0x1401a838d\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xdf, 0x1401a838f\nmov     rcx, [rax]                                                     ; +0xe5, 0x1401a8395\nmov     rdx, [rcx+0C8h]                                                ; +0xe8, 0x1401a8398\nmov     rcx, rax                                                       ; +0xef, 0x1401a839f\ncall    rdx                                                            ; +0xf2, 0x1401a83a2\nmov     rdx, rax                                                       ; +0xf4, 0x1401a83a4\nlea     rcx, [rsp+58h+arg_0]                                           ; +0xf7, 0x1401a83a7\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xfc, 0x1401a83ac\nlea     r8, [rsp+58h+arg_0]                                            ; +0x102, 0x1401a83b2\nlea     rdx, [rsp+58h+arg_18]                                          ; +0x107, 0x1401a83b7\nlea     rcx, [rsp+58h+arg_10]                                          ; +0x10c, 0x1401a83bc\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x111, 0x1401a83c1\nmov     rsi, [r14+1B8h]                                                ; +0x117, 0x1401a83c7\nlea     rdx, [rsp+58h+arg_18]                                          ; +0x11e, 0x1401a83ce\nmov     rbp, [r14+1A8h]                                                ; +0x123, 0x1401a83d3\nlea     rcx, [rsp+58h+var_38]                                          ; +0x12a, 0x1401a83da\nmov     rax, [rsi]                                                     ; +0x12f, 0x1401a83df\nmov     rdi, [rax+78h]                                                 ; +0x132, 0x1401a83e2\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x136, 0x1401a83e6\nmov     rcx, rsi                                                       ; +0x13c, 0x1401a83ec\nmov     rbx, rax                                                       ; +0x13f, 0x1401a83ef\ncall    rdi                                                            ; +0x142, 0x1401a83f2\nmov     rcx, rax                                                       ; +0x144, 0x1401a83f4\nlea     rdx, [rsp+58h+var_30]                                          ; +0x147, 0x1401a83f7\nmov     r9, rbp                                                        ; +0x14c, 0x1401a83fc\nmov     r8, rbx                                                        ; +0x14f, 0x1401a83ff\ncall    EditorUI__checkDiffAfterTransformAnchor                        ; +0x152, 0x1401a8402\nmov     r8b, 1                                                         ; +0x157, 0x1401a8407\nxor     edx, edx                                                       ; +0x15a, 0x1401a840a\nmov     rcx, r14                                                       ; +0x15c, 0x1401a840c\ncall    GJTransformControl__updateButtons                              ; +0x15f, 0x1401a840f\nxor     r8d, r8d                                                       ; +0x164, 0x1401a8414\nxor     edx, edx                                                       ; +0x167, 0x1401a8417\nmov     rcx, r14                                                       ; +0x169, 0x1401a8419\ncall    GJTransformControl__updateButtons                              ; +0x16c, 0x1401a841c\nmov     rdi, [rsp+58h+var_28]                                          ; +0x171, 0x1401a8421\nmov     rbp, [rsp+58h+var_20]                                          ; +0x176, 0x1401a8426\nmov     rbx, [rsp+58h+var_18]                                          ; +0x17b, 0x1401a842b\nadd     rsp, 48h                                                       ; +0x180, 0x1401a8430\npop     r14                                                            ; +0x184, 0x1401a8434\npop     rsi                                                            ; +0x186, 0x1401a8436\nretn                                                                   ; +0x187, 0x1401a8437", "xrefs": ["GJTransformControl::ccTouchBegan @ 0x1401a7230", "GJTransformControl::ccTouchEnded @ 0x1401a7eef", "<???> @ 0x1408a0de4", "<???> @ 0x1408a0df4", "<???> @ 0x140919c70"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}