// // ConfigureHSVWidget::getHSV from 0x5e4c0c to 0x5e4d62 (342 bytes) // // 2 xrefs: // > CustomizeObjectLayer::getHSV @ 0x57e40c // > HSVLiveOverlay::createHSVWidget @ 0x69c3aa // // 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 11:54:19 +0000 // ConfigureHSVWidget *__fastcall ConfigureHSVWidget::getHSV( ConfigureHSVWidget *this, GameObject *a2, cocos2d::CCArray *a3, int a4) { unsigned int v7; // r7 int v8; // r10 float v9; // s16 float v10; // s18 float v11; // s17 int v12; // r0 int v13; // r2 float v14; // r0 float v15; // r1 float v16; // r2 int v17; // r3 float v18; // s15 float v19; // s13 float v20; // s14 int RelativeSpriteColor; // r0 int v23; // [sp+Ch] [bp-28h] int v24; // [sp+1Ch] [bp-18h] if ( a2 ) a3 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(a2, a2); if ( a3 ) { v7 = 0; v8 = 1; v9 = flt_D2C4E0; v10 = flt_D2C4E4; v23 = *(_DWORD *)&byte_D2C4EC; v11 = flt_D2C4E8; while ( 1 ) { if ( v7 >= cocos2d::CCArray::count(a3) ) { v14 = v9; v15 = v10; v16 = v11; v17 = v23; goto LABEL_11; } v12 = cocos2d::CCArray::objectAtIndex(a3, v7); v13 = *(_DWORD *)(v12 + 892); if ( v13 == 1006 || v13 == 899 ) { if ( a4 != 1 ) goto LABEL_23; v18 = *(float *)(v12 + 1432); v24 = *(_DWORD *)(v12 + 1444); v19 = *(float *)(v12 + 1436); v20 = *(float *)(v12 + 1440); } else { RelativeSpriteColor = GameObject::getRelativeSpriteColor((GameObject *)v12, a4); if ( !RelativeSpriteColor ) goto LABEL_23; v18 = *(float *)(RelativeSpriteColor + 16); v19 = *(float *)(RelativeSpriteColor + 20); v20 = *(float *)(RelativeSpriteColor + 24); v24 = *(_DWORD *)(RelativeSpriteColor + 28); } if ( v18 != -0.001 ) { if ( v8 ) { v8 = 0; v11 = v20; v10 = v19; v23 = v24; v9 = v18; } else if ( v9 != v18 || v10 != v19 || v11 != v20 || (unsigned __int16)v23 != (unsigned __int16)v24 ) { *(_DWORD *)this = -1165815185; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; *((_BYTE *)this + 12) = 0; *((_BYTE *)this + 13) = 0; return this; } } LABEL_23: ++v7; } } v14 = flt_D2C4E0; v15 = flt_D2C4E4; v16 = flt_D2C4E8; v17 = *(_DWORD *)&byte_D2C4EC; LABEL_11: *(float *)this = v14; *((float *)this + 1) = v15; *((float *)this + 2) = v16; *((_DWORD *)this + 3) = v17; return this; }