//
// GJGarageLayer::onPaint from 0x1403817c0 to 0x140381940 (384 bytes)
//
// 3 xrefs:
// > GJGarageLayer::init @ 0x14037c608
// > ??> @ 0x140922940
// > ??> @ 0x14092294c
//
// 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 11:31:05 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GJGarageLayer::onPaint(__int64 a1)
{
_QWORD *v2; // rbx
__int64 v3; // rax
__int64 (__fastcall *v4)(__int64); // rdx
__int64 result; // rax
__int64 v6; // rcx
v2 = operator new(0x2E0u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*v2 = &CharacterColorPage::`vftable';
v2[40] = &CharacterColorPage::`vftable';
v2[41] = &CharacterColorPage::`vftable';
v2[42] = &CharacterColorPage::`vftable';
v2[43] = &CharacterColorPage::`vftable';
v2[44] = &CharacterColorPage::`vftable';
v2[51] = &CharacterColorPage::`vftable';
v2[54] = &CharacterColorPage::`vftable';
v2[68] = &CharacterColorPage::`vftable';
*((_DWORD *)v2 + 166) = 0;
v2[85] = 0;
v2[86] = 0;
v2[87] = 0;
v2[88] = 0;
v2[89] = 0;
v2[90] = 0;
v2[91] = 0;
if ( CharacterColorPage::init((__int64)v2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);
v2 = nullptr;
}
v3 = a1 + 448;
if ( !a1 )
v3 = 0;
v2[89] = v3;
v2[71] = a1;
v4 = *(__int64 (__fastcall **)(__int64))(*v2 + 1064LL);
if ( v4 == ChallengesPage::show )
result = ChallengesPage::show((__int64)v2);
else
result = v4((__int64)v2);
v6 = *(_QWORD *)(a1 + 560);
if ( v6 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, 0);
return result;
}