//
// cocos2d::CCTMXTiledMap::layerNamed from 0x5f8738 to 0x5f8790 (88 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCTMXLayer *cocos2d::CCTMXTiledMap::layerNamed(cocos2d::CCTMXTiledMap *a1, const char *a2)
{
cocos2d::CCTMXLayer *result; // r0
float m_fRotationX; // r3
cocos2d::CCTMXLayer **v5; // r5
cocos2d::CCTMXLayer **v6; // r7
cocos2d::CCTMXLayer *v7; // t1
void *v8; // r0
cocos2d::CCTMXLayer *v9; // r4
result = (cocos2d::CCTMXLayer *)a1->m_pChildren;
if ( result )
{
m_fRotationX = result->m_fRotationX;
result = *(cocos2d::CCTMXLayer **)LODWORD(m_fRotationX);
if ( *(_DWORD *)LODWORD(m_fRotationX) )
{
v5 = *(cocos2d::CCTMXLayer ***)(LODWORD(m_fRotationX) + 12);
v6 = &v5[(_DWORD)result + 0x3FFFFFFF];
do
{
if ( v5 > v6 )
return nullptr;
v7 = *v5++;
result = v7;
if ( !v7 )
return result;
v8 = _dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTMXLayer,
0);
v9 = (cocos2d::CCTMXLayer *)v8;
}
while ( !v8 || strcmp(*((const char **)v8 + 80), a2) );
return v9;
}
}
return result;
}