{"type": "func", "start": 3789468, "end": 3790298, "name": "EditorUI::alignObjects", "pseudocode": "// \n// EditorUI::alignObjects from 0x39d29c to 0x39d5da (830 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::onAlignX @ 0x3ff332\n// > EditorPauseLayer::onAlignY @ 0x3ff352\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 EditorUI::alignObjects(EditorUI *a1, cocos2d::CCArray *a2, bool a3)\n{\n  unsigned int v5; // r5\n  cocos2d::CCArray *v6; // r0\n  unsigned int v7; // r1\n  cocos2d::CCArray *v8; // r0\n  cocos2d::CCDictionary *v9; // r7\n  int v10; // r8\n  cocos2d::CCNode *v11; // r0\n  unsigned int v12; // r5\n  cocos2d::CCArray *v13; // r7\n  int v14; // r9\n  cocos2d::CCArray *StickyGroup; // r2\n  GameObject *v16; // r0\n  cocos2d::CCObject *v17; // r11\n  GameObject_vtbl *v18; // r2\n  cocos2d::ccArray *data; // r3\n  cocos2d::CCObject **arr; // r0\n  size_t num; // r1\n  int (*v22)(const void *, const void *); // r3\n  cocos2d::ccArray *v23; // r2\n  unsigned int v24; // r3\n  cocos2d::CCObject **v25; // r2\n  unsigned int v26; // r9\n  int v27; // r3\n  unsigned int v28; // r5\n  cocos2d::CCObject **v29; // r10\n  int v30; // r0\n  int v31; // t1\n  int v32; // r0\n  unsigned int v33; // r7\n  GameObject *v34; // r9\n  const cocos2d::CCPoint *v35; // r0\n  float v36; // s15\n  float x; // r1\n  float y; // r2\n  int v39; // r2\n  bool v40; // r3\n  cocos2d::CCArray *v41; // r9\n  unsigned int v42; // r11\n  GameObject *v43; // r0\n  cocos2d::CCPoint v44; // r2\n  cocos2d::CCPoint v45; // r2\n  const cocos2d::CCPoint *v46; // r0\n  int v47; // r2\n  int v48; // r2\n  bool v49; // r3\n  _BOOL4 v50; // [sp+0h] [bp-5Ch]\n  cocos2d::CCPoint *setStartPos; // [sp+4h] [bp-58h]\n  cocos2d::CCPoint *v52; // [sp+4h] [bp-58h]\n  GameObject *v53; // [sp+Ch] [bp-50h]\n  cocos2d::CCPoint v54; // [sp+14h] [bp-48h] BYREF\n  cocos2d::CCPoint v55; // [sp+1Ch] [bp-40h] BYREF\n  _BYTE v56[8]; // [sp+24h] [bp-38h] BYREF\n  float v57[2]; // [sp+2Ch] [bp-30h] BYREF\n  cocos2d::CCPoint v58; // [sp+34h] [bp-28h] BYREF\n  cocos2d::CCPoint v59; // [sp+3Ch] [bp-20h] BYREF\n  cocos2d::CCPoint v60; // [sp+44h] [bp-18h] BYREF\n  cocos2d::CCPoint v61; // [sp+4Ch] [bp-10h] BYREF\n\n  v50 = a3;\n  if ( a2 && cocos2d::CCArray::count(a2) > 2u )\n  {\n    v5 = 0;\n    v6 = (cocos2d::CCArray *)cocos2d::CCArray::count(a2);\n    v8 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity(v6, v7);\n    cocos2d::CCArray::addObjectsFromArray(v8, a2);\n    v9 = cocos2d::CCDictionary::create();\n    while ( v5 < cocos2d::CCArray::count(a2) )\n    {\n      v10 = cocos2d::CCArray::objectAtIndex(a2, v5);\n      if ( *(int *)(v10 + 732) <= 0 )\n      {\n        ++v5;\n      }\n      else\n      {\n        cocos2d::CCArray::removeObjectAtIndex(a2, v5, 1);\n        if ( !cocos2d::CCDictionary::objectForKey(v9, *(_DWORD *)(v10 + 732)) )\n        {\n          v11 = cocos2d::CCNode::create();\n          cocos2d::CCDictionary::setObject(v9, v11, *(_DWORD *)(v10 + 732));\n        }\n      }\n    }\n    v12 = 0;\n    v13 = cocos2d::CCDictionary::allKeys(v9);\n    while ( v12 < cocos2d::CCArray::count(v13) )\n    {\n      v14 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v13, v12) + 52);\n      StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, v14);\n      if ( StickyGroup )\n      {\n        EditorUI::getGroupCenter(&v60, a1, StickyGroup, 1);\n        v16 = GameObject::createWithFrame(\"checkpoint_01_001.png\");\n        v16->m_objectID = 44;\n        v17 = v16;\n        v18 = v16->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n        v16->m_linkedGroup = v14;\n        setStartPos = (cocos2d::CCPoint *)v18->setStartPos;\n        cocos2d::CCPoint::CCPoint(&v61, &v60);\n        ((void (__fastcall *)(cocos2d::CCObject *, cocos2d::CCPoint *))setStartPos)(v17, &v61);\n        cocos2d::CCArray::addObject(a2, v17);\n      }\n      ++v12;\n    }\n    data = a2->data;\n    arr = data->arr;\n    num = data->num;\n    if ( v50 )\n      v22 = (int (*)(const void *, const void *))alignYSort;\n    else\n      v22 = (int (*)(const void *, const void *))alignXSort;\n    qsort(arr, num, 4u, v22);\n    cocos2d::CCPoint::CCPoint(&v54);\n    cocos2d::CCPoint::CCPoint(&v55);\n    v23 = a2->data;\n    v24 = v23->num;\n    if ( v23->num )\n    {\n      v25 = v23->arr;\n      v26 = v24 + 0x3FFFFFFF;\n      v27 = 1;\n      v28 = (unsigned int)&v25[v26];\n      v29 = v25;\n      while ( (unsigned int)v29 <= v28 )\n      {\n        v31 = (int)*v29++;\n        v30 = v31;\n        if ( !v31 )\n          break;\n        v52 = (cocos2d::CCPoint *)v27;\n        v46 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v30 + 96))(v30);\n        cocos2d::CCPoint::CCPoint(&v61, v46);\n        if ( v52 )\n        {\n          cocos2d::CCPoint::operator=((PlayerObject *)&v54, COERCE_FLOAT(&v61), v47, (bool)v52);\n          cocos2d::CCPoint::operator=((PlayerObject *)&v55, COERCE_FLOAT(&v61), v48, v49);\n        }\n        else\n        {\n          if ( v61.x < v54.x )\n            v54.x = v61.x;\n          if ( v61.x > v55.x )\n            v55.x = v61.x;\n          if ( v61.y < v54.y )\n            v54.y = v61.y;\n          if ( v61.y > v55.y )\n            v55.y = v61.y;\n        }\n        v27 = 0;\n      }\n    }\n    if ( v54.x != v55.x || v54.y != v55.y )\n    {\n      EditorUI::createUndoObject(a1, Transform, 0);\n      cocos2d::CCPoint::operator-(v56, &v55, &v54);\n      v32 = cocos2d::CCArray::count(a2);\n      v33 = 1;\n      cocos2d::CCPoint::operator*(v57, v56, 1.0 / (float)(unsigned int)(v32 - 1));\n      while ( v33 < cocos2d::CCArray::count(a2) - 1 )\n      {\n        v34 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, v33);\n        v35 = v34->getPosition(v34);\n        cocos2d::CCPoint::CCPoint(&v58, v35);\n        cocos2d::CCPoint::CCPoint(&v59);\n        v36 = (float)(int)v33;\n        if ( v50 )\n        {\n          x = v58.x;\n          y = v54.y + (float)(v36 * v57[1]);\n        }\n        else\n        {\n          y = v58.y;\n          x = v54.x + (float)(v36 * v57[0]);\n        }\n        cocos2d::CCPoint::CCPoint(&v61, x, y);\n        cocos2d::CCPoint::operator=((PlayerObject *)&v59, COERCE_FLOAT(&v61), v39, v40);\n        cocos2d::CCPoint::operator-(&v60, &v59, &v58);\n        if ( v34->m_objectID == 44 )\n        {\n          v41 = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, v34->m_linkedGroup);\n          if ( v41 )\n          {\n            v42 = 0;\n            while ( v42 < cocos2d::CCArray::count(v41) )\n            {\n              v43 = (GameObject *)cocos2d::CCArray::objectAtIndex(v41, v42++);\n              v53 = v43;\n              cocos2d::CCPoint::CCPoint(&v61, &v60);\n              LODWORD(v44.x) = &v61;\n              EditorUI::moveObject(a1, v53, v44);\n            }\n          }\n        }\n        else\n        {\n          cocos2d::CCPoint::operator-(&v61, &v59, &v58);\n          LODWORD(v45.x) = &v61;\n          EditorUI::moveObject(a1, v34, v45);\n        }\n        ++v33;\n      }\n    }\n  }\n}", "assembly": "; \n; EditorUI::alignObjects from 0x39d29c to 0x39d5da (830 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::onAlignX @ 0x3ff332\n; > EditorPauseLayer::onAlignY @ 0x3ff352\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x39D2A6)                ; +0x0, 0x39d29c\nPUSH.W          {R4-R11,LR}                                            ; +0x2, 0x39d29e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x39d2a2\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x39d2a4\nSUB             SP, SP, #0x5C                                          ; +0xa, 0x39d2a6\nMOV             R6, R0                                                 ; +0xc, 0x39d2a8\nMOV             R4, R1                                                 ; +0xe, 0x39d2aa\nSTR             R2, [SP,#0x5C+var_5C]                                  ; +0x10, 0x39d2ac\nLDR             R2, [R3]                                               ; +0x12, 0x39d2ae\nSTR             R3, [SP,#0x5C+var_54]                                  ; +0x14, 0x39d2b0\nSTR             R2, [SP,#0x5C+var_8]                                   ; +0x16, 0x39d2b2\nCMP             R1, #0                                                 ; +0x18, 0x39d2b4\nBEQ.W           loc_39D5C6                                             ; +0x1a, 0x39d2b6\nMOV             R0, R1; this                                           ; +0x1e, 0x39d2ba\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x20, 0x39d2bc\nCMP             R0, #2                                                 ; +0x24, 0x39d2c0\nBLS.W           loc_39D5C6                                             ; +0x26, 0x39d2c2\nMOV             R0, R4; this                                           ; +0x2a, 0x39d2c6\nMOVS            R5, #0                                                 ; +0x2c, 0x39d2c8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2e, 0x39d2ca\nBL              _ZN7cocos2d7CCArray18createWithCapacityEj; cocos2d::CCArray::createWithCapacity(uint) ; +0x32, 0x39d2ce\nMOV             R1, R4; cocos2d::CCArray *                             ; +0x36, 0x39d2d2\nBL              _ZN7cocos2d7CCArray19addObjectsFromArrayEPS0_; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray*) ; +0x38, 0x39d2d4\nBL              _ZN7cocos2d12CCDictionary6createEv; cocos2d::CCDictionary::create(void) ; +0x3c, 0x39d2d8\nMOV             R7, R0                                                 ; +0x40, 0x39d2dc\nMOV             R0, R4; this                                           ; +0x42, 0x39d2de\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x44, 0x39d2e0\nCMP             R5, R0                                                 ; +0x48, 0x39d2e4\nBCS             loc_39D328                                             ; +0x4a, 0x39d2e6\nMOV             R0, R4; this                                           ; +0x4c, 0x39d2e8\nMOV             R1, R5; unsigned int                                   ; +0x4e, 0x39d2ea\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x50, 0x39d2ec\nLDR.W           R3, [R0,#0x2DC]                                        ; +0x54, 0x39d2f0\nMOV             R8, R0                                                 ; +0x58, 0x39d2f4\nCMP             R3, #0                                                 ; +0x5a, 0x39d2f6\nBLE             loc_39D324                                             ; +0x5c, 0x39d2f8\nMOV             R0, R4; this                                           ; +0x5e, 0x39d2fa\nMOV             R1, R5; unsigned int                                   ; +0x60, 0x39d2fc\nMOVS            R2, #1; bool                                           ; +0x62, 0x39d2fe\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x64, 0x39d300\nMOV             R0, R7; this                                           ; +0x68, 0x39d304\nLDR.W           R1, [R8,#0x2DC]; int                                   ; +0x6a, 0x39d306\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x6e, 0x39d30a\nCMP             R0, #0                                                 ; +0x72, 0x39d30e\nBNE             loc_39D2DE                                             ; +0x74, 0x39d310\nBL              _ZN7cocos2d6CCNode6createEv; cocos2d::CCNode::create(void) ; +0x76, 0x39d312\nLDR.W           R2, [R8,#0x2DC]; int                                   ; +0x7a, 0x39d316\nMOV             R1, R0; cocos2d::CCObject *                            ; +0x7e, 0x39d31a\nMOV             R0, R7; this                                           ; +0x80, 0x39d31c\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEi; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,int) ; +0x82, 0x39d31e\nB               loc_39D2DE                                             ; +0x86, 0x39d322\nADDS            R5, #1                                                 ; +0x88, 0x39d324\nB               loc_39D2DE                                             ; +0x8a, 0x39d326\nMOV             R0, R7; this                                           ; +0x8c, 0x39d328\nLDR.W           R10, =(aCheckpoint0100 - 0x39D33A); \"checkpoint_01_001.png\" ; +0x8e, 0x39d32a\nBL              _ZN7cocos2d12CCDictionary7allKeysEv; cocos2d::CCDictionary::allKeys(void) ; +0x92, 0x39d32e\nADD.W           R8, SP, #0x5C+var_18                                   ; +0x96, 0x39d332\nADD             R10, PC; \"checkpoint_01_001.png\"                       ; +0x9a, 0x39d336\nMOVS            R5, #0                                                 ; +0x9c, 0x39d338\nMOV             R7, R0                                                 ; +0x9e, 0x39d33a\nMOV             R0, R7; this                                           ; +0xa0, 0x39d33c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xa2, 0x39d33e\nCMP             R5, R0                                                 ; +0xa6, 0x39d342\nBCS             loc_39D3A4                                             ; +0xa8, 0x39d344\nMOV             R1, R5; unsigned int                                   ; +0xaa, 0x39d346\nMOV             R0, R7; this                                           ; +0xac, 0x39d348\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xae, 0x39d34a\nLDR.W           R9, [R0,#0x34]                                         ; +0xb2, 0x39d34e\nLDR.W           R0, [R6,#0x340]; this                                  ; +0xb6, 0x39d352\nMOV             R1, R9; int                                            ; +0xba, 0x39d356\nBL              _ZN15GJBaseGameLayer14getStickyGroupEi; GJBaseGameLayer::getStickyGroup(int) ; +0xbc, 0x39d358\nMOV             R2, R0; cocos2d::CCArray *                             ; +0xc0, 0x39d35c\nCBZ             R0, loc_39D3A0                                         ; +0xc2, 0x39d35e\nMOV             R1, R6; cocos2d::CCArray *                             ; +0xc4, 0x39d360\nMOVS            R3, #1                                                 ; +0xc6, 0x39d362\nMOV             R0, R8; this                                           ; +0xc8, 0x39d364\nBL              _ZN8EditorUI14getGroupCenterEPN7cocos2d7CCArrayEb; EditorUI::getGroupCenter(cocos2d::CCArray *,bool) ; +0xca, 0x39d366\nMOV             R0, R10; this                                          ; +0xce, 0x39d36a\nBL              _ZN10GameObject15createWithFrameEPKc; GameObject::createWithFrame(char const*) ; +0xd0, 0x39d36c\nMOVS            R2, #0x2C ; ','                                        ; +0xd4, 0x39d370\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0xd6, 0x39d372\nSTR.W           R2, [R0,#0x374]                                        ; +0xd8, 0x39d374\nMOV             R11, R0                                                ; +0xdc, 0x39d378\nLDR             R2, [R0]                                               ; +0xde, 0x39d37a\nSTR.W           R9, [R0,#0x2DC]                                        ; +0xe0, 0x39d37c\nADD.W           R9, SP, #0x5C+var_10                                   ; +0xe4, 0x39d380\nLDR.W           R3, [R2,#0x2A4]                                        ; +0xe8, 0x39d384\nMOV             R0, R9; this                                           ; +0xec, 0x39d388\nSTR             R3, [SP,#0x5C+var_58]                                  ; +0xee, 0x39d38a\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xf0, 0x39d38c\nMOV             R0, R11                                                ; +0xf4, 0x39d390\nMOV             R1, R9                                                 ; +0xf6, 0x39d392\nLDR             R3, [SP,#0x5C+var_58]                                  ; +0xf8, 0x39d394\nBLX             R3                                                     ; +0xfa, 0x39d396\nMOV             R0, R4; this                                           ; +0xfc, 0x39d398\nMOV             R1, R11; cocos2d::CCObject *                           ; +0xfe, 0x39d39a\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x100, 0x39d39c\nADDS            R5, #1                                                 ; +0x104, 0x39d3a0\nB               loc_39D33C                                             ; +0x106, 0x39d3a2\nLDR             R3, [R4,#0x34]                                         ; +0x108, 0x39d3a4\nLDR             R2, [SP,#0x5C+var_5C]                                  ; +0x10a, 0x39d3a6\nLDR             R0, [R3,#0xC]; void *                                  ; +0x10c, 0x39d3a8\nLDR             R1, [R3]; size_t                                       ; +0x10e, 0x39d3aa\nCBZ             R2, loc_39D3B8                                         ; +0x110, 0x39d3ac\nLDR             R3, =(_Z10alignYSortPKvS0__ptr - 0x39D3B6)             ; +0x112, 0x39d3ae\nMOVS            R2, #4                                                 ; +0x114, 0x39d3b0\nADD             R3, PC; _Z10alignYSortPKvS0__ptr                       ; +0x116, 0x39d3b2\nLDR             R3, [R3]; alignYSort(void const*,void const*)          ; +0x118, 0x39d3b4\nB               loc_39D3C0                                             ; +0x11a, 0x39d3b6\nLDR             R3, =(_Z10alignXSortPKvS0__ptr - 0x39D3C0)             ; +0x11c, 0x39d3b8\nMOVS            R2, #4; size_t                                         ; +0x11e, 0x39d3ba\nADD             R3, PC; _Z10alignXSortPKvS0__ptr                       ; +0x120, 0x39d3bc\nLDR             R3, [R3]; alignXSort(void const*,void const*) ; int (*)(const void *, const void *) ; +0x122, 0x39d3be\nADD             R7, SP, #0x5C+var_48                                   ; +0x124, 0x39d3c0\nADD.W           R8, SP, #0x5C+var_40                                   ; +0x126, 0x39d3c2\nBLX             qsort                                                  ; +0x12a, 0x39d3c6\nMOV             R0, R7; this                                           ; +0x12e, 0x39d3ca\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x130, 0x39d3cc\nMOV             R0, R8; this                                           ; +0x134, 0x39d3d0\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x136, 0x39d3d2\nLDR             R2, [R4,#0x34]                                         ; +0x13a, 0x39d3d6\nLDR             R3, [R2]                                               ; +0x13c, 0x39d3d8\nCBNZ            R3, loc_39D3F0                                         ; +0x13e, 0x39d3da\nVLDR            S15, [SP,#0x5C+var_40]                                 ; +0x140, 0x39d3dc\nVLDR            S14, [SP,#0x5C+var_48]                                 ; +0x144, 0x39d3e0\nVCMP.F32        S14, S15                                               ; +0x148, 0x39d3e4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x14c, 0x39d3e8\nBEQ             loc_39D416                                             ; +0x150, 0x39d3ec\nB               loc_39D42A                                             ; +0x152, 0x39d3ee\nADD.W           R9, R3, #0x40000000                                    ; +0x154, 0x39d3f0\nLDR             R2, [R2,#0xC]                                          ; +0x158, 0x39d3f4\nADD.W           R9, R9, #0xFFFFFFFF                                    ; +0x15a, 0x39d3f6\nMOVS            R3, #1                                                 ; +0x15e, 0x39d3fa\nADD.W           R5, R2, R9,LSL#2                                       ; +0x160, 0x39d3fc\nADD.W           R9, SP, #0x5C+var_10                                   ; +0x164, 0x39d400\nMOV             R10, R2                                                ; +0x168, 0x39d404\nCMP             R10, R5                                                ; +0x16a, 0x39d406\nBHI             loc_39D3DC                                             ; +0x16c, 0x39d408\nLDR.W           R0, [R10],#4                                           ; +0x16e, 0x39d40a\nCMP             R0, #0                                                 ; +0x172, 0x39d40e\nBNE.W           loc_39D54C                                             ; +0x174, 0x39d410\nB               loc_39D3DC                                             ; +0x178, 0x39d414\nVLDR            S15, [SP,#0x5C+var_3C]                                 ; +0x17a, 0x39d416\nVLDR            S14, [SP,#0x5C+var_44]                                 ; +0x17e, 0x39d41a\nVCMP.F32        S14, S15                                               ; +0x182, 0x39d41e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x186, 0x39d422\nBEQ.W           loc_39D5C6                                             ; +0x18a, 0x39d426\nADD             R5, SP, #0x5C+var_38                                   ; +0x18e, 0x39d42a\nMOVS            R1, #5                                                 ; +0x190, 0x39d42c\nMOVS            R2, #0                                                 ; +0x192, 0x39d42e\nMOV             R0, R6                                                 ; +0x194, 0x39d430\nBL              _ZN8EditorUI16createUndoObjectE11UndoCommandb; EditorUI::createUndoObject(UndoCommand,bool) ; +0x196, 0x39d432\nMOV             R1, R8                                                 ; +0x19a, 0x39d436\nMOV             R2, R7                                                 ; +0x19c, 0x39d438\nMOV             R0, R5                                                 ; +0x19e, 0x39d43a\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x1a0, 0x39d43c\nMOV             R0, R4; this                                           ; +0x1a4, 0x39d440\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1a6, 0x39d442\nVMOV.F32        S14, #1.0                                              ; +0x1aa, 0x39d446\nMOV             R1, R5                                                 ; +0x1ae, 0x39d44a\nADD.W           R10, SP, #0x5C+var_28                                  ; +0x1b0, 0x39d44c\nADD.W           R8, SP, #0x5C+var_20                                   ; +0x1b4, 0x39d450\nADD             R5, SP, #0x5C+var_10                                   ; +0x1b8, 0x39d454\nMOVS            R7, #1                                                 ; +0x1ba, 0x39d456\nSUBS            R0, #1                                                 ; +0x1bc, 0x39d458\nVMOV            S15, R0                                                ; +0x1be, 0x39d45a\nADD             R0, SP, #0x5C+var_30                                   ; +0x1c2, 0x39d45e\nVCVT.F32.U32    S15, S15                                               ; +0x1c4, 0x39d460\nVDIV.F32        S15, S14, S15                                          ; +0x1c8, 0x39d464\nVMOV            R2, S15                                                ; +0x1cc, 0x39d468\nBL              _ZNK7cocos2d7CCPointmlEf; cocos2d::CCPoint::operator*(float) ; +0x1d0, 0x39d46c\nMOV             R0, R4; this                                           ; +0x1d4, 0x39d470\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1d6, 0x39d472\nSUBS            R0, #1                                                 ; +0x1da, 0x39d476\nCMP             R7, R0                                                 ; +0x1dc, 0x39d478\nBCS.W           loc_39D5C6                                             ; +0x1de, 0x39d47a\nMOV             R1, R7; unsigned int                                   ; +0x1e2, 0x39d47e\nMOV             R0, R4; this                                           ; +0x1e4, 0x39d480\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1e6, 0x39d482\nLDR             R3, [R0]                                               ; +0x1ea, 0x39d486\nMOV             R9, R0                                                 ; +0x1ec, 0x39d488\nLDR             R3, [R3,#0x60]                                         ; +0x1ee, 0x39d48a\nBLX             R3                                                     ; +0x1f0, 0x39d48c\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x1f2, 0x39d48e\nMOV             R0, R10; this                                          ; +0x1f4, 0x39d490\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1f6, 0x39d492\nMOV             R0, R8; this                                           ; +0x1fa, 0x39d496\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x1fc, 0x39d498\nLDR             R3, [SP,#0x5C+var_5C]                                  ; +0x200, 0x39d49c\nVMOV            S15, R7                                                ; +0x202, 0x39d49e\nMOV             R0, R5; this                                           ; +0x206, 0x39d4a2\nVCVT.F32.S32    S15, S15                                               ; +0x208, 0x39d4a4\nCBZ             R3, loc_39D4BE                                         ; +0x20c, 0x39d4a8\nVLDR            S14, [SP,#0x5C+var_44]                                 ; +0x20e, 0x39d4aa\nLDR             R1, [SP,#0x5C+var_28]                                  ; +0x212, 0x39d4ae\nVLDR            S13, [SP,#0x5C+var_2C]                                 ; +0x214, 0x39d4b0\nVMLA.F32        S14, S15, S13                                          ; +0x218, 0x39d4b4\nVMOV            R2, S14                                                ; +0x21c, 0x39d4b8\nB               loc_39D4D0                                             ; +0x220, 0x39d4bc\nVLDR            S14, [SP,#0x5C+var_48]                                 ; +0x222, 0x39d4be\nLDR             R2, [SP,#0x5C+var_24]; float                           ; +0x226, 0x39d4c2\nVLDR            S13, [SP,#0x5C+var_30]                                 ; +0x228, 0x39d4c4\nVMLA.F32        S14, S15, S13                                          ; +0x22c, 0x39d4c8\nVMOV            R1, S14; float                                         ; +0x230, 0x39d4cc\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x234, 0x39d4d0\nMOV             R1, R5                                                 ; +0x238, 0x39d4d4\nMOV             R0, R8                                                 ; +0x23a, 0x39d4d6\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x23c, 0x39d4d8\nADD             R3, SP, #0x5C+var_18                                   ; +0x240, 0x39d4dc\nMOV             R1, R8                                                 ; +0x242, 0x39d4de\nMOV             R2, R10                                                ; +0x244, 0x39d4e0\nMOV             R0, R3                                                 ; +0x246, 0x39d4e2\nSTR             R3, [SP,#0x5C+var_58]                                  ; +0x248, 0x39d4e4\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x24a, 0x39d4e6\nLDR.W           R3, [R9,#0x374]                                        ; +0x24e, 0x39d4ea\nCMP             R3, #0x2C ; ','                                        ; +0x252, 0x39d4ee\nBNE             loc_39D534                                             ; +0x254, 0x39d4f0\nLDR.W           R1, [R9,#0x2DC]; int                                   ; +0x256, 0x39d4f2\nLDR.W           R0, [R6,#0x340]; this                                  ; +0x25a, 0x39d4f6\nBL              _ZN15GJBaseGameLayer14getStickyGroupEi; GJBaseGameLayer::getStickyGroup(int) ; +0x25e, 0x39d4fa\nMOV             R9, R0                                                 ; +0x262, 0x39d4fe\nCBZ             R0, loc_39D548                                         ; +0x264, 0x39d500\nMOV.W           R11, #0                                                ; +0x266, 0x39d502\nMOV             R0, R9; this                                           ; +0x26a, 0x39d506\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26c, 0x39d508\nCMP             R11, R0                                                ; +0x270, 0x39d50c\nBCS             loc_39D548                                             ; +0x272, 0x39d50e\nMOV             R1, R11; unsigned int                                  ; +0x274, 0x39d510\nMOV             R0, R9; this                                           ; +0x276, 0x39d512\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x278, 0x39d514\nLDR             R1, [SP,#0x5C+var_58]; cocos2d::CCPoint *              ; +0x27c, 0x39d518\nADD.W           R11, R11, #1                                           ; +0x27e, 0x39d51a\nSTR             R0, [SP,#0x5C+var_50]                                  ; +0x282, 0x39d51e\nMOV             R0, R5; this                                           ; +0x284, 0x39d520\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x286, 0x39d522\nLDR             R2, [SP,#0x5C+var_50]                                  ; +0x28a, 0x39d526\nMOV             R0, R6                                                 ; +0x28c, 0x39d528\nMOV             R1, R2                                                 ; +0x28e, 0x39d52a\nMOV             R2, R5                                                 ; +0x290, 0x39d52c\nBL              _ZN8EditorUI10moveObjectEP10GameObjectN7cocos2d7CCPointE; EditorUI::moveObject(GameObject *,cocos2d::CCPoint) ; +0x292, 0x39d52e\nB               loc_39D506                                             ; +0x296, 0x39d532\nMOV             R0, R5                                                 ; +0x298, 0x39d534\nMOV             R1, R8                                                 ; +0x29a, 0x39d536\nMOV             R2, R10                                                ; +0x29c, 0x39d538\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x29e, 0x39d53a\nMOV             R0, R6                                                 ; +0x2a2, 0x39d53e\nMOV             R1, R9                                                 ; +0x2a4, 0x39d540\nMOV             R2, R5                                                 ; +0x2a6, 0x39d542\nBL              _ZN8EditorUI10moveObjectEP10GameObjectN7cocos2d7CCPointE; EditorUI::moveObject(GameObject *,cocos2d::CCPoint) ; +0x2a8, 0x39d544\nADDS            R7, #1                                                 ; +0x2ac, 0x39d548\nB               loc_39D470                                             ; +0x2ae, 0x39d54a\nLDR             R2, [R0]                                               ; +0x2b0, 0x39d54c\nSTR             R3, [SP,#0x5C+var_58]                                  ; +0x2b2, 0x39d54e\nLDR             R2, [R2,#0x60]                                         ; +0x2b4, 0x39d550\nBLX             R2                                                     ; +0x2b6, 0x39d552\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x2b8, 0x39d554\nMOV             R0, R9; this                                           ; +0x2ba, 0x39d556\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x2bc, 0x39d558\nLDR             R3, [SP,#0x5C+var_58]                                  ; +0x2c0, 0x39d55c\nCBZ             R3, loc_39D572                                         ; +0x2c2, 0x39d55e\nMOV             R1, R9                                                 ; +0x2c4, 0x39d560\nMOV             R0, R7                                                 ; +0x2c6, 0x39d562\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x2c8, 0x39d564\nMOV             R0, R8                                                 ; +0x2cc, 0x39d568\nMOV             R1, R9                                                 ; +0x2ce, 0x39d56a\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x2d0, 0x39d56c\nB               loc_39D5C2                                             ; +0x2d4, 0x39d570\nVLDR            S15, [SP,#0x5C+var_10]                                 ; +0x2d6, 0x39d572\nVLDR            S14, [SP,#0x5C+var_48]                                 ; +0x2da, 0x39d576\nVCMPE.F32       S15, S14                                               ; +0x2de, 0x39d57a\nVLDR            S14, [SP,#0x5C+var_40]                                 ; +0x2e2, 0x39d57e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2e6, 0x39d582\nIT MI                                                                  ; +0x2ea, 0x39d586\nVSTRMI          S15, [SP,#0x5C+var_48]                                 ; +0x2ec, 0x39d588\nVCMPE.F32       S15, S14                                               ; +0x2f0, 0x39d58c\nVLDR            S14, [SP,#0x5C+var_44]                                 ; +0x2f4, 0x39d590\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2f8, 0x39d594\nIT GT                                                                  ; +0x2fc, 0x39d598\nVSTRGT          S15, [SP,#0x5C+var_40]                                 ; +0x2fe, 0x39d59a\nVLDR            S15, [SP,#0x5C+var_C]                                  ; +0x302, 0x39d59e\nVCMPE.F32       S15, S14                                               ; +0x306, 0x39d5a2\nVLDR            S14, [SP,#0x5C+var_3C]                                 ; +0x30a, 0x39d5a6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x30e, 0x39d5aa\nIT MI                                                                  ; +0x312, 0x39d5ae\nVSTRMI          S15, [SP,#0x5C+var_44]                                 ; +0x314, 0x39d5b0\nVCMPE.F32       S15, S14                                               ; +0x318, 0x39d5b4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x31c, 0x39d5b8\nIT GT                                                                  ; +0x320, 0x39d5bc\nVSTRGT          S15, [SP,#0x5C+var_3C]                                 ; +0x322, 0x39d5be\nMOVS            R3, #0                                                 ; +0x326, 0x39d5c2\nB               loc_39D406                                             ; +0x328, 0x39d5c4\nLDR             R3, [SP,#0x5C+var_54]                                  ; +0x32a, 0x39d5c6\nLDR             R2, [SP,#0x5C+var_8]                                   ; +0x32c, 0x39d5c8\nLDR             R3, [R3]                                               ; +0x32e, 0x39d5ca\nCMP             R2, R3                                                 ; +0x330, 0x39d5cc\nBEQ             loc_39D5D4                                             ; +0x332, 0x39d5ce\nBLX             __stack_chk_fail                                       ; +0x334, 0x39d5d0\nADD             SP, SP, #0x5C ; '\\'                                    ; +0x338, 0x39d5d4\nPOP.W           {R4-R11,PC}                                            ; +0x33a, 0x39d5d6", "xrefs": ["EditorPauseLayer::onAlignX @ 0x3ff332", "EditorPauseLayer::onAlignY @ 0x3ff352"], "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"}