//
// BrowseSmartTemplateLayer::createDots from 0x672b8c to 0x672bfc (112 bytes)
//
// 1 xrefs:
// > BrowseSmartTemplateLayer::updateDots @ 0x672c26
//
// 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::createDots(BrowseSmartTemplateLayer *this, int a2, unsigned int a3)
{
unsigned int v4; // r5
int v5; // r6
cocos2d::CCArray *v6; // r0
cocos2d::CCObject *v7; // r0
unsigned int result; // r0
const char *v9; // r1
cocos2d::CCObject *v10; // r7
v4 = 0;
v5 = cocos2d::CCSpriteBatchNode::create((cocos2d::CCSpriteBatchNode *)"smallDot.png", (const char *)&dword_1C + 1, a3);
v6 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v5,
5);
v7 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6);
*((_DWORD *)this + 135) = v7;
cocos2d::CCObject::retain(v7);
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 131));
if ( v4 >= result )
break;
++v4;
v10 = (cocos2d::CCObject *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"smallDot.png", v9);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v10 + 80))(v10, 1061997773);
(*(void (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)v5 + 228))(v5, v10);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 135), v10);
}
return result;
}