{"type": "func", "start": 4749472, "end": 4750318, "name": "EditorUI::createGradientFromSelection", "pseudocode": "// \n// EditorUI::createGradientFromSelection from 0x4878a0 to 0x487bee (846 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f2008\n// > EditorCommandsPopup::onCommand @ 0x77a862\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:26 +0000\n// \n\nint __fastcall EditorUI::createGradientFromSelection(EditorUI *this)\n{\n  cocos2d::CCArray *v2; // r4\n  cocos2d::CCArray *v3; // r0\n  cocos2d::CCArray *v4; // r8\n  float v5; // s16\n  signed int v6; // r7\n  float v7; // s18\n  float v8; // s17\n  int v9; // r0\n  GameObject *v10; // r9\n  GameObject *v11; // r4\n  GameObject *v12; // r3\n  GameObject *v13; // r8\n  GameObject *v14; // r11\n  char v15; // r7\n  size_t **v16; // r8\n  GameObject *v17; // r11\n  GameObject *v18; // r7\n  float v19; // s19\n  float v20; // s19\n  int v21; // r9\n  int v22; // r8\n  GameObject *Object; // r4\n  LevelEditorLayer *v25; // r0\n  int v26; // [sp+8h] [bp-4Ch]\n  int v27; // [sp+Ch] [bp-48h]\n  EditorUI *v28; // [sp+18h] [bp-3Ch] BYREF\n  _BYTE v29[8]; // [sp+1Ch] [bp-38h] BYREF\n  float v30; // [sp+24h] [bp-30h] BYREF\n  float v31; // [sp+28h] [bp-2Ch]\n  int v32; // [sp+2Ch] [bp-28h] BYREF\n  int v33; // [sp+30h] [bp-24h]\n  int v34; // [sp+34h] [bp-20h]\n  float v35; // [sp+38h] [bp-1Ch] BYREF\n  float v36; // [sp+3Ch] [bp-18h]\n  int v37; // [sp+40h] [bp-14h]\n  int v38; // [sp+44h] [bp-10h]\n  int v39; // [sp+48h] [bp-Ch]\n\n  v2 = *((cocos2d::CCArray **)this + 167);\n  v3 = (cocos2d::CCArray *)cocos2d::CCArray::count(v2);\n  v4 = v3;\n  if ( v3 != (cocos2d::CCArray *)((char *)&dword_0 + 2) && v3 != (cocos2d::CCArray *)&byte_4 )\n  {\n    v32 = 0;\n    v33 = 0;\n    v34 = 0;\n    std::string::__init(&v32, \"Create gradient failed.\", 0x17u);\n    EditorUI::showTextAlert((int)this, (int)&v32, 0, 1, 0);\n    return std::string::~string((int)&v32);\n  }\n  v5 = 0.0;\n  v6 = 0;\n  v7 = 0.0;\n  v8 = 0.0;\n  while ( v6 < (int)v4 )\n  {\n    v9 = cocos2d::CCArray::objectAtIndex(v2, v6);\n    v3 = (cocos2d::CCArray *)(*(int (__fastcall **)(float *, int))(*(_DWORD *)v9 + 680))(&v35, v9);\n    if ( v6 )\n    {\n      if ( v35 < v8 )\n        v8 = v35;\n      if ( v35 > v7 )\n        v7 = v35;\n      if ( v36 > v5 )\n        v5 = v36;\n    }\n    else\n    {\n      v8 = v35;\n      v5 = v36;\n      v7 = v35;\n    }\n    ++v6;\n  }\n  if ( v4 == (cocos2d::CCArray *)((char *)&dword_0 + 2) )\n  {\n    v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(v2, 0);\n    v11 = (GameObject *)cocos2d::CCArray::objectAtIndex(v2, 1u);\n    (*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)v10 + 680))(&v30, v10);\n    (*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)v11 + 680))(&v35, v11);\n    if ( fabsf(v31 - v36) < fabsf(v30 - v35) )\n    {\n      if ( v30 <= v35 )\n      {\n        v13 = v11;\n        v14 = v10;\n      }\n      else\n      {\n        v13 = v10;\n        v14 = v11;\n      }\n      v11 = nullptr;\n      v10 = nullptr;\n    }\n    else\n    {\n      if ( v31 < v36 )\n      {\n        v12 = v10;\n        v10 = v11;\n        v11 = v12;\n      }\n      v13 = nullptr;\n      v14 = nullptr;\n    }\n    v15 = 0;\n  }\n  else\n  {\n    v16 = (size_t **)cocos2d::CCArray::create(v3);\n    cocos2d::CCArray::addObjectsFromArray((cocos2d::CCArray *)v16, v2);\n    qsort((void *)v16[13][3], *v16[13], 4u, alignYSort);\n    v17 = (GameObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v16, 0);\n    v11 = (GameObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v16, 1u);\n    v18 = (GameObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v16, 2u);\n    v13 = (GameObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v16, 3u);\n    (*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)v17 + 680))(&v30, v17);\n    v19 = v30;\n    (*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)v11 + 680))(&v35, v11);\n    if ( v19 > v35 )\n      v10 = v11;\n    else\n      v10 = v17;\n    (*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)v18 + 680))(&v30, v18);\n    v20 = v30;\n    if ( v10 != v17 )\n      v11 = v17;\n    (*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)v13 + 680))(&v35, v13);\n    if ( v20 > v35 )\n      v14 = v13;\n    else\n      v14 = v18;\n    if ( v14 != v18 )\n      v13 = v18;\n    v15 = 1;\n  }\n  v28 = this;\n  v26 = sub_4856E8((int *)&v28, v10);\n  v27 = sub_4856E8((int *)&v28, v11);\n  v21 = sub_4856E8((int *)&v28, v14);\n  v22 = sub_4856E8((int *)&v28, v13);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, (float)(v8 + v7) * 0.5, v5 + 60.0);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, (const cocos2d::CCPoint *)v29);\n  EditorUI::getGridSnappedPos((int)&v35, (int)this, &v30);\n  cocos2d::CCPoint::operator=(v29, &v35);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, (const cocos2d::CCPoint *)v29);\n  Object = EditorUI::createObject(\n             (int)this,\n             (GameObject *)((char *)&stru_B4C.st_size + 3),\n             (const cocos2d::CCPoint *)&v35);\n  if ( !Object )\n  {\n    v32 = 0;\n    v33 = 0;\n    v34 = 0;\n    std::string::__init(&v32, \"Create gradient failed.\", 0x17u);\n    EditorUI::showTextAlert((int)this, (int)&v32, 0, 1, 0);\n    return std::string::~string((int)&v32);\n  }\n  v25 = *((LevelEditorLayer **)this + 236);\n  v35 = 0.0;\n  v36 = 0.0;\n  v37 = 0;\n  v38 = 0;\n  v39 = 1065353216;\n  *((_DWORD *)Object + 414) = LevelEditorLayer::getNextFreeGradientID(v25, (int)&v35);\n  std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table((int)&v35);\n  *((_BYTE *)Object + 1676) = v15;\n  *((_DWORD *)Object + 417) = v21;\n  *((_DWORD *)Object + 415) = v26;\n  *((_DWORD *)Object + 418) = v22;\n  *((_DWORD *)Object + 416) = v27;\n  LevelEditorLayer::refreshSpecial(*((LevelEditorLayer **)this + 236), Object);\n  EditorUI::deselectAll(this);\n  EditorUI::selectObject(this, Object, 1);\n  return EditorUI::updateSelectionUI(this);\n}", "assembly": "; \n; EditorUI::createGradientFromSelection from 0x4878a0 to 0x487bee (846 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f2008\n; > EditorCommandsPopup::onCommand @ 0x77a862\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:26 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x4878a0\nMOV             R6, R0                                                 ; +0x4, 0x4878a4\nVPUSH           {D8-D9}                                                ; +0x6, 0x4878a6\nLDR             R5, =(__stack_chk_guard_ptr - 0x4878B0)                ; +0xa, 0x4878aa\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x4878ac\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x4878ae\nLDR.W           R4, [R0,#0x29C]                                        ; +0x10, 0x4878b0\nSUB             SP, SP, #0x54                                          ; +0x14, 0x4878b4\nLDR             R3, [R5]                                               ; +0x16, 0x4878b6\nMOV             R0, R4; this                                           ; +0x18, 0x4878b8\nSTR             R3, [SP,#0x54+var_8]                                   ; +0x1a, 0x4878ba\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1c, 0x4878bc\nSTR             R5, [SP,#0x54+var_44]                                  ; +0x20, 0x4878c0\nCMP             R0, #2                                                 ; +0x22, 0x4878c2\nMOV             R8, R0                                                 ; +0x24, 0x4878c4\nBEQ             loc_4878CC                                             ; +0x26, 0x4878c6\nCMP             R0, #4                                                 ; +0x28, 0x4878c8\nBNE             loc_4878DE                                             ; +0x2a, 0x4878ca\nVLDR            S16, =0.0                                              ; +0x2c, 0x4878cc\nMOVS            R7, #0                                                 ; +0x30, 0x4878d0\nADD             R5, SP, #0x54+var_1C                                   ; +0x32, 0x4878d2\nVMOV.F32        S18, S16                                               ; +0x34, 0x4878d4\nVMOV.F32        S17, S16                                               ; +0x38, 0x4878d8\nB               loc_487930                                             ; +0x3c, 0x4878dc\nADD             R5, SP, #0x54+var_28                                   ; +0x3e, 0x4878de\nLDR             R1, =(aCreateGradient - 0x4878EC); \"Create gradient failed.\" ; +0x40, 0x4878e0\nMOVS            R4, #0                                                 ; +0x42, 0x4878e2\nMOVS            R2, #0x17                                              ; +0x44, 0x4878e4\nMOV             R0, R5                                                 ; +0x46, 0x4878e6\nADD             R1, PC; \"Create gradient failed.\"                      ; +0x48, 0x4878e8\nSTR             R4, [SP,#0x54+var_28]                                  ; +0x4a, 0x4878ea\nSTR             R4, [SP,#0x54+var_24]                                  ; +0x4c, 0x4878ec\nSTR             R4, [SP,#0x54+var_20]                                  ; +0x4e, 0x4878ee\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x50, 0x4878f0\nSTR             R4, [SP,#0x54+var_54]; int                             ; +0x54, 0x4878f4\nMOV             R0, R6; int                                            ; +0x56, 0x4878f6\nMOV             R1, R5; int                                            ; +0x58, 0x4878f8\nMOV             R2, R4; int                                            ; +0x5a, 0x4878fa\nMOVS            R3, #1; int                                            ; +0x5c, 0x4878fc\nBL              _ZN8EditorUI13showTextAlertENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEbbi; EditorUI::showTextAlert(std::string,bool,bool,int) ; +0x5e, 0x4878fe\nB               loc_487B5C                                             ; +0x62, 0x487902\nMOV             R1, R7; unsigned int                                   ; +0x64, 0x487904\nMOV             R0, R4; this                                           ; +0x66, 0x487906\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x68, 0x487908\nLDR             R3, [R0]                                               ; +0x6c, 0x48790c\nMOV             R1, R0                                                 ; +0x6e, 0x48790e\nMOV             R0, R5                                                 ; +0x70, 0x487910\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x72, 0x487912\nBLX             R3                                                     ; +0x76, 0x487916\nVLDR            S15, [SP,#0x54+var_1C]                                 ; +0x78, 0x487918\nVLDR            S14, [SP,#0x54+var_18]                                 ; +0x7c, 0x48791c\nCBNZ            R7, loc_487936                                         ; +0x80, 0x487920\nVMOV.F32        S17, S15                                               ; +0x82, 0x487922\nVMOV.F32        S16, S14                                               ; +0x86, 0x487926\nVMOV.F32        S18, S15                                               ; +0x8a, 0x48792a\nADDS            R7, #1                                                 ; +0x8e, 0x48792e\nCMP             R7, R8                                                 ; +0x90, 0x487930\nBLT             loc_487904                                             ; +0x92, 0x487932\nB               loc_487962                                             ; +0x94, 0x487934\nVCMP.F32        S15, S17                                               ; +0x96, 0x487936\nVMRS            APSR_nzcv, FPSCR                                       ; +0x9a, 0x48793a\nVCMP.F32        S15, S18                                               ; +0x9e, 0x48793e\nIT MI                                                                  ; +0xa2, 0x487942\nVMOVMI.F32      S17, S15                                               ; +0xa4, 0x487944\nVMRS            APSR_nzcv, FPSCR                                       ; +0xa8, 0x487948\nVCMP.F32        S14, S16                                               ; +0xac, 0x48794c\nIT GT                                                                  ; +0xb0, 0x487950\nVMOVGT.F32      S18, S15                                               ; +0xb2, 0x487952\nVMRS            APSR_nzcv, FPSCR                                       ; +0xb6, 0x487956\nIT GT                                                                  ; +0xba, 0x48795a\nVMOVGT.F32      S16, S14                                               ; +0xbc, 0x48795c\nB               loc_48792E                                             ; +0xc0, 0x487960\nCMP.W           R8, #2                                                 ; +0xc2, 0x487962\nADD.W           R10, SP, #0x54+var_30                                  ; +0xc6, 0x487966\nBNE             loc_4879FA                                             ; +0xca, 0x48796a\nMOV             R0, R4; this                                           ; +0xcc, 0x48796c\nMOVS            R1, #0; unsigned int                                   ; +0xce, 0x48796e\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xd0, 0x487970\nMOVS            R1, #1; unsigned int                                   ; +0xd4, 0x487974\nMOV             R9, R0                                                 ; +0xd6, 0x487976\nMOV             R0, R4; this                                           ; +0xd8, 0x487978\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xda, 0x48797a\nLDR.W           R3, [R9]                                               ; +0xde, 0x48797e\nMOV             R1, R9                                                 ; +0xe2, 0x487982\nLDR.W           R3, [R3,#0x2A8]                                        ; +0xe4, 0x487984\nMOV             R4, R0                                                 ; +0xe8, 0x487988\nMOV             R0, R10                                                ; +0xea, 0x48798a\nBLX             R3                                                     ; +0xec, 0x48798c\nLDR             R3, [R4]                                               ; +0xee, 0x48798e\nMOV             R0, R5                                                 ; +0xf0, 0x487990\nMOV             R1, R4                                                 ; +0xf2, 0x487992\nLDR.W           R3, [R3,#0x2A8]                                        ; +0xf4, 0x487994\nBLX             R3                                                     ; +0xf8, 0x487998\nVLDR            S12, [SP,#0x54+var_30]                                 ; +0xfa, 0x48799a\nVLDR            S13, [SP,#0x54+var_1C]                                 ; +0xfe, 0x48799e\nVLDR            S10, [SP,#0x54+var_2C]                                 ; +0x102, 0x4879a2\nVLDR            S11, [SP,#0x54+var_18]                                 ; +0x106, 0x4879a6\nVSUB.F32        S15, S12, S13                                          ; +0x10a, 0x4879aa\nVSUB.F32        S14, S10, S11                                          ; +0x10e, 0x4879ae\nVABS.F32        S15, S15                                               ; +0x112, 0x4879b2\nVABS.F32        S14, S14                                               ; +0x116, 0x4879b6\nVCMPE.F32       S14, S15                                               ; +0x11a, 0x4879ba\nVMRS            APSR_nzcv, FPSCR                                       ; +0x11e, 0x4879be\nBLT             loc_4879D6                                             ; +0x122, 0x4879c2\nVCMPE.F32       S10, S11                                               ; +0x124, 0x4879c4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x128, 0x4879c8\nBGE             loc_4879E6                                             ; +0x12c, 0x4879cc\nMOV             R3, R9                                                 ; +0x12e, 0x4879ce\nMOV             R9, R4                                                 ; +0x130, 0x4879d0\nMOV             R4, R3                                                 ; +0x132, 0x4879d2\nB               loc_4879E6                                             ; +0x134, 0x4879d4\nVCMPE.F32       S12, S13                                               ; +0x136, 0x4879d6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x13a, 0x4879da\nBLS             loc_4879EE                                             ; +0x13e, 0x4879de\nMOV             R8, R9                                                 ; +0x140, 0x4879e0\nMOV             R11, R4                                                ; +0x142, 0x4879e2\nB               loc_4879F2                                             ; +0x144, 0x4879e4\nMOV.W           R8, #0                                                 ; +0x146, 0x4879e6\nMOV             R11, R8                                                ; +0x14a, 0x4879ea\nB               loc_4879F6                                             ; +0x14c, 0x4879ec\nMOV             R8, R4                                                 ; +0x14e, 0x4879ee\nMOV             R11, R9                                                ; +0x150, 0x4879f0\nMOVS            R4, #0                                                 ; +0x152, 0x4879f2\nMOV             R9, R4                                                 ; +0x154, 0x4879f4\nMOVS            R7, #0                                                 ; +0x156, 0x4879f6\nB               loc_487AB0                                             ; +0x158, 0x4879f8\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x15a, 0x4879fa\nMOV             R1, R4; cocos2d::CCArray *                             ; +0x15e, 0x4879fe\nMOV             R8, R0                                                 ; +0x160, 0x487a00\nBL              _ZN7cocos2d7CCArray19addObjectsFromArrayEPS0_; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray*) ; +0x162, 0x487a02\nLDR.W           R3, [R8,#0x34]                                         ; +0x166, 0x487a06\nMOVS            R2, #4; size_t                                         ; +0x16a, 0x487a0a\nLDR             R0, [R3,#0xC]; void *                                  ; +0x16c, 0x487a0c\nLDR             R1, [R3]; size_t                                       ; +0x16e, 0x487a0e\nLDR             R3, =(_Z10alignYSortPKvS0__ptr - 0x487A16)             ; +0x170, 0x487a10\nADD             R3, PC; _Z10alignYSortPKvS0__ptr                       ; +0x172, 0x487a12\nLDR             R3, [R3]; alignYSort(void const*,void const*) ; int (*)(const void *, const void *) ; +0x174, 0x487a14\nBLX             qsort                                                  ; +0x176, 0x487a16\nMOV             R0, R8; this                                           ; +0x17a, 0x487a1a\nMOVS            R1, #0; unsigned int                                   ; +0x17c, 0x487a1c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x17e, 0x487a1e\nMOVS            R1, #1; unsigned int                                   ; +0x182, 0x487a22\nMOV             R11, R0                                                ; +0x184, 0x487a24\nMOV             R0, R8; this                                           ; +0x186, 0x487a26\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x188, 0x487a28\nMOVS            R1, #2; unsigned int                                   ; +0x18c, 0x487a2c\nMOV             R4, R0                                                 ; +0x18e, 0x487a2e\nMOV             R0, R8; this                                           ; +0x190, 0x487a30\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x192, 0x487a32\nMOVS            R1, #3; unsigned int                                   ; +0x196, 0x487a36\nMOV             R7, R0                                                 ; +0x198, 0x487a38\nMOV             R0, R8; this                                           ; +0x19a, 0x487a3a\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x19c, 0x487a3c\nLDR.W           R3, [R11]                                              ; +0x1a0, 0x487a40\nMOV             R1, R11                                                ; +0x1a4, 0x487a44\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x1a6, 0x487a46\nMOV             R8, R0                                                 ; +0x1aa, 0x487a4a\nMOV             R0, R10                                                ; +0x1ac, 0x487a4c\nBLX             R3                                                     ; +0x1ae, 0x487a4e\nLDR             R3, [R4]                                               ; +0x1b0, 0x487a50\nMOV             R1, R4                                                 ; +0x1b2, 0x487a52\nMOV             R0, R5                                                 ; +0x1b4, 0x487a54\nVLDR            S19, [SP,#0x54+var_30]                                 ; +0x1b6, 0x487a56\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x1ba, 0x487a5a\nBLX             R3                                                     ; +0x1be, 0x487a5e\nLDR             R3, [R7]                                               ; +0x1c0, 0x487a60\nVLDR            S15, [SP,#0x54+var_1C]                                 ; +0x1c2, 0x487a62\nMOV             R1, R7                                                 ; +0x1c6, 0x487a66\nMOV             R0, R10                                                ; +0x1c8, 0x487a68\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x1ca, 0x487a6a\nVCMPE.F32       S19, S15                                               ; +0x1ce, 0x487a6e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1d2, 0x487a72\nITE LS                                                                 ; +0x1d6, 0x487a76\nMOVLS           R9, R11                                                ; +0x1d8, 0x487a78\nMOVHI           R9, R4                                                 ; +0x1da, 0x487a7a\nBLX             R3                                                     ; +0x1dc, 0x487a7c\nLDR.W           R3, [R8]                                               ; +0x1de, 0x487a7e\nMOV             R1, R8                                                 ; +0x1e2, 0x487a82\nMOV             R0, R5                                                 ; +0x1e4, 0x487a84\nVLDR            S19, [SP,#0x54+var_30]                                 ; +0x1e6, 0x487a86\nCMP             R9, R11                                                ; +0x1ea, 0x487a8a\nIT NE                                                                  ; +0x1ec, 0x487a8c\nMOVNE           R4, R11                                                ; +0x1ee, 0x487a8e\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x1f0, 0x487a90\nBLX             R3                                                     ; +0x1f4, 0x487a94\nVLDR            S15, [SP,#0x54+var_1C]                                 ; +0x1f6, 0x487a96\nVCMPE.F32       S19, S15                                               ; +0x1fa, 0x487a9a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1fe, 0x487a9e\nITE LS                                                                 ; +0x202, 0x487aa2\nMOVLS           R11, R7                                                ; +0x204, 0x487aa4\nMOVHI           R11, R8                                                ; +0x206, 0x487aa6\nCMP             R11, R7                                                ; +0x208, 0x487aa8\nIT NE                                                                  ; +0x20a, 0x487aaa\nMOVNE           R8, R7                                                 ; +0x20c, 0x487aac\nMOVS            R7, #1                                                 ; +0x20e, 0x487aae\nADD.W           R10, SP, #0x54+var_4                                   ; +0x210, 0x487ab0\nMOV             R1, R9                                                 ; +0x214, 0x487ab4\nSTR.W           R6, [R10,#-0x38]!                                      ; +0x216, 0x487ab6\nMOV             R0, R10                                                ; +0x21a, 0x487aba\nBL              sub_4856E8                                             ; +0x21c, 0x487abc\nMOV             R1, R4                                                 ; +0x220, 0x487ac0\nADD             R4, SP, #0x54+var_38                                   ; +0x222, 0x487ac2\nSTR             R0, [SP,#0x54+var_4C]                                  ; +0x224, 0x487ac4\nMOV             R0, R10                                                ; +0x226, 0x487ac6\nBL              sub_4856E8                                             ; +0x228, 0x487ac8\nMOV             R1, R11                                                ; +0x22c, 0x487acc\nSTR             R0, [SP,#0x54+var_48]                                  ; +0x22e, 0x487ace\nMOV             R0, R10                                                ; +0x230, 0x487ad0\nBL              sub_4856E8                                             ; +0x232, 0x487ad2\nMOV             R1, R8                                                 ; +0x236, 0x487ad6\nMOV             R9, R0                                                 ; +0x238, 0x487ad8\nMOV             R0, R10                                                ; +0x23a, 0x487ada\nBL              sub_4856E8                                             ; +0x23c, 0x487adc\nVADD.F32        S17, S17, S18                                          ; +0x240, 0x487ae0\nVMOV.F32        S15, #0.5                                              ; +0x244, 0x487ae4\nVMUL.F32        S15, S17, S15                                          ; +0x248, 0x487ae8\nVMOV            R1, S15; float                                         ; +0x24c, 0x487aec\nMOV             R8, R0                                                 ; +0x250, 0x487af0\nVLDR            S15, =60.0                                             ; +0x252, 0x487af2\nMOV             R0, R4; this                                           ; +0x256, 0x487af6\nVADD.F32        S15, S16, S15                                          ; +0x258, 0x487af8\nVMOV            R2, S15; float                                         ; +0x25c, 0x487afc\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x260, 0x487b00\nADD             R2, SP, #0x54+var_30                                   ; +0x264, 0x487b04\nMOV             R1, R4; cocos2d::CCPoint *                             ; +0x266, 0x487b06\nSTR             R2, [SP,#0x54+var_40]                                  ; +0x268, 0x487b08\nMOV             R0, R2; this                                           ; +0x26a, 0x487b0a\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x26c, 0x487b0c\nLDR             R2, [SP,#0x54+var_40]                                  ; +0x270, 0x487b10\nMOV             R0, R5                                                 ; +0x272, 0x487b12\nMOV             R1, R6                                                 ; +0x274, 0x487b14\nBL              _ZN8EditorUI17getGridSnappedPosEN7cocos2d7CCPointE; EditorUI::getGridSnappedPos(cocos2d::CCPoint) ; +0x276, 0x487b16\nMOV             R0, R4                                                 ; +0x27a, 0x487b1a\nMOV             R1, R5                                                 ; +0x27c, 0x487b1c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x27e, 0x487b1e\nMOV             R1, R4; cocos2d::CCPoint *                             ; +0x282, 0x487b22\nMOV             R0, R5; this                                           ; +0x284, 0x487b24\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x286, 0x487b26\nMOV             R0, R6                                                 ; +0x28a, 0x487b2a\nMOVW            R1, #0xB57                                             ; +0x28c, 0x487b2c\nMOV             R2, R5                                                 ; +0x290, 0x487b30\nBL              _ZN8EditorUI12createObjectEiN7cocos2d7CCPointE; EditorUI::createObject(int,cocos2d::CCPoint) ; +0x292, 0x487b32\nMOV             R4, R0                                                 ; +0x296, 0x487b36\nCBNZ            R0, loc_487B64                                         ; +0x298, 0x487b38\nADD             R5, SP, #0x54+var_28                                   ; +0x29a, 0x487b3a\nLDR             R1, =(aCreateGradient - 0x487B48); \"Create gradient failed.\" ; +0x29c, 0x487b3c\nSTR             R0, [SP,#0x54+var_28]                                  ; +0x29e, 0x487b3e\nMOVS            R2, #0x17                                              ; +0x2a0, 0x487b40\nSTR             R0, [SP,#0x54+var_24]                                  ; +0x2a2, 0x487b42\nADD             R1, PC; \"Create gradient failed.\"                      ; +0x2a4, 0x487b44\nSTR             R0, [SP,#0x54+var_20]                                  ; +0x2a6, 0x487b46\nMOV             R0, R5                                                 ; +0x2a8, 0x487b48\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x2aa, 0x487b4a\nSTR             R4, [SP,#0x54+var_54]; int                             ; +0x2ae, 0x487b4e\nMOV             R0, R6; int                                            ; +0x2b0, 0x487b50\nMOV             R1, R5; int                                            ; +0x2b2, 0x487b52\nMOV             R2, R4; int                                            ; +0x2b4, 0x487b54\nMOVS            R3, #1; int                                            ; +0x2b6, 0x487b56\nBL              _ZN8EditorUI13showTextAlertENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEbbi; EditorUI::showTextAlert(std::string,bool,bool,int) ; +0x2b8, 0x487b58\nMOV             R0, R5                                                 ; +0x2bc, 0x487b5c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x2be, 0x487b5e\nB               loc_487BD6                                             ; +0x2c2, 0x487b62\nLDR.W           R0, [R6,#0x3B0]                                        ; +0x2c4, 0x487b64\nMOV             R1, R5                                                 ; +0x2c8, 0x487b68\nMOVS            R3, #0                                                 ; +0x2ca, 0x487b6a\nSTR             R3, [SP,#0x54+var_1C]                                  ; +0x2cc, 0x487b6c\nSTR             R3, [SP,#0x54+var_18]                                  ; +0x2ce, 0x487b6e\nSTR             R3, [SP,#0x54+var_14]                                  ; +0x2d0, 0x487b70\nSTR             R3, [SP,#0x54+var_10]                                  ; +0x2d2, 0x487b72\nMOV.W           R3, #0x3F800000                                        ; +0x2d4, 0x487b74\nSTR             R3, [SP,#0x54+var_C]                                   ; +0x2d8, 0x487b78\nBL              _ZN16LevelEditorLayer21getNextFreeGradientIDERKNSt6__ndk113unordered_setIiNS0_4hashIiEENS0_8equal_toIiEENS0_9allocatorIiEEEE; LevelEditorLayer::getNextFreeGradientID(std::unordered_set<int> const&) ; +0x2da, 0x487b7a\nSTR.W           R0, [R4,#0x678]                                        ; +0x2de, 0x487b7e\nMOV             R0, R5                                                 ; +0x2e2, 0x487b82\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() ; +0x2e4, 0x487b84\nLDR             R3, [SP,#0x54+var_4C]                                  ; +0x2e8, 0x487b88\nMOV             R1, R4; GameObject *                                   ; +0x2ea, 0x487b8a\nSTRB.W          R7, [R4,#0x68C]                                        ; +0x2ec, 0x487b8c\nSTR.W           R9, [R4,#0x684]                                        ; +0x2f0, 0x487b90\nSTR.W           R3, [R4,#0x67C]                                        ; +0x2f4, 0x487b94\nLDR             R3, [SP,#0x54+var_48]                                  ; +0x2f8, 0x487b98\nSTR.W           R8, [R4,#0x688]                                        ; +0x2fa, 0x487b9a\nSTR.W           R3, [R4,#0x680]                                        ; +0x2fe, 0x487b9e\nLDR.W           R0, [R6,#0x3B0]; this                                  ; +0x302, 0x487ba2\nBL              _ZN16LevelEditorLayer14refreshSpecialEP10GameObject; LevelEditorLayer::refreshSpecial(GameObject *) ; +0x306, 0x487ba6\nMOV             R0, R6; this                                           ; +0x30a, 0x487baa\nBL              _ZN8EditorUI11deselectAllEv; EditorUI::deselectAll(void) ; +0x30c, 0x487bac\nMOV             R0, R6; this                                           ; +0x310, 0x487bb0\nMOV             R1, R4; GameObject *                                   ; +0x312, 0x487bb2\nMOVS            R2, #1; bool                                           ; +0x314, 0x487bb4\nBL              _ZN8EditorUI12selectObjectEP10GameObjectb; EditorUI::selectObject(GameObject *,bool) ; +0x316, 0x487bb6\nMOV             R0, R6; this                                           ; +0x31a, 0x487bba\nBL              _ZN8EditorUI17updateSelectionUIEv; EditorUI::updateSelectionUI(void) ; +0x31c, 0x487bbc\nB               loc_487BD6                                             ; +0x320, 0x487bc0\nB               loc_487BC4                                             ; +0x322, 0x487bc2\nMOV             R0, R5                                                 ; +0x324, 0x487bc4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x326, 0x487bc6\nBL              __cxa_end_cleanup                                      ; +0x32a, 0x487bca\nMOV             R0, R5                                                 ; +0x32e, 0x487bce\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() ; +0x330, 0x487bd0\nB               loc_487BCA                                             ; +0x334, 0x487bd4\nLDR             R3, [SP,#0x54+var_44]                                  ; +0x336, 0x487bd6\nLDR             R2, [SP,#0x54+var_8]                                   ; +0x338, 0x487bd8\nLDR             R3, [R3]                                               ; +0x33a, 0x487bda\nCMP             R2, R3                                                 ; +0x33c, 0x487bdc\nBEQ             loc_487BE4                                             ; +0x33e, 0x487bde\nBLX             __stack_chk_fail                                       ; +0x340, 0x487be0\nADD             SP, SP, #0x54 ; 'T'                                    ; +0x344, 0x487be4\nVPOP            {D8-D9}                                                ; +0x346, 0x487be6\nPOP.W           {R4-R11,PC}                                            ; +0x34a, 0x487bea", "xrefs": ["EditorUI::handleEditorAction @ 0x6f2008", "EditorCommandsPopup::onCommand @ 0x77a862"], "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"}