{"type": "func", "start": 5369941008, "end": 5369941511, "name": "GJTransformControl::ccTouchEnded", "pseudocode": "// \n// GJTransformControl::ccTouchEnded from 0x14012cc10 to 0x14012ce07 (503 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140552c70\n// > <???> @ 0x140670c1c\n// > <???> @ 0x140670c2c\n// > <???> @ 0x1406c9c78\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\nvoid GJTransformControl::ccTouchEnded(GJTransformControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  char v5; // di\n  __int16 a_low; // ax\n  bool v7; // zf\n  struct cocos2d::CCObject *v8; // rax\n  __int64 v9; // rdi\n  struct cocos2d::CCPoint v10; // rax\n  struct cocos2d::CCObject *v11; // rax\n  struct cocos2d::CCObject *v12; // rax\n  __int64 v13; // rax\n  __int64 v14; // rcx\n  struct cocos2d::CCObject *v15; // rax\n  __int64 v16; // rbx\n  cocos2d::CCArray *v17; // rax\n  cocos2d::CCArray *v18; // rdi\n  EditorUI *v19; // rax\n  cocos2d::CCPoint v20; // [rsp+20h] [rbp-28h] BYREF\n  _BYTE v21[32]; // [rsp+28h] [rbp-20h] BYREF\n  cocos2d::CCPoint v22; // [rsp+50h] [rbp+8h] BYREF\n  cocos2d::CCPoint v23; // [rsp+58h] [rbp+10h] BYREF\n  char v24; // [rsp+68h] [rbp+20h] BYREF\n\n  v5 = 0;\n  cocos2d::CCPoint::CCPoint(&v22);\n  if ( LODWORD(a1->m_obContentSize.height) == a2->m_nId )\n  {\n    a_low = LOWORD(a1->m_sAdditionalTransform.a);\n    if ( a_low == 1 )\n    {\n      v7 = *(_QWORD *)&a1->m_sAdditionalTransform.b == 0;\n      a1->m_obContentSize.height = NAN;\n      if ( !v7 )\n      {\n        v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_sInverse.ty, 0);\n        v9 = **(_QWORD **)&a1->m_sAdditionalTransform.b;\n        v8->__vftable[2].getTag(v8);\n        v10 = cocos2d::CCNode::convertToWorldSpace((GJTransformControl *)((char *)a1 - 320), &v23);\n        (*(void (__fastcall **)(_QWORD, struct cocos2d::CCPoint))(v9 + 104))(\n          *(_QWORD *)&a1->m_sAdditionalTransform.b,\n          v10);\n        v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_sInverse.ty, 0);\n        v11->__vftable[2].encodeWithCoder(v11, (DS_Dictionary *)&dword_1406C1AA8);\n        v5 = 1;\n        v12 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_obAnchorPoint.y, 0);\n        v13 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v12->__vftable[2].getTag)(v12);\n        cocos2d::CCPoint::operator=(&v22, v13);\nLABEL_9:\n        GJTransformControl::updateButtons((GJTransformControl *)((char *)a1 - 320), 0, 1);\n        LOWORD(a1->m_sAdditionalTransform.a) = 0;\n        GJTransformControl::updateButtons((GJTransformControl *)((char *)a1 - 320), 0, 0);\n        if ( v5 )\n        {\n          v15 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_obAnchorPoint.y, 0);\n          v15->__vftable[2].getTag(v15);\n          cocos2d::CCPoint::CCPoint(&v23);\n          cocos2d::CCPoint::operator-(&v22, &v24, &v23);\n          v16 = *(_QWORD *)&a1->m_sAdditionalTransform.b;\n          cocos2d::CCPoint::CCPoint(&v20);\n          v18 = v17;\n          v19 = (EditorUI *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 120LL))(v16);\n          EditorUI::checkDiffAfterTransformAnchor(v19, (cocos2d::CCPoint)v21, v18);\n          GJTransformControl::updateButtons((GJTransformControl *)((char *)a1 - 320), 0, 1);\n          GJTransformControl::updateButtons((GJTransformControl *)((char *)a1 - 320), 0, 0);\n        }\n        return;\n      }\n    }\n    else if ( a_low )\n    {\n      v14 = *(_QWORD *)&a1->m_sAdditionalTransform.b;\n      a1->m_obContentSize.height = NAN;\n      if ( v14 )\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 88LL))(v14);\n    }\n    if ( (unsigned __int16)(LOWORD(a1->m_sAdditionalTransform.a) - 10) > 1u )\n    {\n      LOWORD(a1->m_sAdditionalTransform.a) = 0;\n      GJTransformControl::updateButtons((GJTransformControl *)((char *)a1 - 320), 0, 0);\n      return;\n    }\n    goto LABEL_9;\n  }\n}", "assembly": "; \n; GJTransformControl::ccTouchEnded from 0x14012cc10 to 0x14012ce07 (503 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140552c70\n; > <???> @ 0x140670c1c\n; > <???> @ 0x140670c2c\n; > <???> @ 0x1406c9c78\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, 0x14012cc10\npush    rsi                                                            ; +0x2, 0x14012cc12\npush    rdi                                                            ; +0x3, 0x14012cc13\nsub     rsp, 30h                                                       ; +0x4, 0x14012cc14\nmov     rsi, rcx                                                       ; +0x8, 0x14012cc18\nmov     rbx, rdx                                                       ; +0xb, 0x14012cc1b\nlea     rcx, [rsp+48h+arg_0]                                           ; +0xe, 0x14012cc1e\nxor     dil, dil                                                       ; +0x13, 0x14012cc23\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x16, 0x14012cc26\nmov     eax, [rbx+38h]                                                 ; +0x1c, 0x14012cc2c\ncmp     [rsi+70h], eax                                                 ; +0x1f, 0x14012cc2f\njnz     loc_14012CDE0                                                  ; +0x22, 0x14012cc32\nmovzx   eax, word ptr [rsi+74h]                                        ; +0x28, 0x14012cc38\ncmp     ax, 1                                                          ; +0x2c, 0x14012cc3c\njnz     loc_14012CCE7                                                  ; +0x30, 0x14012cc40\ncmp     qword ptr [rsi+78h], 0                                         ; +0x36, 0x14012cc46\nmov     dword ptr [rsi+70h], 0FFFFFFFFh                                ; +0x3b, 0x14012cc4b\njz      loc_14012CD02                                                  ; +0x42, 0x14012cc52\nmov     rcx, [rsi+0B8h]                                                ; +0x48, 0x14012cc58\nxor     edx, edx                                                       ; +0x4f, 0x14012cc5f\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x51, 0x14012cc61\nmov     rcx, [rsi+78h]                                                 ; +0x57, 0x14012cc67\nmov     rdx, [rax]                                                     ; +0x5b, 0x14012cc6b\nmov     rdi, [rcx]                                                     ; +0x5e, 0x14012cc6e\nmov     rcx, rax                                                       ; +0x61, 0x14012cc71\ncall    qword ptr [rdx+0C8h]                                           ; +0x64, 0x14012cc74\nmov     r8, rax                                                        ; +0x6a, 0x14012cc7a\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x6d, 0x14012cc7d\nlea     rcx, [rsi-140h]                                                ; +0x72, 0x14012cc82\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x79, 0x14012cc89\nmov     rcx, [rsi+78h]                                                 ; +0x7f, 0x14012cc8f\nmov     rdx, rax                                                       ; +0x83, 0x14012cc93\ncall    qword ptr [rdi+68h]                                            ; +0x86, 0x14012cc96\nmov     rcx, [rsi+0B8h]                                                ; +0x89, 0x14012cc99\nxor     edx, edx                                                       ; +0x90, 0x14012cca0\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x92, 0x14012cca2\nlea     rdx, dword_1406C1AA8                                           ; +0x98, 0x14012cca8\nmov     rcx, rax                                                       ; +0x9f, 0x14012ccaf\nmov     r8, [rax]                                                      ; +0xa2, 0x14012ccb2\ncall    qword ptr [r8+0B8h]                                            ; +0xa5, 0x14012ccb5\nmov     rcx, [rsi+68h]                                                 ; +0xac, 0x14012ccbc\nxor     edx, edx                                                       ; +0xb0, 0x14012ccc0\nmov     dil, 1                                                         ; +0xb2, 0x14012ccc2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb5, 0x14012ccc5\nmov     rcx, rax                                                       ; +0xbb, 0x14012cccb\nmov     rdx, [rax]                                                     ; +0xbe, 0x14012ccce\ncall    qword ptr [rdx+0C8h]                                           ; +0xc1, 0x14012ccd1\nmov     rdx, rax                                                       ; +0xc7, 0x14012ccd7\nlea     rcx, [rsp+48h+arg_0]                                           ; +0xca, 0x14012ccda\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xcf, 0x14012ccdf\njmp     short loc_14012CD14                                            ; +0xd5, 0x14012cce5\ntest    ax, ax                                                         ; +0xd7, 0x14012cce7\njz      short loc_14012CD02                                            ; +0xda, 0x14012ccea\nmov     rcx, [rsi+78h]                                                 ; +0xdc, 0x14012ccec\nmov     dword ptr [rsi+70h], 0FFFFFFFFh                                ; +0xe0, 0x14012ccf0\ntest    rcx, rcx                                                       ; +0xe7, 0x14012ccf7\njz      short loc_14012CD02                                            ; +0xea, 0x14012ccfa\nmov     rax, [rcx]                                                     ; +0xec, 0x14012ccfc\ncall    qword ptr [rax+58h]                                            ; +0xef, 0x14012ccff\nmovzx   eax, word ptr [rsi+74h]                                        ; +0xf2, 0x14012cd02\nsub     ax, 0Ah                                                        ; +0xf6, 0x14012cd06\ncmp     ax, 1                                                          ; +0xfa, 0x14012cd0a\nja      loc_14012CDE8                                                  ; +0xfe, 0x14012cd0e\nmov     r8b, 1                                                         ; +0x104, 0x14012cd14\nmov     [rsp+48h+arg_10], rbp                                          ; +0x107, 0x14012cd17\nxor     edx, edx                                                       ; +0x10c, 0x14012cd1c\nlea     rcx, [rsi-140h]                                                ; +0x10e, 0x14012cd1e\ncall    GJTransformControl__updateButtons                              ; +0x115, 0x14012cd25\nxor     eax, eax                                                       ; +0x11a, 0x14012cd2a\nlea     rcx, [rsi-140h]                                                ; +0x11c, 0x14012cd2c\nxor     r8d, r8d                                                       ; +0x123, 0x14012cd33\nmov     [rsi+74h], ax                                                  ; +0x126, 0x14012cd36\nxor     edx, edx                                                       ; +0x12a, 0x14012cd3a\ncall    GJTransformControl__updateButtons                              ; +0x12c, 0x14012cd3c\ntest    dil, dil                                                       ; +0x131, 0x14012cd41\njz      loc_14012CDDB                                                  ; +0x134, 0x14012cd44\nmov     rcx, [rsi+68h]                                                 ; +0x13a, 0x14012cd4a\nxor     edx, edx                                                       ; +0x13e, 0x14012cd4e\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x140, 0x14012cd50\nmov     rcx, rax                                                       ; +0x146, 0x14012cd56\nmov     rdx, [rax]                                                     ; +0x149, 0x14012cd59\ncall    qword ptr [rdx+0C8h]                                           ; +0x14c, 0x14012cd5c\nmov     rdx, rax                                                       ; +0x152, 0x14012cd62\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x155, 0x14012cd65\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x15a, 0x14012cd6a\nlea     r8, [rsp+48h+arg_8]                                            ; +0x160, 0x14012cd70\nlea     rdx, [rsp+48h+arg_18]                                          ; +0x165, 0x14012cd75\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x16a, 0x14012cd7a\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x16f, 0x14012cd7f\nmov     rbx, [rsi+78h]                                                 ; +0x175, 0x14012cd85\nlea     rdx, [rsp+48h+arg_18]                                          ; +0x179, 0x14012cd89\nlea     rcx, [rsp+48h+var_28]                                          ; +0x17e, 0x14012cd8e\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x183, 0x14012cd93\nmov     rdx, [rbx]                                                     ; +0x189, 0x14012cd99\nmov     rcx, rbx                                                       ; +0x18c, 0x14012cd9c\nmov     rdi, rax                                                       ; +0x18f, 0x14012cd9f\ncall    qword ptr [rdx+78h]                                            ; +0x192, 0x14012cda2\nmov     r9, [rsi+68h]                                                  ; +0x195, 0x14012cda5\nlea     rdx, [rsp+48h+var_20]                                          ; +0x199, 0x14012cda9\nmov     rcx, rax                                                       ; +0x19e, 0x14012cdae\nmov     r8, rdi                                                        ; +0x1a1, 0x14012cdb1\ncall    EditorUI__checkDiffAfterTransformAnchor                        ; +0x1a4, 0x14012cdb4\nmov     r8b, 1                                                         ; +0x1a9, 0x14012cdb9\nlea     rcx, [rsi-140h]                                                ; +0x1ac, 0x14012cdbc\nxor     edx, edx                                                       ; +0x1b3, 0x14012cdc3\ncall    GJTransformControl__updateButtons                              ; +0x1b5, 0x14012cdc5\nxor     r8d, r8d                                                       ; +0x1ba, 0x14012cdca\nlea     rcx, [rsi-140h]                                                ; +0x1bd, 0x14012cdcd\nxor     edx, edx                                                       ; +0x1c4, 0x14012cdd4\ncall    GJTransformControl__updateButtons                              ; +0x1c6, 0x14012cdd6\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x1cb, 0x14012cddb\nadd     rsp, 30h                                                       ; +0x1d0, 0x14012cde0\npop     rdi                                                            ; +0x1d4, 0x14012cde4\npop     rsi                                                            ; +0x1d5, 0x14012cde5\npop     rbx                                                            ; +0x1d6, 0x14012cde6\nretn                                                                   ; +0x1d7, 0x14012cde7\nxor     eax, eax                                                       ; +0x1d8, 0x14012cde8\nlea     rcx, [rsi-140h]                                                ; +0x1da, 0x14012cdea\nxor     r8d, r8d                                                       ; +0x1e1, 0x14012cdf1\nmov     [rsi+74h], ax                                                  ; +0x1e4, 0x14012cdf4\nxor     edx, edx                                                       ; +0x1e8, 0x14012cdf8\ncall    GJTransformControl__updateButtons                              ; +0x1ea, 0x14012cdfa\nadd     rsp, 30h                                                       ; +0x1ef, 0x14012cdff\npop     rdi                                                            ; +0x1f3, 0x14012ce03\npop     rsi                                                            ; +0x1f4, 0x14012ce04\npop     rbx                                                            ; +0x1f5, 0x14012ce05\nretn                                                                   ; +0x1f6, 0x14012ce06", "xrefs": ["<???> @ 0x140552c70", "<???> @ 0x140670c1c", "<???> @ 0x140670c2c", "<???> @ 0x1406c9c78"], "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"}