// // cocos2d::extension::CCControlSlider::initWithSprites from 0x18000a040 to 0x18000a30e (718 bytes) // // 5 xrefs: // > @ 0x180028508 // > @ 0x1800302ec // > @ 0x1800302fc // > @ 0x180032408 // > @ 0x18004ba2c // // 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::CCControlSlider::initWithSprites( cocos2d::extension::CCControlSlider *this, struct cocos2d::CCSprite *a2, struct cocos2d::CCSprite *a3, struct cocos2d::CCSprite *a4) { __int64 v8; // rdx cocos2d::CCObject *v9; // rcx cocos2d::CCObject *v10; // rcx cocos2d::CCObject *v11; // rcx __int64 v12; // rbx __int64 v13; // rax __int64 v14; // rbx __int64 v15; // rax __int64 *v16; // rdi __int64 v17; // rbx __int64 v18; // rax float *v19; // rbx __int64 *v20; // rsi __int64 v21; // rdi __int64 v22; // rax __int64 v23; // rax __int64 *v24; // rdi __int64 v25; // rbx __int64 v26; // rax __int64 *v27; // rdi __int64 v28; // rbx __int64 v29; // rax __int64 v30; // rax __int64 *v31; // rdi __int64 v32; // rbx __int64 v33; // rax __int64 v34; // rax __int64 v35; // rax _BYTE v37[16]; // [rsp+20h] [rbp-48h] BYREF _BYTE v38[8]; // [rsp+30h] [rbp-38h] BYREF float v39; // [rsp+38h] [rbp-30h] float v40; // [rsp+3Ch] [rbp-2Ch] _BYTE v41[16]; // [rsp+40h] [rbp-28h] BYREF if ( !cocos2d::extension::CCControl::init(this) ) return 0; (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 432LL))(this, 0); LOBYTE(v8) = 1; (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, __int64))(*(_QWORD *)this + 920LL))(this, v8); if ( *((struct cocos2d::CCSprite **)this + 64) != a2 ) { if ( a2 ) cocos2d::CCObject::retain(a2); v9 = *((cocos2d::CCObject **)this + 64); if ( v9 ) cocos2d::CCObject::release(v9); *((_QWORD *)this + 64) = a2; } if ( *((struct cocos2d::CCSprite **)this + 63) != a3 ) { if ( a3 ) cocos2d::CCObject::retain(a3); v10 = *((cocos2d::CCObject **)this + 63); if ( v10 ) cocos2d::CCObject::release(v10); *((_QWORD *)this + 63) = a3; } if ( *((struct cocos2d::CCSprite **)this + 62) != a4 ) { if ( a4 ) cocos2d::CCObject::retain(a4); v11 = *((cocos2d::CCObject **)this + 62); if ( v11 ) cocos2d::CCObject::release(v11); *((_QWORD *)this + 62) = a4; } v12 = cocos2d::CCNode::boundingBox(a4, v37); v13 = cocos2d::CCNode::boundingBox(a2, v41); cocos2d::extension::CCControlUtils::CCRectUnion(v38, v13, v12); v14 = *(_QWORD *)this; v15 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)v37, v39, v40); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, __int64))(v14 + 312))(this, v15); v16 = *((__int64 **)this + 64); v17 = *v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.5, 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v17 + 288))(v16, v18); v19 = (float *)(*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 320LL))(this); v20 = *((__int64 **)this + 64); v21 = *v20; v22 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 320LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, *v19 * 0.5, *(float *)(v22 + 4) * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v21 + 184))(v20, v23); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 64)); v24 = *((__int64 **)this + 63); v25 = *v24; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v25 + 288))(v24, v26); v27 = *((__int64 **)this + 63); v28 = *v27; v29 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 320LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, *(float *)(v29 + 4) * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v28 + 184))(v27, v30); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 63)); v31 = *((__int64 **)this + 62); v32 = *v31; v33 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 320LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, *(float *)(v33 + 4) * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v32 + 184))(v31, v34); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 62)); v35 = *(_QWORD *)this; *((_DWORD *)this + 119) = 0; *((_DWORD *)this + 120) = 1065353216; (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *))(v35 + 1128))(this); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source