//
// ColorSelectPopup::onPaste from 0x1008069c0 to 0x1008069fe (62 bytes)
//
// 1 xrefs:
// > ColorSelectPopup::init @ 0x1008045a2
//
// 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:36:40 +0000
//
__int64 __fastcall ColorSelectPopup::onPaste(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rax
__int16 v3; // cx
int v5; // [rsp+0h] [rbp-Ch] BYREF
v5 = HIDWORD(v1);
v2 = GameManager::sharedState();
v3 = *(_WORD *)(v2 + 960);
BYTE2(v5) = *(_BYTE *)(v2 + 962);
LOWORD(v5) = v3;
return (*(__int64 (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 1032) + 1360LL))(*(_QWORD *)(a1 + 1032), &v5);
}