//
// UIOptionsLayer::valueDidChange from 0x1002a2520 to 0x1002a2883 (867 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b09ec0
//
// 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 12:27:55 +0000
//
void __fastcall UIOptionsLayer::valueDidChange(__int64 a1, int a2, __int64 a3, __m128 a4)
{
__int64 v4; // rsi
bool v5; // cl
__int64 v6; // rdi
int v7; // eax
__int64 v8; // rdi
__int64 v9; // rdi
__int64 v10; // rax
__int64 v11; // rax
char v12; // r14
char *v13; // rbx
v4 = (unsigned int)(a2 + 28);
switch ( v4 )
{
case 0LL:
v5 = a4.f32[0] != 0.0;
v6 = *(_QWORD *)(a1 + 1024);
goto LABEL_17;
case 1LL:
v5 = a4.f32[0] != 0.0;
v6 = *(_QWORD *)(a1 + 1016);
LABEL_17:
*(_BYTE *)(v6 + 387) = v5;
GJUINode::updateButtonFrames();
return;
case 2LL:
GameManager::sharedState(a1, v4, a3);
GameManager::toggleGameVariable(v10, "0113");
return;
case 3LL:
*(_BYTE *)(*(_QWORD *)(a1 + 1024) + 382LL) = a4.f32[0] != 0.0;
return;
case 4LL:
*(_BYTE *)(*(_QWORD *)(a1 + 1016) + 382LL) = a4.f32[0] != 0.0;
return;
case 5LL:
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
v12 = *(_BYTE *)(a1 + 1012);
v13 = (char *)operator new(0x428u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v13);
*(_QWORD *)v13 = off_100B09910;
*((_QWORD *)v13 + 40) = off_100B09F00;
*((_QWORD *)v13 + 41) = &off_100B09F70;
*((_QWORD *)v13 + 42) = off_100B09F88;
*((_QWORD *)v13 + 43) = off_100B09FA8;
*((_QWORD *)v13 + 44) = off_100B09FD0;
*((_QWORD *)v13 + 51) = off_100B0A000;
*((_QWORD *)v13 + 54) = off_100B0A080;
*((_QWORD *)v13 + 68) = off_100B0A0A0;
*((_QWORD *)v13 + 83) = &off_100B0A0E8;
*((_QWORD *)v13 + 84) = off_100B0A100;
v13[1012] = 0;
*(_OWORD *)(v13 + 1016) = 0;
*(_OWORD *)(v13 + 1032) = 0;
*(_OWORD *)(v13 + 1044) = 0;
if ( !(unsigned __int8)UIOptionsLayer::init((__int64)v13, v12 ^ 1u) )
sub_1009A64E0(v13);
cocos2d::CCObject::autorelease(v13);
(*(void (__fastcall **)(char *))(*(_QWORD *)v13 + 1312LL))(v13);
return;
case 6LL:
v11 = *(_QWORD *)(a1 + 1024);
goto LABEL_26;
case 7LL:
v11 = *(_QWORD *)(a1 + 1016);
LABEL_26:
*(_DWORD *)(v11 + 376) = a4.i32[0];
return;
case 8LL:
GJUINode::updateDragRadius(*(_QWORD *)(a1 + 1024));
return;
case 9LL:
GJUINode::updateDragRadius(*(_QWORD *)(a1 + 1016));
return;
case 10LL:
v9 = *(_QWORD *)(a1 + 1024);
goto LABEL_29;
case 11LL:
v9 = *(_QWORD *)(a1 + 1016);
LABEL_29:
GJUINode::toggleModeB(v9, _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(a4, (__m128)0LL)) & 1);
return;
case 12LL:
v7 = (int)(float)(a4.f32[0] * 255.0);
v8 = *(_QWORD *)(a1 + 1040);
goto LABEL_24;
case 13LL:
v7 = (int)(float)(a4.f32[0] * 255.0);
v8 = *(_QWORD *)(a1 + 1032);
goto LABEL_24;
case 14LL:
v7 = (int)(float)(a4.f32[0] * 255.0);
v8 = *(_QWORD *)(a1 + 1024);
goto LABEL_24;
case 15LL:
v7 = (int)(float)(a4.f32[0] * 255.0);
v8 = *(_QWORD *)(a1 + 1016);
LABEL_24:
GJUINode::setOpacity(v8, (unsigned __int8)v7);
break;
case 16LL:
GJUINode::updateButtonScale(*(_QWORD *)(a1 + 1040));
break;
case 17LL:
GJUINode::updateButtonScale(*(_QWORD *)(a1 + 1032));
break;
case 18LL:
GJUINode::updateButtonScale(*(_QWORD *)(a1 + 1024));
break;
case 19LL:
GJUINode::updateButtonScale(*(_QWORD *)(a1 + 1016));
break;
case 20LL:
GJUINode::updateHeight(*(_QWORD *)(a1 + 1040));
break;
case 21LL:
GJUINode::updateHeight(*(_QWORD *)(a1 + 1032));
break;
case 22LL:
GJUINode::updateHeight(*(_QWORD *)(a1 + 1024));
break;
case 23LL:
GJUINode::updateHeight(*(_QWORD *)(a1 + 1016));
break;
case 24LL:
GJUINode::updateWidth(*(_QWORD *)(a1 + 1040));
break;
case 25LL:
GJUINode::updateWidth(*(_QWORD *)(a1 + 1032));
break;
case 26LL:
GJUINode::updateWidth(*(_QWORD *)(a1 + 1024));
break;
case 27LL:
GJUINode::updateWidth(*(_QWORD *)(a1 + 1016));
break;
default:
return;
}
}