//
// DeathMarkerLayer::tickDeathCountLabel from 0x140119080 to 0x140119178 (248 bytes)
//
// 4 xrefs:
// > DeathMarkerLayer::init @ 0x140116b8f
// > ??> @ 0x140896f04
// > ??> @ 0x140896f60
// > ??> @ 0x140915fd4
//
// This function is hookable on this platform (idp: pc, 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 11:26:53 +0000
//
__int64 __fastcall DeathMarkerLayer::tickDeathCountLabel(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rsi
__int64 v3; // r14
__int64 v4; // rcx
cocos2d::CCNode *v5; // rbp
void (__fastcall **v6)(__int64, const char *); // rbx
cocos2d::CCString *v7; // rax
const char *CString; // rax
struct cocos2d::CCScaleTo *v9; // rbx
struct cocos2d::CCFiniteTimeAction *v10; // rax
struct cocos2d::CCAction *v11; // rax
result = *(int *)(a1 + 464);
if ( (int)result >= 0 )
{
v2 = 10 * result;
v3 = *(_QWORD *)(a1 + 320);
v4 = *(_QWORD *)(v3 + 80 * result + 72);
if ( v4 )
{
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 472LL))(v4, 93);
v5 = (cocos2d::CCNode *)result;
if ( result )
{
v6 = *(void (__fastcall ***)(__int64, const char *))(result + 360);
v7 = cocos2d::CCString::createWithFormat((const char *)&word_14070D0CC, *(unsigned int *)(v3 + 8 * v2 + 32));
CString = cocos2d::CCString::getCString(v7);
(*v6)((__int64)v5 + 360, CString);
v9 = cocos2d::CCScaleTo::create(0.15000001, 1.0);
v10 = cocos2d::CCScaleTo::create(0.1, 1.3);
v11 = cocos2d::CCSequence::create(v10, v9, 0);
return (__int64)cocos2d::CCNode::runAction(v5, v11);
}
}
}
return result;
}