//
// BrowseSmartTemplateLayer::updateDots from 0x672c08 to 0x672d18 (272 bytes)
//
// 1 xrefs:
// > BrowseSmartTemplateLayer::goToPage @ 0x672de0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:53 +0000
//
unsigned int __fastcall BrowseSmartTemplateLayer::updateDots(BrowseSmartTemplateLayer *this, int a2)
{
BrowseSmartTemplateLayer *v2; // r7
unsigned int v3; // r4
float v4; // s18
float v5; // s16
unsigned int result; // r0
float v7; // s19
int *v8; // r5
void (__fastcall *v9)(int *, _BYTE *); // r10
int v10; // r3
void (__fastcall *v11)(int *, _BYTE *); // r2
float v12[2]; // [sp+4h] [bp-14h] BYREF
_BYTE v13[8]; // [sp+Ch] [bp-Ch] BYREF
v2 = this;
if ( !*((_DWORD *)this + 135) )
this = (BrowseSmartTemplateLayer *)BrowseSmartTemplateLayer::createDots(this, a2, 0);
cocos2d::CCDirector::sharedDirector(this);
v3 = 0;
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v12);
v4 = (float)(int)cocos2d::CCArray::count(*((cocos2d::CCArray **)v2 + 131));
v5 = (float)((float)(v12[1] * 0.5) - 140.0) + 15.0;
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)v2 + 131));
if ( v3 >= result )
break;
v7 = v12[0];
if ( v3 < cocos2d::CCArray::count(*((cocos2d::CCArray **)v2 + 135)) )
{
v8 = (int *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v2 + 135), v3);
v9 = *(void (__fastcall **)(int *, _BYTE *))(*v8 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v13,
(float)((float)((float)(int)v3 - (float)((float)(v4 - 1.0) * 0.5)) * 16.0) + (float)(v7 * 0.5),
v5);
v9(v8, v13);
v10 = *v8;
if ( v3 == *((_DWORD *)v2 + 132) )
{
(*(void (__fastcall **)(int *, void *))(v10 + 480))(v8, &unk_BEF4AC);
}
else
{
v11 = *(void (__fastcall **)(int *, _BYTE *))(v10 + 480);
memset(v13, 125, 3);
v11(v8, v13);
}
}
++v3;
}
return result;
}