//
// TriggerControlGameObject::updateTriggerControlFrame from 0x4f60cc to 0x4f616c (160 bytes)
//
// 2 xrefs:
// > TriggerControlGameObject::customObjectSetup @ 0x4f6206
// > SetupStopTriggerPopup::onClose @ 0x6b2ffe
//
// 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:51:17 +0000
//
int __fastcall TriggerControlGameObject::updateTriggerControlFrame(TriggerControlGameObject *this)
{
int v2; // r3
char *v3; // r1
unsigned __int8 *v5; // r0
void (__fastcall *v6)(TriggerControlGameObject *, int); // r7
cocos2d::CCSpriteFrameCache *v7; // r0
const char *v8; // r1
int v9; // r0
int v10[3]; // [sp+0h] [bp-14h] BYREF
memset(v10, 0, sizeof(v10));
std::string::__init(v10, "edit_eStopMoverBtn_001.png", 0x1Au);
v2 = *((_DWORD *)this + 415);
if ( v2 == 1 )
{
v3 = "edit_ePauseBtn_001.png";
}
else
{
if ( v2 != 2 )
goto LABEL_6;
v3 = "edit_eResumeBtn_001.png";
}
std::string::assign(v10, v3);
LABEL_6:
if ( !sub_4E6580((unsigned __int8 *)this + 1648, (unsigned __int8 *)v10) )
{
v5 = std::string::operator=((unsigned __int8 *)this + 1648, (unsigned __int8 *)v10);
v6 = *(void (__fastcall **)(TriggerControlGameObject *, int))(*(_DWORD *)this + 580);
v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)v5);
if ( (*((_BYTE *)this + 1648) & 1) != 0 )
v8 = *((const char **)this + 414);
else
v8 = (char *)this + 1649;
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v8);
v6(this, v9);
}
return std::string::~string((int)v10);
}