//
// GJKeybindManager::chordToString from 0x100617360 to 0x10061742b (203 bytes)
//
// 3 xrefs:
// > KeybindCapturePopup::updateChordDisplay @ 0x1005b4911
// > KeybindingsLayer::buildContentForTab @ 0x1006e3162
// > KeybindingsLayer::actionsToShow @ 0x1006e41f9
//
// This function is hookable on this platform (idp: pc, 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 12:34:37 +0000
//
std::string *__fastcall GJKeybindManager::chordToString(std::string *this, int a2)
{
__int64 v2; // rax
__int64 v3; // rax
const char *v4; // rax
const std::string::value_type *v5; // rsi
*(_OWORD *)&this->__r_.__value_.__l.0 = 0;
this->__r_.__value_.__r.__words[2] = 0;
if ( (a2 & 0x10000) != 0 )
std::string::append(this, "Ctrl+");
if ( (a2 & 0x20000) != 0 )
std::string::append(this, "Alt+");
if ( (a2 & 0x40000) != 0 )
std::string::append(this, "Shift+");
if ( (unsigned int)(unsigned __int16)a2 - 1001 > 0x2B )
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);
v4 = cocos2d::CCKeyboardDispatcher::keyToString(v3, (unsigned __int16)a2);
v5 = "?";
if ( v4 )
v5 = v4;
std::string::append(this, v5);
}
else
{
std::string::append(
this,
(const std::string::value_type *)&unk_100A0D8D8 + *((int *)&unk_100A0D8D8 + (unsigned __int16)a2 - 1001));
}
return this;
}