// // ConfigureHSVWidget::getHSV from 0x1001251e0 to 0x100125394 (436 bytes) // // 5 xrefs: // > sub_100057EE8 @ 0x100057f54 // > sub_100057EE8 @ 0x100057fa0 // > CustomizeObjectLayer::updateHSVButtons @ 0x100058118 // > CustomizeObjectLayer::updateHSVButtons @ 0x100058148 // > HSVLiveOverlay::createHSVWidget @ 0x100234ddc // // This function is hookable on this platform (idp: arm, 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 10:59:17 +0000 // __int64 __fastcall ConfigureHSVWidget::getHSV(__int64 a1, __int64 a2, __int64 a3, __n128 a4) { __int64 v6; // x23 float v7; // w24 float v8; // w22 int v9; // w25 int v10; // w27 __int64 v11; // x21 char v12; // w28 __int64 v13; // x0 int v14; // w8 __int64 v15; // x8 int v16; // w9 __int64 v17; // x11 float v18; // w12 int v19; // w10 __int64 RelativeSpriteColor; // x0 bool v21; // zf bool v22; // zf int v23; // w8 if ( a1 ) a2 = sub_1002E73C8(a4); if ( !a2 ) return xmmword_1009F3C00; v7 = *(float *)&xmmword_1009F3C00; v6 = DWORD1(xmmword_1009F3C00); v8 = *((float *)&xmmword_1009F3C00 + 2); v9 = BYTE12(xmmword_1009F3C00); v10 = BYTE13(xmmword_1009F3C00); if ( (unsigned int)sub_1002E757C(a2) ) { v11 = 0; v12 = 1; do { v13 = sub_1002E75A0(a2, v11); v14 = *(_DWORD *)(v13 + 1028); if ( v14 == 1006 || v14 == 899 ) { if ( (_DWORD)a3 != 1 ) goto LABEL_26; v15 = *(_QWORD *)(v13 + 1620); v16 = BYTE4(v15); v18 = *(float *)(v13 + 1612); v17 = *(unsigned int *)(v13 + 1616); v19 = BYTE5(v15); } else { RelativeSpriteColor = GameObject::getRelativeSpriteColor(v13, a3); if ( !RelativeSpriteColor ) goto LABEL_26; v18 = *(float *)(RelativeSpriteColor + 16); v17 = *(unsigned int *)(RelativeSpriteColor + 20); LODWORD(v15) = *(_DWORD *)(RelativeSpriteColor + 24); v16 = *(unsigned __int8 *)(RelativeSpriteColor + 28); v19 = *(unsigned __int8 *)(RelativeSpriteColor + 29); } if ( v18 != -0.001 ) { if ( (v12 & 1) != 0 ) { v12 = 0; v6 = v17; v7 = v18; v10 = v19; v9 = v16; v8 = *(float *)&v15; } else { if ( v7 != v18 || *(float *)&v6 != *(float *)&v17 || (v8 == *(float *)&v15 ? (v21 = v9 == v16) : (v21 = 0), v21 ? (v22 = v10 == v19) : (v22 = 0), !v22) ) { v23 = 1; goto LABEL_30; } v12 = 0; } } LABEL_26: v11 = (unsigned int)(v11 + 1); } while ( (unsigned int)v11 < (unsigned int)sub_1002E757C(a2) ); } v23 = 0; LABEL_30: if ( v23 ) return 3129152111LL; else return LODWORD(v7) | (unsigned __int64)(v6 << 32); }