//
// sub_1001891C4 from 0x1001891c4 to 0x100189260 (156 bytes)
//
// 2 xrefs:
// > EditorUI::setupViewMenu @ 0x100188ca0
// > EditorUI::toggleViewOption @ 0x100189584
//
// 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:59:51 +0000
//
_QWORD *__fastcall sub_1001891C4(_QWORD *result)
{
__int64 v1; // x8
__int64 v2; // x8
_QWORD *v3; // x19
__int64 v4; // x24
__int64 v5; // x20
__int64 v6; // x21
__int64 v7; // x0
const char *v8; // x1
v1 = result[172];
if ( v1 )
{
v2 = *(_QWORD *)(v1 + 56);
if ( v2 )
{
v3 = result;
do
{
v4 = *(_QWORD *)(v2 + 288);
v5 = *(_QWORD *)(v2 + 264);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1072LL))(v5);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5);
if ( (unsigned int)sub_100189294(v3, v7) )
v8 = "GJ_button_03.png";
else
v8 = "GJ_button_04.png";
result = ButtonSprite::updateBGImage(v6, (__int64)v8);
v2 = v4;
}
while ( v4 );
}
}
return result;
}