// // HSVLiveOverlay::init from 0xb50944 to 0xb50dcc (1160 bytes) // // 2 xrefs: // > HSVLiveOverlay::create @ 0xb50f5c // > @ 0xccf88 // // 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 13:01:58 +0000 // __int64 __fastcall HSVLiveOverlay::init(__int64 a1, cocos2d::CCObject *a2, cocos2d::CCObject *a3, int a4, int a5) { unsigned __int8 v7; // w0 unsigned int v8; // w24 __int64 v9; // x0 cocos2d::CCDirector *v10; // x0 unsigned int v11; // w28 cocos2d::CCArray *WinSize; // x0 cocos2d::CCObject *v13; // x0 const char *v14; // x1 __int64 v15; // x23 cocos2d::CCMenu *v16; // x0 __int64 v17; // x0 __int64 v18; // x23 void (__fastcall *v19)(__int64, __int64 *); // x26 cocos2d::CCObject *v21; // x0 cocos2d::CCObject *v22; // x26 __int64 v23; // x23 const char *v24; // x6 cocos2d::CCObject *v25; // x27 __int64 v26; // x26 cocos2d::CCNode *v27; // x27 __int64 v28; // x0 __int64 (__fastcall *v29)(__int64); // x1 void (__fastcall *v30)(__int64, __int64 *); // x23 __int64 v31; // x25 cocos2d::CCNode *v32; // [xsp+98h] [xbp+98h] void (__fastcall *v33)(__int64, __int64 *); // [xsp+A0h] [xbp+A0h] __int64 v37; // [xsp+C8h] [xbp+C8h] BYREF __int64 v38; // [xsp+D0h] [xbp+D0h] BYREF __int64 v39; // [xsp+D8h] [xbp+D8h] BYREF __int64 v40; // [xsp+E0h] [xbp+E0h] BYREF __int64 v41; // [xsp+E8h] [xbp+E8h] BYREF _BYTE v42[8]; // [xsp+F0h] [xbp+F0h] BYREF v7 = FLAlertLayer::init((FLAlertLayer *)a1, 0); v8 = v7; if ( v7 ) { *(_WORD *)(a1 + 731) = a4; *(_WORD *)(a1 + 734) = a5; v9 = BYTE2(a5); *(_BYTE *)(a1 + 733) = BYTE2(a4); *(_BYTE *)(a1 + 736) = BYTE2(a5); if ( a2 ) { *(_QWORD *)(a1 + 672) = a2; v9 = cocos2d::CCObject::retain(a2); } else if ( a3 ) { *(_QWORD *)(a1 + 680) = a3; v9 = cocos2d::CCObject::retain(a3); } *(_BYTE *)(a1 + 596) = 1; v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v9); v11 = 2; WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize(&v37, v10); v13 = (cocos2d::CCObject *)cocos2d::CCArray::create(WinSize); *(_QWORD *)(a1 + 688) = v13; cocos2d::CCObject::retain(v13); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1000LL))(a1, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); v15 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v14); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 160LL))(v15, 0.5); v16 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v15, 0, a1, (__int64)HSVLiveOverlay::closeColorSelect, 0); v17 = cocos2d::CCMenu::create(v16, nullptr); *(_QWORD *)(a1 + 552) = v17; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v17, 10); v18 = *(_QWORD *)(a1 + 552); v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v41, 157.0, 163.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, -81.0, 48.0); cocos2d::CCPoint::operator+(&v40, &v41); v19(v18, &v40); HSVLiveOverlay::determineStartValues((HSVLiveOverlay *)a1); if ( *(_BYTE *)(a1 + 728) ) { if ( !*(_BYTE *)(a1 + 729) ) goto LABEL_6; v21 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)*(unsigned __int8 *)(a1 + 729)); *(_QWORD *)(a1 + 696) = v21; cocos2d::CCObject::retain(v21); v22 = (cocos2d::CCObject *)ButtonSprite::create( (ButtonSprite *)"1", (const char *)&dword_14, 0, 1, 0.5, "bigFont.fnt", "GJ_button_01.png", (const char *)&v38, 30.0); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v22 + 160LL))(v22, 0.6); v23 = CCMenuItemSpriteExtra::create((__int64)v22, 0, a1, (__int64)HSVLiveOverlay::onSelectTab, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v23); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v23 + 72LL))(v23, 1); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v22 + 72LL))(v22, 1); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 696), v22); v25 = (cocos2d::CCObject *)ButtonSprite::create( (ButtonSprite *)&byte_120A098, (const char *)&dword_14, 0, 1, 0.5, "bigFont.fnt", "GJ_button_04.png", v24, 30.0); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v25 + 160LL))(v25, 0.6); v26 = CCMenuItemSpriteExtra::create((__int64)v25, 0, a1, (__int64)HSVLiveOverlay::onSelectTab, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v26); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v26 + 72LL))(v26, 2); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v25 + 72LL))(v25, 2); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 696), v25); v27 = *(cocos2d::CCNode **)(a1 + 584); v32 = *(cocos2d::CCNode **)(a1 + 552); v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v23 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v41, 157.0, 163.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, 97.0, 36.0); cocos2d::CCPoint::operator+(&v40, &v41); cocos2d::CCNode::convertToWorldSpace(&v39, v27, (const cocos2d::CCPoint *)&v40); cocos2d::CCNode::convertToNodeSpace(&v38, v32, (const cocos2d::CCPoint *)&v39); v33(v23, &v38); v28 = v23; v29 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 192LL); v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL); v31 = v29(v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, 0.0, -24.0); cocos2d::CCPoint::operator+(&v41, v31); v30(v26, &v41); if ( *(_BYTE *)(a1 + 728) ) LABEL_6: v11 = 1; } HSVLiveOverlay::createHSVWidget((HSVLiveOverlay *)a1, v11); } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source