{"type": "func", "start": 4295169296, "end": 4295169487, "name": "EditorUI::orderUpCustomItem", "pseudocode": "// \n// EditorUI::orderUpCustomItem from 0x100031510 to 0x1000315cf (191 bytes)\n// \n// 1 xrefs:\n// > EditorUI::createCustomItems @ 0x10003185e\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 __fastcall EditorUI::orderUpCustomItem(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v2; // rax\n  int v3; // eax\n  int v4; // r14d\n  GameManager *v5; // rax\n  int IntGameVariable; // r15d\n  GameManager *v7; // rax\n  int v8; // r12d\n  EditButtonBar *m_customTabBar; // r13\n  cocos2d::CCArray *CustomItems; // rax\n\n  if ( a1->m_selectedObjectIndex < 0 )\n  {\n    v2 = GameManager::sharedState();\n    v3 = GameManager::reorderKey(v2, a1->m_selectedObjectIndex, 1);\n    if ( v3 != a1->m_selectedObjectIndex )\n    {\n      v4 = v3;\n      v5 = GameManager::sharedState();\n      IntGameVariable = GameManager::getIntGameVariable(v5, \"0049\");\n      v7 = GameManager::sharedState();\n      v8 = GameManager::getIntGameVariable(v7, \"0050\");\n      m_customTabBar = a1->m_customTabBar;\n      CustomItems = EditorUI::createCustomItems(a1);\n      EditButtonBar::loadFromItems(m_customTabBar, CustomItems, IntGameVariable, v8, 1);\n      a1->m_selectedObjectIndex = v4;\n      EditorUI::updateCreateMenu(a1, 0);\n    }\n  }\n}", "assembly": "; \n; EditorUI::orderUpCustomItem from 0x100031510 to 0x1000315cf (191 bytes)\n; \n; 1 xrefs:\n; > EditorUI::createCustomItems @ 0x10003185e\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    rbp                                                            ; +0x0, 0x100031510\nmov     rbp, rsp                                                       ; +0x1, 0x100031511\npush    r15                                                            ; +0x4, 0x100031514\npush    r14                                                            ; +0x6, 0x100031516\npush    r13                                                            ; +0x8, 0x100031518\npush    r12                                                            ; +0xa, 0x10003151a\npush    rbx                                                            ; +0xc, 0x10003151c\npush    rax                                                            ; +0xd, 0x10003151d\ncmp     dword ptr [rdi+4C0h], 0                                        ; +0xe, 0x10003151e\njns     short loc_10003154A                                            ; +0x15, 0x100031525\nmov     rbx, rdi                                                       ; +0x17, 0x100031527\ncall    GameManager__sharedState                                       ; +0x1a, 0x10003152a\nmov     esi, [rbx+4C0h]                                                ; +0x1f, 0x10003152f\nmov     rdi, rax                                                       ; +0x25, 0x100031535\nmov     edx, 1                                                         ; +0x28, 0x100031538\ncall    GameManager__reorderKey                                        ; +0x2d, 0x10003153d\ncmp     eax, [rbx+4C0h]                                                ; +0x32, 0x100031542\njnz     short loc_100031559                                            ; +0x38, 0x100031548\nadd     rsp, 8                                                         ; +0x3a, 0x10003154a\npop     rbx                                                            ; +0x3e, 0x10003154e\npop     r12                                                            ; +0x3f, 0x10003154f\npop     r13                                                            ; +0x41, 0x100031551\npop     r14                                                            ; +0x43, 0x100031553\npop     r15                                                            ; +0x45, 0x100031555\npop     rbp                                                            ; +0x47, 0x100031557\nretn                                                                   ; +0x48, 0x100031558\nmov     r14d, eax                                                      ; +0x49, 0x100031559\ncall    GameManager__sharedState                                       ; +0x4c, 0x10003155c\nlea     rsi, a0049; \"0049\"                                             ; +0x51, 0x100031561\nmov     rdi, rax                                                       ; +0x58, 0x100031568\ncall    GameManager__getIntGameVariable                                ; +0x5b, 0x10003156b\nmov     r15d, eax                                                      ; +0x60, 0x100031570\ncall    GameManager__sharedState                                       ; +0x63, 0x100031573\nlea     rsi, a0050; \"0050\"                                             ; +0x68, 0x100031578\nmov     rdi, rax                                                       ; +0x6f, 0x10003157f\ncall    GameManager__getIntGameVariable                                ; +0x72, 0x100031582\nmov     r12d, eax                                                      ; +0x77, 0x100031587\nmov     r13, [rbx+248h]                                                ; +0x7a, 0x10003158a\nmov     rdi, rbx                                                       ; +0x81, 0x100031591\ncall    EditorUI__createCustomItems                                    ; +0x84, 0x100031594\nmov     rdi, r13                                                       ; +0x89, 0x100031599\nmov     rsi, rax                                                       ; +0x8c, 0x10003159c\nmov     edx, r15d                                                      ; +0x8f, 0x10003159f\nmov     ecx, r12d                                                      ; +0x92, 0x1000315a2\nmov     r8d, 1                                                         ; +0x95, 0x1000315a5\ncall    EditButtonBar__loadFromItems                                   ; +0x9b, 0x1000315ab\nmov     [rbx+4C0h], r14d                                               ; +0xa0, 0x1000315b0\nmov     rdi, rbx                                                       ; +0xa7, 0x1000315b7\nxor     esi, esi                                                       ; +0xaa, 0x1000315ba\nadd     rsp, 8                                                         ; +0xac, 0x1000315bc\npop     rbx                                                            ; +0xb0, 0x1000315c0\npop     r12                                                            ; +0xb1, 0x1000315c1\npop     r13                                                            ; +0xb3, 0x1000315c3\npop     r14                                                            ; +0xb5, 0x1000315c5\npop     r15                                                            ; +0xb7, 0x1000315c7\npop     rbp                                                            ; +0xb9, 0x1000315c9\njmp     EditorUI__updateCreateMenu                                     ; +0xba, 0x1000315ca", "xrefs": ["EditorUI::createCustomItems @ 0x10003185e"], "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"}