// // cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets from 0x18000fbc0 to 0x18000fc69 (169 bytes) // // 2 xrefs: // > @ 0x18002fdf8 // > @ 0x180049fa8 // // 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 // // Hidden C++ exception states: #wind=1 cocos2d::CCObject *__fastcall cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets( __int64 a1, const struct cocos2d::CCRect *a2) { cocos2d::extension::CCScale9Sprite *v4; // rax cocos2d::CCObject *v5; // rsi __int64 v6; // rdi __int64 v7; // rax __int64 v8; // rbx __int64 v9; // rax _BYTE v11[16]; // [rsp+20h] [rbp-28h] BYREF _BYTE v12[24]; // [rsp+30h] [rbp-18h] BYREF cocos2d::extension::CCScale9Sprite *v13; // [rsp+60h] [rbp+18h] v13 = (cocos2d::extension::CCScale9Sprite *)operator new(0x210u); v4 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v13); v5 = v4; if ( v4 ) { v6 = *(_QWORD *)v4; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, a2); v8 = v7; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, (const struct cocos2d::CCRect *)(a1 + 396)); if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, _QWORD, __int64, __int64))(v6 + 968))( v5, *(_QWORD *)(a1 + 440), v9, v8) ) { cocos2d::CCObject::autorelease(v5); return v5; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1); } return nullptr; }