//
// PlatformToolbox::isControllerConnected from 0x1004c4d50 to 0x1004c4d91 (65 bytes)
//
// 32 xrefs:
// > EditLevelLayer::init @ 0x1001fbad0
// > LevelAreaLayer::init @ 0x100277a75
// > LevelAreaInnerLayer::init @ 0x100279e56
// > CreatorLayer::init @ 0x100298333
// > LevelInfoLayer::init @ 0x1002bf4e5
// > LevelInfoLayer::init @ 0x1002bf50b
// > GJShopLayer::init @ 0x100323add
// > LevelListLayer::init @ 0x10035d566
// > GJGarageLayer::init @ 0x10036abc6
// > AchievementsLayer::customSetup @ 0x1003731c5
// > MenuLayer::init @ 0x100390c45
// > GauntletLayer::init @ 0x100392e15
// > SecretLayer4::init @ 0x1003b14f6
// > WorldSelectLayer::init @ 0x1003c217c
// > PauseLayer::customSetup @ 0x1003d65d9
// > LevelSelectLayer::init @ 0x10043255b
// > LevelPage::init @ 0x100435f30
// > SecretLayer5::init @ 0x10047a771
// > SecretLayer6::init @ 0x10047eed0
// > LevelBrowserLayer::init @ 0x10048b459
// > FLAlertLayer::init @ 0x10049bd23
// > SecretLayer2::init @ 0x10049da09
// > SecretLayer3::init @ 0x1004a4b30
// > EndLevelLayer::customSetup @ 0x1004c1796
// > UILayer::init @ 0x1004c80bc
// > RetryLevelLayer::customSetup @ 0x1004f8ad4
// > LeaderboardsLayer::init @ 0x100512bff
// > GauntletSelectLayer::init @ 0x10057185f
// > GJDropDownLayer::init @ 0x1005e8445
// > SecretLayer::init @ 0x1005fb438
// > LevelSearchLayer::init @ 0x100629bd8
// > SecretRewardsLayer::init @ 0x100630513
//
// 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
//
bool __fastcall PlatformToolbox::isControllerConnected()
{
AppControllerManager *v0; // rax
AppController *v1; // rax
v0 = +[AppControllerManager sharedInstance](&OBJC_CLASS___AppControllerManager, "sharedInstance");
v1 = -[AppControllerManager controller](v0, "controller");
return -[AppController isControllerConnected](v1, "isControllerConnected") != 0;
}