//
// LabelGameObject::customObjectSetup from 0x761aac to 0x761c1c (368 bytes)
//
// 2 xrefs:
// > ??> @ 0x76260
// > ??> @ 0x116b3a8
//
// 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 LabelGameObject::customObjectSetup(LabelGameObject *a1, std::vector *a2, std::vector *a3)
{
void **m_start; // x21
int v7; // w0
void *v8; // x1
bool v9; // zf
void *v10; // x0
bool v11; // w1
int v12; // w0
void *v13; // x1
LabelGameObject_vtbl *v14; // x2
void (__fastcall *updateTextKerning)(LabelGameObject *__hidden, int); // x21
unsigned int v16; // w0
int v17; // w0
void *v18; // x1
void *v19; // x0
void *v20; // x1
LabelGameObject_vtbl *v21; // x2
m_start = a3->m_start;
if ( *((_QWORD *)a3->m_start + 80) )
{
v7 = atoi((const char *)a2->m_start[80].m_data.m_data);
v8 = m_start[389];
a1->m_itemID = v7;
if ( v8 )
goto LABEL_3;
LABEL_12:
v19 = m_start[390];
a1->m_showSecondsOnly = 0;
if ( v19 )
goto LABEL_7;
goto LABEL_13;
}
v18 = m_start[389];
a1->m_itemID = 0;
if ( !v18 )
goto LABEL_12;
LABEL_3:
v9 = atoi((const char *)a2->m_start[389].m_data.m_data) == 0;
v10 = m_start[390];
v11 = !v9;
a1->m_showSecondsOnly = v11;
if ( v10 )
{
LABEL_7:
v12 = atoi((const char *)a2->m_start[390].m_data.m_data);
v13 = m_start[488];
v14 = a1->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_shownSpecial = v12;
updateTextKerning = v14->updateTextKerning;
if ( v13 )
goto LABEL_8;
goto LABEL_14;
}
LABEL_13:
v20 = m_start[488];
v21 = a1->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_shownSpecial = 0;
updateTextKerning = v21->updateTextKerning;
if ( v20 )
{
LABEL_8:
v16 = atoi((const char *)a2->m_start[488].m_data.m_data);
updateTextKerning(a1, v16);
if ( *((_QWORD *)a3->m_start + 391) )
goto LABEL_9;
LABEL_15:
LabelGameObject::updateLabelAlign(a1, 0);
if ( *((_QWORD *)a3->m_start + 466) )
goto LABEL_10;
goto LABEL_16;
}
LABEL_14:
updateTextKerning(a1, 0);
if ( !*((_QWORD *)a3->m_start + 391) )
goto LABEL_15;
LABEL_9:
v17 = atoi((const char *)a2->m_start[391].m_data.m_data);
LabelGameObject::updateLabelAlign(a1, v17);
if ( *((_QWORD *)a3->m_start + 466) )
{
LABEL_10:
a1->m_isTimeCounter = atoi((const char *)a2->m_start[466].m_data.m_data) != 0;
return;
}
LABEL_16:
a1->m_isTimeCounter = 0;
}