//
// ChanceTriggerGameObject::editChanceObject from 0x4e8d18 to 0x4e8d3c (36 bytes)
//
// 1 xrefs:
// > EditorUI::replaceGroupID @ 0x482f5c
//
// 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:07 +0000
//
int __fastcall ChanceTriggerGameObject::editChanceObject(ChanceTriggerGameObject *this, int a2, int a3)
{
int v3; // r4
int v4; // r3
int result; // r0
v3 = *((_DWORD *)this + 413);
v4 = *((_DWORD *)this + 412);
while ( 1 )
{
v4 += 16;
result = v4 - 16;
if ( v3 == v4 - 16 )
break;
if ( *(_DWORD *)(v4 - 16) == a2 )
*(_DWORD *)(v4 - 16) = a3;
}
return result;
}