// // CustomListView::getListCell from 0x1400aa850 to 0x1400ab4f4 (3236 bytes) // // 2 xrefs: // > @ 0x14054a8c8 // > @ 0x1406c7950 // // 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 // // Hidden C++ exception states: #wind=29 TableViewCell *CustomListView::getListCell(CustomListView *a1, const char *a2) { int v4; // r8d float CellHeight; // xmm0_4 char *v6; // rbx TableViewCell *result; // rax __int64 v8; // rcx cocos2d::CCObject *v9; // rax __int64 v10; // rcx cocos2d::CCObject *v11; // rax void *v12; // [rsp+40h] [rbp+10h] CustomSFXCell *v13; // [rsp+40h] [rbp+10h] CustomSFXCell *v14; // [rsp+40h] [rbp+10h] LevelCell *v15; // [rsp+40h] [rbp+10h] LevelCell *v16; // [rsp+40h] [rbp+10h] CommentCell *v17; // [rsp+40h] [rbp+10h] CommentCell *v18; // [rsp+40h] [rbp+10h] LevelListCell *v19; // [rsp+40h] [rbp+10h] LevelListCell *v20; // [rsp+40h] [rbp+10h] CellHeight = CustomListView::getCellHeight(a1->m_type); switch ( v4 ) { case 2: case 17: v6 = (char *)operator new(0x258u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &GJUserCell::`vftable'; *((_QWORD *)v6 + 40) = &GJUserCell::`vftable'; *((_QWORD *)v6 + 41) = &GJUserCell::`vftable'; *((_QWORD *)v6 + 42) = &GJUserCell::`vftable'; *((_QWORD *)v6 + 43) = &GJUserCell::`vftable'; *((_QWORD *)v6 + 44) = &GJUserCell::`vftable'; *((_QWORD *)v6 + 70) = &GJUserCell::`vftable'; *((_QWORD *)v6 + 71) = &GJUserCell::`vftable'; *((_QWORD *)v6 + 72) = &GJUserCell::`vftable'; *((_QWORD *)v6 + 73) = 0; *((_QWORD *)v6 + 74) = 0; return (TableViewCell *)v6; case 3: v6 = (char *)operator new(0x230u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &StatsCell::`vftable'; *((_QWORD *)v6 + 40) = &StatsCell::`vftable'; *((_QWORD *)v6 + 41) = &StatsCell::`vftable'; *((_QWORD *)v6 + 42) = &StatsCell::`vftable'; *((_QWORD *)v6 + 43) = &StatsCell::`vftable'; *((_QWORD *)v6 + 44) = &StatsCell::`vftable'; return (TableViewCell *)v6; case 4: v6 = (char *)operator new(0x230u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &AchievementCell::`vftable'; *((_QWORD *)v6 + 40) = &AchievementCell::`vftable'; *((_QWORD *)v6 + 41) = &AchievementCell::`vftable'; *((_QWORD *)v6 + 42) = &AchievementCell::`vftable'; *((_QWORD *)v6 + 43) = &AchievementCell::`vftable'; *((_QWORD *)v6 + 44) = &AchievementCell::`vftable'; return (TableViewCell *)v6; case 5: case 6: v15 = (LevelCell *)operator new(0x268u); return LevelCell::LevelCell(v15, a2, a1->m_width, CellHeight); case 7: case 16: v18 = (CommentCell *)operator new(0x260u); return CommentCell::CommentCell(v18, a2, a1->m_width, CellHeight); case 8: case 9: v17 = (CommentCell *)operator new(0x260u); result = CommentCell::CommentCell(v17, a2, a1->m_width, CellHeight); BYTE2(result[1].cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::m_unknown2) = 1; return result; case 12: v6 = (char *)operator new(0x238u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &SongCell::`vftable'; *((_QWORD *)v6 + 40) = &SongCell::`vftable'; *((_QWORD *)v6 + 41) = &SongCell::`vftable'; *((_QWORD *)v6 + 42) = &SongCell::`vftable'; *((_QWORD *)v6 + 43) = &SongCell::`vftable'; *((_QWORD *)v6 + 44) = &SongCell::`vftable'; *((_QWORD *)v6 + 70) = 0; return (TableViewCell *)v6; case 13: v6 = (char *)operator new(0x240u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &GJScoreCell::`vftable'; *((_QWORD *)v6 + 40) = &GJScoreCell::`vftable'; *((_QWORD *)v6 + 41) = &GJScoreCell::`vftable'; *((_QWORD *)v6 + 42) = &GJScoreCell::`vftable'; *((_QWORD *)v6 + 43) = &GJScoreCell::`vftable'; *((_QWORD *)v6 + 44) = &GJScoreCell::`vftable'; *((_QWORD *)v6 + 70) = &GJScoreCell::`vftable'; *((_QWORD *)v6 + 71) = 0; return (TableViewCell *)v6; case 14: v6 = (char *)operator new(0x258u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &MapPackCell::`vftable'; *((_QWORD *)v6 + 40) = &MapPackCell::`vftable'; *((_QWORD *)v6 + 41) = &MapPackCell::`vftable'; *((_QWORD *)v6 + 42) = &MapPackCell::`vftable'; *((_QWORD *)v6 + 43) = &MapPackCell::`vftable'; *((_QWORD *)v6 + 44) = &MapPackCell::`vftable'; v9 = (cocos2d::CCObject *)cocos2d::CCArray::create(v8); *((_QWORD *)v6 + 74) = v9; cocos2d::CCObject::retain(v9); v11 = (cocos2d::CCObject *)cocos2d::CCArray::create(v10); *((_QWORD *)v6 + 73) = v11; cocos2d::CCObject::retain(v11); *((_QWORD *)v6 + 70) = 0; *((_QWORD *)v6 + 71) = 0; *((_QWORD *)v6 + 72) = 0; return (TableViewCell *)v6; case 15: v12 = operator new(0x248u); return (TableViewCell *)sub_1400B4600(v12, a2); case 18: v6 = (char *)operator new(0x260u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &GJRequestCell::`vftable'; *((_QWORD *)v6 + 40) = &GJRequestCell::`vftable'; *((_QWORD *)v6 + 41) = &GJRequestCell::`vftable'; *((_QWORD *)v6 + 42) = &GJRequestCell::`vftable'; *((_QWORD *)v6 + 43) = &GJRequestCell::`vftable'; *((_QWORD *)v6 + 44) = &GJRequestCell::`vftable'; *((_QWORD *)v6 + 70) = &GJRequestCell::`vftable'; *((_QWORD *)v6 + 71) = &GJRequestCell::`vftable'; *((_QWORD *)v6 + 72) = &GJRequestCell::`vftable'; *((_QWORD *)v6 + 73) = 0; *((_QWORD *)v6 + 74) = 0; *((_QWORD *)v6 + 75) = 0; return (TableViewCell *)v6; case 19: v6 = (char *)operator new(0x260u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &GJMessageCell::`vftable'; *((_QWORD *)v6 + 40) = &GJMessageCell::`vftable'; *((_QWORD *)v6 + 41) = &GJMessageCell::`vftable'; *((_QWORD *)v6 + 42) = &GJMessageCell::`vftable'; *((_QWORD *)v6 + 43) = &GJMessageCell::`vftable'; *((_QWORD *)v6 + 44) = &GJMessageCell::`vftable'; *((_QWORD *)v6 + 70) = &GJMessageCell::`vftable'; *((_QWORD *)v6 + 71) = &GJMessageCell::`vftable'; *((_QWORD *)v6 + 72) = &GJMessageCell::`vftable'; *((_QWORD *)v6 + 73) = 0; *((_QWORD *)v6 + 74) = 0; *((_QWORD *)v6 + 75) = 0; return (TableViewCell *)v6; case 20: v6 = (char *)operator new(0x238u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &GJLevelScoreCell::`vftable'; *((_QWORD *)v6 + 40) = &GJLevelScoreCell::`vftable'; *((_QWORD *)v6 + 41) = &GJLevelScoreCell::`vftable'; *((_QWORD *)v6 + 42) = &GJLevelScoreCell::`vftable'; *((_QWORD *)v6 + 43) = &GJLevelScoreCell::`vftable'; *((_QWORD *)v6 + 44) = &GJLevelScoreCell::`vftable'; *((_QWORD *)v6 + 70) = 0; return (TableViewCell *)v6; case 21: v6 = (char *)operator new(0x238u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &ArtistCell::`vftable'; *((_QWORD *)v6 + 40) = &ArtistCell::`vftable'; *((_QWORD *)v6 + 41) = &ArtistCell::`vftable'; *((_QWORD *)v6 + 42) = &ArtistCell::`vftable'; *((_QWORD *)v6 + 43) = &ArtistCell::`vftable'; *((_QWORD *)v6 + 44) = &ArtistCell::`vftable'; *((_QWORD *)v6 + 70) = 0; return (TableViewCell *)v6; case 22: v6 = (char *)operator new(0x238u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &SmartTemplateCell::`vftable'; *((_QWORD *)v6 + 40) = &SmartTemplateCell::`vftable'; *((_QWORD *)v6 + 41) = &SmartTemplateCell::`vftable'; *((_QWORD *)v6 + 42) = &SmartTemplateCell::`vftable'; *((_QWORD *)v6 + 43) = &SmartTemplateCell::`vftable'; *((_QWORD *)v6 + 44) = &SmartTemplateCell::`vftable'; *((_QWORD *)v6 + 70) = 0; return (TableViewCell *)v6; case 23: v13 = (CustomSFXCell *)operator new(0x248u); return CustomSFXCell::CustomSFXCell(v13, a2, a1->m_width, CellHeight); case 24: v14 = (CustomSFXCell *)operator new(0x248u); result = CustomSFXCell::CustomSFXCell(v14, a2, a1->m_width, CellHeight); BYTE1(result[1].m_nTag) = 1; return result; case 25: v6 = (char *)operator new(0x248u); sub_1400B4600(v6, a2); *(_QWORD *)v6 = &CustomMusicCell::`vftable'; *((_QWORD *)v6 + 40) = &CustomMusicCell::`vftable'; *((_QWORD *)v6 + 41) = &CustomMusicCell::`vftable'; *((_QWORD *)v6 + 42) = &CustomMusicCell::`vftable'; *((_QWORD *)v6 + 43) = &CustomMusicCell::`vftable'; *((_QWORD *)v6 + 44) = &CustomMusicCell::`vftable'; *((_QWORD *)v6 + 70) = &CustomMusicCell::`vftable'; *((_QWORD *)v6 + 71) = 0; return (TableViewCell *)v6; case 26: v6 = (char *)operator new(0x238u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &OptionsCell::`vftable'; *((_QWORD *)v6 + 40) = &OptionsCell::`vftable'; *((_QWORD *)v6 + 41) = &OptionsCell::`vftable'; *((_QWORD *)v6 + 42) = &OptionsCell::`vftable'; *((_QWORD *)v6 + 43) = &OptionsCell::`vftable'; *((_QWORD *)v6 + 44) = &OptionsCell::`vftable'; *((_QWORD *)v6 + 70) = 0; cocos2d::CCLayer::init((cocos2d::CCLayer *)v6); return (TableViewCell *)v6; case 27: case 29: v19 = (LevelListCell *)operator new(0x240u); return LevelListCell::LevelListCell(v19, a2, a1->m_width, CellHeight); case 28: case 31: v16 = (LevelCell *)operator new(0x268u); result = LevelCell::LevelCell(v16, a2, a1->m_width, CellHeight); LOBYTE(result[1].m_uOrderOfArrival) = 1; return result; case 30: v20 = (LevelListCell *)operator new(0x240u); result = LevelListCell::LevelListCell(v20, a2, a1->m_width, CellHeight); LOBYTE(result[1].m_uID) = 1; return result; case 33: v6 = (char *)operator new(0x238u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &GJLocalLevelScoreCell::`vftable'; *((_QWORD *)v6 + 40) = &GJLocalLevelScoreCell::`vftable'; *((_QWORD *)v6 + 41) = &GJLocalLevelScoreCell::`vftable'; *((_QWORD *)v6 + 42) = &GJLocalLevelScoreCell::`vftable'; *((_QWORD *)v6 + 43) = &GJLocalLevelScoreCell::`vftable'; *((_QWORD *)v6 + 44) = &GJLocalLevelScoreCell::`vftable'; *((_QWORD *)v6 + 70) = 0; return (TableViewCell *)v6; case 34: v6 = (char *)operator new(0x238u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, CellHeight); *(_QWORD *)v6 = &URLCell::`vftable'; *((_QWORD *)v6 + 40) = &URLCell::`vftable'; *((_QWORD *)v6 + 41) = &URLCell::`vftable'; *((_QWORD *)v6 + 42) = &URLCell::`vftable'; *((_QWORD *)v6 + 43) = &URLCell::`vftable'; *((_QWORD *)v6 + 44) = &URLCell::`vftable'; *((_QWORD *)v6 + 70) = 0; return (TableViewCell *)v6; default: if ( v4 == 11 ) { v6 = (char *)operator new(0x258u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, 80.0); *(_QWORD *)v6 = &GameCell::`vftable'; *((_QWORD *)v6 + 40) = &GameCell::`vftable'; *((_QWORD *)v6 + 41) = &GameCell::`vftable'; *((_QWORD *)v6 + 42) = &GameCell::`vftable'; *((_QWORD *)v6 + 43) = &GameCell::`vftable'; *((_QWORD *)v6 + 44) = &GameCell::`vftable'; *(_OWORD *)(v6 + 568) = 0; *((_QWORD *)v6 + 73) = 0; *((_QWORD *)v6 + 74) = 15; v6[568] = 0; *((_QWORD *)v6 + 70) = 0; } else { v6 = (char *)operator new(0x238u); TableViewCell::TableViewCell((TableViewCell *)v6, a2, a1->m_width, 40.0); *(_QWORD *)v6 = &ListCell::`vftable'; *((_QWORD *)v6 + 40) = &ListCell::`vftable'; *((_QWORD *)v6 + 41) = &ListCell::`vftable'; *((_QWORD *)v6 + 42) = &ListCell::`vftable'; *((_QWORD *)v6 + 43) = &ListCell::`vftable'; *((_QWORD *)v6 + 44) = &ListCell::`vftable'; } return (TableViewCell *)v6; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source