//
// sub_1001A50C4 from 0x1001a50c4 to 0x1001a5170 (172 bytes)
//
// 6 xrefs:
// > KeybindCapturePopup::dKeybindCapturePopup @ 0x1001a5174
// > sub_1001A5178 @ 0x1001a517c
// > sub_1001A5180 @ 0x1001a5184
// > sub_1001A5188 @ 0x1001a5190
// > sub_1001A519C @ 0x1001a51a8
// > sub_1001A51B4 @ 0x1001a51c0
//
// 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_1001A50C4(__int64 a1)
{
__int64 v2; // x0
void *v3; // x0
*(_QWORD *)a1 = off_1008E51B0;
*(_QWORD *)(a1 + 320) = off_1008E57B0;
*(_QWORD *)(a1 + 328) = &off_1008E5820;
*(_QWORD *)(a1 + 336) = off_1008E5838;
*(_QWORD *)(a1 + 344) = off_1008E5858;
*(_QWORD *)(a1 + 352) = off_1008E5880;
*(_QWORD *)(a1 + 408) = off_1008E58B0;
*(_QWORD *)(a1 + 432) = off_1008E5930;
*(_QWORD *)(a1 + 544) = off_1008E5950;
*(_QWORD *)(a1 + 664) = &off_1008E5998;
*(_QWORD *)(a1 + 672) = off_1008E59B0;
*(_QWORD *)(a1 + 1016) = off_1008E59D0;
v2 = cocos2d::CCDirector::sharedDirector(a1);
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2) + 134) = 0;
if ( *(_BYTE *)(a1 + 1054) == 1 )
{
v3 = cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey((__int64)v3, (__int64)"controller_outline.png");
}
return sub_1001ABB48(a1);
}