{"type": "func", "start": 12451592, "end": 12451692, "name": "EditorUI::orderDownCustomItem", "pseudocode": "// \n// EditorUI::orderDownCustomItem from 0xbdff08 to 0xbdff6c (100 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x5ea20\n// > EditorUI::createCustomItems @ 0xbdfcc4\n// > <???> @ 0x1542350\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:45 +0000\n// \n\n__int64 __fastcall EditorUI::orderDownCustomItem(__int64 this, cocos2d::CCObject *a2)\n{\n  __int64 v2; // x19\n  cocos2d::CCDictionary **v3; // x0\n  int v4; // w20\n\n  if ( (*(_DWORD *)(this + 1344) & 0x80000000) != 0 )\n  {\n    v2 = this;\n    v3 = (cocos2d::CCDictionary **)GameManager::sharedState((GameManager *)this);\n    v4 = GameManager::reorderKey(v3, *(_DWORD *)(v2 + 1344), 0);\n    this = *(unsigned int *)(v2 + 1344);\n    if ( v4 != (_DWORD)this )\n    {\n      EditorUI::reloadCustomItems((EditButtonBar **)v2);\n      *(_DWORD *)(v2 + 1344) = v4;\n      return EditorUI::updateCreateMenu((EditorUI *)v2, 0);\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::orderDownCustomItem from 0xbdff08 to 0xbdff6c (100 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x5ea20\n; > EditorUI::createCustomItems @ 0xbdfcc4\n; > <???> @ 0x1542350\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:45 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xbdff08\nMOV             X29, SP                                                ; +0x4, 0xbdff0c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xbdff10\nLDR             W1, [X0,#0x540]                                        ; +0xc, 0xbdff14\nTBNZ            W1, #0x1F, loc_BDFF28                                  ; +0x10, 0xbdff18\nLDP             X19, X20, [SP,#var_s10]                                ; +0x14, 0xbdff1c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x18, 0xbdff20\nRET                                                                    ; +0x1c, 0xbdff24\nMOV             X19, X0                                                ; +0x20, 0xbdff28\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0xbdff2c\nMOV             W2, #0; bool                                           ; +0x28, 0xbdff30\nLDR             W1, [X19,#0x540]; int                                  ; +0x2c, 0xbdff34\nBL              _ZN11GameManager10reorderKeyEib; GameManager::reorderKey(int,bool) ; +0x30, 0xbdff38\nMOV             W20, W0                                                ; +0x34, 0xbdff3c\nLDR             W0, [X19,#0x540]                                       ; +0x38, 0xbdff40\nCMP             W20, W0                                                ; +0x3c, 0xbdff44\nB.EQ            loc_BDFF1C                                             ; +0x40, 0xbdff48\nMOV             X0, X19; this                                          ; +0x44, 0xbdff4c\nBL              _ZN8EditorUI17reloadCustomItemsEv; EditorUI::reloadCustomItems(void) ; +0x48, 0xbdff50\nSTR             W20, [X19,#0x540]                                      ; +0x4c, 0xbdff54\nMOV             X0, X19; this                                          ; +0x50, 0xbdff58\nMOV             W1, #0; bool                                           ; +0x54, 0xbdff5c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x58, 0xbdff60\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x5c, 0xbdff64\nB               _ZN8EditorUI16updateCreateMenuEb; EditorUI::updateCreateMenu(bool) ; +0x60, 0xbdff68", "xrefs": ["<???> @ 0x5ea20", "EditorUI::createCustomItems @ 0xbdfcc4", "<???> @ 0x1542350"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}