//
// TouchControlEditLayer::refreshHud from 0x140453730 to 0x140453830 (256 bytes)
//
// 10 xrefs:
// > TouchControlEditLayer::create @ 0x140452409
// > TouchControlEditLayer::valueDidChange @ 0x140453e5b
// > TouchControlEditLayer::ccTouchBegan @ 0x140454475
// > TouchControlEditLayer::onReset @ 0x1404559b2
// > TouchControlEditLayer::onPaste @ 0x140456209
// > TouchControlEditLayer::onApplyGlobal @ 0x1404565ec
// > ControlSlotsPopup::onLoad @ 0x14045704c
// > ??> @ 0x1408ccb98
// > ??> @ 0x1408ccba8
// > ??> @ 0x1409278c0
//
// 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:32:28 +0000
//
void __fastcall TouchControlEditLayer::refreshHud(__int64 *a1)
{
__int64 v1; // rsi
__int64 *v3; // rsi
char v4; // bl
__int64 v5; // rax
v1 = a1[155];
if ( v1 || (v3 = (__int64 *)a1[152], v3 != (__int64 *)a1[153]) && (v1 = *v3) != 0 )
{
v4 = *((_BYTE *)a1 + 744);
*((_BYTE *)a1 + 744) = 1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(v1 + 320) + 320LL) + 32LL))(*(_QWORD *)(v1 + 320) + 320LL);
SetupTriggerPopup::updateValueControls(a1, 1);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 320) + 168LL))(*(_QWORD *)(v1 + 320));
SetupTriggerPopup::updateValueControls(a1, 2);
v5 = *a1;
*((_BYTE *)a1 + 744) = v4;
(*(void (__fastcall **)(__int64 *, __int64, _QWORD))(v5 + 1152))(a1, 3, *(unsigned __int8 *)(v1 + 381));
(*(void (__fastcall **)(__int64 *, __int64, _QWORD))(*a1 + 1152))(a1, 4, *(unsigned __int8 *)(v1 + 382));
(*(void (__fastcall **)(__int64 *, __int64, _QWORD))(*a1 + 1152))(a1, 5, *(unsigned __int8 *)(v1 + 387));
}
}