//
// cocos2d::CCTMXLayer::parseInternalProperties from 0x1800ac610 to 0x1800ac719 (265 bytes)
//
// 5 xrefs:
// > cocos2d::CCTMXLayer::setupTiles @ 0x1800ad2c5
// > ??> @ 0x180140688
// > ??> @ 0x180140698
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8118
//
// 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
//
void __fastcall cocos2d::CCTMXLayer::parseInternalProperties(cocos2d::CCTMXLayer *this)
{
struct cocos2d::CCString *v2; // rax
cocos2d::CCString *v3; // rbx
std::string *p_m_sString; // rcx
cocos2d::CCString *v5; // rax
float v6; // xmm6_4
cocos2d::CCTMXLayer_vtbl *v7; // rbx
cocos2d::CCShaderCache *v8; // rax
struct cocos2d::CCGLProgram *v9; // rax
__int64 v10; // rax
cocos2d::CCGLProgram *v11; // rax
v2 = cocos2d::CCTMXLayer::propertyNamed(this, "cc_vertexz");
v3 = v2;
if ( v2 )
{
p_m_sString = &v2->m_sString;
if ( v2->m_sString.m_data.m_capacity > 0xF )
p_m_sString = (std::string *)v2->m_sString.m_data.m_bigStorage;
if ( v2->m_sString.m_data.m_size == 9 && !memcmp(p_m_sString, "automatic", 9u) )
{
*((_BYTE *)this + 456) = 1;
v5 = cocos2d::CCTMXLayer::propertyNamed(this, "cc_alpha_func");
v6 = 0.0;
if ( v5 )
v6 = cocos2d::CCString::floatValue(v5);
v7 = this->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v8 = cocos2d::CCShaderCache::sharedShaderCache();
v9 = cocos2d::CCShaderCache::programForKey(v8, "ShaderPositionTextureColorAlphaTest");
((void (__fastcall *)(cocos2d::CCTMXLayer *, struct cocos2d::CCGLProgram *))v7->setShaderProgram)(this, v9);
v10 = ((__int64 (__fastcall *)(cocos2d::CCTMXLayer *))this->getShaderProgram)(this);
LODWORD(v7) = _glewGetUniformLocation(*(unsigned int *)(v10 + 56), "CC_alpha_value");
v11 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCTMXLayer *))this->getShaderProgram)(this);
cocos2d::CCGLProgram::setUniformLocationWith1f(v11, (unsigned int)v7, v6);
}
else
{
*((_DWORD *)this + 113) = cocos2d::CCString::uintValue(v3);
}
}
}