//
// cocos2d::CCBlink::update from 0x180036dd0 to 0x180036e51 (129 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800e9b30
// > ??> @ 0x180135e80
// > ??> @ 0x180135e90
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b09fc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCBlink::update(cocos2d::CCBlink *this, float a2)
{
int v3; // eax
cocos2d::CCNode *m_pTarget; // rbx
cocos2d::CCNode_vtbl *v5; // rdi
__int64 v6; // rdx
if ( this->m_pTarget )
{
if ( !((unsigned __int8 (__fastcall *)(cocos2d::CCBlink *))this->isDone)(this) )
{
v3 = *((_DWORD *)this + 24);
m_pTarget = this->m_pTarget;
v5 = m_pTarget->__vftable;
LOBYTE(v6) = fmodf(a2, 1.0 / (float)v3) > (float)((float)(1.0 / (float)v3) * 0.5);
((void (__fastcall *)(cocos2d::CCNode *, __int64))v5->setVisible)(m_pTarget, v6);
}
}
}