// // sub_1003914D0 from 0x1003914d0 to 0x100391814 (836 bytes) // // 8 xrefs: // > sub_100391190 @ 0x1003914a3 // > sub_100391820 @ 0x10039184d // > sub_100391860 @ 0x10039188d // > sub_1003918A0 @ 0x1003918cb // > cocos2d::extension::CCControlSwitch::setOn_1 @ 0x100392310 // > cocos2d::extension::CCControlSwitch::setOn @ 0x1003923c8 // > cocos2d::extension::CCControlSwitch::ccTouchBegan @ 0x100392535 // > cocos2d::extension::CCControlSwitch::ccTouchMoved @ 0x100392607 // // 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 sub_1003914D0(unsigned __int8 *a1) { __int64 v2; // r14 __int64 v3; // rax __int64 v4; // r14 float *v5; // rax __int64 v6; // rax __int64 v7; // r14 __int64 v8; // r14 float *v9; // rax __int64 v10; // rax __int64 v11; // r14 float *v12; // rax __int64 v13; // rax unsigned int v14; // r14d __int64 v15; // r14 __int64 v16; // rdi __int64 v17; // rdi __int64 v18; // rax __int64 v19; // rax _BYTE v21[4]; // [rsp+4h] [rbp-2Ch] BYREF float v22; // [rsp+8h] [rbp-28h] float v23[2]; // [rsp+Ch] [rbp-24h] BYREF float v24; // [rsp+14h] [rbp-1Ch] v2 = *((_QWORD *)a1 + 80); v24 = (float)(*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 328LL))(v2) * 0.5) + *((float *)a1 + 152); v3 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 80) + 328LL))(*((_QWORD *)a1 + 80)); sub_100278250(v23, v24, *(float *)(v3 + 4) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v2 + 184LL))(v2, v23); v4 = *((_QWORD *)a1 + 81); v24 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 80) + 328LL))(*((_QWORD *)a1 + 80)); v5 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 81) + 328LL))(*((_QWORD *)a1 + 81)); v24 = (float)((float)(*v5 * 0.5) + v24) + *((float *)a1 + 152); v6 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 81) + 328LL))(*((_QWORD *)a1 + 81)); sub_100278250(v23, v24, *(float *)(v6 + 4) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 184LL))(v4, v23); v7 = *((_QWORD *)a1 + 82); v24 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 80) + 328LL))(*((_QWORD *)a1 + 80)) + *((float *)a1 + 152); (*(void (__fastcall **)(_BYTE *))(**((_QWORD **)a1 + 78) + 144LL))(v21); sub_100278250(v23, v24, 0.5 * v22); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 184LL))(v7, v23); v8 = *((_QWORD *)a1 + 83); if ( v8 ) { v24 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 80) + 192LL))(*((_QWORD *)a1 + 80)); v9 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 82) + 328LL))(*((_QWORD *)a1 + 82)); v24 = (float)(*v9 / -6.0) + v24; v10 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 80) + 328LL))(*((_QWORD *)a1 + 80)); sub_100278250(v23, v24, *(float *)(v10 + 4) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 184LL))(v8, v23); } v11 = *((_QWORD *)a1 + 84); if ( v11 ) { v24 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 81) + 192LL))(*((_QWORD *)a1 + 81)); v12 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 82) + 328LL))(*((_QWORD *)a1 + 82)); v24 = (float)(*v12 / 6.0) + v24; v13 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 81) + 328LL))(*((_QWORD *)a1 + 81)); sub_100278250(v23, v24, *(float *)(v13 + 4) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, v23); } (*(void (__fastcall **)(float *))(**((_QWORD **)a1 + 78) + 144LL))(v23); v14 = (int)v23[0]; (*(void (__fastcall **)(_BYTE *))(**((_QWORD **)a1 + 78) + 144LL))(v21); v15 = cocos2d::CCRenderTexture::create_2(v14, (unsigned int)(int)v22); cocos2d::CCRenderTexture::begin(v15); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 80) + 752LL))(*((_QWORD *)a1 + 80)); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 81) + 752LL))(*((_QWORD *)a1 + 81)); v16 = *((_QWORD *)a1 + 83); if ( v16 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 752LL))(v16); v17 = *((_QWORD *)a1 + 84); if ( v17 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v17 + 752LL))(v17); cocos2d::CCRenderTexture::end(v15); v18 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 896LL))(v15); v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 1072LL))(v18); (*(void (__fastcall **)(unsigned __int8 *, __int64))(*(_QWORD *)a1 + 1064LL))(a1, v19); return cocos2d::CCSprite::setFlipY(a1, 1u); }
GD Web Decomp Icon

GD Web Decomp

Raw Source