//
// GJKeybindManager::sharedState from 0x7160b0 to 0x71612e (126 bytes)
//
// 25 xrefs:
// > AppDelegate::setupGLView @ 0x3f6d64
// > UILayer::~UILayer @ 0x3fc1e8
// > UILayer::applyLevelBindings @ 0x3fc69e
// > UILayer::applyLevelBindings @ 0x3fc6b4
// > UILayer::handleAction @ 0x3fdf28
// > GameManager::dataLoaded @ 0x41c5a8
// > GameManager::encodeDataTo @ 0x41de78
// > GlobalKeybindSource::unbindChord @ 0x588ea0
// > GlobalKeybindSource::bindChord @ 0x588eb6
// > GlobalKeybindSource::actionsForChord @ 0x588ecc
// > GlobalKeybindSource::chordsForAction @ 0x588ee4
// > KeybindingsLayer::buildContentForTab @ 0x589fb2
// > KeybindingsLayer::buildContentForTab @ 0x58a020
// > KeybindingsLayer::buildContentForTab @ 0x58a49e
// > KeybindingsLayer::buildContentForTab @ 0x58a4c2
// > GameSettingsLayer::onCustomButton @ 0x710bca
// > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x796f04
// > KeybindingsSettingsPopup::FLAlert_Clicked @ 0x796f1a
// > KeybindingsSettingsPopup::onExport @ 0x79701e
// > KeybindingsSettingsPopup::onImport @ 0x7975f2
// > LevelControlConfig::bindGlobalBinds @ 0x7989ca
// > KeybindCapturePopup::updateConflictLabel @ 0x79a516
// > KeybindCapturePopup::updateConflictLabel @ 0x79a55a
// > KeybindCapturePopup::updateConflictLabel @ 0x79a626
// > KeybindCapturePopup::updateConflictLabel @ 0x79a666
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:57:47 +0000
//
int __fastcall GJKeybindManager::sharedState(GJKeybindManager *this)
{
_DWORD *v1; // r4
if ( !dword_D2DC58 )
{
v1 = (_DWORD *)operator new(0x78u);
memset(v1, 0, 0x78u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v1);
v1[17] = 1065353216;
v1[22] = 1065353216;
*v1 = &off_CEBA30;
v1[13] = 0;
v1[14] = 0;
v1[15] = 0;
v1[16] = 0;
v1[18] = 0;
v1[19] = 0;
v1[20] = 0;
v1[21] = 0;
v1[24] = 0;
v1[25] = 0;
v1[27] = 0;
v1[28] = 0;
*((_BYTE *)v1 + 116) = 0;
v1[23] = v1 + 24;
v1[26] = v1 + 27;
dword_D2DC58 = (int)v1;
GJKeybindManager::init((GJKeybindManager *)v1);
}
return dword_D2DC58;
}