// // TableView::checkBoundaryOfContent from 0x697c70 to 0x6983a8 (1848 bytes) // // 5 xrefs: // > @ 0x9dd68 // > TableView::ccTouchBegan @ 0x698474 // > TableView::ccTouchEnded @ 0x6984cc // > TableView::ccTouchCancelled @ 0x698538 // > @ 0x15445c8 // // 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 12:50:38 +0000 // __int64 __fastcall TableView::checkBoundaryOfContent(cocos2d::CCArray **this, float a2) { int v3; // w0 bool v4; // cc int v5; // w21 cocos2d::CCArray *v6; // x0 __int64 v7; // x22 TableViewCell *v8; // x23 int v10; // w21 const cocos2d::CCPoint *v11; // x0 float v12; // s8 cocos2d::CCObject *v13; // x22 float v14; // s8 __int64 v15; // x0 cocos2d::CCObject *v16; // x23 void (__fastcall *v17)(cocos2d::CCObject *, _QWORD *); // x26 void (__fastcall *v18)(cocos2d::CCObject *, _QWORD *); // x26 float *v19; // x0 void (__fastcall *v20)(cocos2d::CCObject *, _QWORD *); // x25 cocos2d::CCArray *v21; // x0 __int64 v22; // x0 __int64 v23; // x0 unsigned int v24; // w26 float v25; // s8 cocos2d::CCObject *v26; // x22 int v27; // w0 float v28; // s8 __int64 v29; // x0 cocos2d::CCObject *v30; // x21 void (__fastcall *v31)(cocos2d::CCObject *, _QWORD *); // x24 void (__fastcall *v32)(cocos2d::CCObject *, _QWORD *); // x24 float *v33; // x0 void (__fastcall *v34)(cocos2d::CCObject *, _QWORD *); // x24 __int64 v35; // x0 __int64 v36; // x0 __int64 v37; // x0 _BYTE v38[4]; // [xsp+60h] [xbp+60h] BYREF float v39; // [xsp+64h] [xbp+64h] _QWORD v40[7]; // [xsp+68h] [xbp+68h] BYREF __int64 v41; // [xsp+A0h] [xbp+A0h] _QWORD v42[7]; // [xsp+A8h] [xbp+A8h] BYREF __int64 v43; // [xsp+E0h] [xbp+E0h] v3 = cocos2d::CCArray::count(*(this + 74)); v4 = v3 <= 0; v5 = v3; v6 = *(this + 74); if ( v4 || !v6 ) { v10 = (**(__int64 (__fastcall ***)(_QWORD, _QWORD, cocos2d::CCArray **))*(this + 78))(*(this + 78), 0, this); if ( v10 ) { v11 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 61) + 192LL))(*(this + 61)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v11); v12 = v39; if ( (float)(v12 - *(float *)((*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 61) + 328LL))(*(this + 61)) + 4)) < 0.0 ) { v25 = v39; if ( v25 <= *(float *)((*((__int64 (__fastcall **)(cocos2d::CCArray **))*this + 41))(this) + 4) ) { v26 = (cocos2d::CCObject *)operator new(0x40u); cocos2d::CCObject::CCObject(v26); *((_DWORD *)v26 + 14) = 0; *((_DWORD *)v26 + 15) = 0; *(_QWORD *)v26 = &off_1418970; cocos2d::CCObject::autorelease(v26); v27 = *((_DWORD *)v26 + 14); if ( v10 > v27 && (v27 & 0x80000000) == 0 && !TableView::isDuplicateInVisibleCellArray((__int64)this, (__int64)v26) ) { v28 = (*(float (__fastcall **)(_QWORD, cocos2d::CCObject *, cocos2d::CCArray **))(*(_QWORD *)*(this + 77) + 40LL))( *(this + 77), v26, this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, (const cocos2d::CCPoint *)(this + 70)); if ( (unsigned int)TableView::checkBoundaryOfCell((TableView *)this, (cocos2d::CCPoint *)v40, v28) != 1 ) { v29 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::CCObject *, cocos2d::CCArray **))(*(_QWORD *)*(this + 78) + 24LL))( *(this + 78), v26, this); v30 = (cocos2d::CCObject *)v29; if ( v29 ) { v31 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v29 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, 0.0, 1.0); v31(v30, v42); v32 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v30 + 320LL); v33 = (float *)(*((__int64 (__fastcall **)(cocos2d::CCArray **))*this + 41))(this); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v42, *v33, v28); v32(v30, v42); v34 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v30 + 184LL); v35 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 61) + 328LL))(*(this + 61)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, 0.0, *(float *)(v35 + 4) - v28); v34(v30, v42); *((_DWORD *)v30 + 108) = *((_DWORD *)v26 + 2); *((_DWORD *)v30 + 109) = *((_DWORD *)v26 + 3); *((_DWORD *)v30 + 110) = *((_DWORD *)v26 + 4); *((_DWORD *)v30 + 111) = *((_DWORD *)v26 + 5); *((_DWORD *)v30 + 112) = *((_DWORD *)v26 + 6); *((_DWORD *)v30 + 113) = *((_DWORD *)v26 + 7); *((_DWORD *)v30 + 114) = *((_DWORD *)v26 + 8); *((_DWORD *)v30 + 115) = *((_DWORD *)v26 + 9); *((_DWORD *)v30 + 116) = *((_DWORD *)v26 + 10); *((_DWORD *)v30 + 117) = *((_DWORD *)v26 + 11); *((_DWORD *)v30 + 118) = *((_DWORD *)v26 + 12); *((_DWORD *)v30 + 119) = *((_DWORD *)v26 + 13); *((_DWORD *)v30 + 120) = *((_DWORD *)v26 + 14); *((_DWORD *)v30 + 121) = *((_DWORD *)v26 + 15); cocos2d::CCArray::insertObject(*(this + 74), v30, 0); if ( !(unsigned __int8)TableView::isDuplicateIndexPath((__int64)this, (__int64)v26) ) cocos2d::CCArray::insertObject(*(this + 76), v26, 0); v36 = (__int64)*(this + 77); if ( v36 ) (*(void (__fastcall **)(__int64, cocos2d::CCObject *, cocos2d::CCObject *, cocos2d::CCArray **))(*(_QWORD *)v36 + 16LL))( v36, v26, v30, this); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 61) + 456LL))( *(this + 61), v30); v37 = (__int64)*(this + 77); if ( v37 ) (*(void (__fastcall **)(__int64, cocos2d::CCObject *, cocos2d::CCObject *, cocos2d::CCArray **))(*(_QWORD *)v37 + 24LL))( v37, v26, v30, this); } } } } } else { v13 = (cocos2d::CCObject *)operator new(0x40u); cocos2d::CCObject::CCObject(v13); *((_DWORD *)v13 + 14) = v10 - 1; *((_DWORD *)v13 + 15) = 0; *(_QWORD *)v13 = &off_1418970; cocos2d::CCObject::autorelease(v13); if ( v10 > *((_DWORD *)v13 + 14) && !TableView::isDuplicateInVisibleCellArray((__int64)this, (__int64)v13) ) { v14 = (*(float (__fastcall **)(_QWORD, cocos2d::CCObject *, cocos2d::CCArray **))(*(_QWORD *)*(this + 77) + 40LL))( *(this + 77), v13, this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, (const cocos2d::CCPoint *)(this + 70)); if ( (unsigned int)TableView::checkBoundaryOfCell((TableView *)this, (cocos2d::CCPoint *)v40, v14) != 1 ) { v15 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::CCObject *, cocos2d::CCArray **))(*(_QWORD *)*(this + 78) + 24LL))( *(this + 78), v13, this); v16 = (cocos2d::CCObject *)v15; if ( v15 ) { v17 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v15 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, 0.0, 1.0); v17(v16, v42); v18 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v16 + 320LL); v19 = (float *)(*((__int64 (__fastcall **)(cocos2d::CCArray **))*this + 41))(this); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v42, *v19 * 0.5, v14); v18(v16, v42); v20 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v16 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, (const cocos2d::CCPoint *)(this + 70)); v20(v16, v42); *((_DWORD *)v16 + 108) = *((_DWORD *)v13 + 2); *((_DWORD *)v16 + 109) = *((_DWORD *)v13 + 3); *((_DWORD *)v16 + 110) = *((_DWORD *)v13 + 4); *((_DWORD *)v16 + 111) = *((_DWORD *)v13 + 5); *((_DWORD *)v16 + 112) = *((_DWORD *)v13 + 6); *((_DWORD *)v16 + 113) = *((_DWORD *)v13 + 7); *((_DWORD *)v16 + 114) = *((_DWORD *)v13 + 8); *((_DWORD *)v16 + 115) = *((_DWORD *)v13 + 9); *((_DWORD *)v16 + 116) = *((_DWORD *)v13 + 10); *((_DWORD *)v16 + 117) = *((_DWORD *)v13 + 11); *((_DWORD *)v16 + 118) = *((_DWORD *)v13 + 12); *((_DWORD *)v16 + 119) = *((_DWORD *)v13 + 13); *((_DWORD *)v16 + 120) = *((_DWORD *)v13 + 14); *((_DWORD *)v16 + 121) = *((_DWORD *)v13 + 15); v21 = *(this + 74); if ( v10 == 1 ) { cocos2d::CCArray::insertObject(v21, v16, 0); if ( !(unsigned __int8)TableView::isDuplicateIndexPath((__int64)this, (__int64)v13) ) cocos2d::CCArray::insertObject(*(this + 76), v13, 0); } else { cocos2d::CCArray::addObject(v21, v16); if ( !(unsigned __int8)TableView::isDuplicateIndexPath((__int64)this, (__int64)v13) ) cocos2d::CCArray::addObject(*(this + 76), v13); } v22 = (__int64)*(this + 77); if ( v22 ) (*(void (__fastcall **)(__int64, cocos2d::CCObject *, cocos2d::CCObject *, cocos2d::CCArray **))(*(_QWORD *)v22 + 16LL))( v22, v13, v16, this); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 61) + 456LL))(*(this + 61), v16); v23 = (__int64)*(this + 77); if ( v23 ) (*(void (__fastcall **)(__int64, cocos2d::CCObject *, cocos2d::CCObject *, cocos2d::CCArray **))(*(_QWORD *)v23 + 24LL))( v23, v13, v16, this); } } } } } } else { v7 = cocos2d::CCArray::objectAtIndex(v6, 0); v8 = (TableViewCell *)cocos2d::CCArray::objectAtIndex(*(this + 74), v5 - 1); if ( v5 == 1 ) { v24 = (**(__int64 (__fastcall ***)(_QWORD, _QWORD, cocos2d::CCArray **))*(this + 78))( *(this + 78), *(unsigned int *)(v7 + 484), this) - 1; cocos2d::CCObject::CCObject((cocos2d::CCObject *)v40); v41 = 0; v40[0] = &off_1418970; cocos2d::CCObject::CCObject((cocos2d::CCObject *)v42); v43 = v24; v42[0] = &off_1418970; if ( *(_QWORD *)(v7 + 480) == v41 ) { TableView::checkLastCell((TableView *)this, v8); } else if ( *((_QWORD *)v8 + 60) == v43 ) { TableView::checkFirstCell((TableView *)this, (TableViewCell *)v7); } v42[0] = &off_1418970; cocos2d::CCObject::~CCObject((cocos2d::CCObject *)v42); v40[0] = &off_1418970; cocos2d::CCObject::~CCObject((cocos2d::CCObject *)v40); } else { TableView::checkFirstCell((TableView *)this, (TableViewCell *)v7); TableView::checkLastCell((TableView *)this, v8); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source