//
// MenuLayer::googlePlaySignedIn from 0x100267e70 to 0x100267f3c (204 bytes)
//
// 2 xrefs:
// > sub_100267F60 @ 0x100267f64
// > ??> @ 0x1007d1d48
//
// 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
//
void __fastcall MenuLayer::googlePlaySignedIn(MenuLayer *a1)
{
_BOOL4 isSignedInGooglePlay; // w21
cocos2d::CCSprite *m_gpSprite; // x20
cocos2d::CCSpriteFrameCache *v4; // x0
cocos2d::CCSpriteFrame *v5; // x0
cocos2d::CCDirector *v6; // x0
cocos2d::CCScheduler *v7; // x0
cocos2d::CCSpriteFrame *v8; // x1
cocos2d::SEL_SCHEDULE v9; // 0:x1.16
if ( a1->m_gpSprite )
{
isSignedInGooglePlay = PlatformToolbox::isSignedInGooglePlay();
m_gpSprite = a1->m_gpSprite;
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( isSignedInGooglePlay )
{
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, "GJ_gpgBtn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_gpSprite->setDisplayFrame)(m_gpSprite, v5);
v6 = cocos2d::CCDirector::sharedDirector();
v7 = (cocos2d::CCScheduler *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v6->getScheduler)(v6);
v9.ptr = (void (__cdecl *)(float))MenuLayer::syncPlatformAchievements;
v9.adj = 0;
cocos2d::CCScheduler::scheduleSelector(v7, v9, a1, 0.0, 0xFFFFFFFE, 0.0, 0);
}
else
{
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, "GJ_gpBtn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_gpSprite->setDisplayFrame)(m_gpSprite, v8);
}
}
}