//
// sub_100429F7C from 0x100429f7c to 0x100429ffc (128 bytes)
//
// 4 xrefs:
// > PlayLayer::updateVisibility @ 0x100145a64
// > LevelEditorLayer::updateVisibility @ 0x100400184
// > LevelEditorLayer::updateVisibility @ 0x1004006e4
// > LevelEditorLayer::updateObjectColors @ 0x100400c88
//
// 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:03 +0000
//
__int64 __fastcall sub_100429F7C(__int64 a1, int a2)
{
__int64 result; // x0
__int64 v3; // x19
unsigned int v4; // w20
__int64 v5; // x0
__int16 v6; // [xsp+Ch] [xbp-14h] BYREF
char v7; // [xsp+Eh] [xbp-12h]
v6 = a2;
v7 = BYTE2(a2);
result = *(_QWORD *)(a1 + 1472);
if ( result )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 488LL))(result);
result = sub_1002E757C(v3);
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = sub_1002E75A0(v3, v4);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v5 + 960LL))(v5, &v6);
++v4;
result = sub_1002E757C(v3);
}
while ( v4 < (unsigned int)result );
}
}
return result;
}