//
// GJSmartTemplate::getNoCornerKey from 0x100005508 to 0x1000055cc (196 bytes)
//
// 8 xrefs:
// > GJSmartTemplate::saveRemap @ 0x1000047ac
// > GJSmartTemplate::saveRemap @ 0x100004848
// > GJSmartTemplate::saveRemap @ 0x1000049b8
// > GJSmartTemplate::saveRemap @ 0x100004b28
// > GJSmartTemplate::scanForPrefab @ 0x10000596c
// > GJSmartTemplate::getPrefab @ 0x100006858
// > GJSmartTemplate::getPrefab @ 0x10000693c
// > GJSmartTemplate::getPrefab @ 0x100006a08
//
// 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
//
double __usercall GJSmartTemplate::getNoCornerKey@(std::string *__return_ptr a1@, std::string *__str@)
{
double result; // d0
std::string __p; // [xsp+0h] [xbp-30h] BYREF
std::allocator __a; // [xsp+1Fh] [xbp-11h] BYREF
if ( (SHIBYTE(__str->__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) == 0 )
{
if ( *((_BYTE *)&__str->__r_.__value_.__s + 23) )
goto LABEL_3;
LABEL_7:
sub_100009900((int)a1, "");
return result;
}
if ( !__str->__r_.__value_.__l.__size_ )
goto LABEL_7;
LABEL_3:
std::string::basic_string(&__p, __str, 0, 5u, &__a);
std::string::append(&__p, "0000");
if ( sub_1000045BC(&__p, __str) )
{
sub_100009900((int)a1, "");
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
else
{
result = *(double *)&__p.__r_.__value_.__l.__data_;
*a1 = __p;
}
return result;
}