//
// sub_1005257BC from 0x1005257bc to 0x100525820 (100 bytes)
//
// 4 xrefs:
// > IDNameBrowserPopup::ccTouchEnded @ 0x1004e2494
// > ThreadViewPopup::ccTouchEnded @ 0x10050158c
// > PagedListPopup::ccTouchEnded @ 0x10051b55c
// > SFXFolderPickerPopup::ccTouchEnded @ 0x100529e1c
//
// 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 11:07:14 +0000
//
_QWORD *__fastcall sub_1005257BC(__int64 a1, __int64 a2)
{
int v3; // w22
_QWORD *result; // x0
__int64 v5; // x9
v3 = *(unsigned __int8 *)(a1 + 480);
sub_100525820(a1, a2);
result = *(_QWORD **)(a1 + 576);
if ( result )
{
v5 = 912;
if ( v3 )
v5 = 920;
result = (_QWORD *)(*(__int64 (**)(void))(*result + v5))();
*(_QWORD *)(a1 + 576) = 0;
}
return result;
}