//
// InfoLayer::onSimilar from 0x53d36c to 0x53d404 (152 bytes)
//
// 0 xrefs:
//
// 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:52:16 +0000
//
int __fastcall InfoLayer::onSimilar(InfoLayer *this, cocos2d::CCObject *a2, int a3, int a4)
{
cocos2d::CCDirector *v5; // r7
cocos2d::CCString *v6; // r0
const char *CString; // r8
size_t v8; // r0
LevelBrowserLayer *v9; // r0
GJSearchObject *v10; // r1
AppDelegate *v11; // r0
cocos2d::CCScene *v12; // r2
cocos2d::CCScene *v13; // r0
InfoLayer *v15; // [sp+0h] [bp-10h] BYREF
cocos2d::CCObject *v16; // [sp+4h] [bp-Ch]
int v17; // [sp+8h] [bp-8h]
int v18; // [sp+Ch] [bp-4h]
v15 = this;
v16 = a2;
v17 = a3;
v18 = a4;
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(*(_DWORD *)(*((_DWORD *)this + 134) + 268)
- *(_DWORD *)(*((_DWORD *)this + 134) + 272)));
v15 = nullptr;
v16 = nullptr;
v17 = 0;
CString = (const char *)cocos2d::CCString::getCString(v6);
v8 = strlen(CString);
std::string::__init((int *)&v15, CString, v8);
v9 = (LevelBrowserLayer *)GJSearchObject::create(18, (int)&v15);
v11 = LevelBrowserLayer::scene(v9, v10);
v13 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v11,
v12);
cocos2d::CCDirector::replaceScene(v5, v13);
std::string::~string((int)&v15);
return (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 636))(*((_DWORD *)this + 111), 0);
}