//
// GJShopLayer::onCommunityCredits from 0x1403b1e20 to 0x1403b1f63 (323 bytes)
//
// 2 xrefs:
// > GJShopLayer::init @ 0x1403b0d4f
// > ??> @ 0x140923bdc
//
// 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:31:23 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GJShopLayer::onCommunityCredits(__int64 a1)
{
_QWORD *v2; // rbx
__int64 (__fastcall *v3)(__int64); // rdx
v2 = operator new(0x2B8u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*v2 = &CommunityCreditsPage::`vftable';
v2[40] = &CommunityCreditsPage::`vftable';
v2[41] = &CommunityCreditsPage::`vftable';
v2[42] = &CommunityCreditsPage::`vftable';
v2[43] = &CommunityCreditsPage::`vftable';
v2[44] = &CommunityCreditsPage::`vftable';
v2[51] = &CommunityCreditsPage::`vftable';
v2[54] = &CommunityCreditsPage::`vftable';
v2[68] = &CommunityCreditsPage::`vftable';
v2[83] = 0;
v2[84] = 0;
v2[85] = 0;
*((_DWORD *)v2 + 172) = -1;
if ( CommunityCreditsPage::init((__int64)v2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);
v2 = nullptr;
}
v2[71] = a1;
v3 = *(__int64 (__fastcall **)(__int64))(*v2 + 1064LL);
if ( v3 == CommunityCreditsPage::show )
return CommunityCreditsPage::show((__int64)v2);
else
return v3((__int64)v2);
}