//
// sub_100963910 from 0x100963910 to 0x100963a84 (372 bytes)
//
// 7 xrefs:
// > RateStarsModLayer::init @ 0x100963776
// > RateStarsModLayer::init @ 0x100962c72
// > RateStarsModLayer::init @ 0x100962d3c
// > RateStarsModLayer::init @ 0x100962e06
// > RateStarsModLayer::init @ 0x100962ed0
// > RateStarsModLayer::init @ 0x100962f9a
// > RateStarsModLayer::init @ 0x100963019
//
// 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:47 +0000
//
__int64 __fastcall sub_100963910(__int64 a1, __int64 a2, double a3)
{
int v4; // eax
unsigned int v5; // r14d
__int64 v6; // r15
__int64 v7; // r12
int v8; // r13d
const char *v9; // rsi
int v10; // r14d
_QWORD *v11; // rax
unsigned int v12; // eax
unsigned int v13; // edx
int v14; // ecx
_QWORD *v15; // rdi
int v16; // esi
if ( a2 )
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
else
v4 = -1;
*(_DWORD *)(a1 + 716) = v4;
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 696)) )
{
v5 = 0;
do
{
v6 = sub_1007FEFE0(*(_QWORD *)(a1 + 696), v5);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1072LL))(v6);
v8 = *(_DWORD *)(a1 + 716);
v9 = "GJ_button_04.png";
if ( v8 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v6 + 64LL))(v6) )
v9 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v7, (__int64)v9);
++v5;
}
while ( v5 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 696)) );
}
v10 = *(_DWORD *)(a1 + 716) != -1;
v11 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 1072LL))(*(_QWORD *)(a1 + 688));
ButtonSprite::setColor(v11, -v10 | 0xFFA6A6A6);
v12 = *(_DWORD *)(a1 + 716);
if ( v12 == 10 )
{
v13 = *(_DWORD *)(a1 + 756) - 1;
v14 = 6;
if ( v13 <= 4 )
v14 = *(_DWORD *)&asc_100A146A8[4 * v13];
}
else
{
*(_DWORD *)(a1 + 756) = 0;
v14 = 0;
if ( (int)v12 >= 2 )
{
if ( v12 == 2 )
{
v14 = 1;
}
else if ( v12 == 3 )
{
v14 = 2;
}
else
{
v14 = 3;
if ( v12 >= 6 )
{
v14 = 4;
if ( v12 >= 8 )
v14 = 5 * (v12 < 0xA);
}
}
}
}
v15 = *(_QWORD **)(a1 + 744);
v16 = -1;
if ( v12 != 1 )
v16 = v14;
GJDifficultySprite::updateDifficultyFrame(v15, v16, 0, a3);
return sub_100963D60(a1);
}