// // cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite from 0x18000ae40 to 0x18000b2bf (1151 bytes) // // 5 xrefs: // > cocos2d::extension::CCControlStepper::create @ 0x18000b2fd // > @ 0x18003038c // > @ 0x18003039c // > @ 0x180032408 // > @ 0x18004bb4c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:15:37 +0000 // char __fastcall cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite( cocos2d::extension::CCControlStepper *this, struct cocos2d::CCSprite *a2, struct cocos2d::CCSprite *a3) { __int64 v6; // rdx __int64 v7; // rax cocos2d::CCObject *v8; // rcx float *v9; // rbx __int64 *v10; // rsi __int64 v11; // rdi __int64 v12; // rax __int64 v13; // rax cocos2d::CCObject *v14; // rax cocos2d::CCObject *v15; // rcx cocos2d::CCObject *v16; // rbx cocos2d::CCObject *v17; // rcx __int64 v18; // rbx __int64 v19; // rax __int64 *v20; // r14 float *v21; // rdi __int64 v22; // rsi __int64 v23; // rax __int64 v24; // rax cocos2d::CCObject *v25; // rcx float *v26; // rsi float *v27; // rbx __int64 *v28; // r14 __int64 v29; // rdi __int64 v30; // rax __int64 v31; // rax cocos2d::CCObject *v32; // rax cocos2d::CCObject *v33; // rcx cocos2d::CCObject *v34; // rbx cocos2d::CCObject *v35; // rcx __int64 v36; // rbx __int64 v37; // rax __int64 *v38; // r14 float *v39; // rdi __int64 v40; // rsi __int64 v41; // rax __int64 v42; // rax __int64 v43; // rdi __int64 v44; // rbx __int64 v45; // rax float *v46; // rbx __int64 v47; // rdi __int64 v48; // rax __int64 v49; // rax char v51[12]; // [rsp+20h] [rbp-68h] BYREF float v52; // [rsp+2Ch] [rbp-5Ch] char v53[16]; // [rsp+30h] [rbp-58h] BYREF char v54[16]; // [rsp+40h] [rbp-48h] BYREF _BYTE v55[3]; // [rsp+A8h] [rbp+20h] BYREF if ( !cocos2d::extension::CCControl::init(this) ) return 0; LOBYTE(v6) = 1; (*(void (__fastcall **)(cocos2d::extension::CCControlStepper *, __int64))(*(_QWORD *)this + 920LL))(this, v6); *((_WORD *)this + 256) = 257; *((_QWORD *)this + 65) = 0; *((_QWORD *)this + 66) = 0x4059000000000000LL; *((_QWORD *)this + 63) = 0; *((_QWORD *)this + 67) = 0x3FF0000000000000LL; v7 = *(_QWORD *)this; *((_BYTE *)this + 514) = 0; (*(void (__fastcall **)(cocos2d::extension::CCControlStepper *, _QWORD))(v7 + 432))(this, 0); if ( *((struct cocos2d::CCSprite **)this + 59) != a2 ) { if ( a2 ) cocos2d::CCObject::retain(a2); v8 = *((cocos2d::CCObject **)this + 59); if ( v8 ) cocos2d::CCObject::release(v8); *((_QWORD *)this + 59) = a2; } v9 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 320LL))(a2); v10 = *((__int64 **)this + 59); v11 = *v10; v12 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 320LL))(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, *v9 * 0.5, *(float *)(v12 + 4) * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v11 + 184))(v10, v13); (*(void (__fastcall **)(cocos2d::extension::CCControlStepper *, _QWORD))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 59)); v14 = cocos2d::CCLabelTTF::create("-", "CourierNewPSMT", 40.0); v15 = *((cocos2d::CCObject **)this + 61); v16 = v14; if ( v15 != v14 ) { if ( v14 ) cocos2d::CCObject::retain(v14); v17 = *((cocos2d::CCObject **)this + 61); if ( v17 ) cocos2d::CCObject::release(v17); *((_QWORD *)this + 61) = v16; v15 = v16; } memset(v55, 147, sizeof(v55)); (**((void (__fastcall ***)(__int64, _BYTE *))v15 + 40))((__int64)v15 + 320, v55); v18 = *((_QWORD *)this + 59); v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 320LL))(v18); v20 = *((__int64 **)this + 61); v21 = (float *)v19; v22 = *v20; v23 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 320LL))(v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, *v21 * 0.5, *(float *)(v23 + 4) * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v22 + 184))(v20, v24); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 59) + 464LL))( *((_QWORD *)this + 59), *((_QWORD *)this + 61)); if ( *((struct cocos2d::CCSprite **)this + 60) != a3 ) { if ( a3 ) cocos2d::CCObject::retain(a3); v25 = *((cocos2d::CCObject **)this + 60); if ( v25 ) cocos2d::CCObject::release(v25); *((_QWORD *)this + 60) = a3; } v26 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 320LL))(a2); v27 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a3 + 320LL))(a3); v28 = *((__int64 **)this + 60); v29 = *v28; v30 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 320LL))(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, (float)(*v27 * 0.5) + *v26, *(float *)(v30 + 4) * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v29 + 184))(v28, v31); (*(void (__fastcall **)(cocos2d::extension::CCControlStepper *, _QWORD))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 60)); v32 = cocos2d::CCLabelTTF::create("+", "CourierNewPSMT", 40.0); v33 = *((cocos2d::CCObject **)this + 62); v34 = v32; if ( v33 != v32 ) { if ( v32 ) cocos2d::CCObject::retain(v32); v35 = *((cocos2d::CCObject **)this + 62); if ( v35 ) cocos2d::CCObject::release(v35); *((_QWORD *)this + 62) = v34; v33 = v34; } memset(v55, 55, sizeof(v55)); (**((void (__fastcall ***)(__int64, _BYTE *))v33 + 40))((__int64)v33 + 320, v55); v36 = *((_QWORD *)this + 60); v37 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v36 + 320LL))(v36); v38 = *((__int64 **)this + 62); v39 = (float *)v37; v40 = *v38; v41 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v36 + 320LL))(v36); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, *v39 * 0.5, *(float *)(v41 + 4) * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v40 + 184))(v38, v42); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 60) + 464LL))( *((_QWORD *)this + 60), *((_QWORD *)this + 62)); v43 = *((_QWORD *)this + 59); v44 = cocos2d::CCNode::boundingBox(*((_QWORD *)this + 60), v53); v45 = cocos2d::CCNode::boundingBox(v43, v54); cocos2d::extension::CCControlUtils::CCRectUnion(v51, v45, v44); v46 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 59) + 320LL))(*((_QWORD *)this + 59)); v47 = *(_QWORD *)this; v48 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 60) + 320LL))(*((_QWORD *)this + 60)); v49 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)v55, *(float *)(v48 + 4) + *v46, v52); (*(void (__fastcall **)(cocos2d::extension::CCControlStepper *, __int64))(v47 + 312))(this, v49); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source