//
// TriggerControlGameObject::updateTriggerControlFrame from 0x89a32c to 0x89a478 (332 bytes)
//
// 4 xrefs:
// > TriggerControlGameObject::customObjectSetup @ 0x89a538
// > TriggerControlGameObject::customObjectSetup @ 0x89a598
// > SetupStopTriggerPopup::onClose @ 0xb71b90
// > ??> @ 0x9a768
//
// 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 12:56:11 +0000
//
__int64 __fastcall TriggerControlGameObject::updateTriggerControlFrame(TriggerControlGameObject *this)
{
int v2; // w0
char *v3; // x1
size_t v4; // x2
void (__fastcall *v5)(TriggerControlGameObject *, __int64); // x19
cocos2d::CCSpriteFrameCache *v6; // x0
const char *v7; // x1
__int64 v8; // x0
__int64 v10; // [xsp+30h] [xbp+30h] BYREF
size_t v11; // [xsp+38h] [xbp+38h]
void *v12; // [xsp+40h] [xbp+40h]
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, "edit_eStopMoverBtn_001.png", 0x1Au);
v2 = *((_DWORD *)this + 466);
if ( v2 == 1 )
{
std::string::assign(&v10, "edit_ePauseBtn_001.png");
}
else if ( v2 == 2 )
{
std::string::assign(&v10, "edit_eResumeBtn_001.png");
}
if ( !sub_86F364((__int64)this + 1840, (__int64)&v10) )
{
if ( (__int64 *)((char *)this + 1840) != &v10 )
{
if ( (v10 & 1) != 0 )
{
v3 = (char *)v12;
v4 = v11;
}
else
{
v4 = (unsigned __int8)v10 >> 1;
v3 = (char *)&v10 + 1;
}
std::string::assign((__int64 *)this + 230, v3, v4);
}
v5 = *(void (__fastcall **)(TriggerControlGameObject *, __int64))(*(_QWORD *)this + 1160LL);
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*(cocos2d::CCSpriteFrameCache **)this);
v7 = (char *)this + 1841;
if ( (*((_BYTE *)this + 1840) & 1) != 0 )
v7 = *((const char **)this + 232);
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7);
v5(this, v8);
}
if ( (v10 & 1) != 0 )
operator delete(v12);
return _stack_chk_guard;
}