// // SetGroupIDLayer::updateGroupIDButtons from 0x100041844 to 0x100041d44 (1280 bytes) // // 6 xrefs: // > SetGroupIDLayer::init @ 0x10003fca4 // > sub_100040DF8 @ 0x100040e7c // > sub_100041D6C @ 0x100041dcc // > sub_100042BA8 @ 0x100042c74 // > sub_100042C9C @ 0x100042d64 // > sub_100042D68 @ 0x100042e48 // // 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 10:57:37 +0000 // __int64 __fastcall SetGroupIDLayer::updateGroupIDButtons(__int64 a1) { __int64 v2; // x20 __int64 v3; // x0 _QWORD *v4; // x26 __int64 v5; // x0 __int64 v6; // x20 __int64 v7; // x0 __int64 v8; // x21 __int64 v9; // x0 int v10; // w23 __int64 v11; // x22 __int64 v12; // x0 __int64 v13; // x0 __int64 v14; // x0 _QWORD *v15; // x8 __int64 v16; // x0 int v17; // w0 __int64 v18; // x21 __int64 v19; // x0 __int64 v20; // x22 __int64 v21; // x23 __int64 v22; // x25 __int64 v23; // x24 __int64 v24; // x0 __int64 v25; // x0 __int64 v26; // x0 _QWORD *v27; // x8 __int64 v28; // x0 __int64 v29; // x0 int v30; // w0 __int64 v31; // x0 __n128 v32; // q0 __int64 v33; // x21 int v34; // w0 __n128 v35; // q0 unsigned int v36; // w23 unsigned int v37; // w8 int v38; // w11 float v39; // s0 __int64 v40; // x24 float v41; // s8 float v42; // s9 __int64 v43; // x28 __int64 v44; // x0 const char *v45; // x22 unsigned int v46; // w25 const char *v47; // x25 __int64 v48; // x0 __int64 CString; // x0 __int64 v50; // x0 __int64 v51; // x25 __int64 result; // x0 int v53; // [xsp+Ch] [xbp-84h] unsigned int v54; // [xsp+10h] [xbp-80h] int v55; // [xsp+14h] [xbp-7Ch] float v56; // [xsp+18h] [xbp-78h] BYREF if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 696)) ) { v2 = 0; do { v3 = sub_1002E75A0(*(_QWORD *)(a1 + 696), v2); (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 520LL))(v3); v2 = (unsigned int)(v2 + 1); } while ( (unsigned int)v2 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 696)) ); } sub_1002E7674(*(_QWORD *)(a1 + 696)); v4 = (_QWORD *)(a1 + 816); cocos2d::CCDictionary::removeAllObjects(*(_QWORD *)(a1 + 816)); v5 = cocos2d::CCDictionary::removeAllObjects(*(_QWORD *)(a1 + 824)); v6 = cocos2d::CCDictionary::create(v5); v7 = *(_QWORD *)(a1 + 672); if ( v7 ) { if ( *(__int16 *)(v7 + 1168) >= 1 ) { v8 = 0; do { v9 = sub_1002FA6C4(v7, v8); v10 = v9; v11 = cocos2d::CCNode::create(v9); v12 = cocos2d::CCDictionary::setObject_1(v6, v11, v10); if ( *(_BYTE *)(*(_QWORD *)(a1 + 672) + 1170LL) == 1 ) { v13 = GameManager::sharedState(v12); v14 = sub_10028E320(*(_QWORD *)(v13 + 552), v10); v15 = (_QWORD *)(a1 + 816); if ( *(_QWORD *)(a1 + 672) == v14 || (v16 = GameManager::sharedState(v14), v17 = sub_10028E190(*(_QWORD *)(v16 + 552), *(_QWORD *)(a1 + 672), v10), v15 = (_QWORD *)(a1 + 824), v17) ) { cocos2d::CCDictionary::setObject_1(*v15, v11, v10); } } v8 = (unsigned int)(v8 + 1); v7 = *(_QWORD *)(a1 + 672); } while ( (int)v8 < *(__int16 *)(v7 + 1168) ); } } else if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 680)) ) { v18 = 0; do { v19 = sub_1002E75A0(*(_QWORD *)(a1 + 680), v18); if ( *(__int16 *)(v19 + 1168) >= 1 ) { v20 = v19; v21 = 0; do { v22 = (int)sub_1002FA6C4(v20, v21); v23 = cocos2d::CCDictionary::objectForKey_1(v6, v22); v24 = cocos2d::CCDictionary::objectForKey_1(v6, v22); if ( !v24 ) { v23 = cocos2d::CCNode::create(0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v23 + 72LL))(v23, 0); v24 = cocos2d::CCDictionary::setObject_1(v6, v23, v22); } if ( *(_BYTE *)(v20 + 1170) == 1 ) { v25 = GameManager::sharedState(v24); v26 = sub_10028E320(*(_QWORD *)(v25 + 552), v22); v27 = (_QWORD *)(a1 + 816); if ( v20 == v26 || (v28 = GameManager::sharedState(v26), (unsigned int)sub_10028E190(*(_QWORD *)(v28 + 552), v20, v22)) && (v29 = cocos2d::CCDictionary::objectForKey_1(*v4, v22), v27 = (_QWORD *)(a1 + 824), !v29) ) { cocos2d::CCDictionary::setObject_1(*v27, v23, v22); } } v30 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 64LL))(v23); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v23 + 72LL))(v23, (unsigned int)(v30 + 1)); v21 = (unsigned int)(v21 + 1); } while ( (int)v21 < *(__int16 *)(v20 + 1168) ); } v18 = (unsigned int)(v18 + 1); } while ( (unsigned int)v18 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 680)) ); } v31 = cocos2d::CCDictionary::allKeys(v6); if ( v31 && (v33 = v31, (unsigned int)sub_1002E757C(v31)) ) { qsort( *(void **)(*(_QWORD *)(v33 + 56) + 16LL), **(unsigned int **)(v33 + 56), 8u, (int (__cdecl *)(const void *, const void *))sub_10003E708); v34 = sub_1002E757C(v33); if ( v34 <= 10 ) v36 = 5; else v36 = 10; if ( v34 <= 10 ) v37 = 58; else v37 = 35; if ( v34 <= 10 ) v38 = 30; else v38 = 15; v39 = -2.0; if ( v34 > 10 ) v39 = -4.5; v53 = vcvtps_s32_f32((float)v34 / (float)v36); v54 = v38; v55 = v34; if ( v34 >= 1 ) { v40 = 0; v41 = (float)v37; v42 = (float)(v39 * (float)v37) + 180.0; do { v43 = *(int *)(sub_1002E75A0(v33, v40) + 56); v44 = cocos2d::CCDictionary::objectForKey_1(v6, v43); v45 = "GJ_button_04.png"; if ( !*(_QWORD *)(a1 + 672) ) { v46 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 64LL))(v44); if ( v46 >= (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 680)) ) v45 = "GJ_button_04.png"; else v45 = "GJ_button_05.png"; } v47 = "GJ_button_03.png"; if ( !cocos2d::CCDictionary::objectForKey_1(*v4, v43) ) { if ( cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 824), v43) ) v47 = "GJ_button_02.png"; else v47 = v45; } v48 = sub_1003065B0("%i", v43); CString = cocos2d::CCString::getCString(v48); v50 = ButtonSprite::create_1(CString, v54, 0, 1, "goldFont.fnt", v47, 0.5, 20.0); v51 = CCMenuItemSpriteExtra::create(v50, 0, a1, sub_1000428B0, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v51 + 72LL))(v51, v43); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 840) + 456LL))(*(_QWORD *)(a1 + 840), v51); sub_1000262BC( &v56, v42 + (float)(v41 * (float)((unsigned int)v40 % v36)), (float)((float)((unsigned int)v40 / v36) * -30.0) + -18.0); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v51 + 184LL))(v51, &v56); sub_1002E74E0(*(_QWORD *)(a1 + 696), v51); v40 = (unsigned int)(v40 + 1); } while ( v55 != (_DWORD)v40 ); } v35.n128_f32[0] = (float)((float)((float)v53 * 30.0) + 3.0) + 5.0; return ScrollableContentLayer::setContentHeight(*(_QWORD *)(a1 + 832), v35); } else { result = *(_QWORD *)(a1 + 832); if ( result ) { v32.n128_u32[0] = 0; return ScrollableContentLayer::setContentHeight(result, v32); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source