//
// PlatformerControlsPopup::onToggleUpload from 0xcf9e04 to 0xcf9e48 (68 bytes)
//
// 3 xrefs:
// > ??> @ 0xdf120
// > PlatformerControlsPopup::init @ 0xcfb52c
// > ??> @ 0x1546b10
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:06:50 +0000
//
__int64 __fastcall PlatformerControlsPopup::onToggleUpload(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
unsigned int v3; // w0
__int64 v4; // x2
if ( *(_QWORD *)(this + 1048) )
{
v2 = this;
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(_QWORD *)(v2 + 1048);
this = *(_DWORD *)(v4 + 1848) ^ v3;
*(_DWORD *)(v4 + 1848) = this;
}
return this;
}