//
// ConfigureHSVWidget::hostPopup from 0x140130770 to 0x1401307d2 (98 bytes)
//
// 3 xrefs:
// > ConfigureHSVWidget::textInputShouldOffset @ 0x140130708
// > ConfigureHSVWidget::textInputReturn @ 0x140130740
// > ??> @ 0x140916e44
//
// 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:27:03 +0000
//
__int64 __fastcall ConfigureHSVWidget::hostPopup(__int64 a1)
{
__int64 v1; // rbx
__int64 result; // rax
v1 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 504LL))(a1);
if ( !v1 )
return 0;
while ( 1 )
{
result = _RTDynamicCast(v1, 0, &cocos2d::CCNode `RTTI Type Descriptor', &FLAlertLayer `RTTI Type Descriptor', 0);
if ( result )
break;
v1 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 504LL))(v1);
if ( !v1 )
return 0;
}
return result;
}