//
// GameToolbox::doWeHaveInternet from 0x3cf7a4 to 0x3cf850 (172 bytes)
//
// 10 xrefs:
// > MenuLayer::onTrailer @ 0x3f996e
// > GameManager::rateGame @ 0x414264
// > GameManager::likeFacebook @ 0x414280
// > GameManager::followTwitter @ 0x4142ac
// > GameManager::subYouTube @ 0x4142d8
// > GameManager::followTwitch @ 0x414304
// > GameManager::joinDiscord @ 0x414330
// > GameManager::joinReddit @ 0x41435c
// > GameManager::subSpotlight @ 0x414388
// > SupportLayer::onEmail @ 0x539c58
//
// 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:46:39 +0000
//
int __fastcall GameToolbox::doWeHaveInternet(GameToolbox *this)
{
char *v1; // r8
size_t v2; // r0
int *v3; // r4
int v5[2]; // [sp+Ch] [bp-1Ch] BYREF
char *v6; // [sp+14h] [bp-14h]
int v7[3]; // [sp+18h] [bp-10h] BYREF
if ( PlatformToolbox::isNetworkAvailable(this) )
return 1;
v5[0] = 0;
v5[1] = 0;
v6 = nullptr;
std::string::__init(v5, "No Internet Connection.", 0x17u);
v7[0] = 0;
v7[1] = 0;
if ( (v5[0] & 1) == 0 )
v1 = (char *)v5 + 1;
v7[2] = 0;
if ( (v5[0] & 1) != 0 )
v1 = v6;
v2 = strlen(v1);
std::string::__init(v7, v1, v2);
v3 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Error", (int)v7, (ButtonSprite *)"OK", nullptr);
std::string::~string((int)v7);
(*(void (__fastcall **)(int *))(*v3 + 656))(v3);
std::string::~string((int)v5);
return 0;
}