//
// GJGarageLayer::onPaint from 0x100355530 to 0x100355586 (86 bytes)
//
// 1 xrefs:
// > GJGarageLayer::init @ 0x10035353b
//
// This function is hookable on this platform (idp: pc, 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 12:28:51 +0000
//
__int64 __fastcall GJGarageLayer::onPaint(__int64 a1)
{
_QWORD *v1; // rax
__int64 result; // rax
__int64 v3; // rdi
v1 = (_QWORD *)CharacterColorPage::create(a1);
v1[88] = a1 + 448;
v1[71] = a1;
result = (*(__int64 (__fastcall **)(_QWORD *))(*v1 + 1312LL))(v1);
v3 = *(_QWORD *)(a1 + 568);
if ( v3 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0);
return result;
}