//
// GJKeybindManager::chordToString from 0x10018c6e8 to 0x10018c7ac (196 bytes)
//
// 3 xrefs:
// > KeybindingsLayer::buildContentForTab @ 0x100024a50
// > KeybindingsLayer::actionsToShow @ 0x10002568c
// > KeybindCapturePopup::updateChordDisplay @ 0x1001a4ee4
//
// 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 10:59:53 +0000
//
std::string *__usercall GJKeybindManager::chordToString@(std::string *a1@, std::string *a2@)
{
int v2; // w20
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
const std::string::value_type *v8; // x1
v2 = (int)a1;
a2->__r_.__value_.__r.__words[0] = 0;
a2->__r_.__value_.__l.__size_ = 0;
a2->__r_.__value_.__r.__words[2] = 0;
if ( ((unsigned int)a1 & 0x10000) != 0 )
a1 = std::string::append(a2, "Ctrl+");
if ( (v2 & 0x20000) != 0 )
a1 = std::string::append(a2, "Alt+");
if ( (v2 & 0x40000) != 0 )
a1 = std::string::append(a2, "Shift+");
if ( (unsigned int)(unsigned __int16)v2 - 1001 <= 0x2B )
return std::string::append(a2, off_1008E48F0[(unsigned __int16)v2 - 1001]);
v5 = cocos2d::CCDirector::sharedDirector(a1);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5);
v7 = sub_1002D668C(v6, (unsigned __int16)v2);
if ( v7 )
v8 = (const std::string::value_type *)v7;
else
v8 = "?";
return std::string::append(a2, v8);
}