{"type": "func", "start": 6912504, "end": 6912604, "name": "EditorUI::orderDownCustomItem", "pseudocode": "// \n// EditorUI::orderDownCustomItem from 0x6979f8 to 0x697a5c (100 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x42228\n// > EditorUI::createCustomItems @ 0x69779c\n// > <???> @ 0x122a168\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; // 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, 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 0x6979f8 to 0x697a5c (100 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x42228\n; > EditorUI::createCustomItems @ 0x69779c\n; > <???> @ 0x122a168\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, 0x6979f8\nMOV             X29, SP                                                ; +0x4, 0x6979fc\nLDR             W1, [X0,#0x4D0]                                        ; +0x8, 0x697a00\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x697a04\nTBNZ            W1, #0x1F, loc_697A18                                  ; +0x10, 0x697a08\nLDP             X19, X20, [SP,#var_s10]                                ; +0x14, 0x697a0c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x18, 0x697a10\nRET                                                                    ; +0x1c, 0x697a14\nMOV             X19, X0                                                ; +0x20, 0x697a18\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0x697a1c\nMOV             W2, #0; bool                                           ; +0x28, 0x697a20\nLDR             W1, [X19,#0x4D0]; int                                  ; +0x2c, 0x697a24\nBL              _ZN11GameManager10reorderKeyEib; GameManager::reorderKey(int,bool) ; +0x30, 0x697a28\nMOV             W20, W0                                                ; +0x34, 0x697a2c\nLDR             W0, [X19,#0x4D0]                                       ; +0x38, 0x697a30\nCMP             W20, W0                                                ; +0x3c, 0x697a34\nB.EQ            loc_697A0C                                             ; +0x40, 0x697a38\nMOV             X0, X19; this                                          ; +0x44, 0x697a3c\nBL              _ZN8EditorUI17reloadCustomItemsEv; EditorUI::reloadCustomItems(void) ; +0x48, 0x697a40\nSTR             W20, [X19,#0x4D0]                                      ; +0x4c, 0x697a44\nMOV             X0, X19; this                                          ; +0x50, 0x697a48\nMOV             W1, #0; bool                                           ; +0x54, 0x697a4c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x58, 0x697a50\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x5c, 0x697a54\nB               _ZN8EditorUI16updateCreateMenuEb; EditorUI::updateCreateMenu(bool) ; +0x60, 0x697a58", "xrefs": ["<???> @ 0x42228", "EditorUI::createCustomItems @ 0x69779c", "<???> @ 0x122a168"], "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"}