// // cocos2d::extension::CCControlColourPicker::setColorValue from 0x7a84b0 to 0x7a8570 (192 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:00:00 +0000 // int (__fastcall ***__fastcall cocos2d::extension::CCControlColourPicker::setColorValue( int a1, unsigned __int8 *a2))(_DWORD, _DWORD) { unsigned __int8 v2; // r3 int v4; // r7 int v5; // r3 int v6; // s14 int v7; // r3 _DWORD *v8; // r5 int v9; // r1 int v10; // r2 int v11; // r3 int v12; // r1 int v13; // r0 int (__fastcall ***result)(_DWORD, _DWORD); // r0 _DWORD v15[6]; // [sp+18h] [bp-3Ch] BYREF double v16; // [sp+30h] [bp-24h] double v17; // [sp+38h] [bp-1Ch] double v18; // [sp+40h] [bp-14h] int v19; // [sp+48h] [bp-Ch] int v20; // [sp+4Ch] [bp-8h] v2 = a2[2]; v4 = a1 + 356; *(_WORD *)(a1 + 356) = *(_WORD *)a2; *(_BYTE *)(a1 + 358) = v2; v5 = a2[1]; v16 = (float)((float)*a2 / 255.0); v6 = v5; v7 = a2[2]; v17 = (float)((float)v6 / 255.0); v19 = 0; v20 = 1072693248; v18 = (float)((float)v7 / 255.0); v8 = (_DWORD *)(a1 + 360); cocos2d::extension::CCControlUtils::HSVfromRGB((int)v15, 1072693248, SLODWORD(v16), SHIDWORD(v16), v17, v18); v9 = v15[1]; v10 = v15[2]; v11 = v15[3]; *v8 = v15[0]; v8[1] = v9; v8[2] = v10; v8[3] = v11; v8 += 4; v12 = v15[5]; *v8 = v15[4]; v8[1] = v12; cocos2d::extension::CCControlColourPicker::updateHueAndControlPicker((cocos2d::extension::CCControlColourPicker *)a1); v13 = *(_DWORD *)(a1 + 396); if ( v13 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v13 + 480))(v13, v4); result = *(int (__fastcall ****)(_DWORD, _DWORD))(a1 + 400); if ( result ) return (int (__fastcall ***)(_DWORD, _DWORD))(**result)(result, *(_DWORD *)(a1 + 356)); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source