//
// SongUsagePopup::create from 0x7605e0 to 0x760768 (392 bytes)
//
// 2 xrefs:
// > CustomSongWidget::onUsage @ 0x4e2b2c
// > SongInfoLayer::onSongUsage @ 0x53aa2a
//
// 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:59:03 +0000
//
int __fastcall SongUsagePopup::create(int a1, unsigned __int8 *a2, int a3)
{
int v6; // r4
int v7; // r3
int v8; // r0
v6 = operator new(0x234u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v6);
*(_DWORD *)(v6 + 444) = 0;
*(_DWORD *)(v6 + 448) = 0;
*(_DWORD *)(v6 + 452) = 0;
*(_DWORD *)v6 = &off_C86768;
*(_BYTE *)(v6 + 456) = 0;
*(_DWORD *)(v6 + 264) = &off_C86A10;
*(_DWORD *)(v6 + 460) = 0;
*(_DWORD *)(v6 + 268) = &off_C86A48;
*(_DWORD *)(v6 + 464) = 0;
*(_DWORD *)(v6 + 272) = &off_C86A54;
*(_BYTE *)(v6 + 468) = 0;
*(_DWORD *)(v6 + 276) = &off_C86A64;
*(_BYTE *)(v6 + 469) = 0;
*(_DWORD *)(v6 + 280) = &off_C86A78;
*(_BYTE *)(v6 + 470) = 0;
*(_DWORD *)(v6 + 316) = &off_C86A90;
*(_BYTE *)(v6 + 471) = 0;
*(_DWORD *)(v6 + 332) = &off_C86AD0;
*(_DWORD *)(v6 + 440) = &off_C86AE0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v6 + 472));
*(_DWORD *)(v6 + 492) = -1;
*(_DWORD *)(v6 + 500) = -1;
*(_DWORD *)(v6 + 480) = 0;
*(_DWORD *)(v6 + 484) = 0;
*(_DWORD *)(v6 + 488) = 0;
*(_DWORD *)v6 = &off_CF3680;
*(_BYTE *)(v6 + 496) = 0;
*(_DWORD *)(v6 + 264) = &off_CF3930;
*(_BYTE *)(v6 + 497) = 0;
*(_DWORD *)(v6 + 268) = &off_CF3968;
*(_BYTE *)(v6 + 504) = 0;
*(_DWORD *)(v6 + 272) = &off_CF3974;
*(_DWORD *)(v6 + 508) = 0;
*(_DWORD *)(v6 + 276) = &off_CF3984;
*(_DWORD *)(v6 + 512) = 0;
*(_DWORD *)(v6 + 280) = &off_CF3998;
*(_BYTE *)(v6 + 516) = 0;
*(_DWORD *)(v6 + 316) = &off_CF39B0;
*(_DWORD *)(v6 + 524) = 0;
*(_DWORD *)(v6 + 332) = &off_CF39F0;
*(_DWORD *)(v6 + 528) = 0;
*(_DWORD *)(v6 + 440) = &off_CF3A00;
*(_DWORD *)(v6 + 520) = &off_CF3A24;
*(_DWORD *)(v6 + 532) = 0;
*(_DWORD *)(v6 + 536) = 0;
*(_DWORD *)(v6 + 540) = 0;
*(_DWORD *)(v6 + 544) = 0;
*(_DWORD *)(v6 + 548) = 0;
*(_DWORD *)(v6 + 552) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v6 + 556));
if ( SongUsagePopup::init(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
v7 = *(_DWORD *)v6;
v8 = v6;
v6 = 0;
(*(void (__fastcall **)(int))(v7 + 8))(v8);
}
return v6;
}