// // cocos2d::extension::CCControlButton::setBackgroundSpriteForState from 0x7a7398 to 0x7a74ac (276 bytes) // // 0 xrefs: // // 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 11:59:59 +0000 // int __fastcall cocos2d::extension::CCControlButton::setBackgroundSpriteForState( cocos2d::CCDictionary **this, cocos2d::extension::CCScale9Sprite *a2, int a3) { const cocos2d::CCSize *v3; // r9 int v7; // r1 void (__fastcall *v8)(cocos2d::extension::CCScale9Sprite *, _BYTE *); // r11 int result; // r0 void (__fastcall *v10)(cocos2d::extension::CCScale9Sprite *, _BYTE *); // r10 int (__fastcall *v11)(cocos2d::extension::CCScale9Sprite *, _BYTE *); // r10 float v12[2]; // [sp+4h] [bp-18h] BYREF _BYTE v13[8]; // [sp+Ch] [bp-10h] BYREF v3 = (const cocos2d::CCSize *)(this + 93); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v12, (const cocos2d::CCSize *)(this + 93)); v7 = cocos2d::CCDictionary::objectForKey(*(this + 102), a3); if ( v7 ) { (*((void (__fastcall **)(cocos2d::CCDictionary **, int, int))*this + 69))(this, v7, 1); cocos2d::CCDictionary::removeObjectForKey(*(this + 102), a3); } cocos2d::CCDictionary::setObject(*(this + 102), a2, a3); (*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *, _DWORD))(*(_DWORD *)a2 + 172))(a2, 0); v8 = *(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *, _BYTE *))(*(_DWORD *)a2 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.5, 0.5); v8(a2, v13); result = (*((int (__fastcall **)(cocos2d::CCDictionary **, cocos2d::extension::CCScale9Sprite *))*this + 57))( this, a2); if ( *((float *)this + 93) != 0.0 || *((float *)this + 94) != 0.0 ) { if ( cocos2d::CCSize::equals((cocos2d::CCSize *)v12, v3) ) { v10 = *(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *, _BYTE *))(*(_DWORD *)a2 + 508); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v13, v12[0] + 1.0, v12[1] + 1.0); v10(a2, v13); } v11 = *(int (__fastcall **)(cocos2d::extension::CCScale9Sprite *, _BYTE *))(*(_DWORD *)a2 + 508); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v13, v3); result = v11(a2, v13); } if ( *(this + 83) == (cocos2d::CCDictionary *)a3 ) return (*((int (__fastcall **)(cocos2d::CCDictionary **))*this + 164))(this); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source