// // cocos2d::extension::CCScale9Sprite::updateCapInset from 0xd14c9c to 0xd14dd8 (316 bytes) // // 5 xrefs: // > cocos2d::extension::CCScale9Sprite::setInsetLeft @ 0xd14ddc // > cocos2d::extension::CCScale9Sprite::setInsetTop @ 0xd14de4 // > cocos2d::extension::CCScale9Sprite::setInsetRight @ 0xd14dec // > cocos2d::extension::CCScale9Sprite::setInsetBottom @ 0xd14df4 // > @ 0xd5040 // // 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 13:07:05 +0000 // __int64 __fastcall cocos2d::extension::CCScale9Sprite::updateCapInset(cocos2d::extension::CCScale9Sprite *this) { float v2; // s4 float v3; // s1 float v4; // s2 float v5; // s3 float v6; // s6 float v7; // s0 void (__fastcall *v8)(cocos2d::extension::CCScale9Sprite *, _BYTE *); // x22 _BYTE v10[16]; // [xsp+38h] [xbp+38h] BYREF _BYTE v11[16]; // [xsp+48h] [xbp+48h] BYREF cocos2d::CCRect::CCRect((cocos2d::CCRect *)v10); v2 = *((float *)this + 93); if ( v2 != 0.0 ) { v4 = *((float *)this + 95); v3 = *((float *)this + 94); goto LABEL_3; } v3 = *((float *)this + 94); v4 = *((float *)this + 95); if ( v3 != 0.0 ) { LABEL_3: v5 = *((float *)this + 96); goto LABEL_4; } v5 = *((float *)this + 96); if ( v4 == 0.0 && v5 == 0.0 ) { cocos2d::CCRect::operator=(v10, &unk_155F8B0); goto LABEL_7; } LABEL_4: v6 = *((float *)this + 100); v7 = *((float *)this + 101); if ( *((_BYTE *)this + 408) ) cocos2d::CCRect::CCRect( (cocos2d::CCRect *)v11, v5, *((float *)this + 93), (float)(v6 - v4) - v2, (float)(v7 - v3) - v5); else cocos2d::CCRect::CCRect( (cocos2d::CCRect *)v11, *((float *)this + 93), v3, (float)(v6 - v2) - v4, (float)(v7 - v3) - v5); cocos2d::CCRect::operator=(v10, v11); LABEL_7: v8 = *(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *, _BYTE *))(*(_QWORD *)this + 1032LL); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, (const cocos2d::CCRect *)v10); v8(this, v11); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source