// // cocos2d::extension::CCScale9Sprite::updateCapInset from 0x1003f5d30 to 0x1003f5e4e (286 bytes) // // 4 xrefs: // > cocos2d::extension::CCScale9Sprite::setInsetLeft @ 0x1003f618d // > cocos2d::extension::CCScale9Sprite::setInsetTop @ 0x1003f61ad // > cocos2d::extension::CCScale9Sprite::setInsetRight @ 0x1003f61cd // > cocos2d::extension::CCScale9Sprite::setInsetBottom @ 0x1003f61ed // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::extension::CCScale9Sprite::updateCapInset(cocos2d::extension::CCScale9Sprite *a1) { float m_insetLeft; // xmm4_4 __m128 *v2; // rsi float m_insetBottom; // xmm0_4 __m128 width_low; // xmm2 __m128 height_low; // xmm3 float m_insetTop; // xmm1_4 double v7; // xmm0_8 __m128 v8; // [rsp+0h] [rbp-30h] BYREF __m128 v9[2]; // [rsp+10h] [rbp-20h] BYREF sub_10028D130(v9); m_insetLeft = a1->m_insetLeft; if ( m_insetLeft == 0.0 && a1->m_insetTop == 0.0 && a1->m_insetRight == 0.0 && a1->m_insetBottom == 0.0 ) { v2 = (__m128 *)flt_1009A1500; } else { if ( a1->m_bSpriteFrameRotated ) { m_insetBottom = a1->m_insetBottom; width_low = (__m128)LODWORD(a1->m_spriteRect.size.width); width_low.f32[0] = (float)(width_low.f32[0] - a1->m_insetRight) - m_insetLeft; height_low = (__m128)LODWORD(a1->m_spriteRect.size.height); height_low.f32[0] = (float)(height_low.f32[0] - a1->m_insetTop) - m_insetBottom; m_insetTop = a1->m_insetLeft; } else { m_insetTop = a1->m_insetTop; width_low = (__m128)LODWORD(a1->m_spriteRect.size.width); width_low.f32[0] = (float)(width_low.f32[0] - m_insetLeft) - a1->m_insetRight; height_low = (__m128)LODWORD(a1->m_spriteRect.size.height); height_low.f32[0] = (float)(height_low.f32[0] - m_insetTop) - a1->m_insetBottom; m_insetBottom = a1->m_insetLeft; } sub_10028CC00((__int64)&v8, m_insetBottom, m_insetTop, width_low, height_low); v2 = &v8; } sub_10028D1A0(v9, (unsigned __int64 *)v2); v7 = sub_10028D180(&v8, (unsigned __int64 *)v9); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __m128 *, double))a1->setCapInsets)(a1, &v8, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source