//
// BrowseSmartTemplateLayer::createDots from 0x1004e4f10 to 0x1004e4fe0 (208 bytes)
//
// 1 xrefs:
// > BrowseSmartTemplateLayer::updateDots @ 0x1004e5001
//
// This function is hookable on this platform (idp: pc, 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 12:31:19 +0000
//
__int64 __fastcall BrowseSmartTemplateLayer::createDots(_QWORD *a1)
{
_QWORD *v2; // r14
__int64 v3; // rdi
__int64 v4; // rax
__int64 result; // rax
unsigned int v6; // r13d
char *v7; // r12
v2 = cocos2d::CCSpriteBatchNode::create((__int64)"smallDot.png", 0x1Du);
v3 = a1[73];
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v2, 5);
v4 = sub_1007FE900(v3);
a1[88] = v4;
cocos2d::CCObject::retain(v4);
result = sub_1007FEF90(a1[84]);
if ( (_DWORD)result )
{
v6 = 0;
do
{
v7 = cocos2d::CCSprite::create_1((__int64)"smallDot.png");
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v7 + 160LL))(v7, 0.80000001);
(*(void (__fastcall **)(_QWORD *, char *))(*v2 + 456LL))(v2, v7);
sub_1007FEBF0(a1[88], v7);
++v6;
result = sub_1007FEF90(a1[84]);
}
while ( v6 < (unsigned int)result );
}
return result;
}