// // ButtonSprite::init from 0x3c319c to 0x3c336a (462 bytes) // // 1 xrefs: // > ButtonSprite::create @ 0x3c33ba // // 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:46:32 +0000 // int __fastcall ButtonSprite::init( ButtonSprite *this, char *a2, int a3, int a4, float a5, bool a6, const char *a7, const char *a8, float a9) { int v13; // r8 size_t v14; // r0 int v15; // r2 size_t v16; // r3 unsigned int v17; // r7 char *v18; // r0 char *v19; // r1 size_t v20; // r2 int v21; // r0 int v22; // r2 const char *v23; // r2 int v24; // r0 int v25; // r3 int v26; // r0 int v27; // r6 void (__fastcall *v28)(int, _BYTE *); // r7 size_t v30; // [sp+14h] [bp-40h] const char *v31; // [sp+14h] [bp-40h] _BYTE v32[4]; // [sp+1Ch] [bp-38h] BYREF float v33; // [sp+20h] [bp-34h] int v34; // [sp+24h] [bp-30h] BYREF size_t v35; // [sp+28h] [bp-2Ch] char *v36; // [sp+2Ch] [bp-28h] int v37; // [sp+30h] [bp-24h] BYREF unsigned int v38; // [sp+34h] [bp-20h] char *v39; // [sp+38h] [bp-1Ch] _BYTE v40[16]; // [sp+3Ch] [bp-18h] BYREF v13 = cocos2d::CCSprite::init(this); if ( !v13 ) return v13; *((_DWORD *)this + 127) = 1; *((float *)this + 130) = a5; *((_BYTE *)this + 532) = a6; *((float *)this + 128) = (float)a3; *((float *)this + 131) = a9; *((float *)this + 129) = (float)a4; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 0.0, 2.0); cocos2d::CCPoint::operator=((char *)this + 552, v40); v34 = 0; v35 = 0; v36 = nullptr; v14 = strlen(a7); std::string::__init(&v34, a7, v14); v37 = 0; v38 = 0; v39 = nullptr; std::string::__init(&v37, "bigFont.fnt", 0xBu); v15 = v34 & 1; if ( v15 ) v16 = v35; else v16 = (int)(unsigned __int8)v34 >> 1; if ( (v37 & 1) == 0 ) { v17 = (int)(unsigned __int8)v37 >> 1; if ( !v15 ) { v18 = (char *)&v34 + 1; goto LABEL_12; } LABEL_9: v18 = v36; if ( (v37 & 1) != 0 ) goto LABEL_10; LABEL_12: v19 = (char *)&v37 + 1; goto LABEL_13; } v17 = v38; if ( v15 ) goto LABEL_9; v18 = (char *)&v34 + 1; LABEL_10: v19 = v39; LABEL_13: v20 = v17; if ( v17 >= v16 ) v20 = v16; if ( !v20 || (v30 = v16, v21 = memcmp(v18, v19, v20), v16 = v30, (v22 = v21) == 0) ) { if ( v16 < v17 ) v22 = -1; else v22 = v16 > v17; } v31 = (const char *)v22; std::string::~string((int)&v37); std::string::~string((int)&v34); v23 = v31; if ( !v31 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, 0.0, 2.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, -1.0, v33); cocos2d::CCPoint::operator=((char *)this + 552, v40); } v24 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, a7, v23); v25 = *(_DWORD *)this; *((_DWORD *)this + 134) = v24; (*(void (__fastcall **)(ButtonSprite *, int, int))(v25 + 232))(this, v24, 1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v40, 0.0, 0.0, 40.0, 40.0); v26 = cocos2d::extension::CCScale9Sprite::create(a8, v40); *((_DWORD *)this + 137) = v26; v27 = v26; v28 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v26 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v40, 16.0, 16.0); v28(v27, v40); (*(void (__fastcall **)(ButtonSprite *, _DWORD, _DWORD))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 137), 0); ButtonSprite::setString((int)this, a2); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source