// // CustomizeObjectLayer::hsvPopupClosed from 0x1001f9090 to 0x1001f9155 (197 bytes) // // 2 xrefs: // > sub_1001F9160 @ 0x1001f916c // > @ 0x1008d98b0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! void __fastcall CustomizeObjectLayer::hsvPopupClosed( CustomizeObjectLayer *a1, HSVWidgetPopup *a2, cocos2d::ccHSVValue a3) { __int64 v3; // r14 int v5; // r15d GameObject *m_targetObject; // rdi GJSpriteColor *RelativeSpriteColor; // rax unsigned int v8; // r12d GameObject *v9; // rax GJSpriteColor *v10; // rax v3 = *(_QWORD *)&a3.v; v5 = (((unsigned int (__fastcall *)(HSVWidgetPopup *))a2->getTag)(a2) != 1) + 1; m_targetObject = a1->m_targetObject; if ( m_targetObject ) { RelativeSpriteColor = GameObject::getRelativeSpriteColor(m_targetObject, v5); if ( RelativeSpriteColor ) { _mm_storel_ps((double *)&RelativeSpriteColor->m_hsv.h, (__m128)a3); *(_QWORD *)&RelativeSpriteColor->m_hsv.v = v3; } } else if ( (unsigned int)sub_100720070(a1->m_targetObjects) ) { v8 = 0; do { v9 = (GameObject *)sub_1007200C0(a1->m_targetObjects, v8); v10 = GameObject::getRelativeSpriteColor(v9, v5); if ( v10 ) { _mm_storel_ps((double *)&v10->m_hsv.h, (__m128)a3); *(_QWORD *)&v10->m_hsv.v = v3; } ++v8; } while ( v8 < (unsigned int)sub_100720070(a1->m_targetObjects) ); } CustomizeObjectLayer::updateHSVButtons(a1); }