//
// GJKeybindManager::sharedState from 0xc0d1fc to 0xc0d2f8 (252 bytes)
//
// 26 xrefs:
// > AppDelegate::setupGLView @ 0x6e67cc
// > UILayer::~UILayer @ 0x6ee248
// > UILayer::applyLevelBindings @ 0x6ee8b0
// > UILayer::applyLevelBindings @ 0x6ee8d4
// > UILayer::handleAction @ 0x6f0d80
// > GameManager::dataLoaded @ 0x727a1c
// > GameManager::encodeDataTo @ 0x72a398
// > GlobalKeybindSource::unbindChord @ 0x994adc
// > GlobalKeybindSource::bindChord @ 0x994b00
// > GlobalKeybindSource::actionsForChord @ 0x994b28
// > GlobalKeybindSource::chordsForAction @ 0x994b5c
// > KeybindingsLayer::buildContentForTab @ 0x9963fc
// > KeybindingsLayer::buildContentForTab @ 0x9964b8
// > KeybindingsLayer::buildContentForTab @ 0x99670c
// > KeybindingsLayer::buildContentForTab @ 0x996770
// > GameSettingsLayer::onCustomButton @ 0xc054d4
// > KeybindingsSettingsPopup::FLAlert_Clicked @ 0xcefc8c
// > KeybindingsSettingsPopup::FLAlert_Clicked @ 0xcefcb0
// > KeybindingsSettingsPopup::onExport @ 0xceffe0
// > KeybindingsSettingsPopup::onImport @ 0xcf06f0
// > LevelControlConfig::bindGlobalBinds @ 0xcf2460
// > KeybindCapturePopup::updateConflictLabel @ 0xcf6ac8
// > KeybindCapturePopup::updateConflictLabel @ 0xcf6c40
// > KeybindCapturePopup::updateConflictLabel @ 0xcf6c8c
// > KeybindCapturePopup::updateConflictLabel @ 0xcf6ce0
// > ??> @ 0xefe90
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:03:55 +0000
//
__int64 __fastcall GJKeybindManager::sharedState(GJKeybindManager *this)
{
__int64 result; // x0
cocos2d::CCObject *v2; // x19
result = qword_155EB70;
if ( !qword_155EB70 )
{
v2 = (cocos2d::CCObject *)operator new(0xC0u);
*(_QWORD *)v2 = 0;
*((_QWORD *)v2 + 1) = 0;
*((_QWORD *)v2 + 2) = 0;
*((_QWORD *)v2 + 3) = 0;
*((_QWORD *)v2 + 4) = 0;
*((_QWORD *)v2 + 5) = 0;
*((_QWORD *)v2 + 6) = 0;
*((_QWORD *)v2 + 7) = 0;
*((_QWORD *)v2 + 8) = 0;
*((_QWORD *)v2 + 9) = 0;
*((_QWORD *)v2 + 10) = 0;
*((_QWORD *)v2 + 11) = 0;
*((_QWORD *)v2 + 12) = 0;
*((_QWORD *)v2 + 13) = 0;
*((_QWORD *)v2 + 14) = 0;
*((_QWORD *)v2 + 15) = 0;
*((_QWORD *)v2 + 16) = 0;
*((_QWORD *)v2 + 17) = 0;
*((_QWORD *)v2 + 18) = 0;
*((_QWORD *)v2 + 19) = 0;
*((_QWORD *)v2 + 20) = 0;
*((_QWORD *)v2 + 21) = 0;
*((_QWORD *)v2 + 22) = 0;
*((_QWORD *)v2 + 23) = 0;
cocos2d::CCObject::CCObject(v2);
*((_QWORD *)v2 + 17) = (char *)v2 + 144;
*((_QWORD *)v2 + 20) = (char *)v2 + 168;
*(_QWORD *)v2 = &off_14E39E0;
*((_QWORD *)v2 + 7) = 0;
*((_QWORD *)v2 + 8) = 0;
*((_QWORD *)v2 + 9) = 0;
*((_QWORD *)v2 + 10) = 0;
*((_QWORD *)v2 + 12) = 0;
*((_QWORD *)v2 + 13) = 0;
*((_QWORD *)v2 + 14) = 0;
*((_QWORD *)v2 + 15) = 0;
*((_QWORD *)v2 + 18) = 0;
*((_QWORD *)v2 + 19) = 0;
*((_QWORD *)v2 + 21) = 0;
*((_QWORD *)v2 + 22) = 0;
*((_BYTE *)v2 + 184) = 0;
*((float *)v2 + 22) = 1.0;
qword_155EB70 = (__int64)v2;
*((float *)v2 + 32) = 1.0;
GJKeybindManager::init(v2);
return qword_155EB70;
}
return result;
}