//
// cocos2d::extension::CCScale9Sprite::initWithSpriteFrameName from 0x18000f4d0 to 0x18000f542 (114 bytes)
//
// 3 xrefs:
// > ??> @ 0x180029fb8
// > ??> @ 0x180032408
// > ??> @ 0x18004be58
//
// 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:15:39 +0000
//
struct cocos2d::CCSpriteFrame *__fastcall cocos2d::extension::CCScale9Sprite::initWithSpriteFrameName(
__int64 *a1,
const char *a2,
const struct cocos2d::CCRect *a3)
{
cocos2d::CCSpriteFrameCache *v6; // rax
struct cocos2d::CCSpriteFrame *result; // rax
struct cocos2d::CCSpriteFrame *v8; // rdi
__int64 v9; // rbx
__int64 v10; // rax
_BYTE v11[24]; // [rsp+20h] [rbp-18h] BYREF
cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
result = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, a2);
v8 = result;
if ( result )
{
v9 = *a1;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, a3);
return (struct cocos2d::CCSpriteFrame *)(*(__int64 (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *, __int64))(v9 + 1040))(
a1,
v8,
v10);
}
return result;
}