// // BrowseSmartTemplateLayer::updateDots from 0x1405f0730 to 0x1405f099c (620 bytes) // // 4 xrefs: // > BrowseSmartTemplateLayer::goToPage @ 0x1405f0b09 // > @ 0x1408e30c8 // > @ 0x1408e30d8 // > @ 0x14092f1e0 // // 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 11:35:05 +0000 // unsigned int __fastcall BrowseSmartTemplateLayer::updateDots(__int64 a1) { unsigned int v1; // esi struct cocos2d::CCSpriteBatchNode *v3; // r14 __int64 v4; // rcx cocos2d::CCObject *v5; // rax unsigned int i; // edi struct cocos2d::CCObject *v7; // rbx __int64 v8; // rax float v9; // xmm7_4 float v10; // xmm10_4 unsigned int result; // eax float v12; // xmm7_4 float v13; // xmm6_4 struct cocos2d::CCObject *v14; // rdi __int64 v15; // rbx __int64 v16; // rax void (__fastcall **v17)(char *, _BYTE *); // rax _BYTE *v18; // rdx _BYTE v19[3]; // [rsp+A0h] [rbp+8h] BYREF float v20; // [rsp+A8h] [rbp+10h] BYREF float v21; // [rsp+ACh] [rbp+14h] char v22; // [rsp+B0h] [rbp+18h] BYREF v1 = 0; if ( !*(_QWORD *)(a1 + 704) ) { v3 = cocos2d::CCSpriteBatchNode::create("smallDot.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteBatchNode *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v3, 5); v5 = (cocos2d::CCObject *)cocos2d::CCArray::create(v4); *(_QWORD *)(a1 + 704) = v5; cocos2d::CCObject::retain(v5); for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672)); ++i ) { v7 = cocos2d::CCSprite::create("smallDot.png"); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 160LL))(v7); (*(void (__fastcall **)(struct cocos2d::CCSpriteBatchNode *, struct cocos2d::CCObject *))(*(_QWORD *)v3 + 464LL))( v3, v7); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 704), v7); } } v8 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v8, &v20); v9 = (float)(int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672)); v10 = (float)((float)(v21 * 0.5) - 140.0) + 15.0; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672)); if ( result ) { v12 = (float)(v9 - 1.0) * 0.5; do { v13 = (float)((float)((float)(int)v1 - v12) * 16.0) + (float)(v20 * 0.5); if ( v1 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 704)) ) { v14 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 704), v1); v15 = *(_QWORD *)v14; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, v13, v10); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v15 + 184))(v14, v16); v17 = *((void (__fastcall ***)(char *, _BYTE *))v14 + 40); if ( v1 == *(_DWORD *)(a1 + 680) ) { v18 = &unk_14070469C; } else { memset(v19, 125, sizeof(v19)); v18 = v19; } (*v17)((char *)v14 + 320, v18); } ++v1; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672)); } while ( v1 < result ); } return result; }