// // AnimatedGameObject::displayFrameChanged from 0x140646e60 to 0x140646fc8 (360 bytes) // // 2 xrefs: // > @ 0x14082b3a8 // > @ 0x1409313dc // // 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 11:35:37 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall AnimatedGameObject::displayFrameChanged(__int64 a1, __int64 a2, _QWORD *a3) { struct cocos2d::CCObject *v4; // r14 _BYTE *v5; // rdx _QWORD *v6; // rax size_t v7; // r8 __int64 v8; // rdx __int64 v9; // rcx void **v10; // rdi __int64 v11; // rbx cocos2d::CCSpriteFrameCache *v12; // rax struct cocos2d::CCSpriteFrame *v13; // rax void *v14; // rcx void *Block[2]; // [rsp+38h] [rbp-60h] BYREF __m128i si128; // [rsp+48h] [rbp-50h] _QWORD v17[4]; // [rsp+58h] [rbp-40h] BYREF if ( *(_BYTE *)(a2 + 616) ) v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a2 + 600), 0); else v4 = nullptr; v5 = a3; if ( a3[3] > 0xFu ) v5 = (_BYTE *)*a3; v6 = sub_140637120(v17, v5); if ( v6[3] > 0xFu ) v6 = (_QWORD *)*v6; *(_OWORD *)Block = 0; si128 = 0; v7 = -1; do ++v7; while ( *((_BYTE *)v6 + v7) ); sub_14003D230(Block, v6, v7); sub_14003D310((__int64)v17); v10 = Block; if ( si128.m128i_i64[1] > 0xFuLL ) v10 = (void **)Block[0]; v11 = *(_QWORD *)v4; v12 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v9, v8); v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, (const char *)v10); (*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCSpriteFrame *))(v11 + 1008))(v4, v13); if ( si128.m128i_i64[1] > 0xFuLL ) { v14 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v14 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v14 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v14); } si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(Block[0]) = 0; sub_14003D310((__int64)a3); }