//
// cocos2d::extension::CCScale9Sprite::setSpriteFrame from 0x1002b2cd8 to 0x1002b2d6c (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x10091b7f8
//
// 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:02:21 +0000
//
__int64 __fastcall cocos2d::extension::CCScale9Sprite::setSpriteFrame(__int64 a1, __int64 a2)
{
__int64 Texture; // x0
_QWORD *v5; // x21
__int64 v6; // x19
double v7; // d0
__int64 result; // x0
_QWORD v9[2]; // [xsp+0h] [xbp-40h] BYREF
_QWORD v10[2]; // [xsp+10h] [xbp-30h] BYREF
Texture = cocos2d::CCSpriteFrame::getTexture(a2);
v5 = cocos2d::CCSpriteBatchNode::createWithTexture(Texture, 9);
sub_1000264D4(v10, a2 + 92);
v6 = *(unsigned __int8 *)(a2 + 88);
v7 = sub_1000264D4(v9, (__int64)flt_1009F59D0);
result = (*(__int64 (__fastcall **)(__int64, _QWORD *, _QWORD *, __int64, _QWORD *, double))(*(_QWORD *)a1 + 1184LL))(
a1,
v5,
v10,
v6,
v9,
v7);
*(_QWORD *)(a1 + 380) = 0;
*(_QWORD *)(a1 + 372) = 0;
return result;
}