{"type": "func", "start": 3703582, "end": 3703642, "name": "EditorUI::orderDownCustomItem", "pseudocode": "// \n// EditorUI::orderDownCustomItem from 0x38831e to 0x38835a (60 bytes)\n// \n// 0 xrefs:\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::orderDownCustomItem(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // r0\n  int v4; // r5\n\n  if ( a1->m_selectedObjectIndex < 0 )\n  {\n    v3 = GameManager::sharedState();\n    v4 = GameManager::reorderKey(v3, a1->m_selectedObjectIndex, 0);\n    if ( v4 != a1->m_selectedObjectIndex )\n    {\n      EditorUI::reloadCustomItems(a1);\n      a1->m_selectedObjectIndex = v4;\n      EditorUI::updateCreateMenu(a1, 0);\n    }\n  }\n}", "assembly": "; \n; EditorUI::orderDownCustomItem from 0x38831e to 0x38835a (60 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x38831e\nMOV             R4, R0                                                 ; +0x2, 0x388320\nLDR.W           R3, [R0,#0x32C]                                        ; +0x4, 0x388322\nCMP             R3, #0                                                 ; +0x8, 0x388326\nBGE             locret_388358                                          ; +0xa, 0x388328\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xc, 0x38832a\nLDR.W           R1, [R4,#0x32C]; int                                   ; +0x10, 0x38832e\nMOVS            R2, #0; bool                                           ; +0x14, 0x388332\nBL              _ZN11GameManager10reorderKeyEib; GameManager::reorderKey(int,bool) ; +0x16, 0x388334\nLDR.W           R3, [R4,#0x32C]                                        ; +0x1a, 0x388338\nCMP             R0, R3                                                 ; +0x1e, 0x38833c\nMOV             R5, R0                                                 ; +0x20, 0x38833e\nBEQ             locret_388358                                          ; +0x22, 0x388340\nMOV             R0, R4; this                                           ; +0x24, 0x388342\nBL              _ZN8EditorUI17reloadCustomItemsEv; EditorUI::reloadCustomItems(void) ; +0x26, 0x388344\nSTR.W           R5, [R4,#0x32C]                                        ; +0x2a, 0x388348\nMOV             R0, R4; this                                           ; +0x2e, 0x38834c\nMOVS            R1, #0; bool                                           ; +0x30, 0x38834e\nPOP.W           {R3-R5,LR}                                             ; +0x32, 0x388350\nB.W             _ZN8EditorUI16updateCreateMenuEb; EditorUI::updateCreateMenu(bool) ; +0x36, 0x388354\nPOP             {R3-R5,PC}                                             ; +0x3a, 0x388358", "xrefs": [], "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"}