//
// sub_1003109B0 from 0x1003109b0 to 0x100310a5c (172 bytes)
//
// 1 xrefs:
// > ShaderLayer::performCalculations @ 0x100310ff8
//
// This function is hookable on this platform (idp: arm, 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:03:13 +0000
//
void __fastcall sub_1003109B0(__int64 a1)
{
float v2; // s8
__int64 v3; // x20
GLint v4; // w21
__int64 v5; // x0
__float2 v6; // 0:kr00_8.8
if ( *(float *)(a1 + 1020) != 0.0 || cocos2d::CCNode::getActionByTag(a1, 38) )
*(_BYTE *)(a1 + 1078) = 1;
v2 = *(float *)(a1 + 1020) * 0.017453;
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104));
v4 = *(_DWORD *)(a1 + 1544);
v6 = __sincosf_stret(v2);
cocos2d::CCGLProgram::setUniformLocationWith1f(v3, v4, v6.__cosval);
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104));
cocos2d::CCGLProgram::setUniformLocationWith1f(v5, *(_DWORD *)(a1 + 1548), v6.__sinval);
}