//
// sub_140371940 from 0x140371940 to 0x140371a5e (286 bytes)
//
// 3 xrefs:
// > sub_14037C77C @ 0x14037c783
// > ??> @ 0x1405c4f08
// > ??> @ 0x1406d5a74
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
GooglePlayDelegate *__fastcall sub_140371940(GooglePlayDelegate *Block, char a2)
{
GooglePlayDelegate *v4; // rdi
cocos2d::CCObject *v5; // rcx
cocos2d::CCObject *v6; // rcx
Block->__vftable = (GooglePlayDelegate_vtbl *)&MoreOptionsLayer::`vftable';
Block[40].__vftable = (GooglePlayDelegate_vtbl *)&MoreOptionsLayer::`vftable';
Block[41].__vftable = (GooglePlayDelegate_vtbl *)&MoreOptionsLayer::`vftable';
Block[42].__vftable = (GooglePlayDelegate_vtbl *)&MoreOptionsLayer::`vftable';
Block[43].__vftable = (GooglePlayDelegate_vtbl *)&MoreOptionsLayer::`vftable';
Block[44].__vftable = (GooglePlayDelegate_vtbl *)&MoreOptionsLayer::`vftable';
Block[51].__vftable = (GooglePlayDelegate_vtbl *)&MoreOptionsLayer::`vftable';
Block[54].__vftable = (GooglePlayDelegate_vtbl *)&MoreOptionsLayer::`vftable';
Block[79].__vftable = (GooglePlayDelegate_vtbl *)&MoreOptionsLayer::`vftable';
v4 = Block + 80;
Block[80].__vftable = (GooglePlayDelegate_vtbl *)&MoreOptionsLayer::`vftable';
Block[81].__vftable = (GooglePlayDelegate_vtbl *)&MoreOptionsLayer::`vftable';
v5 = (cocos2d::CCObject *)Block[85].__vftable;
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = (cocos2d::CCObject *)Block[84].__vftable;
if ( v6 )
cocos2d::CCObject::release(v6);
if ( GooglePlayManager::sharedState()->m_delegate2 == v4 )
GooglePlayManager::sharedState()->m_delegate2 = nullptr;
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}