//
// sub_10097D3E0 from 0x10097d3e0 to 0x10097d550 (368 bytes)
//
// 1 xrefs:
// > sub_1004832F0 @ 0x100483301
//
// 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:58 +0000
//
char *__fastcall sub_10097D3E0(unsigned int a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x3E8u);
__bzero(v1, 1000);
sub_100737E80((__int64)v1);
*(_QWORD *)v1 = off_100BD2B28;
*((_QWORD *)v1 + 40) = off_100BD30A8;
*((_QWORD *)v1 + 41) = &off_100BD3118;
*((_QWORD *)v1 + 42) = off_100BD3130;
*((_QWORD *)v1 + 43) = off_100BD3150;
*((_QWORD *)v1 + 44) = off_100BD3178;
*((_QWORD *)v1 + 51) = off_100BD31A8;
*((_QWORD *)v1 + 54) = off_100BD3228;
*((_QWORD *)v1 + 68) = off_100BD3248;
*((_QWORD *)v1 + 97) = &off_100BD3290;
*((_QWORD *)v1 + 98) = &off_100BD32A8;
*((_DWORD *)v1 + 198) = 0;
*(_OWORD *)(v1 + 904) = 0;
*((_OWORD *)v1 + 50) = 0;
*((_OWORD *)v1 + 51) = 0;
*((_OWORD *)v1 + 52) = 0;
*((_OWORD *)v1 + 53) = 0;
*((_OWORD *)v1 + 54) = 0;
*((_OWORD *)v1 + 55) = 0;
*((_QWORD *)v1 + 112) = v1 + 904;
*(_OWORD *)(v1 + 920) = 0;
*((_DWORD *)v1 + 234) = -1;
*(_OWORD *)(v1 + 952) = 0;
*((_QWORD *)v1 + 118) = v1 + 952;
*(_OWORD *)(v1 + 968) = 0;
*(_OWORD *)(v1 + 984) = 0;
if ( (unsigned __int8)sub_10097D570(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}