//
// UIOptionsLayer::valueDidChange from 0x1002b47f0 to 0x1002b4a93 (675 bytes)
//
// 1 xrefs:
// > ??> @ 0x100902dd0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void __fastcall UIOptionsLayer::valueDidChange(UIOptionsLayer *a1, int a2, float a3)
{
bool v3; // cl
GJUINode *m_uiNode2; // rdi
GJUINode *v5; // rdi
GameManager *v6; // rax
GJUINode *m_uiNode1; // rax
UIOptionsLayer *v8; // rax
switch ( a2 )
{
case -28:
v3 = a3 != 0.0;
m_uiNode2 = a1->m_uiNode2;
goto LABEL_17;
case -27:
v3 = a3 != 0.0;
m_uiNode2 = a1->m_uiNode1;
LABEL_17:
m_uiNode2->m_split = v3;
GJUINode::updateButtonFrames(m_uiNode2);
return;
case -26:
v6 = GameManager::sharedState();
GameManager::toggleGameVariable(v6, "0113");
return;
case -25:
a1->m_uiNode2->m_snap = a3 != 0.0;
return;
case -24:
a1->m_uiNode1->m_snap = a3 != 0.0;
return;
case -23:
((void (__fastcall *)(UIOptionsLayer *, _QWORD, float))a1->onClose)(a1, 0, a3);
v8 = UIOptionsLayer::create(!a1->m_dual);
((void (__fastcall *)(UIOptionsLayer *))v8->show)(v8);
return;
case -22:
m_uiNode1 = a1->m_uiNode2;
goto LABEL_25;
case -21:
m_uiNode1 = a1->m_uiNode1;
LABEL_25:
m_uiNode1->m_deadzone = a3;
return;
case -20:
GJUINode::updateDragRadius(a1->m_uiNode2, a3);
return;
case -19:
GJUINode::updateDragRadius(a1->m_uiNode1, a3);
return;
case -18:
v5 = a1->m_uiNode2;
goto LABEL_28;
case -17:
v5 = a1->m_uiNode1;
LABEL_28:
GJUINode::toggleModeB(v5, _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(*(__m128 *)&a3, (__m128)0LL)) & 1);
break;
case -16:
GJUINode::setOpacity(a1->m_uiNode4, (int)(float)(a3 * 255.0));
break;
case -15:
GJUINode::setOpacity(a1->m_uiNode3, (int)(float)(a3 * 255.0));
break;
case -14:
GJUINode::setOpacity(a1->m_uiNode2, (int)(float)(a3 * 255.0));
break;
case -13:
GJUINode::setOpacity(a1->m_uiNode1, (int)(float)(a3 * 255.0));
break;
case -12:
GJUINode::updateButtonScale(a1->m_uiNode4, a3);
break;
case -11:
GJUINode::updateButtonScale(a1->m_uiNode3, a3);
break;
case -10:
GJUINode::updateButtonScale(a1->m_uiNode2, a3);
break;
case -9:
GJUINode::updateButtonScale(a1->m_uiNode1, a3);
break;
case -8:
GJUINode::updateHeight(a1->m_uiNode4, a3);
break;
case -7:
GJUINode::updateHeight(a1->m_uiNode3, a3);
break;
case -6:
GJUINode::updateHeight(a1->m_uiNode2, a3);
break;
case -5:
GJUINode::updateHeight(a1->m_uiNode1, a3);
break;
case -4:
GJUINode::updateWidth(a1->m_uiNode4, a3);
break;
case -3:
GJUINode::updateWidth(a1->m_uiNode3, a3);
break;
case -2:
GJUINode::updateWidth(a1->m_uiNode2, a3);
break;
case -1:
GJUINode::updateWidth(a1->m_uiNode1, a3);
break;
default:
return;
}
}