// // InfoLayer::setupCommentsBrowser from 0x1003f0894 to 0x1003f0b5c (712 bytes) // // 3 xrefs: // > InfoLayer::init @ 0x1003ef43c // > InfoLayer::loadPage @ 0x1003f079c // > InfoLayer::loadCommentsFinished @ 0x1003f1794 // // 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 11:04:30 +0000 // __int64 __fastcall InfoLayer::setupCommentsBrowser(__int64 a1, __int64 a2) { __int64 v3; // x19 __int64 v4; // x0 __int64 v5; // x0 int v6; // w9 bool v7; // cc bool v8; // w8 unsigned int *v9; // x9 __int64 v10; // x10 unsigned __int64 v11; // x9 unsigned __int64 v12; // x10 __int64 v13; // x0 int v14; // w9 bool v15; // cc bool v16; // w8 unsigned int *v17; // x9 __int64 v18; // x10 unsigned __int64 v19; // x9 unsigned __int64 v20; // x10 __int64 v21; // x0 __int64 v22; // x0 float v23; // s9 float v24; // s8 unsigned int *v25; // x9 __int64 v26; // x8 _QWORD *v27; // x22 unsigned __int64 v28; // x23 __int64 v29; // x21 __int64 v30; // x0 __int64 v31; // x3 char *v32; // x0 _QWORD *v33; // x0 __int64 v34; // x20 __int64 v36; // [xsp+0h] [xbp-50h] BYREF __int64 v37; // [xsp+8h] [xbp-48h] BYREF v3 = a1; if ( *(_QWORD *)(a1 + 776) ) { v4 = cocos2d::CCDirector::sharedDirector(); v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4); cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *(_QWORD *)(v3 + 776)); a1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v3 + 776) + 536LL))(*(_QWORD *)(v3 + 776)); *(_QWORD *)(v3 + 776) = 0; *(_QWORD *)(v3 + 896) = 0; } if ( *(_QWORD *)(v3 + 712) ) { a1 = GJAccountManager::sharedState(a1); v6 = *(_DWORD *)(*(_QWORD *)(v3 + 712) + 364LL); v7 = *(_DWORD *)(a1 + 352) - *(_DWORD *)(a1 + 356) != v6 || v6 <= 0; v8 = !v7; if ( a2 ) { v9 = *(unsigned int **)(a2 + 56); v10 = *v9; if ( (_DWORD)v10 ) { v11 = *((_QWORD *)v9 + 2); v12 = v11 + 8 * v10 - 8; do { if ( !*(_QWORD *)v11 ) break; *(_BYTE *)(*(_QWORD *)v11 + 434LL) = v8; v11 += 8LL; } while ( v11 <= v12 ); } } } if ( *(_QWORD *)(v3 + 720) ) { v13 = GJAccountManager::sharedState(a1); v14 = *(_DWORD *)(*(_QWORD *)(v3 + 720) + 340LL); v15 = *(_DWORD *)(v13 + 352) - *(_DWORD *)(v13 + 356) != v14 || v14 <= 0; v16 = !v15; if ( a2 ) { v17 = *(unsigned int **)(a2 + 56); v18 = *v17; if ( (_DWORD)v18 ) { v19 = *((_QWORD *)v17 + 2); v20 = v19 + 8 * v18 - 8; do { if ( !*(_QWORD *)v19 ) break; *(_BYTE *)(*(_QWORD *)v19 + 434LL) = v16; v19 += 8LL; } while ( v19 <= v20 ); } } } v21 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v21, &v37); v22 = GameManager::sharedState(); if ( (!GameManager::getGameVariable(v22, "0089") || InfoLayer::parentalCommentsDisabled(v3)) && !*(_QWORD *)(v3 + 704) ) { v24 = 140.0; v23 = -53.0; if ( a2 ) goto LABEL_31; LABEL_40: v32 = nullptr; goto LABEL_41; } v23 = -4.0; v24 = 234.0; if ( !a2 ) goto LABEL_40; LABEL_31: v25 = *(unsigned int **)(a2 + 56); v26 = *v25; if ( (_DWORD)v26 ) { v27 = *((_QWORD **)v25 + 2); v28 = (unsigned __int64)&v27[v26 - 1]; do { v29 = *v27; if ( !*v27 ) break; v36 = sub_1003F2314(*v27); *(_BYTE *)(v29 + 440) = v3 + 936 != (_QWORD)sub_10001C78C(v3 + 928, (int *)&v36); ++v27; } while ( (unsigned __int64)v27 <= v28 ); } v30 = GameManager::sharedState(); if ( GameManager::getGameVariable(v30, "0088") ) v31 = 7; else v31 = 6; v32 = CustomListView::create(a2, 0, 0, v31, v24, 340.0, 0.0); LABEL_41: *(_QWORD *)(v3 + 896) = v32; v33 = GJCommentListLayer::create((__int64)v32, 340.0, v24); *(_QWORD *)(v3 + 776) = v33; (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(v3 + 584) + 456LL))(*(_QWORD *)(v3 + 584), v33); v34 = *(_QWORD *)(v3 + 776); sub_1000262BC( (float *)&v36, (float)(*(float *)&v37 + -340.0) * 0.5, v23 + (float)((float)(*((float *)&v37 + 1) - v24) * 0.5)); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v34 + 184LL))(v34, &v36); return InfoLayer::refreshBulkUI(v3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source