//
// sub_100067624 from 0x100067624 to 0x100067718 (244 bytes)
//
// 2 xrefs:
// > sub_100067294 @ 0x1000675fc
// > sub_100067294 @ 0x10006742c
//
// 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 10:57:56 +0000
//
__int64 __fastcall sub_100067624(__int64 a1, __int64 a2)
{
int v3; // w0
__int64 v4; // x20
__int64 v5; // x0
int v6; // w20
__int64 v7; // x0
__int64 v8; // x1
_WORD v10[2]; // [xsp+Ch] [xbp-34h] BYREF
if ( a2 )
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
else
v3 = -1;
*(_DWORD *)(a1 + 684) = v3;
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 672)) )
{
v4 = 0;
do
{
v5 = sub_1002E75A0(*(_QWORD *)(a1 + 672), v4);
if ( (_DWORD)v4 != *(_DWORD *)(a1 + 684) )
memset(v10, 125, 3);
(*(void (**)(void))(*(_QWORD *)v5 + 960LL))();
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 672)) );
}
v6 = *(_DWORD *)(a1 + 684);
v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 1072LL))(*(_QWORD *)(a1 + 664));
if ( v6 == -1 )
v8 = 10921638;
else
v8 = 0xFFFFFF;
return ButtonSprite::setColor(v7, v8);
}