//
// TextAlertPopup::inheritOpacity from 0xa20570 to 0xa205fc (140 bytes)
//
// 2 xrefs:
// > TextAlertPopup::replaceIn @ 0xa20658
// > ??> @ 0xb1a48
//
// This function is hookable on this platform (idp: arm, 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:59:39 +0000
//
_QWORD *__fastcall TextAlertPopup::inheritOpacity(_QWORD *result, __int64 a2)
{
__int64 v2; // x21
_QWORD *v3; // x20
__int64 (__fastcall *v5)(__int64, _QWORD); // x22
unsigned int v6; // w0
__int64 v7; // x20
__int64 (__fastcall *v8)(__int64, _QWORD); // x19
unsigned int v9; // w0
if ( a2 )
{
v2 = result[41];
v3 = result;
if ( v2 )
{
result = *(_QWORD **)(a2 + 328);
if ( result )
{
v5 = *(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1024LL);
v6 = (*(__int64 (__fastcall **)(_QWORD *))(*result + 1008LL))(result);
result = (_QWORD *)v5(v2, v6);
}
}
v7 = v3[42];
if ( v7 )
{
result = *(_QWORD **)(a2 + 336);
if ( result )
{
v8 = *(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 912LL);
v9 = (*(__int64 (__fastcall **)(_QWORD *))(*result + 896LL))(result);
return (_QWORD *)v8(v7, v9);
}
}
}
return result;
}