//
// cocos2d::CCConfiguration::getObject from 0x1800bd390 to 0x1800bd41a (138 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b90cc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
struct cocos2d::CCObject *__fastcall cocos2d::CCConfiguration::getObject(cocos2d::CCConfiguration *this, char *a2)
{
__int64 v3; // rbx
void *v4; // rcx
void *Block[3]; // [rsp+20h] [rbp-38h] BYREF
unsigned __int64 v7; // [rsp+38h] [rbp-20h]
sub_180005910(Block, a2);
v3 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 11), (unsigned __int8 *)Block);
if ( v7 > 0xF )
{
v4 = Block[0];
if ( v7 + 1 >= 0x1000 )
{
v4 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free_0(v4);
}
return (struct cocos2d::CCObject *)v3;
}