//
// ColorSelectLiveOverlay::determineStartValues from 0x6012ae to 0x601338 (138 bytes)
//
// 1 xrefs:
// > sub_601AE0 @ 0x601b66
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:40 +0000
//
int __fastcall ColorSelectLiveOverlay::determineStartValues(int this)
{
int v1; // r3
_WORD *v2; // r2
char v3; // r4
_DWORD *v4; // r3
char v5; // r6
char v6; // r5
int v7; // r3
char v8; // r6
char v9; // r5
__int16 v10; // r4
char v11; // r2
_BYTE *v12; // r3
char v13; // r1
char v14; // r2
char v15; // r3
v1 = *(_DWORD *)(this + 520);
v2 = (_WORD *)(this + 546);
if ( v1 )
{
v3 = *(_BYTE *)(v1 + 1270);
v4 = (_DWORD *)(v1 + 1276);
v5 = *((_BYTE *)v4 - 8);
v6 = *((_BYTE *)v4 - 7);
*(_BYTE *)(this + 548) = v3;
*(_BYTE *)(this + 546) = v5;
*(_BYTE *)(this + 547) = v6;
*(_DWORD *)(this + 564) = *v4;
LOBYTE(v4) = *(_BYTE *)(this + 548);
*(_WORD *)(this + 540) = *v2;
*(_BYTE *)(this + 542) = (_BYTE)v4;
}
else
{
v7 = *(_DWORD *)(this + 532);
v8 = *(_BYTE *)(v7 + 68);
v9 = *(_BYTE *)(v7 + 69);
*(_BYTE *)(this + 548) = *(_BYTE *)(v7 + 70);
*(_BYTE *)(this + 546) = v8;
*(_BYTE *)(this + 547) = v9;
v10 = *v2;
v11 = *(_BYTE *)(this + 548);
*(_WORD *)(this + 540) = v10;
*(_BYTE *)(this + 542) = v11;
*(_DWORD *)(this + 564) = *(_DWORD *)(v7 + 92);
v12 = *(_BYTE **)(this + 536);
if ( v12 )
{
v13 = v12[68];
v14 = v12[69];
v15 = v12[70];
*(_BYTE *)(this + 543) = v13;
*(_BYTE *)(this + 544) = v14;
*(_BYTE *)(this + 545) = v15;
}
}
return this;
}