// // cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite from 0x10038d250 to 0x10038d6a7 (1111 bytes) // // 1 xrefs: // > cocos2d::extension::CCControlStepper::create @ 0x10038d76d // // 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:29:12 +0000 // __int64 __fastcall cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite( __int64 a1, __int64 a2, __int64 a3) { __int64 result; // rax __int64 v6; // r12 __int64 v7; // rax __int64 v8; // rax __int64 v9; // rdi __int64 v10; // r12 __int64 v11; // r12 __int64 v12; // rax __int64 v13; // r12 float *v14; // rax __int64 v15; // rax __int64 v16; // rax __int64 v17; // rdi __int64 v18; // r14 __int64 v19; // r14 __int64 v20; // rax __int64 v21; // rax _BYTE v22[16]; // [rsp+0h] [rbp-60h] BYREF float v23[4]; // [rsp+10h] [rbp-50h] BYREF float v24[4]; // [rsp+20h] [rbp-40h] BYREF unsigned __int8 v25; // [rsp+33h] [rbp-2Dh] float v26; // [rsp+34h] [rbp-2Ch] result = cocos2d::extension::CCControl::init((_DWORD *)a1); if ( (_BYTE)result ) { v25 = result; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); *(_WORD *)(a1 + 513) = 1; *(_BYTE *)(a1 + 512) = 1; *(__m128 *)(a1 + 520) = _mm_loadh_ps((const double *)&qword_100A036D0); *(_QWORD *)(a1 + 504) = 0; *(_QWORD *)(a1 + 536) = 0x3FF0000000000000LL; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 440LL))(a1, 0); v6 = *(_QWORD *)(a1 + 472); if ( v6 != a2 ) { if ( a2 ) { cocos2d::CCObject::retain(a2); v6 = *(_QWORD *)(a1 + 472); } if ( v6 ) cocos2d::CCObject::release(v6); *(_QWORD *)(a1 + 472) = a2; v6 = a2; } v26 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2) * 0.5; v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2); sub_100278250(v24, v26, *(float *)(v7 + 4) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, v24); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 472)); v8 = cocos2d::CCLabelTTF::create_2("-", "CourierNewPSMT", 40.0); v9 = *(_QWORD *)(a1 + 488); if ( v9 == v8 ) { v10 = *(_QWORD *)(a1 + 488); } else { v10 = v8; if ( v8 ) { cocos2d::CCObject::retain(v8); v9 = *(_QWORD *)(a1 + 488); } if ( v9 ) cocos2d::CCObject::release(v9); *(_QWORD *)(a1 + 488) = v10; } BYTE2(v24[0]) = -109; LOWORD(v24[0]) = -27757; (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v10 + 960LL))(v10, v24); v11 = *(_QWORD *)(a1 + 488); v26 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 472) + 328LL))(*(_QWORD *)(a1 + 472)) * 0.5; v12 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 472) + 328LL))(*(_QWORD *)(a1 + 472)); sub_100278250(v24, v26, *(float *)(v12 + 4) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, v24); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 472) + 456LL))( *(_QWORD *)(a1 + 472), *(_QWORD *)(a1 + 488)); v13 = *(_QWORD *)(a1 + 480); if ( v13 != a3 ) { if ( a3 ) { cocos2d::CCObject::retain(a3); v13 = *(_QWORD *)(a1 + 480); } if ( v13 ) cocos2d::CCObject::release(v13); *(_QWORD *)(a1 + 480) = a3; v13 = a3; } v26 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2); v14 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a3 + 328LL))(a3); v26 = (float)(*v14 * 0.5) + v26; v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2); sub_100278250(v24, v26, *(float *)(v15 + 4) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v13 + 184LL))(v13, v24); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 480)); v16 = cocos2d::CCLabelTTF::create_2("+", "CourierNewPSMT", 40.0); v17 = *(_QWORD *)(a1 + 496); if ( v17 == v16 ) { v18 = *(_QWORD *)(a1 + 496); } else { v18 = v16; if ( v16 ) { cocos2d::CCObject::retain(v16); v17 = *(_QWORD *)(a1 + 496); } if ( v17 ) cocos2d::CCObject::release(v17); *(_QWORD *)(a1 + 496) = v18; } memset(v24, 55, 3); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v18 + 960LL))(v18, v24); v19 = *(_QWORD *)(a1 + 496); v26 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 328LL))(*(_QWORD *)(a1 + 480)) * 0.5; v20 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 328LL))(*(_QWORD *)(a1 + 480)); sub_100278250(v24, v26, 0.5 * *(float *)(v20 + 4)); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v19 + 184LL))(v19, v24); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 480) + 456LL))( *(_QWORD *)(a1 + 480), *(_QWORD *)(a1 + 496)); cocos2d::CCNode::boundingBox((__int64)v23, *(_DWORD **)(a1 + 472)); cocos2d::CCNode::boundingBox((__int64)v22, *(_DWORD **)(a1 + 480)); cocos2d::extension::CCControlUtils::CCRectUnion(v24, v23, v22); v26 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 472) + 328LL))(*(_QWORD *)(a1 + 472)); v21 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 328LL))(*(_QWORD *)(a1 + 480)); sub_100278260(v23, v26 + *(float *)(v21 + 4), v24[3]); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 320LL))(a1, v23); return v25; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source