//
// LevelSettingsObject::init from 0x14040ea10 to 0x14040ed19 (777 bytes)
//
// 2 xrefs:
// > ??> @ 0x14078a950
// > ??> @ 0x140925dfc
//
// 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:32:01 +0000
//
bool __fastcall LevelSettingsObject::init(__int64 a1)
{
bool result; // al
cocos2d::CCObject *v3; // rax
cocos2d::CCObject *v4; // rbx
cocos2d::CCObject *v5; // rcx
char *v6; // rdi
__int64 v7; // rbx
char *ColorSprite; // rax
char *v9; // rdi
__int64 v10; // rbx
char *v11; // rax
char *v12; // rdi
__int64 v13; // rbx
char *v14; // rax
char *v15; // rdi
__int64 v16; // rbx
char *v17; // rax
char *v18; // rdi
__int64 v19; // rbx
char *v20; // rax
char *v21; // rdi
__int64 v22; // rbx
char *v23; // rax
result = cocos2d::CCNode::init((cocos2d::CCNode *)a1);
if ( result )
{
v3 = GJEffectManager::create();
v4 = v3;
if ( *(cocos2d::CCObject **)(a1 + 320) != v3 )
{
if ( v3 )
cocos2d::CCObject::retain(v3);
v5 = *(cocos2d::CCObject **)(a1 + 320);
if ( v5 )
cocos2d::CCObject::release(v5);
*(_QWORD *)(a1 + 320) = v4;
}
v6 = ColorAction::create();
*((_WORD *)v6 + 36) = 32040;
v6[74] = -1;
v7 = *(_QWORD *)(a1 + 320);
*((_DWORD *)v6 + 23) = 1000;
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(v7 + 328), (struct cocos2d::CCObject *)v6, 1000);
*(_QWORD *)(*(_QWORD *)(v7 + 736) + 8000LL) = v6;
ColorSprite = GJEffectManager::getColorSprite(v7, 1000);
*((_QWORD *)v6 + 18) = ColorSprite;
*((_QWORD *)ColorSprite + 43) = v6;
v9 = ColorAction::create();
*((_WORD *)v9 + 36) = 26112;
v9[74] = -1;
v10 = *(_QWORD *)(a1 + 320);
*((_DWORD *)v9 + 23) = 1001;
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(v10 + 328), (struct cocos2d::CCObject *)v9, 1001);
*(_QWORD *)(*(_QWORD *)(v10 + 736) + 8008LL) = v9;
v11 = GJEffectManager::getColorSprite(v10, 1001);
*((_QWORD *)v9 + 18) = v11;
*((_QWORD *)v11 + 43) = v9;
v12 = ColorAction::create();
*((_WORD *)v12 + 36) = 26112;
v12[74] = -1;
v13 = *(_QWORD *)(a1 + 320);
*((_DWORD *)v12 + 23) = 1009;
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(v13 + 328), (struct cocos2d::CCObject *)v12, 1009);
*(_QWORD *)(*(_QWORD *)(v13 + 736) + 8072LL) = v12;
v14 = GJEffectManager::getColorSprite(v13, 1009);
*((_QWORD *)v12 + 18) = v14;
*((_QWORD *)v14 + 43) = v12;
v15 = ColorAction::create();
*((_WORD *)v15 + 36) = -1;
v15[74] = -1;
v15[84] = 1;
v16 = *(_QWORD *)(a1 + 320);
*((_DWORD *)v15 + 23) = 1002;
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(v16 + 328), (struct cocos2d::CCObject *)v15, 1002);
*(_QWORD *)(*(_QWORD *)(v16 + 736) + 8016LL) = v15;
v17 = GJEffectManager::getColorSprite(v16, 1002);
*((_QWORD *)v15 + 18) = v17;
*((_QWORD *)v17 + 43) = v15;
v18 = ColorAction::create();
*((_WORD *)v18 + 36) = 32040;
v18[74] = -1;
v19 = *(_QWORD *)(a1 + 320);
*((_DWORD *)v18 + 23) = 1013;
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(v19 + 328), (struct cocos2d::CCObject *)v18, 1013);
*(_QWORD *)(*(_QWORD *)(v19 + 736) + 8104LL) = v18;
v20 = GJEffectManager::getColorSprite(v19, 1013);
*((_QWORD *)v18 + 18) = v20;
*((_QWORD *)v20 + 43) = v18;
v21 = ColorAction::create();
*((_WORD *)v21 + 36) = 32040;
v21[74] = -1;
v22 = *(_QWORD *)(a1 + 320);
*((_DWORD *)v21 + 23) = 1014;
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(v22 + 328), (struct cocos2d::CCObject *)v21, 1014);
*(_QWORD *)(*(_QWORD *)(v22 + 736) + 8112LL) = v21;
v23 = GJEffectManager::getColorSprite(v22, 1014);
*((_QWORD *)v21 + 18) = v23;
*((_QWORD *)v23 + 43) = v21;
*(_QWORD *)(a1 + 328) = 0;
*(_WORD *)(a1 + 338) = 0;
*(_QWORD *)(a1 + 352) = 0;
*(_DWORD *)(a1 + 364) = 0;
*(_BYTE *)(a1 + 368) = 0;
*(_BYTE *)(a1 + 350) = 0;
*(_BYTE *)(a1 + 336) = 0;
*(_DWORD *)(a1 + 456) = 16843009;
*(_DWORD *)(a1 + 464) = 16843009;
*(_WORD *)(a1 + 469) = 257;
*(_DWORD *)(a1 + 460) = 16843009;
*(_BYTE *)(a1 + 468) = 1;
return 1;
}
return result;
}