//
// GJKeybindManager::encodeChord from 0xc08880 to 0xc088e8 (104 bytes)
//
// 28 xrefs:
// > GJKeybindManager::actionsForKey @ 0xc0a0b4
// > GJKeybindManager::bindKey @ 0xc0c610
// > ControllerInputNode::onButton @ 0xc963e8
// > LevelControlConfig::bindDefaultKeyboard @ 0xcf206c
// > LevelControlConfig::bindDefaultKeyboard @ 0xcf2098
// > LevelControlConfig::bindDefaultKeyboard @ 0xcf20c4
// > LevelControlConfig::bindDefaultKeyboard @ 0xcf20f0
// > LevelControlConfig::bindDefaultKeyboard @ 0xcf211c
// > LevelControlConfig::bindDefaultKeyboard @ 0xcf2148
// > LevelControlConfig::bindDefaultKeyboard @ 0xcf2174
// > LevelControlConfig::bindDefaultController @ 0xcf21bc
// > LevelControlConfig::bindDefaultController @ 0xcf21e8
// > LevelControlConfig::bindDefaultController @ 0xcf2214
// > LevelControlConfig::bindDefaultController @ 0xcf2240
// > LevelControlConfig::bindDefaultController @ 0xcf226c
// > LevelControlConfig::bindDefaultController @ 0xcf2298
// > LevelControlConfig::bindDefaultController @ 0xcf22c4
// > LevelControlConfig::bindDefaultController @ 0xcf22f0
// > LevelControlConfig::bindDefaultController @ 0xcf231c
// > LevelControlConfig::bindDefaultController @ 0xcf2348
// > LevelControlConfig::bindDefaultController @ 0xcf2374
// > LevelControlConfig::bindDefaultController @ 0xcf23a0
// > LevelControlConfig::bindDefaultController @ 0xcf23cc
// > LevelControlConfig::bindDefaultController @ 0xcf23f8
// > KeybindCapturePopup::onToggleController @ 0xcf7e5c
// > KeybindCapturePopup::keyDown @ 0xcf7efc
// > VirtualKeyboardNode::onKey @ 0xd08a4c
// > ??> @ 0x7f3a8
//
// 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:52 +0000
//
__int64 __fastcall GJKeybindManager::encodeChord(
unsigned __int16 a1,
unsigned __int8 a2,
unsigned __int8 a3,
unsigned __int8 a4)
{
unsigned int v4; // w19
int v5; // w20
int v6; // w22
int v7; // w21
v4 = a1;
v5 = a4;
v6 = a2;
v7 = a3;
if ( !GJKeybindManager::isControllerChord((GJKeybindManager *)a1) )
{
if ( v6 )
v4 |= 0x10000u;
if ( v7 )
v4 |= 0x20000u;
if ( v5 )
v4 |= 0x40000u;
}
return v4;
}