//
// ShareCommentLayer::onClosePopup from 0x14048eb70 to 0x14048ebf6 (134 bytes)
//
// 2 xrefs:
// > ??> @ 0x14060abf0
// > ??> @ 0x1406dbff0
//
// 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 ShareCommentLayer::onClosePopup(ShareCommentLayer *a1, UploadActionPopup *a2)
{
_BOOL8 v4; // rdx
__int64 v5; // rdx
a2->setKeypadEnabled(a2, 0);
LOBYTE(v4) = 1;
a2->removeFromParentAndCleanup(a2, v4);
if ( a2 == *(UploadActionPopup **)&a1->m_obContentSize.height )
*(_QWORD *)&a1->m_obContentSize.height = 0;
if ( LOBYTE(a1->m_sAdditionalTransform.b) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_uAutoReleaseCount + 1016LL))(
*(_QWORD *)&a1->m_uAutoReleaseCount,
0);
(*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)&a1[-1].m_sAdditionalTransform.ty + 976LL))(
&a1[-1].m_sAdditionalTransform.ty,
0);
LOBYTE(v5) = 1;
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)&a1[-1].m_sAdditionalTransform.ty + 504LL))(
&a1[-1].m_sAdditionalTransform.ty,
v5);
}
}