//
// cocos2d::CCSprite::setDisplayFrame from 0x1002d5f34 to 0x1002d5fb4 (128 bytes)
//
// 76 xrefs:
// > ??> @ 0x1008aecf8
// > ??> @ 0x1008c01f8
// > ??> @ 0x1008c0b50
// > ??> @ 0x1008c1d60
// > ??> @ 0x1008c4328
// > ??> @ 0x1008c8328
// > ??> @ 0x1008d45e8
// > ??> @ 0x1008e00f0
// > ??> @ 0x1008eee60
// > ??> @ 0x1009041d8
// > ??> @ 0x1009047a0
// > ??> @ 0x10090ab98
// > ??> @ 0x1009109c8
// > ??> @ 0x100911bd8
// > ??> @ 0x10091c550
// > ??> @ 0x10091cd98
// > ??> @ 0x10091fda0
// > ??> @ 0x1009208a0
// > ??> @ 0x100922120
// > ??> @ 0x1009226e8
// > ??> @ 0x1009287d0
// > ??> @ 0x100928fc8
// > ??> @ 0x1009297e8
// > ??> @ 0x10093cdc8
// > ??> @ 0x100942610
// > ??> @ 0x100942bd8
// > ??> @ 0x100944908
// > ??> @ 0x100944ea0
// > ??> @ 0x100947e10
// > ??> @ 0x10094d7a8
// > ??> @ 0x10094dff0
// > ??> @ 0x10094e7f8
// > ??> @ 0x10094f000
// > ??> @ 0x10094f808
// > ??> @ 0x100950010
// > ??> @ 0x100950818
// > ??> @ 0x100951020
// > ??> @ 0x100951818
// > ??> @ 0x100952038
// > ??> @ 0x1009528b0
// > ??> @ 0x1009530d0
// > ??> @ 0x1009538f0
// > ??> @ 0x100954110
// > ??> @ 0x100954930
// > ??> @ 0x100955150
// > ??> @ 0x100955970
// > ??> @ 0x100956190
// > ??> @ 0x1009569b0
// > ??> @ 0x1009571d0
// > ??> @ 0x100957a08
// > ??> @ 0x100958270
// > ??> @ 0x100958aa8
// > ??> @ 0x1009592e0
// > ??> @ 0x100959b18
// > ??> @ 0x10095a350
// > ??> @ 0x10095ab70
// > ??> @ 0x10095b390
// > ??> @ 0x10095bbb0
// > ??> @ 0x10095c3d0
// > ??> @ 0x10095cbf0
// > ??> @ 0x10095d410
// > ??> @ 0x10095dc30
// > ??> @ 0x10095e450
// > ??> @ 0x10095ec70
// > ??> @ 0x10095f490
// > ??> @ 0x10095fcb0
// > ??> @ 0x1009604d0
// > ??> @ 0x100960cf0
// > ??> @ 0x100961510
// > ??> @ 0x100961d30
// > ??> @ 0x100962550
// > ??> @ 0x100962d70
// > ??> @ 0x100963d28
// > ??> @ 0x10096a140
// > ??> @ 0x10096e170
// > ??> @ 0x10098cb28
//
// 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:41 +0000
//
__int64 __fastcall cocos2d::CCSprite::setDisplayFrame(__int64 result, __int64 a2)
{
__int64 v3; // x19
double *Offset; // x0
__int64 Texture; // x0
if ( a2 )
{
v3 = result;
Offset = (double *)cocos2d::CCSpriteFrame::getOffset(a2);
sub_10002630C((_QWORD *)(v3 + 452), Offset);
Texture = cocos2d::CCSpriteFrame::getTexture(a2);
if ( Texture != *(_QWORD *)(v3 + 416) )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1064LL))(v3, Texture);
*(_BYTE *)(v3 + 440) = *(_BYTE *)(a2 + 88);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1144LL))(v3, a2 + 92);
}
return result;
}