// // CustomizeObjectLayer::updateHSVButtons from 0x1001d9d80 to 0x1001d9f1d (413 bytes) // // 4 xrefs: // > CustomizeObjectLayer::init @ 0x1001d7dc8 // > CustomizeObjectLayer::onSelectMode @ 0x1001d99dd // > CustomizeObjectLayer::onPaste @ 0x1001da80d // > CustomizeObjectLayer::hsvPopupClosed @ 0x1001db570 // // 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:26:25 +0000 // __int64 __fastcall CustomizeObjectLayer::updateHSVButtons(__int64 a1, __m128 a2) { int v2; // r14d unsigned __int64 HSV; // rax char v4; // r15^5 unsigned __int64 v5; // r12 unsigned __int64 v6; // rax float v7; // xmm1_4 unsigned __int64 v8; // rcx unsigned __int64 v9; // rax char v10; // r8 const char *v11; // r14 bool v12; // zf const char *v13; // r15 __m128i v14; // xmm0 __int64 v15; // r12 __int64 v16; // rax __int64 v17; // rax __int64 v18; // rbx __int64 v19; // rax __int64 v20; // rax float v22; // [rsp+1Ch] [rbp-24h] v2 = *(_DWORD *)(a1 + 744); *(_DWORD *)(a1 + 744) = 1; HSV = ConfigureHSVWidget::getHSV(*(_QWORD *)(a1 + 688), *(_QWORD *)(a1 + 696), 1); v4 = BYTE5(HSV); v22 = *(float *)&HSV; v5 = HIDWORD(HSV); *(_DWORD *)(a1 + 744) = 2; v6 = ConfigureHSVWidget::getHSV(*(_QWORD *)(a1 + 688), *(_QWORD *)(a1 + 696), 2); v7 = *(float *)&v6; v8 = HIDWORD(v6); v9 = v6 >> 40; *(_DWORD *)(a1 + 744) = v2; v10 = _mm_cvtsi128_si32((__m128i)_mm_and_ps( _mm_cmpeq_ps(_mm_movehdup_ps(a2), (__m128)HIDWORD(qword_100BE13F8)), _mm_cmpeq_ps(a2, (__m128)(unsigned int)qword_100BE13F8))); v11 = "GJ_hsvBtn_001.png"; v12 = ((unsigned __int8)(BYTE4(qword_100BE1400) ^ v5) | (unsigned __int8)(BYTE5(qword_100BE1400) ^ v4)) == 0; v13 = "GJ_hsv2Btn_001.png"; if ( v12 ) v13 = "GJ_hsvBtn_001.png"; if ( *(float *)&qword_100BE1400 != v22 ) v13 = "GJ_hsv2Btn_001.png"; if ( (v10 & 1) == 0 ) v13 = "GJ_hsv2Btn_001.png"; v14 = (__m128i)_mm_and_ps( _mm_cmpeq_ps(_mm_movehdup_ps(a2), (__m128)HIDWORD(qword_100BE13F8)), _mm_cmpeq_ps((__m128)(unsigned int)qword_100BE13F8, a2)); if ( (unsigned __int8)(BYTE4(qword_100BE1400) ^ v8) | (unsigned __int8)(BYTE5(qword_100BE1400) ^ v9) ) v11 = "GJ_hsv2Btn_001.png"; if ( *(float *)&qword_100BE1400 != v7 ) v11 = "GJ_hsv2Btn_001.png"; if ( (_mm_cvtsi128_si32(v14) & 1) == 0 ) v11 = "GJ_hsv2Btn_001.png"; v15 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 1072LL))(*(_QWORD *)(a1 + 784)); v16 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v17 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, v13); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 1160LL))(v15, v17); v18 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 1072LL))(*(_QWORD *)(a1 + 792)); v19 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v20 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v19, v11); return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 1160LL))(v18, v20); }
GD Web Decomp Icon

GD Web Decomp

Raw Source