// // cocos2d::extension::CCScale9Sprite::updateCapInset from 0x7ac8c4 to 0x7ac9a2 (222 bytes) // // 4 xrefs: // > cocos2d::extension::CCScale9Sprite::setInsetLeft @ 0x7ac9b0 // > cocos2d::extension::CCScale9Sprite::setInsetTop @ 0x7ac9b8 // > cocos2d::extension::CCScale9Sprite::setInsetRight @ 0x7ac9c0 // > cocos2d::extension::CCScale9Sprite::setInsetBottom @ 0x7ac9c8 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:00:03 +0000 // int __fastcall cocos2d::extension::CCScale9Sprite::updateCapInset(cocos2d::extension::CCScale9Sprite *this) { float v2; // s12 float v3; // s13 float v4; // s10 float v5; // s11 _BYTE *v6; // r1 float v7; // s14 float v8; // s15 int (__fastcall *v9)(cocos2d::extension::CCScale9Sprite *, _BYTE *); // r8 _BYTE v11[16]; // [sp+Ch] [bp+0h] BYREF _BYTE v12[16]; // [sp+1Ch] [bp+10h] BYREF cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11); v2 = *((float *)this + 78); v3 = *((float *)this + 79); v4 = *((float *)this + 80); v5 = *((float *)this + 81); if ( v2 == 0.0 && v3 == 0.0 && v4 == 0.0 && v5 == 0.0 ) { v6 = &unk_D2E94C; } else { v7 = *((float *)this + 85); v8 = *((float *)this + 86); if ( *((_BYTE *)this + 348) ) cocos2d::CCRect::CCRect( (cocos2d::CCRect *)v12, *((float *)this + 81), *((float *)this + 78), (float)(v7 - v4) - v2, (float)(v8 - v3) - v5); else cocos2d::CCRect::CCRect( (cocos2d::CCRect *)v12, *((float *)this + 78), *((float *)this + 79), (float)(v7 - v2) - v4, (float)(v8 - v3) - v5); v6 = v12; } cocos2d::CCRect::operator=(v11, v6); v9 = *(int (__fastcall **)(cocos2d::extension::CCScale9Sprite *, _BYTE *))(*(_DWORD *)this + 516); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, (const cocos2d::CCRect *)v11); return v9(this, v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source