//
// sub_C08614 from 0xc08614 to 0xc086ec (216 bytes)
//
// 3 xrefs:
// > GJKeybindManager::applyMovementOverride @ 0xc0d564
// > GJKeybindManager::applyMovementOverride @ 0xc0d750
// > GJKeybindManager::applyMovementOverride @ 0xc0db54
//
// 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 sub_C08614(__int64 a1)
{
unsigned int *v2; // x20
char *v3; // x19
char *v4; // x25
void *v6; // [xsp+50h] [xbp+50h] BYREF
char *v7; // [xsp+58h] [xbp+58h]
if ( !a1 )
return 0;
v2 = (unsigned int *)&unk_119B410;
while ( 1 )
{
(*(void (__fastcall **)(void **__return_ptr, __int64, _QWORD))(*(_QWORD *)a1 + 16LL))(&v6, a1, *v2);
v3 = (char *)v6;
v4 = v7;
if ( v6 )
{
if ( v6 != v7 )
v7 += 4 * ~((unsigned __int64)(v7 - 4 - (_BYTE *)v6) >> 2);
operator delete(v6);
}
if ( v3 != v4 )
break;
if ( ++v2 == (unsigned int *)&unk_119B428 )
return 0;
}
return 1;
}