{"type": "func", "start": 4296585400, "end": 4296585568, "name": "GJKeybindManager::sharedState", "pseudocode": "// \n// GJKeybindManager::sharedState from 0x10018b0b8 to 0x10018b160 (168 bytes)\n// \n// 25 xrefs:\n// > KeybindingsLayer::buildContentForTab @ 0x10002487c\n// > KeybindingsLayer::buildContentForTab @ 0x1000248f8\n// > KeybindingsLayer::buildContentForTab @ 0x10002493c\n// > KeybindingsLayer::buildContentForTab @ 0x100024980\n// > GlobalKeybindSource::chordsForAction @ 0x100025fcc\n// > GlobalKeybindSource::actionsForChord @ 0x100025ff8\n// > GlobalKeybindSource::bindChord @ 0x100026024\n// > GlobalKeybindSource::unbindChord @ 0x100026050\n// > UILayer::applyLevelBindings @ 0x100050f9c\n// > UILayer::applyLevelBindings @ 0x100050fb8\n// > UILayer::handleAction @ 0x1000518d0\n// > sub_100053110 @ 0x100053164\n// > GameSettingsLayer::onCustomButton @ 0x100167094\n// > KeybindCapturePopup::updateConflictLabel @ 0x1001a524c\n// > KeybindCapturePopup::updateConflictLabel @ 0x1001a52ac\n// > KeybindCapturePopup::updateConflictLabel @ 0x1001a5418\n// > KeybindCapturePopup::updateConflictLabel @ 0x1001a545c\n// > AppDelegate::setupGLView @ 0x100306e54\n// > GameManager::dataLoaded @ 0x1003b8f3c\n// > GameManager::encodeDataTo @ 0x1003ba794\n// > sub_1004EE760 @ 0x1004ee770\n// > KeybindingsSettingsPopup::onImport @ 0x1004ee88c\n// > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1004eec18\n// > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1004eec24\n// > LevelControlConfig::bindGlobalBinds @ 0x1004f1628\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 10:59:52 +0000\n// \n\n__int64 GJKeybindManager::sharedState()\n{\n  __int64 result; // x0\n  _OWORD *v1; // x19\n\n  result = qword_1009F4158;\n  if ( !qword_1009F4158 )\n  {\n    v1 = operator new(0xC0u);\n    *v1 = 0u;\n    v1[1] = 0u;\n    v1[2] = 0u;\n    v1[3] = 0u;\n    v1[4] = 0u;\n    v1[5] = 0u;\n    v1[6] = 0u;\n    v1[7] = 0u;\n    v1[8] = 0u;\n    v1[9] = 0u;\n    v1[10] = 0u;\n    v1[11] = 0u;\n    cocos2d::CCObject::CCObject((__int64)v1);\n    *(_QWORD *)v1 = off_1008E4860;\n    *(_OWORD *)((char *)v1 + 56) = 0u;\n    *(_OWORD *)((char *)v1 + 72) = 0u;\n    *((_DWORD *)v1 + 22) = 1065353216;\n    v1[6] = 0u;\n    v1[7] = 0u;\n    *((_DWORD *)v1 + 32) = 1065353216;\n    *((_QWORD *)v1 + 18) = 0;\n    *((_QWORD *)v1 + 17) = v1 + 9;\n    *((_QWORD *)v1 + 22) = 0;\n    *((_QWORD *)v1 + 21) = 0;\n    *((_QWORD *)v1 + 19) = 0;\n    *((_QWORD *)v1 + 20) = (char *)v1 + 168;\n    *((_BYTE *)v1 + 184) = 0;\n    qword_1009F4158 = (__int64)v1;\n    GJKeybindManager::loadDefaults(v1);\n    return qword_1009F4158;\n  }\n  return result;\n}", "assembly": "; \n; GJKeybindManager::sharedState from 0x10018b0b8 to 0x10018b160 (168 bytes)\n; \n; 25 xrefs:\n; > KeybindingsLayer::buildContentForTab @ 0x10002487c\n; > KeybindingsLayer::buildContentForTab @ 0x1000248f8\n; > KeybindingsLayer::buildContentForTab @ 0x10002493c\n; > KeybindingsLayer::buildContentForTab @ 0x100024980\n; > GlobalKeybindSource::chordsForAction @ 0x100025fcc\n; > GlobalKeybindSource::actionsForChord @ 0x100025ff8\n; > GlobalKeybindSource::bindChord @ 0x100026024\n; > GlobalKeybindSource::unbindChord @ 0x100026050\n; > UILayer::applyLevelBindings @ 0x100050f9c\n; > UILayer::applyLevelBindings @ 0x100050fb8\n; > UILayer::handleAction @ 0x1000518d0\n; > sub_100053110 @ 0x100053164\n; > GameSettingsLayer::onCustomButton @ 0x100167094\n; > KeybindCapturePopup::updateConflictLabel @ 0x1001a524c\n; > KeybindCapturePopup::updateConflictLabel @ 0x1001a52ac\n; > KeybindCapturePopup::updateConflictLabel @ 0x1001a5418\n; > KeybindCapturePopup::updateConflictLabel @ 0x1001a545c\n; > AppDelegate::setupGLView @ 0x100306e54\n; > GameManager::dataLoaded @ 0x1003b8f3c\n; > GameManager::encodeDataTo @ 0x1003ba794\n; > sub_1004EE760 @ 0x1004ee770\n; > KeybindingsSettingsPopup::onImport @ 0x1004ee88c\n; > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1004eec18\n; > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1004eec24\n; > LevelControlConfig::bindGlobalBinds @ 0x1004f1628\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 10:59:52 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10018b0b8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10018b0bc\nADD             X29, SP, #0x10                                         ; +0x8, 0x10018b0c0\nADRP            X20, #qword_1009F4158@PAGE                             ; +0xc, 0x10018b0c4\nLDR             X0, [X20,#qword_1009F4158@PAGEOFF]                     ; +0x10, 0x10018b0c8\nCBNZ            X0, loc_10018B154                                      ; +0x14, 0x10018b0cc\nMOV             W0, #0xC0; __sz                                        ; +0x18, 0x10018b0d0\nBL              __Znwm; operator new(ulong)                            ; +0x1c, 0x10018b0d4\nMOV             X19, X0                                                ; +0x20, 0x10018b0d8\nMOVI            V0.16B, #0                                             ; +0x24, 0x10018b0dc\nSTP             Q0, Q0, [X0]                                           ; +0x28, 0x10018b0e0\nSTP             Q0, Q0, [X0,#0x20]                                     ; +0x2c, 0x10018b0e4\nSTP             Q0, Q0, [X0,#0x40]                                     ; +0x30, 0x10018b0e8\nSTP             Q0, Q0, [X0,#0x60]                                     ; +0x34, 0x10018b0ec\nSTP             Q0, Q0, [X0,#0x80]                                     ; +0x38, 0x10018b0f0\nSTP             Q0, Q0, [X0,#0xA0]                                     ; +0x3c, 0x10018b0f4\nBL              cocos2d__CCObject__CCObject                            ; +0x40, 0x10018b0f8\nADRL            X8, off_1008E4860                                      ; +0x44, 0x10018b0fc\nSTR             X8, [X19]                                              ; +0x4c, 0x10018b104\nMOVI            V0.16B, #0                                             ; +0x50, 0x10018b108\nSTUR            Q0, [X19,#0x38]                                        ; +0x54, 0x10018b10c\nSTUR            Q0, [X19,#0x48]                                        ; +0x58, 0x10018b110\nMOV             W8, #0x3F800000                                        ; +0x5c, 0x10018b114\nSTR             W8, [X19,#0x58]                                        ; +0x60, 0x10018b118\nSTP             Q0, Q0, [X19,#0x60]                                    ; +0x64, 0x10018b11c\nSTR             W8, [X19,#0x80]                                        ; +0x68, 0x10018b120\nMOV             X8, X19                                                ; +0x6c, 0x10018b124\nSTR             XZR, [X8,#0x90]!                                       ; +0x70, 0x10018b128\nSTR             X8, [X19,#0x88]                                        ; +0x74, 0x10018b12c\nSTR             XZR, [X19,#0xB0]                                       ; +0x78, 0x10018b130\nMOV             X8, X19                                                ; +0x7c, 0x10018b134\nSTR             XZR, [X8,#0xA8]!                                       ; +0x80, 0x10018b138\nSTP             XZR, X8, [X19,#0x98]                                   ; +0x84, 0x10018b13c\nSTRB            WZR, [X19,#0xB8]                                       ; +0x88, 0x10018b140\nSTR             X19, [X20,#qword_1009F4158@PAGEOFF]                    ; +0x8c, 0x10018b144\nMOV             X0, X19                                                ; +0x90, 0x10018b148\nBL              GJKeybindManager__loadDefaults                         ; +0x94, 0x10018b14c\nLDR             X0, [X20,#qword_1009F4158@PAGEOFF]                     ; +0x98, 0x10018b150\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x9c, 0x10018b154\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xa0, 0x10018b158\nRET                                                                    ; +0xa4, 0x10018b15c", "xrefs": ["KeybindingsLayer::buildContentForTab @ 0x10002487c", "KeybindingsLayer::buildContentForTab @ 0x1000248f8", "KeybindingsLayer::buildContentForTab @ 0x10002493c", "KeybindingsLayer::buildContentForTab @ 0x100024980", "GlobalKeybindSource::chordsForAction @ 0x100025fcc", "GlobalKeybindSource::actionsForChord @ 0x100025ff8", "GlobalKeybindSource::bindChord @ 0x100026024", "GlobalKeybindSource::unbindChord @ 0x100026050", "UILayer::applyLevelBindings @ 0x100050f9c", "UILayer::applyLevelBindings @ 0x100050fb8", "UILayer::handleAction @ 0x1000518d0", "sub_100053110 @ 0x100053164", "GameSettingsLayer::onCustomButton @ 0x100167094", "KeybindCapturePopup::updateConflictLabel @ 0x1001a524c", "KeybindCapturePopup::updateConflictLabel @ 0x1001a52ac", "KeybindCapturePopup::updateConflictLabel @ 0x1001a5418", "KeybindCapturePopup::updateConflictLabel @ 0x1001a545c", "AppDelegate::setupGLView @ 0x100306e54", "GameManager::dataLoaded @ 0x1003b8f3c", "GameManager::encodeDataTo @ 0x1003ba794", "sub_1004EE760 @ 0x1004ee770", "KeybindingsSettingsPopup::onImport @ 0x1004ee88c", "KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1004eec18", "KeybindingsSettingsPopup::FLAlert_Clicked @ 0x1004eec24", "LevelControlConfig::bindGlobalBinds @ 0x1004f1628"], "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"}