// // ConfigureHSVWidget::setBaseColor from 0x140131600 to 0x140131821 (545 bytes) // // 5 xrefs: // > HSVWidgetPopup::init @ 0x14012f994 // > HSVLiveOverlay::createHSVWidget @ 0x1403c141e // > @ 0x140898cc4 // > @ 0x140898cd4 // > @ 0x140916eec // // 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:03 +0000 // __int64 __fastcall ConfigureHSVWidget::setBaseColor(__int64 a1, __int64 a2) { bool v2; // zf struct cocos2d::CCSprite *v4; // rax __int64 v5; // rbx float v6; // xmm6_4 double v7; // xmm0_8 float v8; // xmm7_4 __int64 *v9; // rdi __int64 v10; // rbx __int64 v11; // rax struct cocos2d::CCSprite *v12; // rax __int64 v13; // rax __int64 v14; // rbx __int64 v15; // rax __int64 v16; // rax void (__fastcall ***v17)(_QWORD, __int16 *); // rcx __int128 v19; // [rsp+20h] [rbp-58h] BYREF __int16 v20; // [rsp+80h] [rbp+8h] BYREF char v21; // [rsp+82h] [rbp+Ah] char v22; // [rsp+88h] [rbp+10h] BYREF char v23; // [rsp+90h] [rbp+18h] BYREF v2 = *(_QWORD *)(a1 + 440) == 0; *(_WORD *)(a1 + 424) = *(_WORD *)a2; *(_BYTE *)(a1 + 426) = *(_BYTE *)(a2 + 2); *(_BYTE *)(a1 + 448) = 1; if ( v2 ) { v4 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); *(_QWORD *)(a1 + 440) = v4; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v4 + 160LL))(v4); v5 = *(_QWORD *)(a1 + 440); v6 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 320LL))(v5) + 4); v7 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v5 + 168LL))(v5); v8 = *(float *)&v7 * v6; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 440)); v9 = *(__int64 **)(a1 + 440); v10 = *v9; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v22, 155.0, (float)((float)((float)(*(float *)&v7 * v6) * 1.5) - 80.0) + 4.0); (*(void (__fastcall **)(__int64 *, __int64))(v10 + 184))(v9, v11); v12 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); *(_QWORD *)(a1 + 432) = v12; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 160LL))(v12); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 432)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, 0.0, -v8); v14 = v13; v15 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 200LL))(*(_QWORD *)(a1 + 440)); cocos2d::CCPoint::operator+(v15, &v22, v14); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 432) + 184LL))(*(_QWORD *)(a1 + 432), &v22); } v19 = *(_OWORD *)(a1 + 376); v16 = GameToolbox::transformColor((__int64)&v22, (unsigned __int16 *)(a1 + 424), (float *)&v19); v20 = *(_WORD *)v16; v17 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)(a1 + 432) + 320LL); v21 = *(_BYTE *)(v16 + 2); (**v17)(v17, &v20); return (**(__int64 (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 440) + 320LL))( *(_QWORD *)(a1 + 440) + 320LL, &v20); }
GD Web Decomp Icon

GD Web Decomp

Raw Source