{"type": "func", "start": 5372412704, "end": 5372412952, "name": "GJKeybindManager::sharedState", "pseudocode": "// \n// GJKeybindManager::sharedState from 0x140388320 to 0x140388418 (248 bytes)\n// \n// 38 xrefs:\n// > AppDelegate::setupGLView @ 0x140097d48\n// > GameManager::dataLoaded @ 0x1402832de\n// > GameManager::encodeDataTo @ 0x140285ebd\n// > GameSettingsLayer::onCustomButton @ 0x1402c7b60\n// > GlobalKeybindSource::chordsForAction @ 0x1403d5210\n// > GlobalKeybindSource::actionsForChord @ 0x1403d5250\n// > GlobalKeybindSource::bindChord @ 0x1403d528f\n// > GlobalKeybindSource::unbindChord @ 0x1403d52bf\n// > KeybindingsLayer::buildContentForTab @ 0x1403d6ee7\n// > KeybindingsLayer::buildContentForTab @ 0x1403d6f98\n// > KeybindingsLayer::buildContentForTab @ 0x1403d700b\n// > KeybindingsLayer::buildContentForTab @ 0x1403d7063\n// > KeybindingsSettingsPopup::onExport @ 0x1403d9492\n// > KeybindingsSettingsPopup::onImport @ 0x1403d969a\n// > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1403d9e08\n// > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1403d9e1c\n// > LevelEditorLayer::init @ 0x1403eda86\n// > LevelEditorLayer::init @ 0x1403eda9d\n// > LevelEditorLayer::onPlaytest @ 0x1403fe901\n// > LevelEditorLayer::onPlaytest @ 0x1403fe918\n// > LevelEditorLayer::onPausePlaytest @ 0x1403ffbb6\n// > LevelEditorLayer::onPausePlaytest @ 0x1403ffbcb\n// > LevelEditorLayer::onResumePlaytest @ 0x1403ffd77\n// > LevelEditorLayer::onResumePlaytest @ 0x1403ffd8c\n// > LevelEditorLayer::onStopPlaytest @ 0x1403fff64\n// > LevelEditorLayer::onStopPlaytest @ 0x1403fff7b\n// > LevelControlConfig::bindGlobalBinds @ 0x14044b421\n// > KeybindCapturePopup::updateConflictLabel @ 0x14044e58d\n// > KeybindCapturePopup::updateConflictLabel @ 0x14044e628\n// > KeybindCapturePopup::updateConflictLabel @ 0x14044e827\n// > KeybindCapturePopup::updateConflictLabel @ 0x14044e880\n// > PlatformerControlsPopup::reapplyRuntime @ 0x1404509a8\n// > PlatformerControlsPopup::reapplyRuntime @ 0x1404509bf\n// > UILayer::dUILayer @ 0x14066fef9\n// > UILayer::applyLevelBindings @ 0x140670c27\n// > UILayer::applyLevelBindings @ 0x140670c44\n// > UILayer::handleAction @ 0x140671406\n// > <???> @ 0x140922c7c\n// \n// This function is hookable on this platform (idp: pc, 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 11:31:08 +0000\n// \n\n// Hidden C++ exception states: #wind=5\n__int64 GJKeybindManager::sharedState()\n{\n  __int64 result; // rax\n  _QWORD *v1; // rax\n  _QWORD *v2; // rax\n  _QWORD *v3; // [rsp+30h] [rbp+8h]\n\n  result = qword_14090C000;\n  if ( !qword_14090C000 )\n  {\n    v3 = operator new(0xE0u);\n    memset(v3, 0, 0xE0u);\n    cocos2d::CCKeyboardActionManager::CCKeyboardActionManager((cocos2d::CCKeyboardActionManager *)v3);\n    *v3 = &GJKeybindManager::`vftable';\n    sub_14038D060(v3 + 7);\n    sub_14038D060(v3 + 15);\n    v3[23] = 0;\n    v3[24] = 0;\n    v1 = operator new(0x38u);\n    *v1 = v1;\n    v1[1] = v1;\n    v1[2] = v1;\n    *((_WORD *)v1 + 12) = 257;\n    v3[23] = v1;\n    v3[25] = 0;\n    v3[26] = 0;\n    v2 = operator new(0x38u);\n    *v2 = v2;\n    v2[1] = v2;\n    v2[2] = v2;\n    *((_WORD *)v2 + 12) = 257;\n    v3[25] = v2;\n    *((_BYTE *)v3 + 216) = 0;\n    qword_14090C000 = (__int64)v3;\n    GJKeybindManager::loadDefaults(v3);\n    return qword_14090C000;\n  }\n  return result;\n}", "assembly": "; \n; GJKeybindManager::sharedState from 0x140388320 to 0x140388418 (248 bytes)\n; \n; 38 xrefs:\n; > AppDelegate::setupGLView @ 0x140097d48\n; > GameManager::dataLoaded @ 0x1402832de\n; > GameManager::encodeDataTo @ 0x140285ebd\n; > GameSettingsLayer::onCustomButton @ 0x1402c7b60\n; > GlobalKeybindSource::chordsForAction @ 0x1403d5210\n; > GlobalKeybindSource::actionsForChord @ 0x1403d5250\n; > GlobalKeybindSource::bindChord @ 0x1403d528f\n; > GlobalKeybindSource::unbindChord @ 0x1403d52bf\n; > KeybindingsLayer::buildContentForTab @ 0x1403d6ee7\n; > KeybindingsLayer::buildContentForTab @ 0x1403d6f98\n; > KeybindingsLayer::buildContentForTab @ 0x1403d700b\n; > KeybindingsLayer::buildContentForTab @ 0x1403d7063\n; > KeybindingsSettingsPopup::onExport @ 0x1403d9492\n; > KeybindingsSettingsPopup::onImport @ 0x1403d969a\n; > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1403d9e08\n; > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1403d9e1c\n; > LevelEditorLayer::init @ 0x1403eda86\n; > LevelEditorLayer::init @ 0x1403eda9d\n; > LevelEditorLayer::onPlaytest @ 0x1403fe901\n; > LevelEditorLayer::onPlaytest @ 0x1403fe918\n; > LevelEditorLayer::onPausePlaytest @ 0x1403ffbb6\n; > LevelEditorLayer::onPausePlaytest @ 0x1403ffbcb\n; > LevelEditorLayer::onResumePlaytest @ 0x1403ffd77\n; > LevelEditorLayer::onResumePlaytest @ 0x1403ffd8c\n; > LevelEditorLayer::onStopPlaytest @ 0x1403fff64\n; > LevelEditorLayer::onStopPlaytest @ 0x1403fff7b\n; > LevelControlConfig::bindGlobalBinds @ 0x14044b421\n; > KeybindCapturePopup::updateConflictLabel @ 0x14044e58d\n; > KeybindCapturePopup::updateConflictLabel @ 0x14044e628\n; > KeybindCapturePopup::updateConflictLabel @ 0x14044e827\n; > KeybindCapturePopup::updateConflictLabel @ 0x14044e880\n; > PlatformerControlsPopup::reapplyRuntime @ 0x1404509a8\n; > PlatformerControlsPopup::reapplyRuntime @ 0x1404509bf\n; > UILayer::dUILayer @ 0x14066fef9\n; > UILayer::applyLevelBindings @ 0x140670c27\n; > UILayer::applyLevelBindings @ 0x140670c44\n; > UILayer::handleAction @ 0x140671406\n; > <???> @ 0x140922c7c\n; \n; This function is hookable on this platform (idp: pc, 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 11:31:08 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140388320\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140388325\npush    rdi                                                            ; +0xa, 0x14038832a\nsub     rsp, 20h                                                       ; +0xb, 0x14038832b\nmov     rax, cs:qword_14090C000                                        ; +0xf, 0x14038832f\ntest    rax, rax                                                       ; +0x16, 0x140388336\njnz     loc_140388408                                                  ; +0x19, 0x140388339\nmov     ecx, 0E0h; Size                                                ; +0x1f, 0x14038833f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x24, 0x140388344\nmov     rdi, rax                                                       ; +0x29, 0x140388349\nmov     [rsp+28h+arg_0], rax                                           ; +0x2c, 0x14038834c\nxor     edx, edx; Val                                                  ; +0x31, 0x140388351\nmov     r8d, 0E0h; Size                                                ; +0x33, 0x140388353\nmov     rcx, rax; void *                                               ; +0x39, 0x140388359\ncall    memset                                                         ; +0x3c, 0x14038835c\nmov     rcx, rdi                                                       ; +0x41, 0x140388361\ncall    cs:??0CCKeyboardActionManager@cocos2d@@QEAA@XZ; cocos2d::CCKeyboardActionManager::CCKeyboardActionManager(void) ; +0x44, 0x140388364\nnop                                                                    ; +0x4a, 0x14038836a\nlea     rax, ??_7GJKeybindManager@@6B@; const GJKeybindManager::`vftable' ; +0x4b, 0x14038836b\nmov     [rdi], rax                                                     ; +0x52, 0x140388372\nlea     rcx, [rdi+38h]                                                 ; +0x55, 0x140388375\ncall    sub_14038D060                                                  ; +0x59, 0x140388379\nnop                                                                    ; +0x5e, 0x14038837e\nlea     rcx, [rdi+78h]                                                 ; +0x5f, 0x14038837f\ncall    sub_14038D060                                                  ; +0x63, 0x140388383\nnop                                                                    ; +0x68, 0x140388388\nxor     esi, esi                                                       ; +0x69, 0x140388389\nmov     [rdi+0B8h], rsi                                                ; +0x6b, 0x14038838b\nmov     [rdi+0C0h], rsi                                                ; +0x72, 0x140388392\nmov     ecx, 38h ; '8'; Size                                           ; +0x79, 0x140388399\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7e, 0x14038839e\nmov     [rax], rax                                                     ; +0x83, 0x1403883a3\nmov     [rax+8], rax                                                   ; +0x86, 0x1403883a6\nmov     [rax+10h], rax                                                 ; +0x8a, 0x1403883aa\nmov     word ptr [rax+18h], 101h                                       ; +0x8e, 0x1403883ae\nmov     [rdi+0B8h], rax                                                ; +0x94, 0x1403883b4\nmov     [rdi+0C8h], rsi                                                ; +0x9b, 0x1403883bb\nmov     [rdi+0D0h], rsi                                                ; +0xa2, 0x1403883c2\nmov     ecx, 38h ; '8'; Size                                           ; +0xa9, 0x1403883c9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xae, 0x1403883ce\nmov     [rax], rax                                                     ; +0xb3, 0x1403883d3\nmov     [rax+8], rax                                                   ; +0xb6, 0x1403883d6\nmov     [rax+10h], rax                                                 ; +0xba, 0x1403883da\nmov     word ptr [rax+18h], 101h                                       ; +0xbe, 0x1403883de\nmov     [rdi+0C8h], rax                                                ; +0xc4, 0x1403883e4\nmov     [rdi+0D8h], sil                                                ; +0xcb, 0x1403883eb\nmov     cs:qword_14090C000, rdi                                        ; +0xd2, 0x1403883f2\nmov     rcx, rdi                                                       ; +0xd9, 0x1403883f9\ncall    GJKeybindManager__loadDefaults                                 ; +0xdc, 0x1403883fc\nmov     rax, cs:qword_14090C000                                        ; +0xe1, 0x140388401\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xe8, 0x140388408\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xed, 0x14038840d\nadd     rsp, 20h                                                       ; +0xf2, 0x140388412\npop     rdi                                                            ; +0xf6, 0x140388416\nretn                                                                   ; +0xf7, 0x140388417", "xrefs": ["AppDelegate::setupGLView @ 0x140097d48", "GameManager::dataLoaded @ 0x1402832de", "GameManager::encodeDataTo @ 0x140285ebd", "GameSettingsLayer::onCustomButton @ 0x1402c7b60", "GlobalKeybindSource::chordsForAction @ 0x1403d5210", "GlobalKeybindSource::actionsForChord @ 0x1403d5250", "GlobalKeybindSource::bindChord @ 0x1403d528f", "GlobalKeybindSource::unbindChord @ 0x1403d52bf", "KeybindingsLayer::buildContentForTab @ 0x1403d6ee7", "KeybindingsLayer::buildContentForTab @ 0x1403d6f98", "KeybindingsLayer::buildContentForTab @ 0x1403d700b", "KeybindingsLayer::buildContentForTab @ 0x1403d7063", "KeybindingsSettingsPopup::onExport @ 0x1403d9492", "KeybindingsSettingsPopup::onImport @ 0x1403d969a", "KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1403d9e08", "KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1403d9e1c", "LevelEditorLayer::init @ 0x1403eda86", "LevelEditorLayer::init @ 0x1403eda9d", "LevelEditorLayer::onPlaytest @ 0x1403fe901", "LevelEditorLayer::onPlaytest @ 0x1403fe918", "LevelEditorLayer::onPausePlaytest @ 0x1403ffbb6", "LevelEditorLayer::onPausePlaytest @ 0x1403ffbcb", "LevelEditorLayer::onResumePlaytest @ 0x1403ffd77", "LevelEditorLayer::onResumePlaytest @ 0x1403ffd8c", "LevelEditorLayer::onStopPlaytest @ 0x1403fff64", "LevelEditorLayer::onStopPlaytest @ 0x1403fff7b", "LevelControlConfig::bindGlobalBinds @ 0x14044b421", "KeybindCapturePopup::updateConflictLabel @ 0x14044e58d", "KeybindCapturePopup::updateConflictLabel @ 0x14044e628", "KeybindCapturePopup::updateConflictLabel @ 0x14044e827", "KeybindCapturePopup::updateConflictLabel @ 0x14044e880", "PlatformerControlsPopup::reapplyRuntime @ 0x1404509a8", "PlatformerControlsPopup::reapplyRuntime @ 0x1404509bf", "UILayer::dUILayer @ 0x14066fef9", "UILayer::applyLevelBindings @ 0x140670c27", "UILayer::applyLevelBindings @ 0x140670c44", "UILayer::handleAction @ 0x140671406", "<???> @ 0x140922c7c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}