//
// cocos2d::CCTMXLayer::parseInternalProperties from 0x100244320 to 0x100244424 (260 bytes)
//
// 1 xrefs:
// > cocos2d::CCTMXLayer::setupTiles @ 0x100244024
//
// 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 12:27:19 +0000
//
__int64 __fastcall cocos2d::CCTMXLayer::parseInternalProperties(__int64 a1, double a2)
{
__int64 result; // rax
char v3; // cl
__int64 v4; // rcx
__int64 v5; // rax
float v6; // xmm0_4
__int64 v7; // rax
__int64 v8; // rax
__int64 v9; // rax
unsigned int UniformLocation; // r14d
__int64 v11; // rax
result = cocos2d::CCTMXLayer::propertyNamed(a1, "cc_vertexz");
if ( !result )
return result;
v3 = *(_BYTE *)(result + 56);
if ( (v3 & 1) != 0 )
{
if ( *(_QWORD *)(result + 64) == 9 )
{
v4 = *(_QWORD *)(result + 72);
goto LABEL_7;
}
LABEL_8:
result = cocos2d::CCString::intValue(result);
*(_DWORD *)(a1 + 444) = result;
return result;
}
if ( v3 != 18 )
goto LABEL_8;
v4 = result + 57;
LABEL_7:
if ( *(_QWORD *)v4 ^ 0x6974616D6F747561LL | *(unsigned __int8 *)(v4 + 8) ^ 0x63LL )
goto LABEL_8;
*(_BYTE *)(a1 + 448) = 1;
v5 = cocos2d::CCTMXLayer::propertyNamed(a1, "cc_alpha_func");
if ( v5 )
v6 = cocos2d::CCString::floatValue(v5, a2);
else
v6 = 0.0;
v7 = cocos2d::CCShaderCache::sharedShaderCache();
v8 = cocos2d::CCShaderCache::programForKey(v7, "ShaderPositionTextureColorAlphaTest");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 664LL))(a1, v8);
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1);
UniformLocation = glGetUniformLocation(*(_DWORD *)(v9 + 56), "CC_alpha_value");
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1);
return cocos2d::CCGLProgram::setUniformLocationWith1f(v11, UniformLocation, v6);
}