{"type": "func", "start": 4735648, "end": 4735726, "name": "EditorUI::editObjectOptions", "pseudocode": "// \n// EditorUI::editObjectOptions from 0x4842a0 to 0x4842ee (78 bytes)\n// \n// 1 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f23f4\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:24 +0000\n// \n\nint __fastcall EditorUI::editObjectOptions(EditorUI *this, cocos2d::CCObject *a2)\n{\n  int result; // r0\n  EditorBuildStats *v4; // r0\n  EditorSFXManager *v5; // r0\n  EditorSFXManager *v6; // r0\n  cocos2d::CCArray *v7; // r2\n  int v8; // r0\n\n  if ( *((_DWORD *)this + 249) || (result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167))) != 0 )\n  {\n    v4 = (EditorBuildStats *)(*((_DWORD *)this + 236) + 12104);\n    *((_DWORD *)v4 + 4) = *(_DWORD *)(*((_DWORD *)this + 236) + 12120) + 1;\n    v5 = (EditorSFXManager *)EditorBuildStats::noteAction(v4);\n    v6 = (EditorSFXManager *)EditorSFXManager::sharedState(v5);\n    EditorSFXManager::playAction(v6, 108, 107);\n    v8 = SetupObjectOptionsPopup::create(*((SetupObjectOptionsPopup **)this + 249), *((GameObject **)this + 167), v7);\n    return (*(int (__fastcall **)(int))(*(_DWORD *)v8 + 656))(v8);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::editObjectOptions from 0x4842a0 to 0x4842ee (78 bytes)\n; \n; 1 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f23f4\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:24 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x4842a0\nMOV             R4, R0                                                 ; +0x2, 0x4842a2\nLDR.W           R3, [R0,#0x3E4]                                        ; +0x4, 0x4842a4\nCBNZ            R3, loc_4842B4                                         ; +0x8, 0x4842a8\nLDR.W           R0, [R0,#0x29C]; this                                  ; +0xa, 0x4842aa\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xe, 0x4842ae\nCBZ             R0, locret_4842EC                                      ; +0x12, 0x4842b2\nLDR.W           R0, [R4,#0x3B0]                                        ; +0x14, 0x4842b4\nADD.W           R0, R0, #0x2F40                                        ; +0x18, 0x4842b8\nADDS            R0, #8; this                                           ; +0x1c, 0x4842bc\nLDR             R3, [R0,#0x10]                                         ; +0x1e, 0x4842be\nADDS            R3, #1                                                 ; +0x20, 0x4842c0\nSTR             R3, [R0,#0x10]                                         ; +0x22, 0x4842c2\nBL              _ZN16EditorBuildStats10noteActionEv; EditorBuildStats::noteAction(void) ; +0x24, 0x4842c4\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x28, 0x4842c8\nMOVS            R1, #0x6C ; 'l'; int                                   ; +0x2c, 0x4842cc\nMOVS            R2, #0x6B ; 'k'; int                                   ; +0x2e, 0x4842ce\nBL              _ZN16EditorSFXManager10playActionEii; EditorSFXManager::playAction(int,int) ; +0x30, 0x4842d0\nLDR.W           R0, [R4,#0x3E4]; this                                  ; +0x34, 0x4842d4\nLDR.W           R1, [R4,#0x29C]; GameObject *                          ; +0x38, 0x4842d8\nBL              _ZN23SetupObjectOptionsPopup6createEP10GameObjectPN7cocos2d7CCArrayE; SetupObjectOptionsPopup::create(GameObject *,cocos2d::CCArray *) ; +0x3c, 0x4842dc\nPOP.W           {R4,LR}                                                ; +0x40, 0x4842e0\nLDR             R3, [R0]                                               ; +0x44, 0x4842e4\nLDR.W           R3, [R3,#0x290]                                        ; +0x46, 0x4842e6\nBX              R3                                                     ; +0x4a, 0x4842ea\nPOP             {R4,PC}                                                ; +0x4c, 0x4842ec", "xrefs": ["EditorUI::handleEditorAction @ 0x6f23f4"], "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"}