//
// CharacterColorPage::show from 0x10073de90 to 0x10073e00b (379 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b9b378
//
// 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:36:28 +0000
//
__int64 __fastcall CharacterColorPage::show(__int64 a1)
{
char v2; // r14
_QWORD *v3; // rax
__int64 v4; // r12
_OWORD *v5; // rax
_OWORD *v6; // rax
__int64 v7; // rax
__int64 v8; // r15
_OWORD *v9; // rax
int HighestChildZ; // eax
int v11; // edx
float v12; // [rsp+8h] [rbp-38h] BYREF
_QWORD v13[6]; // [rsp+10h] [rbp-30h] BYREF
if ( *(_BYTE *)(a1 + 596) == 1 )
return FLAlertLayer::show((_QWORD *)a1);
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1152LL))(a1);
v3 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 192LL))(*(_QWORD *)(a1 + 584));
sub_1002782D0(v13, v3);
v4 = *(_QWORD *)(a1 + 584);
sub_100278250(&v12, -160.0, *((float *)v13 + 1));
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 184LL))(v4, &v12);
v5 = cocos2d::CCMoveTo::create(v13, (__m128)0x3F000000u);
v6 = cocos2d::CCEaseElasticOut::create((__int64)v5, 0.60000002);
cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 584), (__int64)v6);
v7 = cocos2d::CCDirector::sharedDirector();
v8 = *(_QWORD *)(a1 + 568);
if ( !v8 )
{
v8 = *(_QWORD *)(v7 + 272);
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v8);
v11 = 105;
if ( HighestChildZ >= 105 )
v11 = cocos2d::CCScene::getHighestChildZ(v8) + 1;
*(_DWORD *)(a1 + 592) = v11;
if ( v11 )
goto LABEL_6;
goto LABEL_5;
}
if ( !*(_DWORD *)(a1 + 592) )
LABEL_5:
*(_DWORD *)(a1 + 592) = 105;
LABEL_6:
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 464LL))(v8, a1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1168LL))(a1, 0);
v9 = cocos2d::CCFadeTo::create(v2, (__m128)0x3E0F5C29u);
cocos2d::CCNode::runAction(a1, (__int64)v9);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 344LL))(a1, 1);
}