//
// sub_10095F7F0 from 0x10095f7f0 to 0x10095f8fb (267 bytes)
//
// 4 xrefs:
// > sub_10095E5D0 @ 0x10095e60d
// > sub_10095ED80 @ 0x10095f067
// > PlatformerControlsPopup::update @ 0x10095fb42
// > PlatformerControlsPopup::onClose @ 0x10095fe65
//
// This function is hookable on this platform (idp: pc, 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 12:38:45 +0000
//
__int64 __fastcall sub_10095F7F0(__int64 a1)
{
_QWORD *v2; // rdi
unsigned int v3; // r14d
__int64 v4; // rcx
__int64 *v5; // rax
const char *v6; // rsi
__int64 v7; // rdi
const char *v8; // rsi
__int64 v9; // rdi
const char *v10; // rsi
__int64 v11; // rdi
v2 = *(_QWORD **)(a1 + 1064);
if ( v2 )
v3 = sub_100923E00(v2);
else
v3 = *(_DWORD *)(a1 + 1296);
*(_DWORD *)(a1 + 1300) = v3;
v4 = *(_QWORD *)(a1 + 1048);
v5 = (__int64 *)(a1 + 1144);
if ( v4 && *(_DWORD *)(v4 + 1840) == 1 )
{
if ( *v5 )
{
v6 = "GJ_button_01.png";
if ( (v3 & 1) == 0 )
v6 = "GJ_button_04.png";
ButtonSprite::updateBGImage(*v5, (__int64)v6);
}
v7 = *(_QWORD *)(a1 + 1152);
if ( v7 )
{
v8 = "GJ_button_01.png";
if ( (v3 & 2) == 0 )
v8 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v7, (__int64)v8);
}
v9 = *(_QWORD *)(a1 + 1160);
if ( v9 )
{
v10 = "GJ_button_01.png";
if ( (v3 & 4) == 0 )
v10 = "GJ_button_04.png";
goto LABEL_24;
}
}
else
{
if ( *v5 )
ButtonSprite::updateBGImage(*v5, (__int64)"GJ_button_01.png");
v11 = *(_QWORD *)(a1 + 1152);
if ( v11 )
ButtonSprite::updateBGImage(v11, (__int64)"GJ_button_01.png");
v9 = *(_QWORD *)(a1 + 1160);
if ( v9 )
{
v10 = "GJ_button_01.png";
LABEL_24:
ButtonSprite::updateBGImage(v9, (__int64)v10);
}
}
return sub_10095F930(a1, v3);
}