// // InfoLayer::setupCommentsBrowser from 0x53df20 to 0x53e186 (614 bytes) // // 3 xrefs: // > InfoLayer::loadCommentsFinished @ 0x53e1c2 // > InfoLayer::loadPage @ 0x53e9cc // > InfoLayer::init @ 0x540342 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:52:16 +0000 // InfoLayer *__fastcall InfoLayer::setupCommentsBrowser(InfoLayer *this, cocos2d::CCArray *a2) { InfoLayer *v2; // r4 int v4; // r0 cocos2d::CCTouchDispatcher *v5; // r0 int v6; // r2 bool v7; // r2 _DWORD *v8; // r1 int v9; // r3 InfoLayer **v10; // r1 InfoLayer **v11; // r3 InfoLayer *v12; // t1 int v13; // r2 bool v14; // r2 GameManager *WinSize; // r0 GameManager *v16; // r0 int GameVariable; // r0 int *v18; // r1 int v19; // r3 InfoLayer **v20; // r1 InfoLayer **v21; // r3 InfoLayer *v22; // t1 int v23; // r8 float v24; // s16 int *v25; // r2 int v26; // r3 GameManager *v27; // r0 int v28; // r3 cocos2d::CCLayer *v29; // r0 _DWORD *v30; // r7 int v31; // r2 _DWORD *v32; // r10 _DWORD *v33; // r3 _DWORD *v34; // t1 _DWORD *v35; // r0 int v36; // r3 const char *v37; // r1 int v38; // r0 int v39; // r5 float v40; // s15 void (__fastcall *v41)(int, _DWORD *); // r7 float v42; // s16 _DWORD *v44; // [sp+10h] [bp-24h] _DWORD *v45; // [sp+14h] [bp-20h] float v46[2]; // [sp+1Ch] [bp-18h] BYREF _DWORD v47[2]; // [sp+24h] [bp-10h] BYREF v2 = this; if ( *((_DWORD *)this + 144) ) { v4 = cocos2d::CCDirector::sharedDirector(this); v5 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 80))(v4); cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *((cocos2d::CCObject **)v2 + 144)); this = (InfoLayer *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)v2 + 144) + 268))(*((_DWORD *)v2 + 144)); *((_DWORD *)v2 + 144) = 0; *((_DWORD *)v2 + 162) = 0; } if ( *((_DWORD *)v2 + 136) ) { this = (InfoLayer *)GJAccountManager::sharedState(this); v6 = *((_DWORD *)this + 70) - *((_DWORD *)this + 71); v7 = v6 == *(_DWORD *)(*((_DWORD *)v2 + 136) + 296) && v6 > 0; if ( a2 ) { v8 = *((_DWORD **)a2 + 13); if ( *v8 ) { v9 = *v8 + 0x40000000; v10 = (InfoLayer **)v8[3]; v11 = &v10[v9 - 1]; while ( v10 <= v11 ) { v12 = *v10++; this = v12; if ( !v12 ) break; *((_BYTE *)this + 342) = v7; } } } } if ( *((_DWORD *)v2 + 137) ) { this = (InfoLayer *)GJAccountManager::sharedState(this); v13 = *((_DWORD *)this + 70) - *((_DWORD *)this + 71); v14 = v13 == *(_DWORD *)(*((_DWORD *)v2 + 137) + 288) && v13 > 0; if ( a2 ) { v18 = *((int **)a2 + 13); v19 = *v18; if ( *v18 ) { v20 = (InfoLayer **)v18[3]; v21 = &v20[v19] + 0x3FFFFFFF; while ( v20 <= v21 ) { v22 = *v20++; this = v22; if ( !v22 ) break; *((_BYTE *)this + 342) = v14; } } } } cocos2d::CCDirector::sharedDirector(this); WinSize = (GameManager *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v46); v16 = (GameManager *)GameManager::sharedState(WinSize); GameVariable = GameManager::getGameVariable(v16, "0089"); if ( GameVariable && (GameVariable = InfoLayer::parentalCommentsDisabled(v2)) == 0 || *((_DWORD *)v2 + 135) ) { v24 = 234.0; v23 = 1; } else { v23 = 0; v24 = 140.0; } if ( a2 ) { v25 = *((int **)a2 + 13); v26 = *v25; if ( *v25 ) { v30 = (_DWORD *)v25[3]; v31 = (int)v2 + 668; v32 = &v30[v26 - 1]; while ( v30 <= v32 ) { v34 = (_DWORD *)*v30++; v33 = v34; if ( !v34 ) break; v45 = (_DWORD *)v31; v44 = v33; sub_53CAD0(v47, v33, v31, (int)v33); v35 = std::__tree,BulkCommentKey>,std::__map_value_compare,std::__value_type,BulkCommentKey>,std::less>,true>,std::allocator,BulkCommentKey>>>::find>( (int)v2 + 664, v47); v31 = (int)v45; GameVariable = v45 != v35; *((_BYTE *)v44 + 348) = GameVariable; } } v27 = (GameManager *)GameManager::sharedState((GameManager *)GameVariable); if ( GameManager::getGameVariable(v27, "0088") ) v28 = 7; else v28 = 6; v29 = CustomListView::create(a2, 0, SLODWORD(v24), 1135214592, 0, v28, 0); } else { v29 = nullptr; } v36 = *((unsigned __int8 *)v2 + 640); *((_DWORD *)v2 + 162) = v29; if ( v36 ) v37 = "Mod Comments"; else v37 = "Comments"; v38 = GJCommentListLayer::create((int)v29, (int)v37, -12684609, 1135214592, v24, 0); *((_DWORD *)v2 + 144) = v38; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)v2 + 115) + 228))(*((_DWORD *)v2 + 115), v38); v39 = *((_DWORD *)v2 + 144); v40 = -4.0; v41 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v39 + 92); v42 = v46[1] - v24; if ( !v23 ) v40 = -53.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, (float)(v46[0] - 340.0) * 0.5, v40 + (float)(v42 * 0.5)); v41(v39, v47); return InfoLayer::refreshBulkUI(v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source