//
// LevelBindingsLayer::onApplyGlobal from 0x797fc4 to 0x798070 (172 bytes)
//
// 0 xrefs:
//
// 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:59:46 +0000
//
int __fastcall LevelBindingsLayer::onApplyGlobal(KeybindSet **this, cocos2d::CCObject *a2)
{
bool v3; // r2
KeybindSet *v4; // r3
void (__fastcall *v5)(KeybindSet **, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v6; // r0
int v8[3]; // [sp+Ch] [bp+0h] BYREF
int v9[3]; // [sp+18h] [bp+Ch] BYREF
KeybindSet::clear(*(this + 201));
LevelControlConfig::bindGlobalBinds(*(this + 201), (KeybindSource *)*((unsigned __int8 *)this + 808), v3);
(*((void (__fastcall **)(KeybindSet **))*this + 163))(this);
v4 = *this;
memset(v8, 0, sizeof(v8));
v5 = *((void (__fastcall **)(KeybindSet **, cocos2d::CCNode *, int))v4 + 58);
std::string::__init(v8, "Global controls applied", 0x17u);
memset(v9, 0, sizeof(v9));
std::string::__init(v9, &unk_B6B226, 0);
v6 = TextAlertPopup::create((int)v8, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v9);
v5(this, v6, 100);
std::string::~string((int)v9);
return std::string::~string((int)v8);
}