//
// BrowseSmartTemplateLayer::updateDots from 0xb149b8 to 0xb14b58 (416 bytes)
//
// 2 xrefs:
// > BrowseSmartTemplateLayer::goToPage @ 0xb14c50
// > ??> @ 0x79780
//
// This function is hookable on this platform (idp: arm, 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 13:01:31 +0000
//
__int64 __fastcall BrowseSmartTemplateLayer::updateDots(BrowseSmartTemplateLayer *this)
{
BrowseSmartTemplateLayer *v1; // x20
cocos2d::CCDirector *v2; // x0
unsigned int v3; // w19
float v4; // s11
float v5; // s10
float v6; // s8
__int64 v8; // x21
void (__fastcall *v9)(__int64, _BYTE *); // x26
void (__fastcall *v10)(__int64, _BYTE *); // x3
__int64 v11; // [xsp+88h] [xbp+88h] BYREF
_BYTE v12[8]; // [xsp+90h] [xbp+90h] BYREF
v1 = this;
if ( !*((_QWORD *)this + 88) )
this = (BrowseSmartTemplateLayer *)BrowseSmartTemplateLayer::createDots(this, 0, _stack_chk_guard);
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this);
v3 = 0;
cocos2d::CCDirector::getWinSize(&v11, v2);
v4 = (float)(int)cocos2d::CCArray::count(*((cocos2d::CCArray **)v1 + 84));
v5 = (float)((float)(*((float *)&v11 + 1) * 0.5) + -140.0) + 15.0;
if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)v1 + 84)) )
{
do
{
v6 = *(float *)&v11;
if ( v3 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)v1 + 88)) )
{
v8 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v1 + 88), v3);
v9 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v12,
(float)(v6 * 0.5) + (float)((float)((float)(int)v3 - (float)((float)(v4 - 1.0) * 0.5)) * 16.0),
v5);
v9(v8, v12);
if ( *((_DWORD *)v1 + 170) == v3 )
{
++v3;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v8 + 960LL))(v8, &unk_11846A0);
}
else
{
++v3;
v10 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 960LL);
memset(v12, 125, 3);
v10(v8, v12);
}
}
else
{
++v3;
}
}
while ( v3 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)v1 + 84)) );
}
return _stack_chk_guard;
}