//
// LevelSettingsObject::init from 0x1000da070 to 0x1000da200 (400 bytes)
//
// 2 xrefs:
// > LevelSettingsObject::create @ 0x1000ac511
// > ??> @ 0x100ac4760
//
// 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:20:57 +0000
//
__int64 __fastcall LevelSettingsObject::init(__int64 a1)
{
__int64 result; // rax
unsigned int v3; // r15d
__int64 v4; // rax
__int64 v5; // rdi
__int64 v6; // r14
__int64 v7; // rax
__int64 v8; // rdi
__int64 v9; // rax
__int64 v10; // rdi
__int64 v11; // rax
__int64 v12; // rdi
__int64 v13; // rax
__int64 v14; // rdi
__int64 v15; // rax
__int64 v16; // rdi
__int64 v17; // rax
result = cocos2d::CCNode::init(a1);
if ( (_BYTE)result )
{
v3 = result;
v4 = GJEffectManager::create(a1);
v5 = *(_QWORD *)(a1 + 320);
if ( v5 != v4 )
{
v6 = v4;
if ( v4 )
{
cocos2d::CCObject::retain(v4);
v5 = *(_QWORD *)(a1 + 320);
}
if ( v5 )
cocos2d::CCObject::release(v5);
*(_QWORD *)(a1 + 320) = v6;
}
v7 = ColorAction::create_3(v5);
*(_BYTE *)(v7 + 74) = -1;
*(_WORD *)(v7 + 72) = 32040;
v8 = *(_QWORD *)(a1 + 320);
GJEffectManager::setColorAction(v8, v7, 1000);
v9 = ColorAction::create_3(v8);
*(_BYTE *)(v9 + 74) = -1;
*(_WORD *)(v9 + 72) = 26112;
v10 = *(_QWORD *)(a1 + 320);
GJEffectManager::setColorAction(v10, v9, 1001);
v11 = ColorAction::create_3(v10);
*(_BYTE *)(v11 + 74) = -1;
*(_WORD *)(v11 + 72) = 26112;
v12 = *(_QWORD *)(a1 + 320);
GJEffectManager::setColorAction(v12, v11, 1009);
v13 = ColorAction::create_3(v12);
*(_BYTE *)(v13 + 74) = -1;
*(_WORD *)(v13 + 72) = -1;
*(_BYTE *)(v13 + 84) = 1;
v14 = *(_QWORD *)(a1 + 320);
GJEffectManager::setColorAction(v14, v13, 1002);
v15 = ColorAction::create_3(v14);
*(_BYTE *)(v15 + 74) = -1;
*(_WORD *)(v15 + 72) = 32040;
v16 = *(_QWORD *)(a1 + 320);
GJEffectManager::setColorAction(v16, v15, 1013);
v17 = ColorAction::create_3(v16);
*(_BYTE *)(v17 + 74) = -1;
*(_WORD *)(v17 + 72) = 32040;
GJEffectManager::setColorAction(*(_QWORD *)(a1 + 320), v17, 1014);
*(_WORD *)(a1 + 338) = 0;
*(_QWORD *)(a1 + 352) = 0;
*(_DWORD *)(a1 + 364) = 0;
*(_BYTE *)(a1 + 368) = 0;
*(_QWORD *)(a1 + 328) = 0;
*(_BYTE *)(a1 + 336) = 0;
*(_QWORD *)(a1 + 448) = 0x101010101010101LL;
*(_QWORD *)(a1 + 455) = 0x101010101010101LL;
*(_BYTE *)(a1 + 350) = 0;
return v3;
}
return result;
}