//
// cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary from 0x100462d28 to 0x1004634c4 (1948 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x100463794
//
// This function is hookable on this platform (idp: arm, 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:05:30 +0000
//
void __fastcall cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x21
__int64 v7; // x22
__int64 v8; // x0
__int64 v9; // x25
__int64 v10; // x1
__int64 v11; // x23
__int64 v12; // x0
char *v13; // x0
__int64 v14; // x0
char v15; // w24
__int64 v16; // x0
float v17; // s8
__int64 v18; // x0
float v19; // s9
__int64 v20; // x0
float v21; // s10
__int64 v22; // x0
float v23; // s11
__int64 v24; // x0
float v25; // s12
__int64 v26; // x0
float v27; // s13
__int64 v28; // x0
int v29; // w24
__int64 v30; // x0
int v31; // w23
unsigned int v32; // w28
char *v33; // x23
__int64 v34; // x0
char *CString; // x0
__int64 v36; // x0
char *v37; // x0
__int64 v38; // x0
char *v39; // x0
__int64 v40; // x0
char *v41; // x0
__int64 v42; // x0
char v43; // w24
_DWORD *v44; // x23
__int64 v45; // x0
char *v46; // x0
__int64 v47; // x0
char *v48; // x0
__int64 v49; // [xsp+8h] [xbp-D8h] BYREF
__int64 v50; // [xsp+10h] [xbp-D0h] BYREF
double v51[2]; // [xsp+18h] [xbp-C8h] BYREF
__int64 v52; // [xsp+28h] [xbp-B8h] BYREF
void *v53[2]; // [xsp+30h] [xbp-B0h] BYREF
char v54; // [xsp+47h] [xbp-99h]
void *__p[2]; // [xsp+48h] [xbp-98h] BYREF
char v56; // [xsp+5Fh] [xbp-81h]
sub_100009900(__p, "metadata");
v6 = cocos2d::CCDictionary::objectForKey(a2, __p);
if ( v56 < 0 )
operator delete(__p[0]);
sub_100009900(__p, "frames");
v7 = cocos2d::CCDictionary::objectForKey(a2, __p);
if ( v56 < 0 )
{
operator delete(__p[0]);
if ( !v6 )
goto LABEL_8;
}
else if ( !v6 )
{
goto LABEL_8;
}
sub_100009900(__p, "format");
v8 = cocos2d::CCDictionary::valueForKey(v6, __p);
LODWORD(v6) = cocos2d::CCString::intValue(v8);
if ( v56 < 0 )
{
operator delete(__p[0]);
if ( !v7 )
return;
goto LABEL_9;
}
LABEL_8:
if ( !v7 )
return;
LABEL_9:
v9 = *(_QWORD *)(v7 + 56);
while ( v9 )
{
while ( 1 )
{
v10 = v9;
v9 = *(_QWORD *)(v9 + 288);
v11 = *(_QWORD *)(v10 + 264);
sub_100009900(__p, (char *)v10);
if ( !cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 56), __p) )
{
if ( (_DWORD)v6 )
{
if ( (unsigned int)v6 > 2 )
{
if ( (_DWORD)v6 == 3 )
{
sub_100009900(v53, "spriteSize");
v34 = cocos2d::CCDictionary::valueForKey(v11, v53);
CString = (char *)cocos2d::CCString::getCString(v34);
cocos2d::CCSizeFromString(CString, &v52);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "spriteOffset");
v36 = cocos2d::CCDictionary::valueForKey(v11, v53);
v37 = (char *)cocos2d::CCString::getCString(v36);
cocos2d::CCPointFromString(v37, &v50);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "spriteSourceSize");
v38 = cocos2d::CCDictionary::valueForKey(v11, v53);
v39 = (char *)cocos2d::CCString::getCString(v38);
cocos2d::CCSizeFromString(v39, &v49);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "textureRect");
v40 = cocos2d::CCDictionary::valueForKey(v11, v53);
v41 = (char *)cocos2d::CCString::getCString(v40);
cocos2d::CCRectFromString(v41, v51);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "textureRotated");
v42 = cocos2d::CCDictionary::valueForKey(v11, v53);
v43 = cocos2d::CCString::boolValue(v42);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "aliases");
cocos2d::CCDictionary::objectForKey(v11, v53);
if ( v54 < 0 )
operator delete(v53[0]);
v44 = operator new(0x50u);
sub_10030618C((__int64)v44, (__int128 *)__p);
cocos2d::CCObject::release(v44);
v33 = (char *)operator new(0xB8u);
*((_QWORD *)v33 + 22) = 0;
*((_OWORD *)v33 + 9) = 0u;
*((_OWORD *)v33 + 10) = 0u;
*((_OWORD *)v33 + 7) = 0u;
*((_OWORD *)v33 + 8) = 0u;
*((_OWORD *)v33 + 5) = 0u;
*((_OWORD *)v33 + 6) = 0u;
*((_OWORD *)v33 + 3) = 0u;
*((_OWORD *)v33 + 4) = 0u;
*((_OWORD *)v33 + 1) = 0u;
*((_OWORD *)v33 + 2) = 0u;
*(_OWORD *)v33 = 0u;
cocos2d::CCObject::CCObject((__int64)v33);
*(_QWORD *)v33 = off_100927378;
sub_1000262EC((_QWORD *)v33 + 7);
sub_100026430((_QWORD *)v33 + 8);
sub_1000264CC((_QWORD *)v33 + 9);
sub_1000264CC(v33 + 92);
sub_1000262EC(v33 + 108);
sub_100026430(v33 + 116);
*(_OWORD *)(v33 + 168) = 0u;
*(_OWORD *)(v33 + 152) = 0u;
*(_OWORD *)(v33 + 136) = 0u;
sub_1000262CC((float *)v53, *(float *)v51, *((float *)v51 + 1), *(float *)&v52, *((float *)&v52 + 1));
cocos2d::CCSpriteFrame::initWithTexture(
(__int64)v33,
a3,
(float *)v53,
v43,
(double *)&v50,
(double *)&v49);
}
else
{
v33 = nullptr;
}
}
else
{
sub_100009900(v53, "frame");
v12 = cocos2d::CCDictionary::valueForKey(v11, v53);
v13 = (char *)cocos2d::CCString::getCString(v12);
cocos2d::CCRectFromString(v13, v51);
if ( v54 < 0 )
operator delete(v53[0]);
if ( (_DWORD)v6 == 2 )
{
sub_100009900(v53, "rotated");
v14 = cocos2d::CCDictionary::valueForKey(v11, v53);
v15 = cocos2d::CCString::boolValue(v14);
if ( v54 < 0 )
operator delete(v53[0]);
}
else
{
v15 = 0;
}
sub_100009900(v53, "offset");
v45 = cocos2d::CCDictionary::valueForKey(v11, v53);
v46 = (char *)cocos2d::CCString::getCString(v45);
cocos2d::CCPointFromString(v46, &v52);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "sourceSize");
v47 = cocos2d::CCDictionary::valueForKey(v11, v53);
v48 = (char *)cocos2d::CCString::getCString(v47);
cocos2d::CCSizeFromString(v48, &v50);
if ( v54 < 0 )
operator delete(v53[0]);
v33 = (char *)operator new(0xB8u);
*((_QWORD *)v33 + 22) = 0;
*((_OWORD *)v33 + 9) = 0u;
*((_OWORD *)v33 + 10) = 0u;
*((_OWORD *)v33 + 7) = 0u;
*((_OWORD *)v33 + 8) = 0u;
*((_OWORD *)v33 + 5) = 0u;
*((_OWORD *)v33 + 6) = 0u;
*((_OWORD *)v33 + 3) = 0u;
*((_OWORD *)v33 + 4) = 0u;
*((_OWORD *)v33 + 1) = 0u;
*((_OWORD *)v33 + 2) = 0u;
*(_OWORD *)v33 = 0u;
cocos2d::CCObject::CCObject((__int64)v33);
*(_QWORD *)v33 = off_100927378;
sub_1000262EC((_QWORD *)v33 + 7);
sub_100026430((_QWORD *)v33 + 8);
sub_1000264CC((_QWORD *)v33 + 9);
sub_1000264CC(v33 + 92);
sub_1000262EC(v33 + 108);
sub_100026430(v33 + 116);
*(_OWORD *)(v33 + 168) = 0u;
*(_OWORD *)(v33 + 152) = 0u;
*(_OWORD *)(v33 + 136) = 0u;
cocos2d::CCSpriteFrame::initWithTexture((__int64)v33, a3, (float *)v51, v15, (double *)&v52, (double *)&v50);
}
}
else
{
sub_100009900(v53, "x");
v16 = cocos2d::CCDictionary::valueForKey(v11, v53);
v17 = cocos2d::CCString::floatValue(v16);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "y");
v18 = cocos2d::CCDictionary::valueForKey(v11, v53);
v19 = cocos2d::CCString::floatValue(v18);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "width");
v20 = cocos2d::CCDictionary::valueForKey(v11, v53);
v21 = cocos2d::CCString::floatValue(v20);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "height");
v22 = cocos2d::CCDictionary::valueForKey(v11, v53);
v23 = cocos2d::CCString::floatValue(v22);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "offsetX");
v24 = cocos2d::CCDictionary::valueForKey(v11, v53);
v25 = cocos2d::CCString::floatValue(v24);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "offsetY");
v26 = cocos2d::CCDictionary::valueForKey(v11, v53);
v27 = cocos2d::CCString::floatValue(v26);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "originalWidth");
v28 = cocos2d::CCDictionary::valueForKey(v11, v53);
v29 = cocos2d::CCString::intValue(v28);
if ( v54 < 0 )
operator delete(v53[0]);
sub_100009900(v53, "originalHeight");
v30 = cocos2d::CCDictionary::valueForKey(v11, v53);
v31 = cocos2d::CCString::intValue(v30);
if ( v54 < 0 )
operator delete(v53[0]);
if ( v29 < 0 )
v29 = -v29;
if ( v31 >= 0 )
v32 = v31;
else
v32 = -v31;
v33 = (char *)operator new(0xB8u);
*((_QWORD *)v33 + 22) = 0;
*((_OWORD *)v33 + 9) = 0u;
*((_OWORD *)v33 + 10) = 0u;
*((_OWORD *)v33 + 7) = 0u;
*((_OWORD *)v33 + 8) = 0u;
*((_OWORD *)v33 + 5) = 0u;
*((_OWORD *)v33 + 6) = 0u;
*((_OWORD *)v33 + 3) = 0u;
*((_OWORD *)v33 + 4) = 0u;
*((_OWORD *)v33 + 1) = 0u;
*((_OWORD *)v33 + 2) = 0u;
*(_OWORD *)v33 = 0u;
cocos2d::CCObject::CCObject((__int64)v33);
*(_QWORD *)v33 = off_100927378;
sub_1000262EC((_QWORD *)v33 + 7);
sub_100026430((_QWORD *)v33 + 8);
sub_1000264CC((_QWORD *)v33 + 9);
sub_1000264CC(v33 + 92);
sub_1000262EC(v33 + 108);
sub_100026430(v33 + 116);
*(_OWORD *)(v33 + 168) = 0u;
*(_OWORD *)(v33 + 152) = 0u;
*(_OWORD *)(v33 + 136) = 0u;
sub_1000262CC((float *)v53, v17, v19, v21, v23);
sub_1000262BC((float *)v51, v25, v27);
sub_1000262C4((float *)&v52, (float)(unsigned int)v29, (float)v32);
cocos2d::CCSpriteFrame::initWithTexture((__int64)v33, a3, (float *)v53, 0, v51, (double *)&v52);
}
cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 56), v33, __p);
cocos2d::CCObject::release(v33);
}
if ( v56 < 0 )
break;
if ( !v9 )
return;
}
operator delete(__p[0]);
}
}