//
// LevelSelectLayer::updateDeathButton from 0x8c4114 to 0x8c41b0 (156 bytes)
//
// 3 xrefs:
// > LevelSelectLayer::scrollLayerMoved @ 0x8c4234
// > LevelSelectLayer::init @ 0x8c58c4
// > ??> @ 0xd10b0
//
// 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:32 +0000
//
__int64 __fastcall LevelSelectLayer::updateDeathButton(__int64 this, int a2)
{
__int64 v2; // x2
cocos2d::CCArray *v3; // x2
__int64 v4; // x19
__int64 v6; // x0
if ( *(_QWORD *)(this + 472) )
{
v2 = *(_QWORD *)(this + 448);
if ( v2 )
{
v3 = *(cocos2d::CCArray **)(v2 + 448);
if ( v3 )
{
v4 = this;
this = cocos2d::CCArray::count(v3);
if ( (int)this > 0 )
{
v6 = cocos2d::CCArray::objectAtIndex(
*(cocos2d::CCArray **)(*(_QWORD *)(v4 + 448) + 448LL),
(a2 % (int)this + (int)this) % (int)this);
return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v4 + 472) + 344LL))(
*(_QWORD *)(v4 + 472),
(unsigned int)(*(_DWORD *)(v6 + 328) - *(_DWORD *)(v6 + 332) + 2) > 1);
}
}
}
}
return this;
}