{"type": "func", "start": 5370812320, "end": 5370813671, "name": "EditorUI::alignObjects", "pseudocode": "// \n// EditorUI::alignObjects from 0x1402017a0 to 0x140201ce7 (1351 bytes)\n// \n// 5 xrefs:\n// > EditorCommandsPopup::onCommand @ 0x14017dbeb\n// > EditorCommandsPopup::onCommand @ 0x14017dc12\n// > EditorUI::handleEditorAction @ 0x1401c342e\n// > EditorUI::handleEditorAction @ 0x1401c3453\n// > <???> @ 0x14091ae40\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:28:13 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall EditorUI::alignObjects(__int64 a1, cocos2d::CCArray *a2, char a3)\n{\n  unsigned int v5; // eax\n  cocos2d::CCArray *v6; // rax\n  cocos2d::CCDictionary *v7; // rsi\n  unsigned int v8; // r12d\n  unsigned int v9; // edi\n  struct cocos2d::CCObject *v10; // rbx\n  __int64 v11; // rbx\n  struct cocos2d::CCObject *v12; // rax\n  cocos2d::CCArray *v13; // r13\n  unsigned int i; // esi\n  int v15; // ebx\n  struct cocos2d::CCObject *v16; // rax\n  __int64 v17; // rcx\n  __int64 v18; // r9\n  cocos2d::CCSprite *v19; // rax\n  cocos2d::CCSprite *v20; // rdi\n  __int64 v21; // rbx\n  __int64 v22; // rax\n  unsigned int *v23; // rcx\n  char v24; // si\n  size_t v25; // rdx\n  void *v26; // rcx\n  int (__cdecl *v27)(const void *, const void *); // r9\n  __int64 v28; // rdx\n  char v29; // di\n  unsigned int *v30; // rbx\n  __int64 v31; // rax\n  _QWORD *v32; // rbx\n  _QWORD *j; // rsi\n  const struct cocos2d::CCPoint *v34; // rax\n  int *v35; // rbx\n  const struct cocos2d::CCPoint *v36; // rax\n  float v37; // xmm1_4\n  float v38; // xmm2_4\n  float v39; // xmm1_4\n  cocos2d::CCPoint *v40; // rcx\n  __int64 v41; // rax\n  cocos2d::CCArray *v42; // rax\n  cocos2d::CCArray *v43; // rsi\n  unsigned int v44; // edi\n  struct cocos2d::CCObject *v45; // rbx\n  __int64 v46; // rax\n  float v47; // [rsp+20h] [rbp-50h] BYREF\n  float v48; // [rsp+24h] [rbp-4Ch]\n  char v49[8]; // [rsp+28h] [rbp-48h] BYREF\n  float v50[2]; // [rsp+30h] [rbp-40h] BYREF\n  char v51[8]; // [rsp+38h] [rbp-38h] BYREF\n  void *v52; // [rsp+40h] [rbp-30h] BYREF\n  char v53[8]; // [rsp+48h] [rbp-28h] BYREF\n  char v54; // [rsp+50h] [rbp-20h] BYREF\n  char v55; // [rsp+58h] [rbp-18h] BYREF\n  char v56[16]; // [rsp+60h] [rbp-10h] BYREF\n  float v57; // [rsp+B8h] [rbp+48h] BYREF\n  float v58; // [rsp+BCh] [rbp+4Ch]\n  char v59; // [rsp+C0h] [rbp+50h]\n  float v60; // [rsp+C8h] [rbp+58h] BYREF\n  float v61; // [rsp+CCh] [rbp+5Ch]\n\n  if ( a2 )\n  {\n    v59 = a3;\n    if ( cocos2d::CCArray::count(a2) >= 3 )\n    {\n      v5 = cocos2d::CCArray::count(a2);\n      v6 = cocos2d::CCArray::createWithCapacity(v5);\n      cocos2d::CCArray::addObjectsFromArray(v6, a2);\n      v7 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create();\n      v8 = 1;\n      if ( *(_BYTE *)(a1 + 915) && !*(_BYTE *)(a1 + 916) )\n      {\n        v9 = 0;\n        while ( v9 < cocos2d::CCArray::count(a2) )\n        {\n          v10 = cocos2d::CCArray::objectAtIndex(a2, v9);\n          if ( *((int *)v10 + 220) <= 0 )\n          {\n            ++v9;\n          }\n          else\n          {\n            cocos2d::CCArray::removeObjectAtIndex(a2, v9, 1);\n            if ( !cocos2d::CCDictionary::objectForKey(v7, *((int *)v10 + 220)) )\n            {\n              v11 = *((int *)v10 + 220);\n              v12 = (struct cocos2d::CCObject *)cocos2d::CCNode::create();\n              cocos2d::CCDictionary::setObject(v7, v12, v11);\n            }\n          }\n        }\n        v13 = cocos2d::CCDictionary::allKeys(v7);\n        for ( i = 0; i < cocos2d::CCArray::count(v13); ++i )\n        {\n          v15 = *((_DWORD *)cocos2d::CCArray::objectAtIndex(v13, i) + 14);\n          v16 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(*(_QWORD *)(a1 + 1512) + 4256LL), v15);\n          if ( v16 )\n          {\n            LOBYTE(v18) = 1;\n            EditorUI::getGroupCenter(v17, v49, v16, v18);\n            v52 = operator new(0x550u);\n            v19 = (cocos2d::CCSprite *)GameObject::GameObject(v52);\n            v20 = v19;\n            if ( v19 )\n            {\n              *((_DWORD *)v19 + 7) = 13;\n              if ( cocos2d::CCSprite::initWithSpriteFrameName(v19, \"checkpoint_01_001.png\") )\n              {\n                GameObject::commonSetup(v20);\n                *((_BYTE *)v20 + 313) = 1;\n                cocos2d::CCObject::autorelease(v20);\n              }\n              else\n              {\n                (*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)v20 + 8LL))(v20, 1);\n                v20 = nullptr;\n              }\n            }\n            *((_DWORD *)v20 + 259) = 44;\n            *((_DWORD *)v20 + 220) = v15;\n            v21 = *(_QWORD *)v20;\n            cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v51, (const struct cocos2d::CCPoint *)v49);\n            (*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(v21 + 1216))(v20, v22);\n            cocos2d::CCArray::addObject(a2, v20);\n          }\n        }\n      }\n      v23 = *((unsigned int **)a2 + 7);\n      v24 = v59;\n      v25 = *v23;\n      v26 = *((void **)v23 + 2);\n      v27 = (int (__cdecl *)(const void *, const void *))sub_14019F1C0;\n      if ( !v59 )\n        v27 = (int (__cdecl *)(const void *, const void *))sub_14019F170;\n      qsort(v26, v25, 8u, v27);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v57);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v60);\n      v29 = 1;\n      v30 = *((unsigned int **)a2 + 7);\n      v31 = *v30;\n      if ( (_DWORD)v31 )\n      {\n        v32 = *((_QWORD **)v30 + 2);\n        for ( j = &v32[v31 - 1]; v32 <= j; ++v32 )\n        {\n          if ( !*v32 )\n            break;\n          v34 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v32 + 200LL))(*v32);\n          cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, v34);\n          if ( v29 )\n          {\n            v29 = 0;\n            cocos2d::CCPoint::operator=(&v57, &v47);\n            cocos2d::CCPoint::operator=(&v60, &v47);\n          }\n          else\n          {\n            if ( v57 > v47 )\n              v57 = v47;\n            if ( v47 > v60 )\n              v60 = v47;\n            if ( v58 > v48 )\n              v58 = v48;\n            if ( v48 > v61 )\n              v61 = v48;\n          }\n        }\n        v24 = v59;\n      }\n      if ( v57 != v60 || v58 != v61 )\n      {\n        EditorUI::createUndoObject(a1, v28, 0);\n        cocos2d::CCPoint::operator-(&v60, v53, &v57);\n        cocos2d::CCArray::count(a2);\n        cocos2d::CCPoint::operator*(v53, v50);\n        if ( cocos2d::CCArray::count(a2) - 1 > 1 )\n        {\n          do\n          {\n            v35 = (int *)cocos2d::CCArray::objectAtIndex(a2, v8);\n            v36 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(int *))(*(_QWORD *)v35 + 200LL))(v35);\n            cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, v36);\n            cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49);\n            v37 = (float)(int)v8;\n            if ( v24 )\n            {\n              v38 = (float)(v37 * v50[1]) + v58;\n              v39 = v47;\n              v40 = (cocos2d::CCPoint *)&v54;\n            }\n            else\n            {\n              v39 = (float)(v37 * v50[0]) + v57;\n              v38 = v48;\n              v40 = (cocos2d::CCPoint *)&v55;\n            }\n            cocos2d::CCPoint::CCPoint(v40, v39, v38);\n            cocos2d::CCPoint::operator=(v49, v41);\n            cocos2d::CCPoint::operator-(v49, v51, &v47);\n            if ( v35[259] == 44 )\n            {\n              v42 = cocos2d::CCDictionary::objectForKey(\n                      *(cocos2d::CCDictionary **)(*(_QWORD *)(a1 + 1512) + 4256LL),\n                      v35[220]);\n              v43 = v42;\n              if ( v42 )\n              {\n                v44 = 0;\n                if ( cocos2d::CCArray::count(v42) )\n                {\n                  do\n                  {\n                    v45 = cocos2d::CCArray::objectAtIndex(v43, v44);\n                    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, (const struct cocos2d::CCPoint *)v51);\n                    EditorUI::moveObject(a1, (__int64)v45, v46);\n                    ++v44;\n                  }\n                  while ( v44 < cocos2d::CCArray::count(v43) );\n                }\n              }\n              v24 = v59;\n            }\n            else\n            {\n              cocos2d::CCPoint::operator-(v49, &v52, &v47);\n              EditorUI::moveObject(a1, (__int64)v35, (__int64)&v52);\n            }\n            ++v8;\n          }\n          while ( v8 < cocos2d::CCArray::count(a2) - 1 );\n        }\n        if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 840) + 344LL))(*(_QWORD *)(a1 + 840)) )\n        {\n          EditorUI::deactivateTransformControl(a1);\n          EditorUI::activateTransformControl(a1, 0);\n        }\n        if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 344LL))(*(_QWORD *)(a1 + 808)) )\n        {\n          *(_BYTE *)(a1 + 824) = 1;\n          EditorUI::activateRotationControl(a1, 0);\n        }\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 + 432) + 40LL))(a1 + 432);\n        EditorUI::updateButtons(a1);\n      }\n    }\n  }\n}", "assembly": "; \n; EditorUI::alignObjects from 0x1402017a0 to 0x140201ce7 (1351 bytes)\n; \n; 5 xrefs:\n; > EditorCommandsPopup::onCommand @ 0x14017dbeb\n; > EditorCommandsPopup::onCommand @ 0x14017dc12\n; > EditorUI::handleEditorAction @ 0x1401c342e\n; > EditorUI::handleEditorAction @ 0x1401c3453\n; > <???> @ 0x14091ae40\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:28:13 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x1402017a0\njz      locret_140201CC0                                               ; +0x3, 0x1402017a3\nmov     [rsp-38h+arg_0], rbx                                           ; +0x9, 0x1402017a9\nmov     [rsp-38h+arg_10], r8b                                          ; +0xe, 0x1402017ae\npush    rbp                                                            ; +0x13, 0x1402017b3\npush    rsi                                                            ; +0x14, 0x1402017b4\npush    rdi                                                            ; +0x15, 0x1402017b5\npush    r12                                                            ; +0x16, 0x1402017b6\npush    r13                                                            ; +0x18, 0x1402017b8\npush    r14                                                            ; +0x1a, 0x1402017ba\npush    r15                                                            ; +0x1c, 0x1402017bc\nmov     rbp, rsp                                                       ; +0x1e, 0x1402017be\nsub     rsp, 70h                                                       ; +0x21, 0x1402017c1\nmov     r15, rdx                                                       ; +0x25, 0x1402017c5\nmov     r14, rcx                                                       ; +0x28, 0x1402017c8\nmov     rcx, rdx                                                       ; +0x2b, 0x1402017cb\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2e, 0x1402017ce\ncmp     eax, 3                                                         ; +0x34, 0x1402017d4\njb      loc_140201CA9                                                  ; +0x37, 0x1402017d7\nmov     rcx, r15                                                       ; +0x3d, 0x1402017dd\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x40, 0x1402017e0\nmov     ecx, eax                                                       ; +0x46, 0x1402017e6\ncall    cs:?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x48, 0x1402017e8\nmov     rdx, r15                                                       ; +0x4e, 0x1402017ee\nmov     rcx, rax                                                       ; +0x51, 0x1402017f1\ncall    cs:?addObjectsFromArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray *) ; +0x54, 0x1402017f4\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x5a, 0x1402017fa\nmov     rsi, rax                                                       ; +0x60, 0x140201800\nmov     r12d, 1                                                        ; +0x63, 0x140201803\ncmp     byte ptr [r14+393h], 0                                         ; +0x69, 0x140201809\njz      loc_1402019A8                                                  ; +0x71, 0x140201811\ncmp     byte ptr [r14+394h], 0                                         ; +0x77, 0x140201817\njnz     loc_1402019A8                                                  ; +0x7f, 0x14020181f\nxor     edi, edi                                                       ; +0x85, 0x140201825\nmov     rcx, r15                                                       ; +0x87, 0x140201827\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8a, 0x14020182a\ntest    eax, eax                                                       ; +0x90, 0x140201830\njz      short loc_14020189C                                            ; +0x92, 0x140201832\nmov     edx, edi                                                       ; +0x94, 0x140201834\nmov     rcx, r15                                                       ; +0x96, 0x140201836\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x99, 0x140201839\nmov     rbx, rax                                                       ; +0x9f, 0x14020183f\ncmp     dword ptr [rax+370h], 0                                        ; +0xa2, 0x140201842\njle     short loc_14020188D                                            ; +0xa9, 0x140201849\nmovzx   r8d, r12b                                                      ; +0xab, 0x14020184b\nmov     edx, edi                                                       ; +0xaf, 0x14020184f\nmov     rcx, r15                                                       ; +0xb1, 0x140201851\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0xb4, 0x140201854\nmovsxd  rdx, dword ptr [rbx+370h]                                      ; +0xba, 0x14020185a\nmov     rcx, rsi                                                       ; +0xc1, 0x140201861\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xc4, 0x140201864\ntest    rax, rax                                                       ; +0xca, 0x14020186a\njnz     short loc_14020188F                                            ; +0xcd, 0x14020186d\nmovsxd  rbx, dword ptr [rbx+370h]                                      ; +0xcf, 0x14020186f\ncall    cs:?create@CCNode@cocos2d@@SAPEAV12@XZ; cocos2d::CCNode::create(void) ; +0xd6, 0x140201876\nmov     rdx, rax                                                       ; +0xdc, 0x14020187c\nmov     r8, rbx                                                        ; +0xdf, 0x14020187f\nmov     rcx, rsi                                                       ; +0xe2, 0x140201882\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0xe5, 0x140201885\njmp     short loc_14020188F                                            ; +0xeb, 0x14020188b\ninc     edi                                                            ; +0xed, 0x14020188d\nmov     rcx, r15                                                       ; +0xef, 0x14020188f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf2, 0x140201892\ncmp     edi, eax                                                       ; +0xf8, 0x140201898\njb      short loc_140201834                                            ; +0xfa, 0x14020189a\nmov     rcx, rsi                                                       ; +0xfc, 0x14020189c\ncall    cs:?allKeys@CCDictionary@cocos2d@@QEAAPEAVCCArray@2@XZ; cocos2d::CCDictionary::allKeys(void) ; +0xff, 0x14020189f\nmov     r13, rax                                                       ; +0x105, 0x1402018a5\nxor     esi, esi                                                       ; +0x108, 0x1402018a8\nmov     rcx, rax                                                       ; +0x10a, 0x1402018aa\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x10d, 0x1402018ad\ntest    eax, eax                                                       ; +0x113, 0x1402018b3\njz      loc_1402019A8                                                  ; +0x115, 0x1402018b5\nnop     dword ptr [rax+rax+00h]                                        ; +0x11b, 0x1402018bb\nmov     edx, esi                                                       ; +0x120, 0x1402018c0\nmov     rcx, r13                                                       ; +0x122, 0x1402018c2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x125, 0x1402018c5\nmovsxd  rbx, dword ptr [rax+38h]                                       ; +0x12b, 0x1402018cb\nmov     rdx, rbx                                                       ; +0x12f, 0x1402018cf\nmov     rcx, [r14+5E8h]                                                ; +0x132, 0x1402018d2\nmov     rcx, [rcx+10A0h]                                               ; +0x139, 0x1402018d9\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x140, 0x1402018e0\ntest    rax, rax                                                       ; +0x146, 0x1402018e6\njz      loc_140201995                                                  ; +0x149, 0x1402018e9\nmov     r9b, 1                                                         ; +0x14f, 0x1402018ef\nmov     r8, rax                                                        ; +0x152, 0x1402018f2\nlea     rdx, [rbp+var_48]                                              ; +0x155, 0x1402018f5\ncall    EditorUI__getGroupCenter                                       ; +0x159, 0x1402018f9\nmov     ecx, 550h; Size                                                ; +0x15e, 0x1402018fe\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x163, 0x140201903\nmov     [rbp+var_30], rax                                              ; +0x168, 0x140201908\nmov     rcx, rax                                                       ; +0x16c, 0x14020190c\ncall    GameObject__GameObject                                         ; +0x16f, 0x14020190f\nmov     rdi, rax                                                       ; +0x174, 0x140201914\ntest    rax, rax                                                       ; +0x177, 0x140201917\njz      short loc_14020195C                                            ; +0x17a, 0x14020191a\nmov     dword ptr [rax+1Ch], 0Dh                                       ; +0x17c, 0x14020191c\nlea     rdx, aCheckpoint0100; \"checkpoint_01_001.png\"                  ; +0x183, 0x140201923\nmov     rcx, rax                                                       ; +0x18a, 0x14020192a\ncall    cs:__imp_?initWithSpriteFrameName@CCSprite@cocos2d@@UEAA_NPEBD@Z; cocos2d::CCSprite::initWithSpriteFrameName(char const *) ; +0x18d, 0x14020192d\nmov     rcx, rdi                                                       ; +0x193, 0x140201933\ntest    al, al                                                         ; +0x196, 0x140201936\njnz     short loc_140201947                                            ; +0x198, 0x140201938\nmov     rax, [rdi]                                                     ; +0x19a, 0x14020193a\nmov     edx, r12d                                                      ; +0x19d, 0x14020193d\ncall    qword ptr [rax+8]                                              ; +0x1a0, 0x140201940\nxor     edi, edi                                                       ; +0x1a3, 0x140201943\njmp     short loc_14020195C                                            ; +0x1a5, 0x140201945\ncall    GameObject__commonSetup                                        ; +0x1a7, 0x140201947\nmov     byte ptr [rdi+139h], 1                                         ; +0x1ac, 0x14020194c\nmov     rcx, rdi                                                       ; +0x1b3, 0x140201953\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1b6, 0x140201956\nmov     dword ptr [rdi+40Ch], 2Ch ; ','                                ; +0x1bc, 0x14020195c\nmov     [rdi+370h], ebx                                                ; +0x1c6, 0x140201966\nmov     rbx, [rdi]                                                     ; +0x1cc, 0x14020196c\nlea     rdx, [rbp+var_48]                                              ; +0x1cf, 0x14020196f\nlea     rcx, [rbp+var_38]                                              ; +0x1d3, 0x140201973\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1d7, 0x140201977\nmov     rdx, rax                                                       ; +0x1dd, 0x14020197d\nmov     rcx, rdi                                                       ; +0x1e0, 0x140201980\ncall    qword ptr [rbx+4C0h]                                           ; +0x1e3, 0x140201983\nmov     rdx, rdi                                                       ; +0x1e9, 0x140201989\nmov     rcx, r15                                                       ; +0x1ec, 0x14020198c\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x1ef, 0x14020198f\ninc     esi                                                            ; +0x1f5, 0x140201995\nmov     rcx, r13                                                       ; +0x1f7, 0x140201997\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1fa, 0x14020199a\ncmp     esi, eax                                                       ; +0x200, 0x1402019a0\njb      loc_1402018C0                                                  ; +0x202, 0x1402019a2\nmov     rcx, [r15+38h]                                                 ; +0x208, 0x1402019a8\nmovzx   esi, [rbp+arg_10]                                              ; +0x20c, 0x1402019ac\nmov     edx, [rcx]; NumOfElements                                      ; +0x210, 0x1402019b0\nmov     r8d, 8; SizeOfElements                                         ; +0x212, 0x1402019b2\nmov     rcx, [rcx+10h]; Base                                           ; +0x218, 0x1402019b8\ntest    sil, sil                                                       ; +0x21c, 0x1402019bc\nlea     r9, sub_14019F1C0                                              ; +0x21f, 0x1402019bf\njnz     short loc_1402019CF                                            ; +0x226, 0x1402019c6\nlea     r9, sub_14019F170; CompareFunction                             ; +0x228, 0x1402019c8\ncall    cs:qsort                                                       ; +0x22f, 0x1402019cf\nlea     rcx, [rbp+arg_8]                                               ; +0x235, 0x1402019d5\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x239, 0x1402019d9\nlea     rcx, [rbp+arg_18]                                              ; +0x23f, 0x1402019df\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x243, 0x1402019e3\nmov     dil, 1                                                         ; +0x249, 0x1402019e9\nmov     rbx, [r15+38h]                                                 ; +0x24c, 0x1402019ec\nmov     eax, [rbx]                                                     ; +0x250, 0x1402019f0\ntest    eax, eax                                                       ; +0x252, 0x1402019f2\njz      loc_140201AA7                                                  ; +0x254, 0x1402019f4\nmov     rbx, [rbx+10h]                                                 ; +0x25a, 0x1402019fa\nlea     rsi, [rax-1]                                                   ; +0x25e, 0x1402019fe\nlea     rsi, [rbx+rsi*8]                                               ; +0x262, 0x140201a02\ncmp     rbx, rsi                                                       ; +0x266, 0x140201a06\nja      loc_140201AA3                                                  ; +0x269, 0x140201a09\nnop                                                                    ; +0x26f, 0x140201a0f\nmov     rcx, [rbx]                                                     ; +0x270, 0x140201a10\ntest    rcx, rcx                                                       ; +0x273, 0x140201a13\njz      loc_140201AA3                                                  ; +0x276, 0x140201a16\nmov     rax, [rcx]                                                     ; +0x27c, 0x140201a1c\ncall    qword ptr [rax+0C8h]                                           ; +0x27f, 0x140201a1f\nmov     rdx, rax                                                       ; +0x285, 0x140201a25\nlea     rcx, [rbp+var_50]                                              ; +0x288, 0x140201a28\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x28c, 0x140201a2c\ntest    dil, dil                                                       ; +0x292, 0x140201a32\njz      short loc_140201A58                                            ; +0x295, 0x140201a35\nxor     dil, dil                                                       ; +0x297, 0x140201a37\nlea     rdx, [rbp+var_50]                                              ; +0x29a, 0x140201a3a\nlea     rcx, [rbp+arg_8]                                               ; +0x29e, 0x140201a3e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x2a2, 0x140201a42\nlea     rdx, [rbp+var_50]                                              ; +0x2a8, 0x140201a48\nlea     rcx, [rbp+arg_18]                                              ; +0x2ac, 0x140201a4c\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x2b0, 0x140201a50\njmp     short loc_140201A96                                            ; +0x2b6, 0x140201a56\nmovss   xmm1, [rbp+var_50]                                             ; +0x2b8, 0x140201a58\nmovss   xmm0, [rbp+arg_8]                                              ; +0x2bd, 0x140201a5d\ncomiss  xmm0, xmm1                                                     ; +0x2c2, 0x140201a62\njbe     short loc_140201A6C                                            ; +0x2c5, 0x140201a65\nmovss   [rbp+arg_8], xmm1                                              ; +0x2c7, 0x140201a67\ncomiss  xmm1, [rbp+arg_18]                                             ; +0x2cc, 0x140201a6c\njbe     short loc_140201A77                                            ; +0x2d0, 0x140201a70\nmovss   [rbp+arg_18], xmm1                                             ; +0x2d2, 0x140201a72\nmovss   xmm1, [rbp+var_4C]                                             ; +0x2d7, 0x140201a77\nmovss   xmm0, [rbp+arg_C]                                              ; +0x2dc, 0x140201a7c\ncomiss  xmm0, xmm1                                                     ; +0x2e1, 0x140201a81\njbe     short loc_140201A8B                                            ; +0x2e4, 0x140201a84\nmovss   [rbp+arg_C], xmm1                                              ; +0x2e6, 0x140201a86\ncomiss  xmm1, [rbp+arg_1C]                                             ; +0x2eb, 0x140201a8b\njbe     short loc_140201A96                                            ; +0x2ef, 0x140201a8f\nmovss   [rbp+arg_1C], xmm1                                             ; +0x2f1, 0x140201a91\nadd     rbx, 8                                                         ; +0x2f6, 0x140201a96\ncmp     rbx, rsi                                                       ; +0x2fa, 0x140201a9a\njbe     loc_140201A10                                                  ; +0x2fd, 0x140201a9d\nmovzx   esi, [rbp+arg_10]                                              ; +0x303, 0x140201aa3\nmovss   xmm0, [rbp+arg_8]                                              ; +0x307, 0x140201aa7\nucomiss xmm0, [rbp+arg_18]                                             ; +0x30c, 0x140201aac\njp      short loc_140201AC5                                            ; +0x310, 0x140201ab0\njnz     short loc_140201AC5                                            ; +0x312, 0x140201ab2\nmovss   xmm0, [rbp+arg_C]                                              ; +0x314, 0x140201ab4\nucomiss xmm0, [rbp+arg_1C]                                             ; +0x319, 0x140201ab9\njp      short loc_140201AC5                                            ; +0x31d, 0x140201abd\njz      loc_140201CA9                                                  ; +0x31f, 0x140201abf\nxor     r8d, r8d                                                       ; +0x325, 0x140201ac5\nmov     rcx, r14                                                       ; +0x328, 0x140201ac8\ncall    EditorUI__createUndoObject                                     ; +0x32b, 0x140201acb\nlea     r8, [rbp+arg_8]                                                ; +0x330, 0x140201ad0\nlea     rdx, [rbp+var_28]                                              ; +0x334, 0x140201ad4\nlea     rcx, [rbp+arg_18]                                              ; +0x338, 0x140201ad8\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x33c, 0x140201adc\nmov     rcx, r15                                                       ; +0x342, 0x140201ae2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x345, 0x140201ae5\ndec     eax                                                            ; +0x34b, 0x140201aeb\nxorps   xmm0, xmm0                                                     ; +0x34d, 0x140201aed\ncvtsi2ss xmm0, rax                                                     ; +0x350, 0x140201af0\nmovss   xmm2, cs:flt_140835080                                         ; +0x355, 0x140201af5\ndivss   xmm2, xmm0                                                     ; +0x35d, 0x140201afd\nlea     rdx, [rbp+var_40]                                              ; +0x361, 0x140201b01\nlea     rcx, [rbp+var_28]                                              ; +0x365, 0x140201b05\ncall    cs:??DCCPoint@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCPoint::operator*(float) ; +0x369, 0x140201b09\nmov     rcx, r15                                                       ; +0x36f, 0x140201b0f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x372, 0x140201b12\ndec     eax                                                            ; +0x378, 0x140201b18\ncmp     eax, 1                                                         ; +0x37a, 0x140201b1a\njbe     loc_140201C48                                                  ; +0x37d, 0x140201b1d\nmov     edx, r12d                                                      ; +0x383, 0x140201b23\nmov     rcx, r15                                                       ; +0x386, 0x140201b26\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x389, 0x140201b29\nmov     rbx, rax                                                       ; +0x38f, 0x140201b2f\nmov     rcx, [rax]                                                     ; +0x392, 0x140201b32\nmov     rdx, [rcx+0C8h]                                                ; +0x395, 0x140201b35\nmov     rcx, rax                                                       ; +0x39c, 0x140201b3c\ncall    rdx                                                            ; +0x39f, 0x140201b3f\nmov     rdx, rax                                                       ; +0x3a1, 0x140201b41\nlea     rcx, [rbp+var_50]                                              ; +0x3a4, 0x140201b44\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x3a8, 0x140201b48\nlea     rcx, [rbp+var_48]                                              ; +0x3ae, 0x140201b4e\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x3b2, 0x140201b52\nmovd    xmm1, r12d                                                     ; +0x3b8, 0x140201b58\ncvtdq2ps xmm1, xmm1                                                    ; +0x3bd, 0x140201b5d\ntest    sil, sil                                                       ; +0x3c0, 0x140201b60\njz      short loc_140201B7D                                            ; +0x3c3, 0x140201b63\nmulss   xmm1, [rbp+var_3C]                                             ; +0x3c5, 0x140201b65\naddss   xmm1, [rbp+arg_C]                                              ; +0x3ca, 0x140201b6a\nmovaps  xmm2, xmm1                                                     ; +0x3cf, 0x140201b6f\nmovss   xmm1, [rbp+var_50]                                             ; +0x3d2, 0x140201b72\nlea     rcx, [rbp+var_20]                                              ; +0x3d7, 0x140201b77\njmp     short loc_140201B90                                            ; +0x3db, 0x140201b7b\nmulss   xmm1, [rbp+var_40]                                             ; +0x3dd, 0x140201b7d\naddss   xmm1, [rbp+arg_8]                                              ; +0x3e2, 0x140201b82\nmovss   xmm2, [rbp+var_4C]                                             ; +0x3e7, 0x140201b87\nlea     rcx, [rbp+var_18]                                              ; +0x3ec, 0x140201b8c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x3f0, 0x140201b90\nmov     rdx, rax                                                       ; +0x3f6, 0x140201b96\nlea     rcx, [rbp+var_48]                                              ; +0x3f9, 0x140201b99\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x3fd, 0x140201b9d\nlea     r8, [rbp+var_50]                                               ; +0x403, 0x140201ba3\nlea     rdx, [rbp+var_38]                                              ; +0x407, 0x140201ba7\nlea     rcx, [rbp+var_48]                                              ; +0x40b, 0x140201bab\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x40f, 0x140201baf\ncmp     dword ptr [rbx+40Ch], 2Ch ; ','                                ; +0x415, 0x140201bb5\njnz     loc_140201CC1                                                  ; +0x41c, 0x140201bbc\nmovsxd  rdx, dword ptr [rbx+370h]                                      ; +0x422, 0x140201bc2\nmov     rcx, [r14+5E8h]                                                ; +0x429, 0x140201bc9\nmov     rcx, [rcx+10A0h]                                               ; +0x430, 0x140201bd0\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x437, 0x140201bd7\nmov     rsi, rax                                                       ; +0x43d, 0x140201bdd\ntest    rax, rax                                                       ; +0x440, 0x140201be0\njz      short loc_140201C2D                                            ; +0x443, 0x140201be3\nxor     edi, edi                                                       ; +0x445, 0x140201be5\nmov     rcx, rax                                                       ; +0x447, 0x140201be7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x44a, 0x140201bea\ntest    eax, eax                                                       ; +0x450, 0x140201bf0\njz      short loc_140201C2D                                            ; +0x452, 0x140201bf2\nmov     edx, edi                                                       ; +0x454, 0x140201bf4\nmov     rcx, rsi                                                       ; +0x456, 0x140201bf6\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x459, 0x140201bf9\nmov     rbx, rax                                                       ; +0x45f, 0x140201bff\nlea     rdx, [rbp+var_38]                                              ; +0x462, 0x140201c02\nlea     rcx, [rbp+var_10]                                              ; +0x466, 0x140201c06\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x46a, 0x140201c0a\nmov     r8, rax                                                        ; +0x470, 0x140201c10\nmov     rdx, rbx                                                       ; +0x473, 0x140201c13\nmov     rcx, r14                                                       ; +0x476, 0x140201c16\ncall    EditorUI__moveObject                                           ; +0x479, 0x140201c19\ninc     edi                                                            ; +0x47e, 0x140201c1e\nmov     rcx, rsi                                                       ; +0x480, 0x140201c20\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x483, 0x140201c23\ncmp     edi, eax                                                       ; +0x489, 0x140201c29\njb      short loc_140201BF4                                            ; +0x48b, 0x140201c2b\nmovzx   esi, [rbp+arg_10]                                              ; +0x48d, 0x140201c2d\ninc     r12d                                                           ; +0x491, 0x140201c31\nmov     rcx, r15                                                       ; +0x494, 0x140201c34\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x497, 0x140201c37\ndec     eax                                                            ; +0x49d, 0x140201c3d\ncmp     r12d, eax                                                      ; +0x49f, 0x140201c3f\njb      loc_140201B23                                                  ; +0x4a2, 0x140201c42\nmov     rcx, [r14+348h]                                                ; +0x4a8, 0x140201c48\nmov     rax, [rcx]                                                     ; +0x4af, 0x140201c4f\ncall    qword ptr [rax+158h]                                           ; +0x4b2, 0x140201c52\ntest    al, al                                                         ; +0x4b8, 0x140201c58\njz      short loc_140201C6E                                            ; +0x4ba, 0x140201c5a\nmov     rcx, r14                                                       ; +0x4bc, 0x140201c5c\ncall    EditorUI__deactivateTransformControl                           ; +0x4bf, 0x140201c5f\nxor     edx, edx                                                       ; +0x4c4, 0x140201c64\nmov     rcx, r14                                                       ; +0x4c6, 0x140201c66\ncall    EditorUI__activateTransformControl                             ; +0x4c9, 0x140201c69\nmov     rcx, [r14+328h]                                                ; +0x4ce, 0x140201c6e\nmov     rax, [rcx]                                                     ; +0x4d5, 0x140201c75\ncall    qword ptr [rax+158h]                                           ; +0x4d8, 0x140201c78\ntest    al, al                                                         ; +0x4de, 0x140201c7e\njz      short loc_140201C94                                            ; +0x4e0, 0x140201c80\nmov     byte ptr [r14+338h], 1                                         ; +0x4e2, 0x140201c82\nxor     edx, edx                                                       ; +0x4ea, 0x140201c8a\nmov     rcx, r14                                                       ; +0x4ec, 0x140201c8c\ncall    EditorUI__activateRotationControl                              ; +0x4ef, 0x140201c8f\nlea     rcx, [r14+1B0h]                                                ; +0x4f4, 0x140201c94\nmov     rax, [rcx]                                                     ; +0x4fb, 0x140201c9b\ncall    qword ptr [rax+28h]                                            ; +0x4fe, 0x140201c9e\nmov     rcx, r14                                                       ; +0x501, 0x140201ca1\ncall    EditorUI__updateButtons                                        ; +0x504, 0x140201ca4\nmov     rbx, [rsp+70h+arg_0]                                           ; +0x509, 0x140201ca9\nadd     rsp, 70h                                                       ; +0x511, 0x140201cb1\npop     r15                                                            ; +0x515, 0x140201cb5\npop     r14                                                            ; +0x517, 0x140201cb7\npop     r13                                                            ; +0x519, 0x140201cb9\npop     r12                                                            ; +0x51b, 0x140201cbb\npop     rdi                                                            ; +0x51d, 0x140201cbd\npop     rsi                                                            ; +0x51e, 0x140201cbe\npop     rbp                                                            ; +0x51f, 0x140201cbf\nretn                                                                   ; +0x520, 0x140201cc0\nlea     r8, [rbp+var_50]                                               ; +0x521, 0x140201cc1\nlea     rdx, [rbp+var_30]                                              ; +0x525, 0x140201cc5\nlea     rcx, [rbp+var_48]                                              ; +0x529, 0x140201cc9\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x52d, 0x140201ccd\nlea     r8, [rbp+var_30]                                               ; +0x533, 0x140201cd3\nmov     rdx, rbx                                                       ; +0x537, 0x140201cd7\nmov     rcx, r14                                                       ; +0x53a, 0x140201cda\ncall    EditorUI__moveObject                                           ; +0x53d, 0x140201cdd\njmp     loc_140201C31                                                  ; +0x542, 0x140201ce2", "xrefs": ["EditorCommandsPopup::onCommand @ 0x14017dbeb", "EditorCommandsPopup::onCommand @ 0x14017dc12", "EditorUI::handleEditorAction @ 0x1401c342e", "EditorUI::handleEditorAction @ 0x1401c3453", "<???> @ 0x14091ae40"], "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"}