// // ProfilePage::toggleMainPageVisibility from 0x4c8112 to 0x4c81bc (170 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void ProfilePage::toggleMainPageVisibility(ProfilePage *a1, bool a2) { cocos2d::CCArray *m_arrayWithUsernameLabel; // r3 _BOOL4 v4; // r5 cocos2d::CCArray *m_buttons; // r3 cocos2d::ccArray *data; // r2 cocos2d::CCObject **arr; // r7 cocos2d::CCObject **v8; // r4 int v9; // r0 int v10; // t1 cocos2d::ccArray *v11; // r2 cocos2d::CCObject **v12; // r7 cocos2d::CCObject **v13; // r4 GJCommentListLayer *m_list; // r0 int v15; // r0 int v16; // t1 m_arrayWithUsernameLabel = a1->m_arrayWithUsernameLabel; v4 = a2; if ( m_arrayWithUsernameLabel ) { data = m_arrayWithUsernameLabel->data; if ( data->num ) { arr = data->arr; v8 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v8 ) { v10 = (int)*arr++; v9 = v10; if ( !v10 ) break; (*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v9 + 164))(v9, v4); } } } m_buttons = a1->m_buttons; if ( m_buttons ) { v11 = m_buttons->data; if ( v11->num ) { v12 = v11->arr; v13 = &v12[v11->num] + 0x3FFFFFFF; while ( v12 <= v13 ) { v16 = (int)*v12++; v15 = v16; if ( !v16 ) break; (*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v15 + 164))(v15, v4); } } } m_list = a1->m_list; if ( m_list ) m_list->setVisible(m_list, v4); if ( v4 ) { ProfilePage::updatePageArrows(a1); } else { a1->m_rightArrow->setVisible(a1->m_rightArrow, 0); a1->m_leftArrow->setVisible(a1->m_leftArrow, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source