//
// sub_100512AC0 from 0x100512ac0 to 0x100512c25 (357 bytes)
//
// 2 xrefs:
// > LevelSelectLayer::onDownload @ 0x1004201aa
// > OptionsLayer::layerHidden @ 0x10087c63d
//
// 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:31:37 +0000
//
char *sub_100512AC0()
{
char *v0; // rbx
v0 = (char *)operator new(0x260u);
cocos2d::CCLayerColor::CCLayerColor((__int64)v0);
*(_QWORD *)v0 = off_100B8B4F0;
*((_QWORD *)v0 + 40) = off_100B8BA68;
*((_QWORD *)v0 + 41) = &off_100B8BAD8;
*((_QWORD *)v0 + 42) = off_100B8BAF0;
*((_QWORD *)v0 + 43) = off_100B8BB10;
*((_QWORD *)v0 + 44) = off_100B8BB38;
*((_QWORD *)v0 + 51) = off_100B8BB68;
*((_QWORD *)v0 + 54) = off_100B8BBE8;
sub_1002782A0((_QWORD *)v0 + 68);
sub_1002782A0((_QWORD *)v0 + 69);
*((_QWORD *)v0 + 74) = 0;
v0[600] = 0;
*((_OWORD *)v0 + 35) = 0;
*(_OWORD *)(v0 + 569) = 0;
*(_QWORD *)v0 = off_100B6AC30;
*((_QWORD *)v0 + 40) = off_100B6B1A8;
*((_QWORD *)v0 + 41) = &off_100B6B218;
*((_QWORD *)v0 + 42) = off_100B6B230;
*((_QWORD *)v0 + 43) = off_100B6B250;
*((_QWORD *)v0 + 44) = off_100B6B278;
*((_QWORD *)v0 + 51) = off_100B6B2A8;
*((_QWORD *)v0 + 54) = off_100B6B328;
if ( (unsigned __int8)GJDropDownLayer::init_1(v0, "Soundtrack") )
{
cocos2d::CCObject::autorelease((__int64)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return v0;
}