// // ConfigureHSVWidget::init from 0xa3b354 to 0xa3bc14 (2240 bytes) // // 2 xrefs: // > ConfigureHSVWidget::create @ 0xa3bcc4 // > @ 0xd4278 // // This function is hookable on this platform (idp: arm, 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:59:54 +0000 // __int64 __fastcall ConfigureHSVWidget::init(__int64 a1, __int64 a2, __int64 a3, unsigned __int8 a4, char a5) { int v8; // w23 unsigned __int8 v10; // w0 unsigned int v11; // w24 cocos2d::CCObject *v13; // x0 const char *v14; // x2 __int64 v15; // x0 __int64 v16; // x21 void (__fastcall *v17)(__int64, __int64 *); // x25 Slider *v18; // x0 __int64 v19; // x26 void (__fastcall *v20)(__int64, __int64 *); // x27 __int64 v21; // x28 __int64 Thumb; // x0 const char *v23; // x2 __int64 v24; // x0 __int64 v25; // x26 void (__fastcall *v26)(__int64, __int64 *); // x27 __int64 v27; // x0 Slider *v28; // x0 __int64 v29; // x26 void (__fastcall *v30)(__int64, __int64 *); // x27 __int64 v31; // x28 __int64 v32; // x0 const char *v33; // x2 __int64 v34; // x0 __int64 v35; // x26 void (__fastcall *v36)(__int64, __int64 *); // x27 __int64 v37; // x0 Slider *v38; // x0 __int64 v39; // x25 void (__fastcall *v40)(__int64, __int64 *); // x26 __int64 v41; // x27 __int64 v42; // x0 cocos2d::CCMenu *v43; // x0 cocos2d::CCDirector **v44; // x25 cocos2d::CCDirector *v45; // x0 __int64 v46; // x0 cocos2d::CCTouchDispatcher *v47; // x0 __int64 v48; // x0 __int64 v49; // x0 const char *v50; // x1 __int64 v51; // x0 __int64 v52; // x23 void (__fastcall *v53)(__int64, __int64 *); // x26 void (__fastcall *v54)(cocos2d::CCDirector **, _QWORD); // x26 __int64 v55; // x0 __int64 v56; // x0 __int64 v57; // x26 __int64 v58; // x26 __int64 v59; // x25 __int64 v60; // x21 void (__fastcall *v61)(__int64, __int64 *); // x23 unsigned __int8 v62; // [xsp+BCh] [xbp+8Ch] unsigned __int8 v63; // [xsp+BCh] [xbp+8Ch] _BYTE v64[8]; // [xsp+C0h] [xbp+90h] BYREF __int64 v65; // [xsp+C8h] [xbp+98h] BYREF __int64 v66[2]; // [xsp+D0h] [xbp+A0h] BYREF __int64 v67; // [xsp+E0h] [xbp+B0h] BYREF __int64 v68; // [xsp+E8h] [xbp+B8h] void *v69; // [xsp+F0h] [xbp+C0h] v8 = a4; v10 = cocos2d::CCNode::init((cocos2d::CCNode *)a1); v11 = v10; if ( v10 ) { *(_BYTE *)(a1 + 409) = (unsigned __int8)&dword_0 + 1; v13 = (cocos2d::CCObject *)cocos2d::CCDictionary::create((cocos2d::CCDictionary *)((char *)&dword_0 + 1)); *(_QWORD *)(a1 + 416) = v13; cocos2d::CCObject::retain(v13); *(_QWORD *)(a1 + 376) = a2; *(_QWORD *)(a1 + 384) = a3; *(_BYTE *)(a1 + 408) = a5; if ( !v8 ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v66, 0.0, 0.0, 80.0, 80.0); v60 = cocos2d::extension::CCScale9Sprite::create("square02_001.png", v66); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v60 + 912LL))(v60, 75); v61 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v60 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v66, 270.0, 160.0); v61(v60, v66); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v60, 0xFFFFFFFFLL); } v15 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Hue:", "bigFont.fnt", v14); *(_QWORD *)(a1 + 328) = v15; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v15); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 328) + 160LL))(*(_QWORD *)(a1 + 328), 0.5); v16 = *(_QWORD *)(a1 + 328); v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v66, 0.0, 66.0); v17(v16, v66); if ( *(_BYTE *)(a1 + 408) ) { v59 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 192LL))(*(_QWORD *)(a1 + 328)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, -10.0, 0.0); cocos2d::CCPoint::operator+(v66, v59); ConfigureHSVWidget::createTextInputNode((cocos2d::CCDictionary **)a1, (__int64)v66, 1u); } v18 = (Slider *)Slider::create(a1, (int)ConfigureHSVWidget::sliderChanged, 0); *(_QWORD *)(a1 + 352) = v18; Slider::setBarVisibility(v18); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 352)); v19 = *(_QWORD *)(a1 + 352); v20 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v19 + 184LL); v21 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 192LL))(*(_QWORD *)(a1 + 328)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, 0.0, -25.0); cocos2d::CCPoint::operator+(v66, v21); v20(v19, v66); Thumb = Slider::getThumb(*(Slider **)(a1 + 352)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)Thumb + 72LL))(Thumb, 1); v24 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Saturation:", "bigFont.fnt", v23); *(_QWORD *)(a1 + 336) = v24; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v24); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 336) + 160LL))(*(_QWORD *)(a1 + 336), 0.5); v25 = *(_QWORD *)(a1 + 336); v26 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 184LL); v27 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 192LL))(*(_QWORD *)(a1 + 328)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v66, 0.0, *(float *)(v27 + 4) - 50.0); v26(v25, v66); if ( *(_BYTE *)(a1 + 408) ) { v58 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 336) + 192LL))(*(_QWORD *)(a1 + 336)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, 22.0, 0.0); cocos2d::CCPoint::operator+(v66, v58); ConfigureHSVWidget::createTextInputNode((cocos2d::CCDictionary **)a1, (__int64)v66, 2u); } v28 = (Slider *)Slider::create(a1, (int)ConfigureHSVWidget::sliderChanged, 0); *(_QWORD *)(a1 + 360) = v28; Slider::setBarVisibility(v28); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 360)); v29 = *(_QWORD *)(a1 + 360); v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL); v31 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 336) + 192LL))(*(_QWORD *)(a1 + 336)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, 0.0, -25.0); cocos2d::CCPoint::operator+(v66, v31); v30(v29, v66); v32 = Slider::getThumb(*(Slider **)(a1 + 360)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v32 + 72LL))(v32, 2); v34 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Brightness:", "bigFont.fnt", v33); *(_QWORD *)(a1 + 344) = v34; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v34); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 344) + 160LL))(*(_QWORD *)(a1 + 344), 0.5); v35 = *(_QWORD *)(a1 + 344); v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL); v37 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 336) + 192LL))(*(_QWORD *)(a1 + 336)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v66, 0.0, *(float *)(v37 + 4) - 50.0); v36(v35, v66); if ( *(_BYTE *)(a1 + 408) ) { v57 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 344) + 192LL))(*(_QWORD *)(a1 + 344)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, 22.0, 0.0); cocos2d::CCPoint::operator+(v66, v57); ConfigureHSVWidget::createTextInputNode((cocos2d::CCDictionary **)a1, (__int64)v66, 3u); } v38 = (Slider *)Slider::create(a1, (int)ConfigureHSVWidget::sliderChanged, 0); *(_QWORD *)(a1 + 368) = v38; Slider::setBarVisibility(v38); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 368)); v39 = *(_QWORD *)(a1 + 368); v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 184LL); v41 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 344) + 192LL))(*(_QWORD *)(a1 + 344)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, 0.0, -25.0); cocos2d::CCPoint::operator+(v66, v41); v40(v39, v66); v42 = Slider::getThumb(*(Slider **)(a1 + 368)); v43 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v42 + 72LL))(v42, 3); v44 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v43); v45 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(__int64, cocos2d::CCDirector **))(*(_QWORD *)a1 + 456LL))( a1, v44); v46 = cocos2d::CCDirector::sharedDirector(v45); v47 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 160LL))(v46); if ( (unsigned __int8)cocos2d::CCTouchDispatcher::isUsingForcePrio(v47) ) { v54 = *((void (__fastcall **)(cocos2d::CCDirector **, _QWORD))*v44 + 128); v55 = cocos2d::CCDirector::sharedDirector(*v44); v56 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v55 + 160LL))(v55); v54(v44, (unsigned int)(*(_DWORD *)(v56 + 128) - 1)); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, -95.0, 0.0); v67 = 0; v68 = 0; v69 = nullptr; std::string::__init(&v67, &byte_11E1A70, 1u); v62 = *(_BYTE *)(a1 + 388); v48 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 336) + 192LL))(*(_QWORD *)(a1 + 336)); cocos2d::CCPoint::operator+(&v65, v48); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v66, 0.0, 1.0); GameToolbox::createToggleButton( (__int64)&v67, (const char *)ConfigureHSVWidget::onToggleSConst, 0, v62, (cocos2d::CCNode *)v44, (const cocos2d::CCPoint *)&v65, a1, a1, 0.6, 0.4, 150.0, (float *)v66, "bigFont.fnt", 1, 0, nullptr); if ( (v67 & 1) != 0 ) operator delete(v69); v67 = 0; v68 = 0; v69 = nullptr; std::string::__init(&v67, &byte_11E1A70, 1u); v63 = *(_BYTE *)(a1 + 389); v49 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 344) + 192LL))(*(_QWORD *)(a1 + 344)); cocos2d::CCPoint::operator+(&v65, v49); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v66, 0.0, 1.0); GameToolbox::createToggleButton( (__int64)&v67, (const char *)ConfigureHSVWidget::onToggleVConst, 0, v63, (cocos2d::CCNode *)v44, (const cocos2d::CCPoint *)&v65, a1, a1, 0.6, 0.4, 150.0, (float *)v66, "bigFont.fnt", 1, 0, nullptr); if ( (v67 & 1) != 0 ) operator delete(v69); if ( *(float *)(a1 + 376) == -0.001 ) { ConfigureHSVWidget::onResetHSV((ConfigureHSVWidget *)a1, nullptr); if ( !*(_BYTE *)(a1 + 408) ) { (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 328) + 928LL))( *(_QWORD *)(a1 + 328), "Hue: Mixed"); (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 336) + 928LL))( *(_QWORD *)(a1 + 336), "Saturation: Mixed"); (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 344) + 928LL))( *(_QWORD *)(a1 + 344), "Brightness: Mixed"); } *(_BYTE *)(a1 + 392) = 1; } else { ConfigureHSVWidget::updateLabels((ConfigureHSVWidget *)a1); } v51 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_resetBtn_001.png", v50); v52 = CCMenuItemSpriteExtra::create(v51, 0, a1, (__int64)ConfigureHSVWidget::onResetHSV, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v44 + 57))(v44, v52); v53 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v52 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, 119.0, 64.0); cocos2d::CCNode::convertToNodeSpace(v66, (cocos2d::CCNode *)v44, (const cocos2d::CCPoint *)&v65); v53(v52, v66); ConfigureHSVWidget::updateSliders((ConfigureHSVWidget *)a1); *(_BYTE *)(a1 + 409) = 0; } return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source