//
// cocos2d::CCTMXLayer::parseInternalProperties from 0x1800afe10 to 0x1800aff2f (287 bytes)
//
// 5 xrefs:
// > cocos2d::CCTMXLayer::setupTiles @ 0x1800b0b2a
// > ??> @ 0x180149934
// > ??> @ 0x180149944
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c23dc
//
// 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:22:19 +0000
//
void __fastcall cocos2d::CCTMXLayer::parseInternalProperties(cocos2d::CCTMXLayer *this)
{
struct cocos2d::CCString *v2; // rax
char *v3; // rdx
__int64 v4; // rcx
cocos2d::CCString *v5; // rax
float v6; // xmm6_4
__int64 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");
if ( v2 )
{
v3 = (char *)v2 + 56;
if ( *((_QWORD *)v2 + 10) > 0xFu )
v3 = *((char **)v2 + 7);
if ( *((_QWORD *)v2 + 9) != 9 )
goto LABEL_11;
v4 = *(_QWORD *)v3 - 0x6974616D6F747561LL;
if ( *(_QWORD *)v3 == 0x6974616D6F747561LL )
v4 = (unsigned __int8)v3[8] - 99LL;
if ( v4 )
{
LABEL_11:
*((_DWORD *)this + 113) = cocos2d::CCString::uintValue(v2);
}
else
{
*((_BYTE *)this + 456) = 1;
v5 = cocos2d::CCTMXLayer::propertyNamed(this, "cc_alpha_func");
v6 = 0.0;
if ( v5 )
v6 = cocos2d::CCString::floatValue(v5);
v7 = *(_QWORD *)this;
v8 = cocos2d::CCShaderCache::sharedShaderCache();
v9 = cocos2d::CCShaderCache::programForKey(v8, "ShaderPositionTextureColorAlphaTest");
(*(void (__fastcall **)(cocos2d::CCTMXLayer *, struct cocos2d::CCGLProgram *))(v7 + 656))(this, v9);
v10 = (*(__int64 (__fastcall **)(cocos2d::CCTMXLayer *))(*(_QWORD *)this + 648LL))(this);
LODWORD(v7) = _glewGetUniformLocation(*(unsigned int *)(v10 + 56), "CC_alpha_value");
v11 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(cocos2d::CCTMXLayer *))(*(_QWORD *)this + 648LL))(this);
cocos2d::CCGLProgram::setUniformLocationWith1f(v11, v7, v6);
}
}
}