// // SetupSequenceTriggerPopup::updateGroupIDButtons from 0x1004d9910 to 0x1004d9c40 (816 bytes) // // 4 xrefs: // > SetupSequenceTriggerPopup::init @ 0x1004d961b // > SetupSequenceTriggerPopup::onAddChance @ 0x1004d980d // > SetupSequenceTriggerPopup::onDeleteSelected @ 0x1004d9861 // > SetupSequenceTriggerPopup::onChangeOrder @ 0x1004d98f8 // // 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 12:31:14 +0000 // void __fastcall SetupSequenceTriggerPopup::updateGroupIDButtons(_QWORD *a1) { __int64 v2; // rdi __int64 v3; // rax unsigned int v4; // r14d __int64 v5; // rax __int64 v6; // r14 _BOOL4 v7; // r15d __int64 v8; // r12 __int64 v9; // rax __int64 v10; // r13 __int64 v11; // r15 unsigned __int64 i; // r13 __int64 v13; // rax const std::string::value_type *CString; // rax unsigned int v15; // r12d __int64 v16; // rax std::string::pointer data; // rdi const char *v18; // r9 char *v19; // rax void *v20; // r12 char v21; // [rsp+0h] [rbp-90h] unsigned __int64 v22; // [rsp+8h] [rbp-88h] BYREF double v23; // [rsp+10h] [rbp-80h] BYREF unsigned __int64 v24; // [rsp+18h] [rbp-78h] BYREF unsigned __int64 v25; // [rsp+20h] [rbp-70h] __int64 v26; // [rsp+2Ch] [rbp-64h] BYREF unsigned int v27; // [rsp+34h] [rbp-5Ch] __int64 v28; // [rsp+38h] [rbp-58h] std::string v29; // [rsp+40h] [rbp-50h] BYREF float v30; // [rsp+64h] [rbp-2Ch] v2 = a1[127]; if ( v2 ) { LODWORD(v3) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 64LL))(v2); a1[127] = 0; v3 = (unsigned int)v3; } else { v3 = 0xFFFFFFFFLL; } v28 = v3; if ( (unsigned int)sub_1007FEF90(a1[129]) ) { v4 = 0; do { v5 = sub_1007FEFE0(a1[129], v4); (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 520LL))(v5); ++v4; } while ( v4 < (unsigned int)sub_1007FEF90(a1[129]) ); } sub_1007FF190(a1[129]); v6 = a1[85]; v25 = *(_QWORD *)(v6 + 1848) - *(_QWORD *)(v6 + 1840); v7 = v25 >= 0xA1; v8 = (unsigned int)(4 * v7); v30 = *(float *)((char *)dword_100A07280 + v8); v9 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v26, v9); v10 = a1[69]; sub_100278250( (float *)&v29, (float)(*(float *)((char *)flt_100A07DB0 + v8) * v30) + (float)(*(float *)&v26 * 0.5), (float)(0.5 * *((float *)&v26 + 1)) + 34.0); cocos2d::CCNode::convertToNodeSpace((double *)&v22, v10, (unsigned int *)&v29); if ( *(_QWORD *)(v6 + 1848) != *(_QWORD *)(v6 + 1840) ) { v27 = 5 * v7 + 5; v11 = 8; for ( i = 0; (__int64)(*(_QWORD *)(v6 + 1848) - *(_QWORD *)(v6 + 1840)) >> 4 > i; ++i ) { memset(&v29, 0, sizeof(v29)); if ( v25 <= 0xA0 ) { v16 = sub_10088E820("%i-%i", v21); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v16); v15 = 40; } else { v13 = sub_10088E820("%i\n%i", v21); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v13); v15 = 15; } std::string::assign(&v29, CString); data = v29.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) != 0 ) data = v29.__r_.__value_.__l.__data_; v18 = "GJ_button_04.png"; if ( v28 == i ) v18 = "GJ_button_03.png"; v19 = ButtonSprite::create_1((__int64)data, v15, 0, 1u, (__int64)"bigFont.fnt", (__int64)v18, 0.34999999, 30.0); v20 = CCMenuItemSpriteExtra::create((__int64)v19, 0, (__int64)a1, (__int64)SetupSequenceTriggerPopup::onSelect, 0); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v20 + 72LL))(v20, (unsigned int)i); (*(void (__fastcall **)(_QWORD, void *))(*(_QWORD *)a1[69] + 456LL))(a1[69], v20); sub_100278250( (float *)&v24, (float)(int)((unsigned int)i % v27) * v30, (float)(int)((unsigned int)i / v27) * -38.0); sub_100278350(&v23, &v22, &v24); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v20 + 184LL))(v20, &v23); sub_1007FEBF0(a1[129], v20); if ( v28 == i ) { a1[127] = v20; if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) != 0 ) { LABEL_21: operator delete(v29.__r_.__value_.__l.__data_); if ( i > 0x12 ) return; goto LABEL_22; } } else if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) != 0 ) { goto LABEL_21; } if ( i > 0x12 ) return; LABEL_22: v11 += 16; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source