//
// sub_10047BEF8 from 0x10047bef8 to 0x10047bf80 (136 bytes)
//
// 2 xrefs:
// > EditorUI::editButton2Usable @ 0x10047bdc8
// > EditorUI::editObjectSpecial @ 0x10047c44c
//
// 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:43 +0000
//
__int64 __fastcall sub_10047BEF8(__int64 a1, __int64 a2, __int64 a3)
{
unsigned int v5; // w20
__int64 v6; // x0
__int64 v7; // x21
if ( a2 )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1632LL))(a2);
if ( !(unsigned int)sub_1002E757C(a3) )
return 1;
v5 = 0;
do
{
v6 = sub_1002E75A0(a3, v5);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1632LL))(v6);
if ( (v7 & 1) == 0 )
break;
++v5;
}
while ( v5 < (unsigned int)sub_1002E757C(a3) );
return v7;
}