//
// sub_10040075C from 0x10040075c to 0x1004007d0 (116 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateVisibility @ 0x100400720
// > EditorUI::onPause @ 0x1004718a8
//
// 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:04:38 +0000
//
__int64 __fastcall sub_10040075C(__int64 result)
{
__int64 v1; // x19
unsigned int v2; // w20
__int64 v3; // x0
if ( !*(_DWORD *)(result + 1972) )
{
v1 = result;
result = sub_1002E757C(*(_QWORD *)(result + 14096));
if ( (_DWORD)result )
{
v2 = 0;
do
{
v3 = sub_1002E75A0(*(_QWORD *)(v1 + 14096), v2);
if ( *(_BYTE *)(v3 + 1881) == 1 )
{
*(_BYTE *)(v3 + 1881) = 0;
sub_100431674();
}
++v2;
result = sub_1002E757C(*(_QWORD *)(v1 + 14096));
}
while ( v2 < (unsigned int)result );
}
}
return result;
}