//
// sub_1001A4D10 from 0x1001a4d10 to 0x1001a4d84 (116 bytes)
//
// 1 xrefs:
// > KeybindCapturePopup::init @ 0x1001a4970
//
// 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 11:00:02 +0000
//
__int64 __fastcall sub_1001A4D10(__int64 a1)
{
__int64 result; // x0
int v3; // w20
result = *(_QWORD *)(a1 + 1072);
if ( result )
{
v3 = *(unsigned __int8 *)(result + 328);
sub_1004AB5FC(result, v3 ^ 1u);
result = *(unsigned int *)(a1 + 1048);
if ( (_DWORD)result )
{
result = GJKeybindManager::isControllerChord(result);
if ( (_DWORD)result )
{
*(_DWORD *)(a1 + 1048) = GJKeybindManager::encodeChord(
(*(_DWORD *)(a1 + 1048) & 1)
- v3
+ (unsigned int)(unsigned __int16)*(_DWORD *)(a1 + 1048),
0,
0,
0);
return KeybindCapturePopup::updateChordDisplay(a1);
}
}
}
return result;
}