//
// BrowseSmartTemplateLayer::updateDots from 0x1004ea520 to 0x1004ea6a7 (391 bytes)
//
// 1 xrefs:
// > BrowseSmartTemplateLayer::goToPage @ 0x1004ea043
//
// 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 BrowseSmartTemplateLayer::updateDots(BrowseSmartTemplateLayer *a1)
{
int v2; // r14d
float v3; // xmm1_4
unsigned int v4; // r14d
__int64 v5; // rax
__int64 v6; // rdi
float *v7; // rsi
__int64 v8; // r13
_DWORD v9[2]; // [rsp+Ch] [rbp-44h] BYREF
float v10; // [rsp+14h] [rbp-3Ch] BYREF
float v11; // [rsp+1Ch] [rbp-34h]
float v12; // [rsp+20h] [rbp-30h]
float v13; // [rsp+24h] [rbp-2Ch]
if ( !a1->m_dotsArray )
BrowseSmartTemplateLayer::createDots(a1);
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v9);
v2 = sub_100720070(a1->m_pages);
v13 = *(float *)&v9[1];
if ( (unsigned int)sub_100720070(a1->m_pages) )
{
v13 = (float)((float)(v13 * 0.5) + -140.0) + 15.0;
v3 = (float)v2 + -1.0;
v4 = 0;
v11 = v3 * -0.5;
do
{
v12 = *(float *)v9;
if ( v4 < (unsigned int)sub_100720070(a1->m_dotsArray) )
{
v12 = (float)((float)((float)(int)v4 + v11) * 16.0) + (float)(v12 * 0.5);
v8 = sub_1007200C0(a1->m_dotsArray, v4);
sub_10028CBE0(&v10, v12, v13);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 184LL))(v8, &v10);
if ( v4 == a1->m_page )
{
v5 = *(_QWORD *)v8;
v6 = v8;
v7 = (float *)&unk_10081DC68;
}
else
{
memset(&v10, 125, 3);
v5 = *(_QWORD *)v8;
v6 = v8;
v7 = &v10;
}
(*(void (__fastcall **)(__int64, float *))(v5 + 944))(v6, v7);
}
++v4;
}
while ( v4 < (unsigned int)sub_100720070(a1->m_pages) );
}
}