//
// cocos2d::extension::CCScale9Sprite::initWithSpriteFrameName_1 from 0x1003f5950 to 0x1003f59b7 (103 bytes)
//
// 1 xrefs:
// > ??> @ 0x100933030
//
// 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
//
bool __fastcall cocos2d::extension::CCScale9Sprite::initWithSpriteFrameName_1(
cocos2d::extension::CCScale9Sprite *a1,
const char *a2,
cocos2d::CCRect a3)
{
unsigned __int64 *v3; // rdx
unsigned __int64 *v4; // r14
cocos2d::CCSpriteFrameCache *v5; // rax
cocos2d::CCSpriteFrame *v6; // rax
cocos2d::CCSpriteFrame *v7; // r15
double v8; // xmm0_8
__m128 v10[3]; // [rsp+0h] [rbp-30h] BYREF
v4 = v3;
cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, a2);
if ( !v6 )
return 0;
v7 = v6;
v8 = sub_10028D180(v10, v4);
return ((bool (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteFrame *, __m128 *, double, double))a1->initWithSpriteFrame)(
a1,
v7,
v10,
v8,
*(double *)&a3.size);
}