{"type": "func", "start": 12451492, "end": 12451592, "name": "EditorUI::orderUpCustomItem", "pseudocode": "// \n// EditorUI::orderUpCustomItem from 0xbdfea4 to 0xbdff08 (100 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xbaaa8\n// > EditorUI::createCustomItems @ 0xbdfc68\n// > <???> @ 0x1545660\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::orderUpCustomItem(__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), 1u);\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::orderUpCustomItem from 0xbdfea4 to 0xbdff08 (100 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xbaaa8\n; > EditorUI::createCustomItems @ 0xbdfc68\n; > <???> @ 0x1545660\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, 0xbdfea4\nMOV             X29, SP                                                ; +0x4, 0xbdfea8\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xbdfeac\nLDR             W1, [X0,#0x540]                                        ; +0xc, 0xbdfeb0\nTBNZ            W1, #0x1F, loc_BDFEC4                                  ; +0x10, 0xbdfeb4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x14, 0xbdfeb8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x18, 0xbdfebc\nRET                                                                    ; +0x1c, 0xbdfec0\nMOV             X19, X0                                                ; +0x20, 0xbdfec4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0xbdfec8\nMOV             W2, #1; bool                                           ; +0x28, 0xbdfecc\nLDR             W1, [X19,#0x540]; int                                  ; +0x2c, 0xbdfed0\nBL              _ZN11GameManager10reorderKeyEib; GameManager::reorderKey(int,bool) ; +0x30, 0xbdfed4\nMOV             W20, W0                                                ; +0x34, 0xbdfed8\nLDR             W0, [X19,#0x540]                                       ; +0x38, 0xbdfedc\nCMP             W20, W0                                                ; +0x3c, 0xbdfee0\nB.EQ            loc_BDFEB8                                             ; +0x40, 0xbdfee4\nMOV             X0, X19; this                                          ; +0x44, 0xbdfee8\nBL              _ZN8EditorUI17reloadCustomItemsEv; EditorUI::reloadCustomItems(void) ; +0x48, 0xbdfeec\nSTR             W20, [X19,#0x540]                                      ; +0x4c, 0xbdfef0\nMOV             X0, X19; this                                          ; +0x50, 0xbdfef4\nMOV             W1, #0; bool                                           ; +0x54, 0xbdfef8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x58, 0xbdfefc\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x5c, 0xbdff00\nB               _ZN8EditorUI16updateCreateMenuEb; EditorUI::updateCreateMenu(bool) ; +0x60, 0xbdff04", "xrefs": ["<???> @ 0xbaaa8", "EditorUI::createCustomItems @ 0xbdfc68", "<???> @ 0x1545660"], "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"}