// // cocos2d::extension::CCControlSwitch::initWithMaskSprite from 0x100391ec0 to 0x100392097 (471 bytes) // // 3 xrefs: // > cocos2d::extension::CCControlSwitch::initWithMaskSprite_1 @ 0x100391eb3 // > cocos2d::extension::CCControlSwitch::create_1 @ 0x10039216d // > cocos2d::extension::CCControlSwitch::create @ 0x100392276 // // 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:14 +0000 // __int64 __fastcall cocos2d::extension::CCControlSwitch::initWithMaskSprite( __int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, __int64 a7) { __int64 result; // rax _QWORD *v11; // r15 __int64 v12; // r14 __int64 v13; // rax __int64 v14; // rax float v15; // [rsp+8h] [rbp-48h] BYREF __int64 v16; // [rsp+10h] [rbp-40h] __int64 v17; // [rsp+18h] [rbp-38h] unsigned __int8 v18; // [rsp+27h] [rbp-29h] v17 = a5; result = cocos2d::extension::CCControl::init((_DWORD *)a1); if ( (_BYTE)result ) { v16 = a6; v18 = result; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); *(_BYTE *)(a1 + 485) = 1; v11 = operator new(0x2A8u); cocos2d::CCSprite::CCSprite((__int64)v11); *v11 = off_100B30408; v11[40] = off_100B308F0; v11[43] = off_100B30970; v11[75] = off_100B309A0; v11[76] = 0; *((_DWORD *)v11 + 154) = 0; *((_OWORD *)v11 + 39) = 0; *((_OWORD *)v11 + 40) = 0; *((_OWORD *)v11 + 41) = 0; v11[84] = 0; *(_QWORD *)(a1 + 472) = v11; sub_100391190((__int64)v11, a2, a3, a4, v17, v16, a7); v12 = *(_QWORD *)(a1 + 472); *(float *)&v17 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 328LL))(v12) * 0.5; v13 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 472) + 328LL))(*(_QWORD *)(a1 + 472)); sub_100278250(&v15, *(float *)&v17, *(float *)(v13 + 4) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v12 + 184LL))(v12, &v15); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 472)); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 440LL))(a1, 0); sub_100278250(&v15, 0.5, 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 296LL))(a1, &v15); v14 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 472) + 328LL))(*(_QWORD *)(a1 + 472)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 320LL))(a1, v14); return v18; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source