//
// GJSmartBlockPreview::addTemplateGuide from 0x670b00 to 0x670c56 (342 bytes)
//
// 2 xrefs:
// > BrowseSmartKeyLayer::init @ 0x674db4
// > BrowseSmartKeyLayer::init @ 0x674e1c
//
// 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:50 +0000
//
void __fastcall GJSmartBlockPreview::addTemplateGuide(unsigned __int8 *a1, unsigned __int8 *a2, int a3)
{
cocos2d::CCArray *v6; // r8
unsigned int i; // r5
int v8; // r4
int v9; // r4
int v10; // r0
unsigned int j; // r5
int v12; // [sp+4h] [bp+0h] BYREF
unsigned __int8 v13[12]; // [sp+8h] [bp+4h] BYREF
unsigned __int8 v14[28]; // [sp+14h] [bp+10h] BYREF
_BYTE v15[44]; // [sp+30h] [bp+2Ch] BYREF
SmartPrefabResult::SmartPrefabResult((SmartPrefabResult *)&v12);
std::string::operator=(v13, a2);
std::string::operator=(v14, a2);
SmartPrefabResult::SmartPrefabResult((SmartPrefabResult *)v15, (const SmartPrefabResult *)&v12);
v6 = GJSmartBlockPreview::addTemplateGuide(a1, (int)v15, 1.0);
SmartPrefabResult::~SmartPrefabResult((SmartPrefabResult *)v15);
if ( a3 == 1 )
{
for ( i = 0; i < cocos2d::CCArray::count(v6); ++i )
{
v8 = cocos2d::CCArray::objectAtIndex(v6, i);
if ( (unsigned int)(*(int (__fastcall **)(int))(*(_DWORD *)v8 + 32))(v8) <= 2 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 456))(v8, 50);
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v8 + 480))(v8, &unk_BEF433);
}
}
else if ( a3 == 2 )
{
for ( j = 0; j < cocos2d::CCArray::count(v6); ++j )
{
v9 = cocos2d::CCArray::objectAtIndex(v6, j);
v10 = (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 32))(v9);
switch ( v10 )
{
case 1:
(*(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v9 + 480))(v9, &word_BEF430);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 456))(v9, 200);
break;
case 2:
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v9 + 480))(v9, &unk_BEF433);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 456))(v9, 100);
break;
case 0:
(*(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v9 + 480))(v9, &word_BEF430);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 456))(v9, 255);
break;
}
}
}
SmartPrefabResult::~SmartPrefabResult((SmartPrefabResult *)&v12);
}