//
// InfoLayer::commentUploadFinished from 0x100896970 to 0x100896ac9 (345 bytes)
//
// 2 xrefs:
// > sub_100896AD0 @ 0x100896adc
// > ??> @ 0x100ba8168
//
// 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:37:07 +0000
//
void __fastcall InfoLayer::commentUploadFinished(__int64 a1, int a2)
{
__int64 v2; // rax
__int64 v3; // rcx
__int64 v4; // rax
__int64 v5; // rcx
__int64 v6; // rax
__int64 v7; // rax
unsigned __int8 GameVariable; // r14
__int64 v9; // rax
const char *v10; // r15
const char *v11; // rsi
__int64 v12; // rax
v2 = *(_QWORD *)(a1 + 704);
if ( v2 )
{
if ( *(_BYTE *)(a1 + 880) != 1 || *(_DWORD *)(v2 + 376) != a2 )
return;
}
else
{
v3 = *(_QWORD *)(a1 + 712);
if ( v3 )
{
if ( -*(_DWORD *)(v3 + 344) != a2 )
return;
}
else
{
v4 = *(_QWORD *)(a1 + 720);
if ( v4 )
{
if ( *(_DWORD *)(v4 + 316) != a2 )
return;
}
else
{
v5 = *(_QWORD *)(a1 + 696);
if ( v5 )
{
if ( *(_DWORD *)(v5 + 328) - *(_DWORD *)(v5 + 332) != a2 )
return;
}
else if ( a2 )
{
return;
}
}
}
}
v6 = GameManager::sharedState();
GameManager::setGameVariable(v6, "0069");
v7 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v7, "0069");
v9 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 800) + 1072LL))(*(_QWORD *)(a1 + 800));
v10 = "GJ_button_02.png";
v11 = "GJ_button_01.png";
if ( GameVariable )
{
v11 = "GJ_button_02.png";
v10 = "GJ_button_01.png";
}
ButtonSprite::updateBGImage(v9, (__int64)v11);
v12 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 1072LL))(*(_QWORD *)(a1 + 808));
ButtonSprite::updateBGImage(v12, (__int64)v10);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 800) + 1056LL))(*(_QWORD *)(a1 + 800), GameVariable ^ 1u);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 808) + 1056LL))(*(_QWORD *)(a1 + 808), GameVariable);
InfoLayer::loadPage((_DWORD *)a1, 0, 0);
}