//
// ShaderLayer::setupSplitScreenShader from 0x140628dd0 to 0x140628fa1 (465 bytes)
//
// 2 xrefs:
// > ShaderLayer::setupShader @ 0x14062370f
// > ??> @ 0x140930854
//
// 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:35:25 +0000
//
__int64 __fastcall ShaderLayer::setupSplitScreenShader(__int64 a1)
{
__int64 v2; // rax
int UniformLocation; // eax
__int64 v4; // rcx
__int64 v5; // rax
int v6; // eax
__int64 v7; // rcx
__int64 v8; // rax
int v9; // eax
__int64 v10; // rcx
__int64 v11; // rax
int v12; // eax
__int64 v13; // rcx
__int64 v14; // rax
int v15; // eax
__int64 v16; // rcx
__int64 v17; // rax
int v18; // eax
__int64 v19; // rcx
__int64 v20; // rax
int v21; // eax
__int64 v22; // rcx
__int64 v23; // rax
int v24; // eax
__int64 v25; // rcx
__int64 v26; // rax
int v27; // eax
__int64 v28; // rcx
__int64 v29; // rax
__int64 result; // rax
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1152) + 648LL))(*(_QWORD *)(a1 + 1152));
UniformLocation = _glewGetUniformLocation(*(unsigned int *)(v2 + 56), "_rowmod");
v4 = *(_QWORD *)(a1 + 1152);
*(_DWORD *)(a1 + 1608) = UniformLocation;
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 648LL))(v4);
v6 = _glewGetUniformLocation(*(unsigned int *)(v5 + 56), "_colmod");
v7 = *(_QWORD *)(a1 + 1152);
*(_DWORD *)(a1 + 1612) = v6;
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 648LL))(v7);
v9 = _glewGetUniformLocation(*(unsigned int *)(v8 + 56), "_rowmodCalc");
v10 = *(_QWORD *)(a1 + 1152);
*(_DWORD *)(a1 + 1616) = v9;
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 648LL))(v10);
v12 = _glewGetUniformLocation(*(unsigned int *)(v11 + 56), "_colmodCalc");
v13 = *(_QWORD *)(a1 + 1152);
*(_DWORD *)(a1 + 1620) = v12;
v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 648LL))(v13);
v15 = _glewGetUniformLocation(*(unsigned int *)(v14 + 56), "_splitXStart");
v16 = *(_QWORD *)(a1 + 1152);
*(_DWORD *)(a1 + 1624) = v15;
v17 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 648LL))(v16);
v18 = _glewGetUniformLocation(*(unsigned int *)(v17 + 56), "_splitXRange");
v19 = *(_QWORD *)(a1 + 1152);
*(_DWORD *)(a1 + 1628) = v18;
v20 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 648LL))(v19);
v21 = _glewGetUniformLocation(*(unsigned int *)(v20 + 56), "_splitXRangeMult");
v22 = *(_QWORD *)(a1 + 1152);
*(_DWORD *)(a1 + 1632) = v21;
v23 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 648LL))(v22);
v24 = _glewGetUniformLocation(*(unsigned int *)(v23 + 56), "_splitYStart");
v25 = *(_QWORD *)(a1 + 1152);
*(_DWORD *)(a1 + 1636) = v24;
v26 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 648LL))(v25);
v27 = _glewGetUniformLocation(*(unsigned int *)(v26 + 56), "_splitYRange");
v28 = *(_QWORD *)(a1 + 1152);
*(_DWORD *)(a1 + 1640) = v27;
v29 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 648LL))(v28);
result = _glewGetUniformLocation(*(unsigned int *)(v29 + 56), "_splitYRangeMult");
*(_DWORD *)(a1 + 1644) = result;
return result;
}