//
// InfoAlertButton::activate from 0x1402ba650 to 0x1402ba723 (211 bytes)
//
// 2 xrefs:
// > ??> @ 0x140580eb0
// > ??> @ 0x1406d27b0
//
// 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
//
void InfoAlertButton::activate(InfoAlertButton *a1)
{
std::size_t *p_m_capacity; // rdx
size_t v3; // r8
IconType *p_m_iconType; // rdx
FLAlertLayer *v5; // rax
__int128 v6; // [rsp+50h] [rbp-28h] BYREF
__int64 v7; // [rsp+60h] [rbp-18h]
__int64 v8; // [rsp+68h] [rbp-10h]
if ( a1->m_bEnabled )
{
p_m_capacity = &a1->m_title.m_data.m_capacity;
if ( a1->m_description.m_data.m_size > 0xF )
p_m_capacity = (std::size_t *)*p_m_capacity;
v7 = 0;
v6 = 0;
v8 = 0;
v3 = -1;
do
++v3;
while ( *((_BYTE *)p_m_capacity + v3) );
sub_14003A930(&v6, p_m_capacity, v3);
p_m_iconType = &a1->m_iconType;
if ( a1->m_title.m_data.m_size > 0xF )
p_m_iconType = *(IconType **)p_m_iconType;
v5 = FLAlertLayer::create(
0,
(int)p_m_iconType,
(__int64)&v6,
(__int64)"OK",
0,
1138163712,
BYTE4(a1->m_description.m_data.m_capacity),
0,
a1->m_description.m_data.m_capacity);
v5->show(v5);
}
}