//
// sub_100487D74 from 0x100487d74 to 0x100487e20 (172 bytes)
//
// 1 xrefs:
// > sub_100487950 @ 0x100487c20
//
// 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:05:49 +0000
//
void __fastcall sub_100487D74(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x0
_QWORD **v4; // [xsp+8h] [xbp-28h] BYREF
_QWORD *v5[2]; // [xsp+10h] [xbp-20h] BYREF
v5[0] = nullptr;
v5[1] = nullptr;
v4 = v5;
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
{
if ( &v4 == (_QWORD ***)(v2 + 1840) )
goto LABEL_7;
goto LABEL_6;
}
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 688)) )
{
v2 = sub_1002E75A0(*(_QWORD *)(a1 + 688), 0);
if ( &v4 != (_QWORD ***)(v2 + 1840) )
LABEL_6:
sub_10018EE04(&v4, *(_QWORD **)(v2 + 1840), (_QWORD *)(v2 + 1848));
}
LABEL_7:
v3 = sub_100487E3C(a1, &v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
sub_1000187C4((__int64)&v4, v5[0]);
}