//
// sub_10067AE20 from 0x10067ae20 to 0x10067af12 (242 bytes)
//
// 35 xrefs:
// > GameObject::setupCustomSprites @ 0x100439636
// > GameObject::setupCustomSprites @ 0x10043b7f8
// > GameObject::setupCustomSprites @ 0x10043d22c
// > GameObject::setupCustomSprites @ 0x10043d2b5
// > GameObject::setupCustomSprites @ 0x10043d33e
// > GameObject::setupCustomSprites @ 0x10043d5f3
// > GameObject::setupCustomSprites @ 0x10043e174
// > GameObject::setupCustomSprites @ 0x10043e1fd
// > GameObject::setupCustomSprites @ 0x10043e332
// > GameObject::setupCustomSprites @ 0x10043fc04
// > GameObject::setupCustomSprites @ 0x10043fca0
// > GameObject::setupCustomSprites @ 0x100440177
// > GameObject::setupCustomSprites @ 0x10044076e
// > GameObject::setupCustomSprites @ 0x100440c2e
// > GameObject::setupCustomSprites @ 0x10044112f
// > GameObject::setupCustomSprites @ 0x100441f55
// > GameObject::setupCustomSprites @ 0x1004427c7
// > GameObject::setupCustomSprites @ 0x100442853
// > GameObject::setupCustomSprites @ 0x1004428df
// > GameObject::setupCustomSprites @ 0x100447e7a
// > GameObject::setupCustomSprites @ 0x10044a6eb
// > GameObject::setupCustomSprites @ 0x10044a86e
// > GameObject::setupCustomSprites @ 0x10044cdf8
// > GameObject::setupCustomSprites @ 0x10044e1b6
// > GameObject::setupCustomSprites @ 0x10044f93b
// > GameObject::setupCustomSprites @ 0x10044ff59
// > GameObject::setupCustomSprites @ 0x10044fff7
// > GameObject::setupCustomSprites @ 0x100450204
// > GameObject::setupCustomSprites @ 0x100450371
// > GameObject::setupCustomSprites @ 0x10045041d
// > GameObject::setupCustomSprites @ 0x1004504c9
// > GameObject::setupCustomSprites @ 0x1004507dc
// > GameObject::setupCustomSprites @ 0x100451088
// > GameObject::addNewSlope01Glow @ 0x10069d02e
// > GameObject::addNewSlope02Glow @ 0x10069d25e
//
// 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:35:03 +0000
//
size_t *__fastcall sub_10067AE20(size_t *a1, __int64 a2, __int64 a3)
{
const char *v3; // rdx
const char *data; // r14
size_t v5; // rax
size_t v6; // r15
_BYTE *v7; // r12
size_t v9; // r13
std::string v10[2]; // [rsp+0h] [rbp-40h] BYREF
if ( (*(_BYTE *)a3 & 1) != 0 )
v3 = *(const char **)(a3 + 16);
else
v3 = (const char *)(a3 + 1);
sub_100675AA0(v10, v3, (std::string *)"_001.png", "_glow_001.png");
if ( (*(_BYTE *)&v10[0].__r_.__value_.__s.0 & 1) != 0 )
data = v10[0].__r_.__value_.__l.__data_;
else
data = v10[0].__r_.__value_.__s.__data_;
v5 = strlen(data);
if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v6 = v5;
if ( v5 >= 0x17 )
{
v9 = 26;
if ( (v5 | 7) != 0x17 )
v9 = (v5 | 7) + 1;
v7 = operator new(v9);
a1[2] = (size_t)v7;
*a1 = v9 | 1;
a1[1] = v6;
LABEL_16:
memmove(v7, data, v6);
v7[v6] = 0;
if ( (*(_BYTE *)&v10[0].__r_.__value_.__s.0 & 1) == 0 )
return a1;
goto LABEL_11;
}
*(_BYTE *)a1 = 2 * v5;
v7 = (char *)a1 + 1;
if ( v5 )
goto LABEL_16;
*v7 = 0;
if ( (*(_BYTE *)&v10[0].__r_.__value_.__s.0 & 1) != 0 )
LABEL_11:
operator delete(v10[0].__r_.__value_.__l.__data_);
return a1;
}