//
// cocos2d::extension::CCScale9Sprite::setSpriteFrame from 0x1003e3290 to 0x1003e3318 (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b3cc08
//
// 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:29:46 +0000
//
__int64 __fastcall cocos2d::extension::CCScale9Sprite::setSpriteFrame(__int64 a1, __int64 a2)
{
__int64 Texture; // rax
_QWORD *v3; // r15
unsigned int v4; // r14d
__int64 result; // rax
__m128 v6; // [rsp+8h] [rbp-48h] BYREF
__m128 v7[3]; // [rsp+18h] [rbp-38h] BYREF
Texture = cocos2d::CCSpriteFrame::getTexture(a2);
v3 = cocos2d::CCSpriteBatchNode::createWithTexture(Texture, 9u);
sub_1002787F0(&v6, (unsigned __int64 *)(a2 + 92));
v4 = *(unsigned __int8 *)(a2 + 88);
sub_1002787F0(v7, (unsigned __int64 *)flt_100BE3780);
result = (*(__int64 (__fastcall **)(__int64, _QWORD *, __m128 *, _QWORD, __m128 *))(*(_QWORD *)a1 + 1184LL))(
a1,
v3,
&v6,
v4,
v7);
*(_OWORD *)(a1 + 372) = 0;
return result;
}