//
// GJSongBrowser::create from 0x3f7544 to 0x3f767e (314 bytes)
//
// 3 xrefs:
// > MoreOptionsLayer::onSongBrowser @ 0x52c678
// > CustomSongLayer::onSongBrowser @ 0x57ad72
// > GameSettingsLayer::onCustomButton @ 0x710b9a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:18 +0000
//
int *__fastcall GJSongBrowser::create(GJSongBrowser *this)
{
int *v1; // r4
int v2; // r3
int v3; // r3
int *v4; // r0
v1 = (int *)operator new(0x210u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v1);
*v1 = (int)&off_CA8E30;
v1[66] = (int)&off_CA90EC;
v1[67] = (int)&off_CA9124;
v1[68] = (int)&off_CA9130;
v1[69] = (int)&off_CA9140;
v1[70] = (int)&off_CA9154;
v1[79] = (int)&off_CA916C;
v1[83] = (int)&off_CA91AC;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 110));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 112));
v1[114] = 0;
v1[115] = 0;
v1[116] = 0;
*v1 = (int)&off_C8C400;
*((_BYTE *)v1 + 468) = 0;
v1[66] = (int)&off_C8C6C8;
v1[118] = 0;
v1[67] = (int)&off_C8C700;
*((_BYTE *)v1 + 476) = 0;
v1[68] = (int)&off_C8C70C;
v1[122] = 0;
v1[69] = (int)&off_C8C71C;
v1[123] = 0;
v1[70] = (int)&off_C8C730;
*((_BYTE *)v1 + 496) = 0;
v1[79] = (int)&off_C8C748;
v1[125] = 0;
v1[83] = (int)&off_C8C788;
v1[126] = 0;
v1[120] = (int)&off_C8C798;
v1[121] = (int)&off_C8C7A4;
v1[127] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 128));
v2 = *v1;
v1[130] = 0;
v1[131] = 0;
if ( (*(int (__fastcall **)(int *))(v2 + 40))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
v3 = *v1;
v4 = v1;
v1 = nullptr;
(*(void (__fastcall **)(int *))(v3 + 8))(v4);
}
return v1;
}