// // CustomizeObjectLayer::hsvPopupClosed from 0x140142eb0 to 0x140142fe2 (306 bytes) // // 2 xrefs: // > @ 0x140739728 // > @ 0x1409173a8 // // 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 11:27:10 +0000 // __int64 __fastcall CustomizeObjectLayer::hsvPopupClosed(__int64 a1, __int64 a2, _OWORD *a3) { int v5; // eax __int64 v6; // rcx unsigned int v7; // ebx int v8; // ebp __int64 RelativeSpriteColor; // rax struct cocos2d::CCObject *v10; // rcx __int16 v11; // ax bool v12; // al char *v13; // rdx int v14; // r8d unsigned __int8 v15; // al v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v6 = *(_QWORD *)(a1 + 24); v7 = 0; v8 = v5; if ( !v6 ) { if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 32)) ) return CustomizeObjectLayer::updateHSVButtons(a1 - 664); while ( 1 ) { v10 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 32), v7); v11 = *((_WORD *)v10 + 524); v12 = v11 ? v11 == 1 : *((_BYTE *)v10 + 1300); if ( v12 || *((_QWORD *)v10 + 112) || (v13 = (char *)v10 + 1104, v14 = *(_DWORD *)(*((_QWORD *)v10 + 138) + 4LL), v14 == 1004) || !v14 ) { v15 = 0; v13 = (char *)v10 + 1104; } else { v15 = 1; } if ( v8 != 1 ) break; if ( !v15 ) goto LABEL_17; LABEL_19: if ( ++v7 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 32)) ) return CustomizeObjectLayer::updateHSVButtons(a1 - 664); } v13 = (char *)v10 + 8 * (v15 ^ 1LL) + 1104; LABEL_17: if ( *(_QWORD *)v13 ) *(_OWORD *)(*(_QWORD *)v13 + 16LL) = *a3; goto LABEL_19; } LOBYTE(v7) = v5 != 1; RelativeSpriteColor = GameObject::getRelativeSpriteColor(v6, v7 + 1); if ( RelativeSpriteColor ) *(_OWORD *)(RelativeSpriteColor + 16) = *a3; return CustomizeObjectLayer::updateHSVButtons(a1 - 664); }