//
// SetGroupIDLayer::onPaste from 0x100301100 to 0x1003011ed (237 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::init @ 0x1002fe830
//
// 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:28:32 +0000
//
__int64 __fastcall SetGroupIDLayer::onPaste(__int64 a1, __int64 a2, __int64 a3)
{
__m128 v3; // xmm0
__int64 v4; // rax
unsigned int v5; // r14d
__int64 v6; // r15
int v7; // r12d
const char *v8; // rsi
__int64 result; // rax
v3 = GameManager::sharedState(a1, a2, a3);
LevelEditorLayer::pasteAttributeState(*(_QWORD *)(v4 + 552), *(_QWORD *)(a1 + 672), *(_QWORD *)(a1 + 680));
*(_BYTE *)(a1 + 797) = 1;
SetGroupIDLayer::determineStartValues(a1);
sub_1003005A0(a1);
sub_1003006D0(a1);
sub_1003007F0(a1);
sub_100300910(a1);
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) )
{
v5 = 0;
do
{
v6 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), v5);
v7 = *(_DWORD *)(a1 + 788);
v8 = "GJ_button_04.png";
if ( v7 == (*(unsigned int (__fastcall **)(__int64, double))(*(_QWORD *)v6 + 64LL))(v6, *(double *)v3.i64) )
v8 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v6, (__int64)v8);
++v5;
}
while ( v5 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) );
}
result = SetGroupIDLayer::updateGroupIDButtons((__int64 *)a1, v3);
*(_BYTE *)(a1 + 797) = 0;
return result;
}