{"type": "func", "start": 4739852, "end": 4740814, "name": "EditorUI::createLoop", "pseudocode": "// \n// EditorUI::createLoop from 0x48530c to 0x4856ce (962 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f1ffa\n// > EditorCommandsPopup::onCommand @ 0x77a778\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:25 +0000\n// \n\ncocos2d::CCArray **__fastcall EditorUI::createLoop(cocos2d::CCArray **this)\n{\n  int v1; // r4\n  cocos2d::CCArray *v2; // r0\n  cocos2d::CCObject *v3; // r1\n  size_t **v4; // r6\n  unsigned int v5; // r5\n  GameObject *v6; // r0\n  float v7; // s16\n  unsigned int v8; // r8\n  float v9; // s17\n  cocos2d::CCArray *v10; // r0\n  cocos2d::CCArray *v11; // r7\n  cocos2d::CCObject *v12; // r0\n  cocos2d::CCObject *v13; // r5\n  float v14; // s18\n  float v15; // s17\n  cocos2d::CCArray *v16; // r0\n  cocos2d::CCArray *Object; // r11\n  int v18; // r0\n  float v19; // s16\n  cocos2d::CCArray *v20; // r0\n  cocos2d::CCObject *v21; // r1\n  LevelEditorLayer *v22; // r0\n  float v23; // s18\n  GameObject *v24; // r5\n  int v25; // r8\n  unsigned int v26; // r5\n  float v27; // r1\n  float v28; // s17\n  int (__fastcall *v29)(int, float *, _DWORD, _DWORD, _DWORD, _DWORD); // r9\n  float v30; // s20\n  cocos2d::CCArray *v31; // r0\n  float v32; // s16\n  int v33; // r9\n  cocos2d::CCArray *v34; // r0\n  int v35; // r0\n  int v36; // r10\n  float (__fastcall *v37)(int, float *, _DWORD, _DWORD, _DWORD, _DWORD); // r8\n  float v38; // s19\n  int v39; // r10\n  unsigned int i; // r6\n  GameObject *v41; // r11\n  LevelEditorLayer *v42; // r0\n  GameObject *v43; // r11\n  cocos2d::CCArray *v44; // r11\n  int NextFreeGroupID; // [sp+Ch] [bp-50h]\n  cocos2d::CCArray *v46; // [sp+10h] [bp-4Ch]\n  cocos2d::CCArray *v47; // [sp+18h] [bp-44h]\n  int v48; // [sp+1Ch] [bp-40h]\n  _BYTE v49[8]; // [sp+28h] [bp-34h] BYREF\n  _BYTE v50[8]; // [sp+30h] [bp-2Ch] BYREF\n  float v51; // [sp+38h] [bp-24h] BYREF\n  float v52; // [sp+3Ch] [bp-20h]\n  float v53; // [sp+40h] [bp-1Ch] BYREF\n  int v54; // [sp+44h] [bp-18h]\n  int v55; // [sp+48h] [bp-14h]\n  int v56; // [sp+4Ch] [bp-10h]\n  int v57; // [sp+50h] [bp-Ch]\n\n  v1 = (int)this;\n  if ( *(this + 249) || (this = (cocos2d::CCArray **)cocos2d::CCArray::count(*(this + 167))) != nullptr )\n  {\n    v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)this);\n    v3 = *(cocos2d::CCObject **)(v1 + 996);\n    v4 = (size_t **)v2;\n    if ( v3 )\n      cocos2d::CCArray::addObject(v2, v3);\n    else\n      cocos2d::CCArray::addObjectsFromArray(v2, *(cocos2d::CCArray **)(v1 + 668));\n    v5 = 0;\n    while ( v5 < cocos2d::CCArray::count((cocos2d::CCArray *)v4) )\n    {\n      v6 = (GameObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v4, v5);\n      if ( GameObject::isSpawnableTrigger(v6) )\n        ++v5;\n      else\n        cocos2d::CCArray::removeObjectAtIndex((cocos2d::CCArray *)v4, v5, 1);\n    }\n    v7 = 0.0;\n    v8 = 0;\n    v9 = 0.0;\n    qsort((void *)v4[13][3], *v4[13], 4u, alignXSort);\n    v11 = (cocos2d::CCArray *)cocos2d::CCArray::create(v10);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49);\n    while ( v8 < cocos2d::CCArray::count((cocos2d::CCArray *)v4) )\n    {\n      v12 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v4, v8);\n      v13 = v12;\n      if ( !v8 )\n      {\n        (*(void (__fastcall **)(float *, cocos2d::CCObject *))(*(_DWORD *)v12 + 680))(&v53, v12);\n        cocos2d::CCPoint::operator=(v49, &v53);\n      }\n      *((_BYTE *)v13 + 1293) = 1;\n      *((_BYTE *)v13 + 1484) = 1;\n      (*(void (__fastcall **)(float *, cocos2d::CCObject *))(*(_DWORD *)v13 + 680))(&v51, v13);\n      v14 = v51;\n      if ( v51 >= v9 && v9 != 0.0 )\n        v14 = v9;\n      v15 = v52;\n      if ( v52 <= v7 && v7 != 0.0 )\n        v15 = v7;\n      v16 = (cocos2d::CCArray *)cocos2d::CCArray::count(v11);\n      if ( v16\n        && (Object = (cocos2d::CCArray *)cocos2d::CCArray::lastObject(v11),\n            v18 = cocos2d::CCArray::objectAtIndex(Object, 0),\n            v19 = v51,\n            v16 = (cocos2d::CCArray *)(*(int (__fastcall **)(float *, int))(*(_DWORD *)v18 + 680))(&v53, v18),\n            (float)(v19 - v53) <= 0.1) )\n      {\n        v20 = Object;\n        v21 = v13;\n      }\n      else\n      {\n        v44 = (cocos2d::CCArray *)cocos2d::CCArray::create(v16);\n        cocos2d::CCArray::addObject(v44, v13);\n        v20 = v11;\n        v21 = v44;\n      }\n      v7 = v15;\n      cocos2d::CCArray::addObject(v20, v21);\n      ++v8;\n      v9 = v14;\n    }\n    v22 = *(LevelEditorLayer **)(v1 + 944);\n    v53 = 0.0;\n    v54 = 0;\n    v55 = 0;\n    v56 = 0;\n    v57 = 1065353216;\n    NextFreeGroupID = LevelEditorLayer::getNextFreeGroupID(v22, (int)&v53);\n    std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table((int)&v53);\n    v23 = 0.0;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v9, v7 + 90.0);\n    v24 = EditorUI::createObject(v1, (GameObject *)&stru_4EC.st_size, (const cocos2d::CCPoint *)&v53);\n    EffectGameObject::setTargetID(v24, NextFreeGroupID);\n    LevelEditorLayer::refreshSpecial(*(LevelEditorLayer **)(v1 + 944), v24);\n    v25 = *(_DWORD *)(v1 + 944);\n    v26 = 0;\n    v27 = v9;\n    v28 = 0.0;\n    v29 = *(int (__fastcall **)(int, float *, _DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)v25 + 704);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v27, 0.0);\n    v30 = COERCE_FLOAT(v29(v25, &v53, 0, 0, 0, 0));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50);\n    v31 = (cocos2d::CCArray *)rand();\n    v32 = v7 + 60.0;\n    v33 = NextFreeGroupID;\n    v47 = (cocos2d::CCArray *)cocos2d::CCArray::create(v31);\n    while ( v26 < cocos2d::CCArray::count(v11) )\n    {\n      v48 = cocos2d::CCArray::count(v11) - 1;\n      v46 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(v11, v26);\n      if ( v26 >= cocos2d::CCArray::count(v11) - 1 )\n      {\n        v38 = v28;\n      }\n      else\n      {\n        v34 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(v11, v26 + 1);\n        v35 = cocos2d::CCArray::objectAtIndex(v34, 0);\n        (*(void (__fastcall **)(float *, int))(*(_DWORD *)v35 + 680))(&v53, v35);\n        v36 = *(_DWORD *)(v1 + 944);\n        v37 = *(float (__fastcall **)(int, float *, _DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)v36 + 704);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v53, 0.0);\n        v38 = v37(v36, &v53, 0, 0, 0, 0) - v30;\n      }\n      v39 = v33;\n      for ( i = 0; i < cocos2d::CCArray::count(v46); ++i )\n      {\n        v41 = (GameObject *)cocos2d::CCArray::objectAtIndex(v46, i);\n        LevelEditorLayer::addObjectToGroup(*(LevelEditorLayer **)(v1 + 944), v41, v33);\n        if ( !i )\n        {\n          if ( v26 == v48 )\n          {\n            v28 = v38;\n            v39 = NextFreeGroupID;\n          }\n          else\n          {\n            v42 = *(LevelEditorLayer **)(v1 + 944);\n            v53 = 0.0;\n            v54 = 0;\n            v55 = 0;\n            v56 = 0;\n            v57 = 1065353216;\n            v39 = LevelEditorLayer::getNextFreeGroupID(v42, (int)&v53);\n            std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table((int)&v53);\n            v28 = v38 - v23;\n          }\n          (*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)v41 + 680))(&v51, v41);\n          cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v51, v32);\n          cocos2d::CCPoint::operator=(v50, &v53);\n          cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, (const cocos2d::CCPoint *)v50);\n          v43 = EditorUI::createObject(v1, (GameObject *)&stru_4EC.st_size, (const cocos2d::CCPoint *)&v53);\n          cocos2d::CCArray::addObject(v47, v43);\n          LevelEditorLayer::addObjectToGroup(*(LevelEditorLayer **)(v1 + 944), v43, v33);\n          EffectGameObject::setTargetID(v43, v39);\n          *((float *)v43 + 422) = v28;\n          *((_BYTE *)v43 + 1293) = 1;\n          *((_BYTE *)v43 + 1484) = 1;\n          LevelEditorLayer::refreshSpecial(*(LevelEditorLayer **)(v1 + 944), v43);\n          v23 = v23 + v28;\n        }\n      }\n      ++v26;\n      v33 = v39;\n    }\n    return (cocos2d::CCArray **)LevelEditorLayer::dirtifyTriggers(*(_BYTE **)(v1 + 944));\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::createLoop from 0x48530c to 0x4856ce (962 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f1ffa\n; > EditorCommandsPopup::onCommand @ 0x77a778\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:25 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x48530c\nMOV             R4, R0                                                 ; +0x4, 0x485310\nVPUSH           {D8-D10}                                               ; +0x6, 0x485312\nLDR             R3, =(__stack_chk_guard_ptr - 0x48531C)                ; +0xa, 0x485316\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xc, 0x485318\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xe, 0x48531a\nSUB             SP, SP, #0x5C                                          ; +0x10, 0x48531c\nLDR             R2, [R3]                                               ; +0x12, 0x48531e\nSTR             R3, [SP,#0x5C+var_3C]                                  ; +0x14, 0x485320\nSTR             R2, [SP,#0x5C+var_8]                                   ; +0x16, 0x485322\nLDR.W           R2, [R0,#0x3E4]                                        ; +0x18, 0x485324\nCBNZ            R2, loc_485338                                         ; +0x1c, 0x485328\nLDR.W           R0, [R0,#0x29C]; this                                  ; +0x1e, 0x48532a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x22, 0x48532e\nCMP             R0, #0                                                 ; +0x26, 0x485332\nBEQ.W           loc_4856B6                                             ; +0x28, 0x485334\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x2c, 0x485338\nLDR.W           R1, [R4,#0x3E4]; cocos2d::CCObject *                   ; +0x30, 0x48533c\nMOV             R6, R0                                                 ; +0x34, 0x485340\nCBZ             R1, loc_48534C                                         ; +0x36, 0x485342\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x38, 0x485344\nMOVS            R5, #0                                                 ; +0x3c, 0x485348\nB               loc_48536E                                             ; +0x3e, 0x48534a\nLDR.W           R1, [R4,#0x29C]; cocos2d::CCArray *                    ; +0x40, 0x48534c\nBL              _ZN7cocos2d7CCArray19addObjectsFromArrayEPS0_; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray*) ; +0x44, 0x485350\nB               loc_485348                                             ; +0x48, 0x485354\nMOV             R1, R5; unsigned int                                   ; +0x4a, 0x485356\nMOV             R0, R6; this                                           ; +0x4c, 0x485358\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4e, 0x48535a\nBL              _ZN10GameObject18isSpawnableTriggerEv; GameObject::isSpawnableTrigger(void) ; +0x52, 0x48535e\nCBNZ            R0, loc_48537A                                         ; +0x56, 0x485362\nMOV             R0, R6; this                                           ; +0x58, 0x485364\nMOV             R1, R5; unsigned int                                   ; +0x5a, 0x485366\nMOVS            R2, #1; bool                                           ; +0x5c, 0x485368\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x5e, 0x48536a\nMOV             R0, R6; this                                           ; +0x62, 0x48536e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x64, 0x485370\nCMP             R5, R0                                                 ; +0x68, 0x485374\nBCC             loc_485356                                             ; +0x6a, 0x485376\nB               loc_48537E                                             ; +0x6c, 0x485378\nADDS            R5, #1                                                 ; +0x6e, 0x48537a\nB               loc_48536E                                             ; +0x70, 0x48537c\nLDR             R3, [R6,#0x34]                                         ; +0x72, 0x48537e\nMOVS            R2, #4; size_t                                         ; +0x74, 0x485380\nADD.W           R10, SP, #0x5C+var_34                                  ; +0x76, 0x485382\nVLDR            S16, =0.0                                              ; +0x7a, 0x485386\nADD.W           R9, SP, #0x5C+var_1C                                   ; +0x7e, 0x48538a\nMOV.W           R8, #0                                                 ; +0x82, 0x48538e\nLDR             R1, [R3]; size_t                                       ; +0x86, 0x485392\nLDR             R0, [R3,#0xC]; void *                                  ; +0x88, 0x485394\nLDR             R3, =(_Z10alignXSortPKvS0__ptr - 0x4853A4)             ; +0x8a, 0x485396\nVMOV.F32        S17, S16                                               ; +0x8c, 0x485398\nVLDR            S19, =0.1                                              ; +0x90, 0x48539c\nADD             R3, PC; _Z10alignXSortPKvS0__ptr                       ; +0x94, 0x4853a0\nLDR             R3, [R3]; alignXSort(void const*,void const*) ; int (*)(const void *, const void *) ; +0x96, 0x4853a2\nBLX             qsort                                                  ; +0x98, 0x4853a4\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x9c, 0x4853a8\nMOV             R7, R0                                                 ; +0xa0, 0x4853ac\nMOV             R0, R10; this                                          ; +0xa2, 0x4853ae\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0xa4, 0x4853b0\nMOV             R0, R6; this                                           ; +0xa8, 0x4853b4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xaa, 0x4853b6\nCMP             R8, R0                                                 ; +0xae, 0x4853ba\nBCS             loc_485484                                             ; +0xb0, 0x4853bc\nMOV             R0, R6; this                                           ; +0xb2, 0x4853be\nMOV             R1, R8; unsigned int                                   ; +0xb4, 0x4853c0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xb6, 0x4853c2\nMOV             R5, R0                                                 ; +0xba, 0x4853c6\nCMP.W           R8, #0                                                 ; +0xbc, 0x4853c8\nBNE             loc_4853E2                                             ; +0xc0, 0x4853cc\nLDR             R3, [R0]                                               ; +0xc2, 0x4853ce\nMOV             R1, R5                                                 ; +0xc4, 0x4853d0\nMOV             R0, R9                                                 ; +0xc6, 0x4853d2\nLDR.W           R3, [R3,#0x2A8]                                        ; +0xc8, 0x4853d4\nBLX             R3                                                     ; +0xcc, 0x4853d8\nMOV             R0, R10                                                ; +0xce, 0x4853da\nMOV             R1, R9                                                 ; +0xd0, 0x4853dc\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xd2, 0x4853de\nMOVS            R3, #1                                                 ; +0xd6, 0x4853e2\nSTRB.W          R3, [R5,#0x50D]                                        ; +0xd8, 0x4853e4\nSTRB.W          R3, [R5,#0x5CC]                                        ; +0xdc, 0x4853e8\nADD             R0, SP, #0x5C+var_24                                   ; +0xe0, 0x4853ec\nLDR             R3, [R5]                                               ; +0xe2, 0x4853ee\nMOV             R1, R5                                                 ; +0xe4, 0x4853f0\nLDR.W           R3, [R3,#0x2A8]                                        ; +0xe6, 0x4853f2\nBLX             R3                                                     ; +0xea, 0x4853f6\nVLDR            S18, [SP,#0x5C+var_24]                                 ; +0xec, 0x4853f8\nVCMPE.F32       S18, S17                                               ; +0xf0, 0x4853fc\nVMRS            APSR_nzcv, FPSCR                                       ; +0xf4, 0x485400\nBMI             loc_485414                                             ; +0xf8, 0x485404\nVCMP.F32        S17, #0.0                                              ; +0xfa, 0x485406\nVMRS            APSR_nzcv, FPSCR                                       ; +0xfe, 0x48540a\nIT NE                                                                  ; +0x102, 0x48540e\nVMOVNE.F32      S18, S17                                               ; +0x104, 0x485410\nVLDR            S17, [SP,#0x5C+var_20]                                 ; +0x108, 0x485414\nVCMPE.F32       S17, S16                                               ; +0x10c, 0x485418\nVMRS            APSR_nzcv, FPSCR                                       ; +0x110, 0x48541c\nBGT             loc_485430                                             ; +0x114, 0x485420\nVCMP.F32        S16, #0.0                                              ; +0x116, 0x485422\nVMRS            APSR_nzcv, FPSCR                                       ; +0x11a, 0x485426\nIT NE                                                                  ; +0x11e, 0x48542a\nVMOVNE.F32      S17, S16                                               ; +0x120, 0x48542c\nMOV             R0, R7; this                                           ; +0x124, 0x485430\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x126, 0x485432\nCMP             R0, #0                                                 ; +0x12a, 0x485436\nBEQ.W           loc_4856A4                                             ; +0x12c, 0x485438\nMOV             R0, R7; this                                           ; +0x130, 0x48543c\nBL              _ZN7cocos2d7CCArray10lastObjectEv; cocos2d::CCArray::lastObject(void) ; +0x132, 0x48543e\nMOVS            R1, #0; unsigned int                                   ; +0x136, 0x485442\nMOV             R11, R0                                                ; +0x138, 0x485444\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x13a, 0x485446\nVLDR            S16, [SP,#0x5C+var_24]                                 ; +0x13e, 0x48544a\nLDR             R3, [R0]                                               ; +0x142, 0x48544e\nMOV             R1, R0                                                 ; +0x144, 0x485450\nMOV             R0, R9                                                 ; +0x146, 0x485452\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x148, 0x485454\nBLX             R3                                                     ; +0x14c, 0x485458\nVLDR            S15, [SP,#0x5C+var_1C]                                 ; +0x14e, 0x48545a\nVSUB.F32        S16, S16, S15                                          ; +0x152, 0x48545e\nVCMPE.F32       S16, S19                                               ; +0x156, 0x485462\nVMRS            APSR_nzcv, FPSCR                                       ; +0x15a, 0x485466\nBHI.W           loc_4856A4                                             ; +0x15e, 0x48546a\nMOV             R0, R11; this                                          ; +0x162, 0x48546e\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x164, 0x485470\nVMOV.F32        S16, S17                                               ; +0x166, 0x485472\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x16a, 0x485476\nADD.W           R8, R8, #1                                             ; +0x16e, 0x48547a\nVMOV.F32        S17, S18                                               ; +0x172, 0x48547e\nB               loc_4853B4                                             ; +0x176, 0x485482\nADD             R6, SP, #0x5C+var_1C                                   ; +0x178, 0x485484\nLDR.W           R0, [R4,#0x3B0]                                        ; +0x17a, 0x485486\nMOVS            R3, #0                                                 ; +0x17e, 0x48548a\nSTR             R3, [SP,#0x5C+var_1C]                                  ; +0x180, 0x48548c\nMOV             R1, R6                                                 ; +0x182, 0x48548e\nSTR             R3, [SP,#0x5C+var_18]                                  ; +0x184, 0x485490\nSTR             R3, [SP,#0x5C+var_14]                                  ; +0x186, 0x485492\nSTR             R3, [SP,#0x5C+var_10]                                  ; +0x188, 0x485494\nMOV.W           R3, #0x3F800000                                        ; +0x18a, 0x485496\nSTR             R3, [SP,#0x5C+var_C]                                   ; +0x18e, 0x48549a\nBL              _ZN16LevelEditorLayer18getNextFreeGroupIDERKNSt6__ndk113unordered_setIiNS0_4hashIiEENS0_8equal_toIiEENS0_9allocatorIiEEEE; LevelEditorLayer::getNextFreeGroupID(std::unordered_set<int> const&) ; +0x190, 0x48549c\nSTR             R0, [SP,#0x5C+var_50]                                  ; +0x194, 0x4854a0\nMOV             R0, R6                                                 ; +0x196, 0x4854a2\nBL              _ZNSt6__ndk112__hash_tableIiNS_4hashIiEENS_8equal_toIiEENS_9allocatorIiEEED2Ev; std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table() ; +0x198, 0x4854a4\nVLDR            S15, =90.0                                             ; +0x19c, 0x4854a8\nMOV             R0, R6; this                                           ; +0x1a0, 0x4854ac\nVMOV            R1, S17; float                                         ; +0x1a2, 0x4854ae\nVADD.F32        S15, S16, S15                                          ; +0x1a6, 0x4854b2\nVLDR            S18, =0.0                                              ; +0x1aa, 0x4854b6\nVMOV            R2, S15; float                                         ; +0x1ae, 0x4854ba\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1b2, 0x4854be\nMOV             R2, R6                                                 ; +0x1b6, 0x4854c2\nMOVW            R1, #0x4F4                                             ; +0x1b8, 0x4854c4\nMOV             R0, R4                                                 ; +0x1bc, 0x4854c8\nBL              _ZN8EditorUI12createObjectEiN7cocos2d7CCPointE; EditorUI::createObject(int,cocos2d::CCPoint) ; +0x1be, 0x4854ca\nLDR             R1, [SP,#0x5C+var_50]; int                             ; +0x1c2, 0x4854ce\nMOV             R5, R0                                                 ; +0x1c4, 0x4854d0\nBL              _ZN16EffectGameObject11setTargetIDEi; EffectGameObject::setTargetID(int) ; +0x1c6, 0x4854d2\nMOV             R1, R5; GameObject *                                   ; +0x1ca, 0x4854d6\nLDR.W           R0, [R4,#0x3B0]; this                                  ; +0x1cc, 0x4854d8\nBL              _ZN16LevelEditorLayer14refreshSpecialEP10GameObject; LevelEditorLayer::refreshSpecial(GameObject *) ; +0x1d0, 0x4854dc\nLDR.W           R8, [R4,#0x3B0]                                        ; +0x1d4, 0x4854e0\nMOVS            R5, #0                                                 ; +0x1d8, 0x4854e4\nVMOV            R1, S17; float                                         ; +0x1da, 0x4854e6\nMOVS            R2, #0; float                                          ; +0x1de, 0x4854ea\nMOV             R0, R6; this                                           ; +0x1e0, 0x4854ec\nLDR.W           R3, [R8]                                               ; +0x1e2, 0x4854ee\nVMOV.F32        S17, S18                                               ; +0x1e6, 0x4854f2\nLDR.W           R9, [R3,#0x2C0]                                        ; +0x1ea, 0x4854f6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1ee, 0x4854fa\nMOV             R3, R5                                                 ; +0x1f2, 0x4854fe\nMOV             R1, R6                                                 ; +0x1f4, 0x485500\nMOV             R2, R5                                                 ; +0x1f6, 0x485502\nSTR             R5, [SP,#0x5C+var_5C]                                  ; +0x1f8, 0x485504\nSTR             R5, [SP,#0x5C+var_58]                                  ; +0x1fa, 0x485506\nMOV             R0, R8                                                 ; +0x1fc, 0x485508\nBLX             R9                                                     ; +0x1fe, 0x48550a\nVMOV            S20, R0                                                ; +0x200, 0x48550c\nADD             R0, SP, #0x5C+var_2C; this                             ; +0x204, 0x485510\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x206, 0x485512\nBLX             rand                                                   ; +0x20a, 0x485516\nVLDR            S15, =60.0                                             ; +0x20e, 0x48551a\nVADD.F32        S16, S16, S15                                          ; +0x212, 0x48551e\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x216, 0x485522\nLDR.W           R9, [SP,#0x5C+var_50]                                  ; +0x21a, 0x485526\nADD             R3, SP, #0x5C+var_24                                   ; +0x21e, 0x48552a\nSTR             R3, [SP,#0x5C+var_38]                                  ; +0x220, 0x48552c\nSTR             R0, [SP,#0x5C+var_44]                                  ; +0x222, 0x48552e\nMOV             R0, R7; this                                           ; +0x224, 0x485530\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x226, 0x485532\nCMP             R5, R0                                                 ; +0x22a, 0x485536\nBCS.W           loc_48568C                                             ; +0x22c, 0x485538\nMOV             R0, R7; this                                           ; +0x230, 0x48553c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x232, 0x48553e\nMOV             R1, R5; unsigned int                                   ; +0x236, 0x485542\nSUBS            R3, R0, #1                                             ; +0x238, 0x485544\nMOV             R0, R7; this                                           ; +0x23a, 0x485546\nSTR             R3, [SP,#0x5C+var_40]                                  ; +0x23c, 0x485548\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x23e, 0x48554a\nSTR             R0, [SP,#0x5C+var_4C]                                  ; +0x242, 0x48554e\nMOV             R0, R7; this                                           ; +0x244, 0x485550\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x246, 0x485552\nSUBS            R0, #1                                                 ; +0x24a, 0x485556\nCMP             R5, R0                                                 ; +0x24c, 0x485558\nBCS             loc_4855A6                                             ; +0x24e, 0x48555a\nADDS            R1, R5, #1; unsigned int                               ; +0x250, 0x48555c\nMOV             R0, R7; this                                           ; +0x252, 0x48555e\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x254, 0x485560\nMOVS            R1, #0; unsigned int                                   ; +0x258, 0x485564\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x25a, 0x485566\nADD             R6, SP, #0x5C+var_1C                                   ; +0x25e, 0x48556a\nLDR             R3, [R0]                                               ; +0x260, 0x48556c\nMOV             R1, R0                                                 ; +0x262, 0x48556e\nMOV             R0, R6                                                 ; +0x264, 0x485570\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x266, 0x485572\nBLX             R3                                                     ; +0x26a, 0x485576\nLDR.W           R10, [R4,#0x3B0]                                       ; +0x26c, 0x485578\nLDR             R1, [SP,#0x5C+var_1C]; float                           ; +0x270, 0x48557c\nMOVS            R2, #0; float                                          ; +0x272, 0x48557e\nMOV             R0, R6; this                                           ; +0x274, 0x485580\nLDR.W           R3, [R10]                                              ; +0x276, 0x485582\nLDR.W           R8, [R3,#0x2C0]                                        ; +0x27a, 0x485586\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x27e, 0x48558a\nMOVS            R2, #0                                                 ; +0x282, 0x48558e\nMOV             R0, R10                                                ; +0x284, 0x485590\nSTR             R2, [SP,#0x5C+var_5C]                                  ; +0x286, 0x485592\nMOV             R1, R6                                                 ; +0x288, 0x485594\nSTR             R2, [SP,#0x5C+var_58]                                  ; +0x28a, 0x485596\nMOV             R3, R2                                                 ; +0x28c, 0x485598\nBLX             R8                                                     ; +0x28e, 0x48559a\nVMOV            S15, R0                                                ; +0x290, 0x48559c\nVSUB.F32        S19, S15, S20                                          ; +0x294, 0x4855a0\nB               loc_4855AA                                             ; +0x298, 0x4855a4\nVMOV.F32        S19, S17                                               ; +0x29a, 0x4855a6\nADD.W           R8, SP, #0x5C+var_1C                                   ; +0x29e, 0x4855aa\nMOV             R10, R9                                                ; +0x2a2, 0x4855ae\nMOVS            R6, #0                                                 ; +0x2a4, 0x4855b0\nADD             R3, SP, #0x5C+var_2C                                   ; +0x2a6, 0x4855b2\nSTR             R3, [SP,#0x5C+var_48]                                  ; +0x2a8, 0x4855b4\nLDR             R0, [SP,#0x5C+var_4C]; this                            ; +0x2aa, 0x4855b6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2ac, 0x4855b8\nCMP             R6, R0                                                 ; +0x2b0, 0x4855bc\nBCS             loc_485686                                             ; +0x2b2, 0x4855be\nMOV             R1, R6; unsigned int                                   ; +0x2b4, 0x4855c0\nLDR             R0, [SP,#0x5C+var_4C]; this                            ; +0x2b6, 0x4855c2\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2b8, 0x4855c4\nMOV             R2, R9; int                                            ; +0x2bc, 0x4855c8\nMOV             R11, R0                                                ; +0x2be, 0x4855ca\nLDR.W           R0, [R4,#0x3B0]; this                                  ; +0x2c0, 0x4855cc\nMOV             R1, R11; GameObject *                                  ; +0x2c4, 0x4855d0\nBL              _ZN16LevelEditorLayer16addObjectToGroupEP10GameObjecti; LevelEditorLayer::addObjectToGroup(GameObject *,int) ; +0x2c6, 0x4855d2\nCMP             R6, #0                                                 ; +0x2ca, 0x4855d6\nBNE             loc_485682                                             ; +0x2cc, 0x4855d8\nLDR             R3, [SP,#0x5C+var_40]                                  ; +0x2ce, 0x4855da\nCMP             R5, R3                                                 ; +0x2d0, 0x4855dc\nBEQ             loc_485606                                             ; +0x2d2, 0x4855de\nLDR.W           R0, [R4,#0x3B0]                                        ; +0x2d4, 0x4855e0\nMOV             R1, R8                                                 ; +0x2d8, 0x4855e4\nMOV.W           R3, #0x3F800000                                        ; +0x2da, 0x4855e6\nSTR             R6, [SP,#0x5C+var_1C]                                  ; +0x2de, 0x4855ea\nSTR             R6, [SP,#0x5C+var_18]                                  ; +0x2e0, 0x4855ec\nSTR             R6, [SP,#0x5C+var_14]                                  ; +0x2e2, 0x4855ee\nSTR             R6, [SP,#0x5C+var_10]                                  ; +0x2e4, 0x4855f0\nSTR             R3, [SP,#0x5C+var_C]                                   ; +0x2e6, 0x4855f2\nBL              _ZN16LevelEditorLayer18getNextFreeGroupIDERKNSt6__ndk113unordered_setIiNS0_4hashIiEENS0_8equal_toIiEENS0_9allocatorIiEEEE; LevelEditorLayer::getNextFreeGroupID(std::unordered_set<int> const&) ; +0x2e8, 0x4855f4\nMOV             R10, R0                                                ; +0x2ec, 0x4855f8\nMOV             R0, R8                                                 ; +0x2ee, 0x4855fa\nBL              _ZNSt6__ndk112__hash_tableIiNS_4hashIiEENS_8equal_toIiEENS_9allocatorIiEEED2Ev; std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table() ; +0x2f0, 0x4855fc\nVSUB.F32        S17, S19, S18                                          ; +0x2f4, 0x485600\nB               loc_48560E                                             ; +0x2f8, 0x485604\nVMOV.F32        S17, S19                                               ; +0x2fa, 0x485606\nLDR.W           R10, [SP,#0x5C+var_50]                                 ; +0x2fe, 0x48560a\nLDR.W           R3, [R11]                                              ; +0x302, 0x48560e\nMOV             R1, R11                                                ; +0x306, 0x485612\nLDR             R0, [SP,#0x5C+var_38]                                  ; +0x308, 0x485614\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x30a, 0x485616\nBLX             R3                                                     ; +0x30e, 0x48561a\nVMOV            R2, S16; float                                         ; +0x310, 0x48561c\nLDR             R1, [SP,#0x5C+var_24]; float                           ; +0x314, 0x485620\nMOV             R0, R8; this                                           ; +0x316, 0x485622\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x318, 0x485624\nMOV             R1, R8                                                 ; +0x31c, 0x485628\nLDR             R0, [SP,#0x5C+var_48]                                  ; +0x31e, 0x48562a\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x320, 0x48562c\nLDR             R1, [SP,#0x5C+var_48]; cocos2d::CCPoint *              ; +0x324, 0x485630\nMOV             R0, R8; this                                           ; +0x326, 0x485632\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x328, 0x485634\nMOV             R2, R8                                                 ; +0x32c, 0x485638\nMOVW            R1, #0x4F4                                             ; +0x32e, 0x48563a\nMOV             R0, R4                                                 ; +0x332, 0x48563e\nBL              _ZN8EditorUI12createObjectEiN7cocos2d7CCPointE; EditorUI::createObject(int,cocos2d::CCPoint) ; +0x334, 0x485640\nMOV             R11, R0                                                ; +0x338, 0x485644\nLDR             R0, [SP,#0x5C+var_44]; this                            ; +0x33a, 0x485646\nMOV             R1, R11; cocos2d::CCObject *                           ; +0x33c, 0x485648\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x33e, 0x48564a\nMOV             R2, R9; int                                            ; +0x342, 0x48564e\nLDR.W           R0, [R4,#0x3B0]; this                                  ; +0x344, 0x485650\nMOV             R1, R11; GameObject *                                  ; +0x348, 0x485654\nBL              _ZN16LevelEditorLayer16addObjectToGroupEP10GameObjecti; LevelEditorLayer::addObjectToGroup(GameObject *,int) ; +0x34a, 0x485656\nMOV             R0, R11; this                                          ; +0x34e, 0x48565a\nMOV             R1, R10; int                                           ; +0x350, 0x48565c\nBL              _ZN16EffectGameObject11setTargetIDEi; EffectGameObject::setTargetID(int) ; +0x352, 0x48565e\nADD.W           R3, R11, #0x698                                        ; +0x356, 0x485662\nMOV             R1, R11; GameObject *                                  ; +0x35a, 0x485666\nVSTR            S17, [R3]                                              ; +0x35c, 0x485668\nMOVS            R3, #1                                                 ; +0x360, 0x48566c\nSTRB.W          R3, [R11,#0x50D]                                       ; +0x362, 0x48566e\nSTRB.W          R3, [R11,#0x5CC]                                       ; +0x366, 0x485672\nLDR.W           R0, [R4,#0x3B0]; this                                  ; +0x36a, 0x485676\nBL              _ZN16LevelEditorLayer14refreshSpecialEP10GameObject; LevelEditorLayer::refreshSpecial(GameObject *) ; +0x36e, 0x48567a\nVADD.F32        S18, S18, S17                                          ; +0x372, 0x48567e\nADDS            R6, #1                                                 ; +0x376, 0x485682\nB               loc_4855B6                                             ; +0x378, 0x485684\nADDS            R5, #1                                                 ; +0x37a, 0x485686\nMOV             R9, R10                                                ; +0x37c, 0x485688\nB               loc_485530                                             ; +0x37e, 0x48568a\nLDR.W           R0, [R4,#0x3B0]; this                                  ; +0x380, 0x48568c\nBL              _ZN16LevelEditorLayer15dirtifyTriggersEv; LevelEditorLayer::dirtifyTriggers(void) ; +0x384, 0x485690\nB               loc_4856B6                                             ; +0x388, 0x485694\nMOV             R0, R6                                                 ; +0x38a, 0x485696\nB               loc_48569C                                             ; +0x38c, 0x485698\nMOV             R0, R8                                                 ; +0x38e, 0x48569a\nBL              _ZNSt6__ndk112__hash_tableIiNS_4hashIiEENS_8equal_toIiEENS_9allocatorIiEEED2Ev; std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table() ; +0x390, 0x48569c\nBL              __cxa_end_cleanup                                      ; +0x394, 0x4856a0\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x398, 0x4856a4\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x39c, 0x4856a8\nMOV             R11, R0                                                ; +0x39e, 0x4856aa\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x3a0, 0x4856ac\nMOV             R0, R7                                                 ; +0x3a4, 0x4856b0\nMOV             R1, R11                                                ; +0x3a6, 0x4856b2\nB               loc_485472                                             ; +0x3a8, 0x4856b4\nLDR             R3, [SP,#0x5C+var_3C]                                  ; +0x3aa, 0x4856b6\nLDR             R2, [SP,#0x5C+var_8]                                   ; +0x3ac, 0x4856b8\nLDR             R3, [R3]                                               ; +0x3ae, 0x4856ba\nCMP             R2, R3                                                 ; +0x3b0, 0x4856bc\nBEQ             loc_4856C4                                             ; +0x3b2, 0x4856be\nBLX             __stack_chk_fail                                       ; +0x3b4, 0x4856c0\nADD             SP, SP, #0x5C ; '\\'                                    ; +0x3b8, 0x4856c4\nVPOP            {D8-D10}                                               ; +0x3ba, 0x4856c6\nPOP.W           {R4-R11,PC}                                            ; +0x3be, 0x4856ca", "xrefs": ["EditorUI::handleEditorAction @ 0x6f1ffa", "EditorCommandsPopup::onCommand @ 0x77a778"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}