//
// cocos2d::extension::CCScale9Sprite::initWithSpriteFrameName from 0xd13b70 to 0xd13c1c (172 bytes)
//
// 2 xrefs:
// > ??> @ 0xdf8e8
// > ??> @ 0x150db00
//
// 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 13:07:04 +0000
//
__int64 __fastcall cocos2d::extension::CCScale9Sprite::initWithSpriteFrameName(
__int64 a1,
const char *a2,
const cocos2d::CCRect *a3)
{
cocos2d::CCSpriteFrameCache *v4; // x0
cocos2d::CCSpriteFrameCache *v5; // x0
__int64 v6; // x20
unsigned __int8 (__fastcall *v7)(__int64, __int64, _BYTE *); // x23
_BYTE v11[16]; // [xsp+58h] [xbp+58h] BYREF
v4 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(_stack_chk_guard);
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4);
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, a2);
if ( !v6 )
return 0;
v7 = *(unsigned __int8 (__fastcall **)(__int64, __int64, _BYTE *))(*(_QWORD *)a1 + 1152LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, a3);
return v7(a1, v6, v11);
}