// // HSVLiveOverlay::hsvChanged from 0x1002552c0 to 0x10025541d (349 bytes) // // 2 xrefs: // > sub_100255420 @ 0x10025542c // > @ 0x100af1cd0 // // 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:27:25 +0000 // __int64 __fastcall HSVLiveOverlay::hsvChanged(__int64 a1, unsigned __int64 *a2) { __int64 result; // rax int v4; // r15d int v5; // ebx bool v6; // r13 unsigned __int64 v7; // r12 __int64 v8; // rdi __int64 v9; // r14 unsigned int v10; // ebx unsigned int v11; // r15d unsigned __int64 *v12; // rax __int64 v13; // rax int v14; // ecx __int64 RelativeSpriteColor; // rax unsigned int v16; // r15d __int64 v17; // rax int v18; // ecx __int64 v19; // rax __m128 v20; // [rsp+0h] [rbp-40h] result = (*(__int64 (__fastcall **)(unsigned __int64 *))(*a2 + 64))(a2); v4 = result; v5 = 0; v6 = (_DWORD)result != 1; v20 = (__m128)a2[47]; v7 = a2[48]; v8 = *(_QWORD *)(a1 + 672); if ( v8 ) { result = sub_1007FE9A0(v8); v9 = result; if ( !result ) return result; } else { v9 = *(_QWORD *)(a1 + 680); if ( !v9 ) return result; } result = sub_1007FEF90(v9); if ( !(_DWORD)result ) return result; LOBYTE(v5) = v6; v10 = v5 + 1; if ( v4 == 1 ) { v11 = 0; while ( 1 ) { v13 = sub_1007FEFE0(v9, v11); v14 = *(_DWORD *)(v13 + 1028); if ( v14 == 1006 || v14 == 899 ) { _mm_storel_ps((double *)(v13 + 1612), v20); v12 = (unsigned __int64 *)(v13 + 1620); } else { RelativeSpriteColor = GameObject::getRelativeSpriteColor(v13, v10); if ( !RelativeSpriteColor ) goto LABEL_10; _mm_storel_ps((double *)(RelativeSpriteColor + 16), v20); v12 = (unsigned __int64 *)(RelativeSpriteColor + 24); } *v12 = v7; LABEL_10: ++v11; result = sub_1007FEF90(v9); if ( v11 >= (unsigned int)result ) return result; } } v16 = 0; do { v17 = sub_1007FEFE0(v9, v16); v18 = *(_DWORD *)(v17 + 1028); if ( v18 != 899 && v18 != 1006 ) { v19 = GameObject::getRelativeSpriteColor(v17, v10); if ( v19 ) { _mm_storel_ps((double *)(v19 + 16), v20); *(_QWORD *)(v19 + 24) = v7; } } ++v16; result = sub_1007FEF90(v9); } while ( v16 < (unsigned int)result ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source