//
// GameManager::setIntGameVariable from 0x14027eb60 to 0x14027ec6a (266 bytes)
//
// 4 xrefs:
// > EditorUI::setupCreateMenu @ 0x1401ca854
// > EditorUI::setupCreateMenu @ 0x1401ca87d
// > GameManager::firstLoad @ 0x140285881
// > ??> @ 0x14091cfe8
//
// 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 11:28:59 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall GameManager::setIntGameVariable(__int64 a1, _BYTE *a2, unsigned int a3)
{
size_t v5; // r8
__int64 v6; // rbx
struct cocos2d::CCString *v7; // rax
void *v8; // rcx
void *Block[2]; // [rsp+30h] [rbp-38h] BYREF
__m128i si128; // [rsp+40h] [rbp-28h]
*(_OWORD *)Block = 0;
si128 = _mm_load_si128((const __m128i *)&xmmword_140836540);
LODWORD(Block[0]) = 6256231;
v5 = -1;
do
++v5;
while ( a2[v5] );
sub_140044D80(Block, a2, v5);
v6 = *(_QWORD *)(a1 + 432);
v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a3);
cocos2d::CCDictionary::setObject(v6, v7, Block);
if ( si128.m128i_i64[1] > 0xFuLL )
{
v8 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v8 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v8);
}
}