{"type": "func", "start": 4298656144, "end": 4298656186, "name": "GameManager::reorderKey", "pseudocode": "// \n// GameManager::reorderKey from 0x100384990 to 0x1003849ba (42 bytes)\n// \n// 2 xrefs:\n// > EditorUI::orderUpCustomItem @ 0x10003153d\n// > EditorUI::orderDownCustomItem @ 0x1000315fa\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\nint __fastcall GameManager::reorderKey(GameManager *a1, int a2, bool a3)\n{\n  int v3; // ebx\n  int NextUsedKey; // eax\n\n  v3 = a2;\n  NextUsedKey = GameManager::getNextUsedKey(a1, a2, a3);\n  if ( NextUsedKey )\n  {\n    v3 = NextUsedKey;\n    GameManager::switchCustomObjects(a1, a2, NextUsedKey);\n  }\n  return v3;\n}", "assembly": "; \n; GameManager::reorderKey from 0x100384990 to 0x1003849ba (42 bytes)\n; \n; 2 xrefs:\n; > EditorUI::orderUpCustomItem @ 0x10003153d\n; > EditorUI::orderDownCustomItem @ 0x1000315fa\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, 0x100384990\nmov     rbp, rsp                                                       ; +0x1, 0x100384991\npush    r14                                                            ; +0x4, 0x100384994\npush    rbx                                                            ; +0x6, 0x100384996\nmov     ebx, esi                                                       ; +0x7, 0x100384997\nmov     r14, rdi                                                       ; +0x9, 0x100384999\ncall    GameManager__getNextUsedKey                                    ; +0xc, 0x10038499c\ntest    eax, eax                                                       ; +0x11, 0x1003849a1\njz      short loc_1003849B3                                            ; +0x13, 0x1003849a3\nmov     rdi, r14                                                       ; +0x15, 0x1003849a5\nmov     esi, ebx                                                       ; +0x18, 0x1003849a8\nmov     edx, eax                                                       ; +0x1a, 0x1003849aa\nmov     ebx, eax                                                       ; +0x1c, 0x1003849ac\ncall    GameManager__switchCustomObjects                               ; +0x1e, 0x1003849ae\nmov     eax, ebx                                                       ; +0x23, 0x1003849b3\npop     rbx                                                            ; +0x25, 0x1003849b5\npop     r14                                                            ; +0x26, 0x1003849b6\npop     rbp                                                            ; +0x28, 0x1003849b8\nretn                                                                   ; +0x29, 0x1003849b9", "xrefs": ["EditorUI::orderUpCustomItem @ 0x10003153d", "EditorUI::orderDownCustomItem @ 0x1000315fa"], "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"}