//
// sub_10022172C from 0x10022172c to 0x100221790 (100 bytes)
//
// 2 xrefs:
// > sub_100220E68 @ 0x100221498
// > sub_100221674 @ 0x1002216c8
//
// 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:01:08 +0000
//
__int64 __fastcall sub_10022172C(__int64 a1, int a2)
{
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 736) + 344LL))(*(_QWORD *)(a1 + 736), a2 != 0);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 744) + 344LL))(
*(_QWORD *)(a1 + 744),
*(_DWORD *)(a1 + 728) - 1 != a2);
*(_DWORD *)(*(_QWORD *)(a1 + 680) + 420LL) = a2;
return sub_100221554(a1);
}