{"type": "func", "start": 4301340256, "end": 4301340487, "name": "GJKeybindManager::sharedState", "pseudocode": "// \n// GJKeybindManager::sharedState from 0x100613e60 to 0x100613f47 (231 bytes)\n// \n// 36 xrefs:\n// > GameManager::dataLoaded @ 0x10037350d\n// > GameManager::encodeDataTo @ 0x100375749\n// > UILayer::togglePlatformerMode @ 0x1004c2ac5\n// > UILayer::togglePlatformerMode @ 0x1004c2aec\n// > UILayer::applyLevelBindings @ 0x1004c2d51\n// > UILayer::applyLevelBindings @ 0x1004c2d73\n// > UILayer::reapplyLevelControls @ 0x1004c2dea\n// > UILayer::reapplyLevelControls @ 0x1004c2e08\n// > UILayer::editorPlaytest @ 0x1004c3829\n// > UILayer::editorPlaytest @ 0x1004c3847\n// > UILayer::handleAction @ 0x1004c3982\n// > sub_1004C5CF0 @ 0x1004c5d73\n// > KeybindCapturePopup::updateConflictLabel @ 0x1005b51a8\n// > KeybindCapturePopup::updateConflictLabel @ 0x1005b5246\n// > KeybindCapturePopup::updateConflictLabel @ 0x1005b53ac\n// > KeybindCapturePopup::updateConflictLabel @ 0x1005b5414\n// > GameSettingsLayer::onCustomButton @ 0x100603320\n// > KeybindingsLayer::buildContentForTab @ 0x1006e2e44\n// > KeybindingsLayer::buildContentForTab @ 0x1006e2f38\n// > KeybindingsLayer::buildContentForTab @ 0x1006e2f95\n// > KeybindingsLayer::buildContentForTab @ 0x1006e3006\n// > GlobalKeybindSource::chordsForAction @ 0x1006e4dec\n// > GlobalKeybindSource::actionsForChord @ 0x1006e4e1c\n// > GlobalKeybindSource::bindChord @ 0x1006e4e4c\n// > GlobalKeybindSource::unbindChord @ 0x1006e4e7c\n// > AppDelegate::setupGLView @ 0x10073b6ab\n// > sub_10091E3E0 @ 0x10091e3eb\n// > sub_10091E4F0 @ 0x10091e523\n// > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x10091e948\n// > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x10091e957\n// > sub_1009241C0 @ 0x1009241d6\n// > sub_1009241C0 @ 0x10092420e\n// > sub_1009241C0 @ 0x100924246\n// > sub_1009241C0 @ 0x10092427e\n// > sub_1009241C0 @ 0x1009242b6\n// > sub_1009241C0 @ 0x1009242ee\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 12:34:36 +0000\n// \n\n__int64 GJKeybindManager::sharedState()\n{\n  __int64 result; // rax\n  _OWORD *v1; // rbx\n\n  result = qword_100BE5A80;\n  if ( !qword_100BE5A80 )\n  {\n    v1 = operator new(0xC0u);\n    *v1 = 0;\n    v1[1] = 0;\n    v1[2] = 0;\n    v1[3] = 0;\n    v1[4] = 0;\n    v1[5] = 0;\n    v1[6] = 0;\n    v1[7] = 0;\n    v1[8] = 0;\n    v1[9] = 0;\n    v1[10] = 0;\n    v1[11] = 0;\n    cocos2d::CCObject::CCObject((__int64)v1);\n    *(_QWORD *)v1 = off_100B7FCC0;\n    *(_OWORD *)((char *)v1 + 56) = 0;\n    *(_OWORD *)((char *)v1 + 72) = 0;\n    *((_DWORD *)v1 + 22) = 1065353216;\n    v1[6] = 0;\n    v1[7] = 0;\n    *((_DWORD *)v1 + 32) = 1065353216;\n    v1[9] = 0;\n    *((_QWORD *)v1 + 17) = v1 + 9;\n    *(_OWORD *)((char *)v1 + 168) = 0;\n    *((_QWORD *)v1 + 20) = (char *)v1 + 168;\n    *((_BYTE *)v1 + 184) = 0;\n    qword_100BE5A80 = (__int64)v1;\n    GJKeybindManager::loadDefaults(v1);\n    return qword_100BE5A80;\n  }\n  return result;\n}", "assembly": "; \n; GJKeybindManager::sharedState from 0x100613e60 to 0x100613f47 (231 bytes)\n; \n; 36 xrefs:\n; > GameManager::dataLoaded @ 0x10037350d\n; > GameManager::encodeDataTo @ 0x100375749\n; > UILayer::togglePlatformerMode @ 0x1004c2ac5\n; > UILayer::togglePlatformerMode @ 0x1004c2aec\n; > UILayer::applyLevelBindings @ 0x1004c2d51\n; > UILayer::applyLevelBindings @ 0x1004c2d73\n; > UILayer::reapplyLevelControls @ 0x1004c2dea\n; > UILayer::reapplyLevelControls @ 0x1004c2e08\n; > UILayer::editorPlaytest @ 0x1004c3829\n; > UILayer::editorPlaytest @ 0x1004c3847\n; > UILayer::handleAction @ 0x1004c3982\n; > sub_1004C5CF0 @ 0x1004c5d73\n; > KeybindCapturePopup::updateConflictLabel @ 0x1005b51a8\n; > KeybindCapturePopup::updateConflictLabel @ 0x1005b5246\n; > KeybindCapturePopup::updateConflictLabel @ 0x1005b53ac\n; > KeybindCapturePopup::updateConflictLabel @ 0x1005b5414\n; > GameSettingsLayer::onCustomButton @ 0x100603320\n; > KeybindingsLayer::buildContentForTab @ 0x1006e2e44\n; > KeybindingsLayer::buildContentForTab @ 0x1006e2f38\n; > KeybindingsLayer::buildContentForTab @ 0x1006e2f95\n; > KeybindingsLayer::buildContentForTab @ 0x1006e3006\n; > GlobalKeybindSource::chordsForAction @ 0x1006e4dec\n; > GlobalKeybindSource::actionsForChord @ 0x1006e4e1c\n; > GlobalKeybindSource::bindChord @ 0x1006e4e4c\n; > GlobalKeybindSource::unbindChord @ 0x1006e4e7c\n; > AppDelegate::setupGLView @ 0x10073b6ab\n; > sub_10091E3E0 @ 0x10091e3eb\n; > sub_10091E4F0 @ 0x10091e523\n; > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x10091e948\n; > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x10091e957\n; > sub_1009241C0 @ 0x1009241d6\n; > sub_1009241C0 @ 0x10092420e\n; > sub_1009241C0 @ 0x100924246\n; > sub_1009241C0 @ 0x10092427e\n; > sub_1009241C0 @ 0x1009242b6\n; > sub_1009241C0 @ 0x1009242ee\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 12:34:36 +0000\n; \npush    rbp                                                            ; +0x0, 0x100613e60\nmov     rbp, rsp                                                       ; +0x1, 0x100613e61\npush    r14                                                            ; +0x4, 0x100613e64\npush    rbx                                                            ; +0x6, 0x100613e66\nmov     rax, cs:qword_100BE5A80                                        ; +0x7, 0x100613e67\ntest    rax, rax                                                       ; +0xe, 0x100613e6e\njz      short loc_100613E78                                            ; +0x11, 0x100613e71\npop     rbx                                                            ; +0x13, 0x100613e73\npop     r14                                                            ; +0x14, 0x100613e74\npop     rbp                                                            ; +0x16, 0x100613e76\nretn                                                                   ; +0x17, 0x100613e77\nmov     edi, 0C0h; __sz                                                ; +0x18, 0x100613e78\ncall    __Znwm; operator new(ulong)                                    ; +0x1d, 0x100613e7d\nmov     rbx, rax                                                       ; +0x22, 0x100613e82\nxorps   xmm0, xmm0                                                     ; +0x25, 0x100613e85\nmovaps  xmmword ptr [rax], xmm0                                        ; +0x28, 0x100613e88\nmovaps  xmmword ptr [rax+10h], xmm0                                    ; +0x2b, 0x100613e8b\nmovaps  xmmword ptr [rax+20h], xmm0                                    ; +0x2f, 0x100613e8f\nmovaps  xmmword ptr [rax+30h], xmm0                                    ; +0x33, 0x100613e93\nmovaps  xmmword ptr [rax+40h], xmm0                                    ; +0x37, 0x100613e97\nmovaps  xmmword ptr [rax+50h], xmm0                                    ; +0x3b, 0x100613e9b\nmovaps  xmmword ptr [rax+60h], xmm0                                    ; +0x3f, 0x100613e9f\nmovaps  xmmword ptr [rax+70h], xmm0                                    ; +0x43, 0x100613ea3\nmovaps  xmmword ptr [rax+80h], xmm0                                    ; +0x47, 0x100613ea7\nmovaps  xmmword ptr [rax+90h], xmm0                                    ; +0x4e, 0x100613eae\nmovaps  xmmword ptr [rax+0A0h], xmm0                                   ; +0x55, 0x100613eb5\nmovaps  xmmword ptr [rax+0B0h], xmm0                                   ; +0x5c, 0x100613ebc\nmov     rdi, rax                                                       ; +0x63, 0x100613ec3\ncall    cocos2d__CCObject__CCObject                                    ; +0x66, 0x100613ec6\nlea     rax, off_100B7FCC0                                             ; +0x6b, 0x100613ecb\nmov     [rbx], rax                                                     ; +0x72, 0x100613ed2\nxorps   xmm0, xmm0                                                     ; +0x75, 0x100613ed5\nmovups  xmmword ptr [rbx+38h], xmm0                                    ; +0x78, 0x100613ed8\nmovups  xmmword ptr [rbx+48h], xmm0                                    ; +0x7c, 0x100613edc\nmov     dword ptr [rbx+58h], 3F800000h                                 ; +0x80, 0x100613ee0\nmovups  xmmword ptr [rbx+60h], xmm0                                    ; +0x87, 0x100613ee7\nmovups  xmmword ptr [rbx+70h], xmm0                                    ; +0x8b, 0x100613eeb\nmov     dword ptr [rbx+80h], 3F800000h                                 ; +0x8f, 0x100613eef\nlea     rax, [rbx+90h]                                                 ; +0x99, 0x100613ef9\nmovups  xmmword ptr [rbx+90h], xmm0                                    ; +0xa0, 0x100613f00\nmov     [rbx+88h], rax                                                 ; +0xa7, 0x100613f07\nmov     rax, rbx                                                       ; +0xae, 0x100613f0e\nadd     rax, 0A8h                                                      ; +0xb1, 0x100613f11\nmovups  xmmword ptr [rbx+0A8h], xmm0                                   ; +0xb7, 0x100613f17\nmov     [rbx+0A0h], rax                                                ; +0xbe, 0x100613f1e\nmov     byte ptr [rbx+0B8h], 0                                         ; +0xc5, 0x100613f25\nmov     cs:qword_100BE5A80, rbx                                        ; +0xcc, 0x100613f2c\nmov     rdi, rbx                                                       ; +0xd3, 0x100613f33\ncall    GJKeybindManager__loadDefaults                                 ; +0xd6, 0x100613f36\nmov     rax, cs:qword_100BE5A80                                        ; +0xdb, 0x100613f3b\npop     rbx                                                            ; +0xe2, 0x100613f42\npop     r14                                                            ; +0xe3, 0x100613f43\npop     rbp                                                            ; +0xe5, 0x100613f45\nretn                                                                   ; +0xe6, 0x100613f46", "xrefs": ["GameManager::dataLoaded @ 0x10037350d", "GameManager::encodeDataTo @ 0x100375749", "UILayer::togglePlatformerMode @ 0x1004c2ac5", "UILayer::togglePlatformerMode @ 0x1004c2aec", "UILayer::applyLevelBindings @ 0x1004c2d51", "UILayer::applyLevelBindings @ 0x1004c2d73", "UILayer::reapplyLevelControls @ 0x1004c2dea", "UILayer::reapplyLevelControls @ 0x1004c2e08", "UILayer::editorPlaytest @ 0x1004c3829", "UILayer::editorPlaytest @ 0x1004c3847", "UILayer::handleAction @ 0x1004c3982", "sub_1004C5CF0 @ 0x1004c5d73", "KeybindCapturePopup::updateConflictLabel @ 0x1005b51a8", "KeybindCapturePopup::updateConflictLabel @ 0x1005b5246", "KeybindCapturePopup::updateConflictLabel @ 0x1005b53ac", "KeybindCapturePopup::updateConflictLabel @ 0x1005b5414", "GameSettingsLayer::onCustomButton @ 0x100603320", "KeybindingsLayer::buildContentForTab @ 0x1006e2e44", "KeybindingsLayer::buildContentForTab @ 0x1006e2f38", "KeybindingsLayer::buildContentForTab @ 0x1006e2f95", "KeybindingsLayer::buildContentForTab @ 0x1006e3006", "GlobalKeybindSource::chordsForAction @ 0x1006e4dec", "GlobalKeybindSource::actionsForChord @ 0x1006e4e1c", "GlobalKeybindSource::bindChord @ 0x1006e4e4c", "GlobalKeybindSource::unbindChord @ 0x1006e4e7c", "AppDelegate::setupGLView @ 0x10073b6ab", "sub_10091E3E0 @ 0x10091e3eb", "sub_10091E4F0 @ 0x10091e523", "KeybindingsSettingsPopup::FLAlert_Clicked @ 0x10091e948", "KeybindingsSettingsPopup::FLAlert_Clicked @ 0x10091e957", "sub_1009241C0 @ 0x1009241d6", "sub_1009241C0 @ 0x10092420e", "sub_1009241C0 @ 0x100924246", "sub_1009241C0 @ 0x10092427e", "sub_1009241C0 @ 0x1009242b6", "sub_1009241C0 @ 0x1009242ee"], "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"}