//
// StartPosLayer::valueDidChange from 0xb612d0 to 0xb61470 (416 bytes)
//
// 2 xrefs:
// > ??> @ 0xc10c0
// > ??> @ 0x14c6530
//
// 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 13:02:12 +0000
//
__int64 __fastcall StartPosLayer::valueDidChange(__int64 this, int a2, float a3)
{
__int64 v3; // x1
__int64 v4; // x1
__int64 v5; // x1
float v6; // s1
__int64 v7; // x1
switch ( a2 )
{
case -15:
v4 = *(_QWORD *)(this + 1016);
this = (unsigned int)(int)a3;
*(_DWORD *)(*(_QWORD *)(v4 + 1840) + 468LL) = this;
break;
case -14:
v5 = *(_QWORD *)(this + 1016);
this = (unsigned int)(int)a3;
*(_DWORD *)(*(_QWORD *)(v5 + 1840) + 472LL) = this;
break;
case -13:
v6 = 100.0;
this = *(_QWORD *)(*(_QWORD *)(this + 1016) + 1840LL);
if ( a3 >= 100.0 || (v6 = -100.0, a3 <= -100.0) )
a3 = v6;
*(float *)(this + 476) = a3;
break;
case -12:
v3 = *(_QWORD *)(this + 1016);
this = (unsigned int)(int)a3;
*(_DWORD *)(*(_QWORD *)(v3 + 1840) + 376LL) = this;
break;
case -11:
v7 = *(_QWORD *)(this + 1016);
this = (unsigned int)(int)a3;
*(_DWORD *)(*(_QWORD *)(v7 + 1840) + 372LL) = this;
break;
case -10:
this = *(_QWORD *)(*(_QWORD *)(this + 1016) + 1840LL);
*(_BYTE *)(this + 465) = a3 != 0.0;
break;
case -9:
this = *(_QWORD *)(*(_QWORD *)(this + 1016) + 1840LL);
*(_BYTE *)(this + 464) = a3 != 0.0;
break;
case -8:
this = *(_QWORD *)(*(_QWORD *)(this + 1016) + 1840LL);
*(_BYTE *)(this + 440) = a3 != 0.0;
break;
case -7:
this = *(_QWORD *)(*(_QWORD *)(this + 1016) + 1840LL);
*(_BYTE *)(this + 370) = a3 != 0.0;
break;
case -6:
this = *(_QWORD *)(*(_QWORD *)(this + 1016) + 1840LL);
*(_BYTE *)(this + 339) = a3 != 0.0;
break;
case -5:
this = *(_QWORD *)(*(_QWORD *)(this + 1016) + 1840LL);
*(_BYTE *)(this + 463) = a3 != 0.0;
break;
case -4:
this = *(_QWORD *)(*(_QWORD *)(this + 1016) + 1840LL);
*(_BYTE *)(this + 338) = a3 != 0.0;
break;
case -3:
this = *(_QWORD *)(*(_QWORD *)(this + 1016) + 1840LL);
*(_BYTE *)(this + 337) = a3 != 0.0;
break;
case -2:
this = *(_QWORD *)(*(_QWORD *)(this + 1016) + 1840LL);
*(_BYTE *)(this + 336) = a3 != 0.0;
break;
case -1:
this = *(_QWORD *)(*(_QWORD *)(this + 1016) + 1840LL);
*(_BYTE *)(this + 369) = a3 != 0.0;
break;
default:
return this;
}
return this;
}