{"type": "func", "start": 6912404, "end": 6912504, "name": "EditorUI::orderUpCustomItem", "pseudocode": "// \n// EditorUI::orderUpCustomItem from 0x697994 to 0x6979f8 (100 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x8cf40\n// > EditorUI::createCustomItems @ 0x697740\n// > <???> @ 0x122cce8\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::orderUpCustomItem(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // x0\n  int v4; // w20\n\n  if ( a1->m_selectedObjectIndex < 0 )\n  {\n    v3 = GameManager::sharedState();\n    v4 = GameManager::reorderKey(v3, a1->m_selectedObjectIndex, 1);\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::orderUpCustomItem from 0x697994 to 0x6979f8 (100 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x8cf40\n; > EditorUI::createCustomItems @ 0x697740\n; > <???> @ 0x122cce8\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x697994\nMOV             X29, SP                                                ; +0x4, 0x697998\nLDR             W1, [X0,#0x4D0]                                        ; +0x8, 0x69799c\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x6979a0\nTBNZ            W1, #0x1F, loc_6979B4                                  ; +0x10, 0x6979a4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x14, 0x6979a8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x18, 0x6979ac\nRET                                                                    ; +0x1c, 0x6979b0\nMOV             X19, X0                                                ; +0x20, 0x6979b4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0x6979b8\nMOV             W2, #1; bool                                           ; +0x28, 0x6979bc\nLDR             W1, [X19,#0x4D0]; int                                  ; +0x2c, 0x6979c0\nBL              _ZN11GameManager10reorderKeyEib; GameManager::reorderKey(int,bool) ; +0x30, 0x6979c4\nMOV             W20, W0                                                ; +0x34, 0x6979c8\nLDR             W0, [X19,#0x4D0]                                       ; +0x38, 0x6979cc\nCMP             W20, W0                                                ; +0x3c, 0x6979d0\nB.EQ            loc_6979A8                                             ; +0x40, 0x6979d4\nMOV             X0, X19; this                                          ; +0x44, 0x6979d8\nBL              _ZN8EditorUI17reloadCustomItemsEv; EditorUI::reloadCustomItems(void) ; +0x48, 0x6979dc\nSTR             W20, [X19,#0x4D0]                                      ; +0x4c, 0x6979e0\nMOV             X0, X19; this                                          ; +0x50, 0x6979e4\nMOV             W1, #0; bool                                           ; +0x54, 0x6979e8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x58, 0x6979ec\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x5c, 0x6979f0\nB               _ZN8EditorUI16updateCreateMenuEb; EditorUI::updateCreateMenu(bool) ; +0x60, 0x6979f4", "xrefs": ["<???> @ 0x8cf40", "EditorUI::createCustomItems @ 0x697740", "<???> @ 0x122cce8"], "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"}