// // SetupSequenceTriggerPopup::updateGroupIDButtons from 0xb8202c to 0xb8237c (848 bytes) // // 6 xrefs: // > SetupSequenceTriggerPopup::onAddChance @ 0xb82424 // > SetupSequenceTriggerPopup::onChangeOrder @ 0xb824fc // > SetupSequenceTriggerPopup::onDeleteSelected @ 0xb82540 // > SetupSequenceTriggerPopup::onDeleteSelected @ 0xb82560 // > SetupSequenceTriggerPopup::init @ 0xb83034 // > @ 0x7e730 // // 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:02:29 +0000 // __int64 __fastcall SetupSequenceTriggerPopup::updateGroupIDButtons(SetupSequenceTriggerPopup *this) { __int64 v2; // x0 int v3; // w0 int v4; // w25 unsigned int i; // w19 unsigned int v6; // w1 __int64 v7; // x0 bool v8; // cf cocos2d::CCArray *v9; // x0 __int64 v10; // x28 float v11; // s8 int v12; // w26 float v13; // s10 float v14; // s9 cocos2d::CCDirector *v15; // x0 cocos2d::CCNode *v16; // x19 __int64 v17; // x20 unsigned __int64 j; // x22 __int64 v19; // x2 cocos2d::CCString *v20; // x0 char *CString; // x0 const char *v22; // x6 ButtonSprite *v23; // x0 const char *v24; // x1 const char *v25; // x5 __int64 v26; // x0 cocos2d::CCObject *v27; // x20 _BOOL4 v29; // [xsp+94h] [xbp+94h] void (__fastcall *v30)(cocos2d::CCObject *, __int64 *); // [xsp+98h] [xbp+98h] __int64 v31; // [xsp+A0h] [xbp+A0h] BYREF __int64 v32; // [xsp+A8h] [xbp+A8h] BYREF _BYTE v33[8]; // [xsp+B0h] [xbp+B0h] BYREF __int64 v34; // [xsp+B8h] [xbp+B8h] BYREF __int64 v35[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v36; // [xsp+D0h] [xbp+D0h] v2 = *((_QWORD *)this + 127); if ( v2 ) { v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 64LL))(v2); *((_QWORD *)this + 127) = 0; v4 = v3; } else { v4 = -1; } for ( i = 0; ; ++i ) { v8 = i >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 129)); v9 = *((cocos2d::CCArray **)this + 129); if ( v8 ) break; v6 = i; v7 = cocos2d::CCArray::objectAtIndex(v9, v6); (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 520LL))(v7); } cocos2d::CCArray::removeAllObjects(v9); v10 = *((_QWORD *)this + 85); v29 = *(_QWORD *)(v10 + 1848) - *(_QWORD *)(v10 + 1840) > 0xAFu; if ( *(_QWORD *)(v10 + 1848) - *(_QWORD *)(v10 + 1840) <= 0xAFu ) { v11 = 66.0; v12 = 5; v14 = 40.0; v13 = 2.0; } else { v11 = 35.0; v12 = 10; v13 = 4.5; v14 = 15.0; } v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)(*(_QWORD *)(v10 + 1848) - *(_QWORD *)(v10 + 1840) > 0xAFu)); cocos2d::CCDirector::getWinSize(&v31, v15); v16 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v34, -(float)((float)(v13 * v11) - (float)(*(float *)&v31 * 0.5)), (float)(*((float *)&v31 + 1) * 0.5) + 34.0); cocos2d::CCNode::convertToNodeSpace(&v32, v16, (const cocos2d::CCPoint *)&v34); v17 = *(_QWORD *)(v10 + 1840); if ( (*(_QWORD *)(v10 + 1848) - v17) >> 4 ) { for ( j = 0; (int)j <= 19 && j < (*(_QWORD *)(v10 + 1848) - v17) >> 4; ++j ) { v35[0] = 0; v35[1] = 0; v19 = v17 + 16 * j; v36 = nullptr; if ( v29 ) v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i\n%i", (const char *)*(unsigned int *)(v17 + 16 * j), *(unsigned int *)(v19 + 8)); else v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i-%i", (const char *)*(unsigned int *)(v17 + 16 * j), *(unsigned int *)(v19 + 8)); CString = (char *)cocos2d::CCString::getCString(v20); std::string::assign(v35, CString); if ( (v35[0] & 1) != 0 ) { v23 = (ButtonSprite *)v36; v24 = (const char *)(unsigned int)(int)v14; if ( v4 == (_DWORD)j ) { LABEL_24: v25 = "GJ_button_03.png"; goto LABEL_15; } } else { v23 = (ButtonSprite *)((char *)v35 + 1); v24 = (const char *)(unsigned int)(int)v14; if ( v4 == (_DWORD)j ) goto LABEL_24; } v25 = "GJ_button_04.png"; LABEL_15: v26 = ButtonSprite::create(v23, v24, 0, 1, 0.35, "bigFont.fnt", v25, v22, 30.0); v27 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v26, 0, (__int64)this, (__int64)SetupSequenceTriggerPopup::onSelect, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v27 + 72LL))(v27, (unsigned int)j); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v27); v30 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v27 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v33, v11 * (float)((int)j % v12), floorf((float)((int)j / v12)) * -38.0); cocos2d::CCPoint::operator+(&v34, &v32); v30(v27, &v34); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 129), v27); if ( v4 == (_DWORD)j ) *((_QWORD *)this + 127) = v27; if ( (v35[0] & 1) != 0 ) operator delete(v36); v17 = *(_QWORD *)(v10 + 1840); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source