//
// sub_1003A1298 from 0x1003a1298 to 0x1003a12f0 (88 bytes)
//
// 1 xrefs:
// > GJGarageLayer::init @ 0x10039f40c
//
// 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:03:46 +0000
//
__int64 __fastcall sub_1003A1298(__int64 a1)
{
_QWORD *v2; // x0
__int64 result; // x0
v2 = CharacterColorPage::create();
v2[88] = a1 + 448;
v2[71] = a1;
(*(void (__fastcall **)(_QWORD *))(*v2 + 1312LL))(v2);
result = *(_QWORD *)(a1 + 568);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
return result;
}