//
// cocos2d::extension::CCScale9Sprite::initWithSpriteFrameName from 0x7abe70 to 0x7abec4 (84 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:03 +0000
//
int __fastcall cocos2d::extension::CCScale9Sprite::initWithSpriteFrameName(
cocos2d::CCSpriteFrameCache *a1,
const char *a2,
const cocos2d::CCRect *a3)
{
cocos2d::CCSpriteFrameCache *v6; // r0
cocos2d::CCSpriteFrameCache *v7; // r0
int result; // r0
int v9; // r5
int (__fastcall *v10)(cocos2d::CCSpriteFrameCache *, int, _BYTE *); // r8
_BYTE v11[16]; // [sp+4h] [bp-18h] BYREF
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(a1);
v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6);
result = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, a2);
v9 = result;
if ( result )
{
v10 = *(int (__fastcall **)(cocos2d::CCSpriteFrameCache *, int, _BYTE *))(*(_DWORD *)a1 + 576);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, a3);
return v10(a1, v9, v11);
}
return result;
}