//
// sub_10030CA58 from 0x10030ca58 to 0x10030cae0 (136 bytes)
//
// 1 xrefs:
// > sub_10030BA7C @ 0x10030be3c
//
// 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:11 +0000
//
__int64 __fastcall sub_10030CA58(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__int64 result; // x0
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104));
*(_DWORD *)(a1 + 1524) = glGetUniformLocation(*(_DWORD *)(v2 + 56), "_grayscaleValue");
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104));
*(_DWORD *)(a1 + 1528) = glGetUniformLocation(*(_DWORD *)(v3 + 56), "_grayscaleTint");
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104));
result = glGetUniformLocation(*(_DWORD *)(v4 + 56), "_grayscaleUseLum");
*(_DWORD *)(a1 + 1532) = result;
return result;
}