// // TableView::checkLastCell from 0x3ca254 to 0x3ca570 (796 bytes) // // 2 xrefs: // > TableView::checkBoundaryOfContent @ 0x3ca624 // > TableView::checkBoundaryOfContent @ 0x3ca6ee // // 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:46:37 +0000 // float *__fastcall TableView::checkLastCell(cocos2d::CCArray **this, CCIndexPath **a2) { float *result; // r0 const cocos2d::CCPoint *v5; // r0 float v6; // s16 float v7; // s15 int v8; // r2 cocos2d::CCObject *v9; // r7 float v10; // s17 cocos2d::CCObject *v11; // r5 float v12; // s15 int v13; // r0 float v14; // s16 int *v15; // r10 int v16; // r0 int v17; // r1 float v18; // r11 int v19; // r0 float *v20; // r0 _BYTE *v21; // r0 void (__fastcall *v22)(cocos2d::CCObject *, _BYTE *); // r8 void (__fastcall *v23)(cocos2d::CCObject *, _BYTE *); // r8 float *v24; // r0 int v25; // r0 const cocos2d::CCSize *v26; // r0 void (__fastcall *v27)(cocos2d::CCPoint *, _BYTE *); // r11 int *v28; // r11 int v29; // r0 signed int v30; // r9 float v31; // s18 int v32; // r0 cocos2d::CCPoint *v33; // [sp+0h] [bp-44h] float v34; // [sp+Ch] [bp-38h] _BYTE v35[4]; // [sp+14h] [bp-30h] BYREF float v36; // [sp+18h] [bp-2Ch] _BYTE v37[4]; // [sp+1Ch] [bp-28h] BYREF float v38; // [sp+20h] [bp-24h] float v39[2]; // [sp+24h] [bp-20h] BYREF _BYTE v40[4]; // [sp+2Ch] [bp-18h] BYREF float v41; // [sp+30h] [bp-14h] _BYTE v42[8]; // [sp+34h] [bp-10h] BYREF result = (float *)TableView::checkBoundaryOfCell((TableView *)this, (TableViewCell *)a2); if ( result != (float *)((char *)&dword_0 + 1) ) { v5 = (const cocos2d::CCPoint *)(*((int (__fastcall **)(CCIndexPath **))*a2 + 24))(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, v5); v6 = v36; v7 = *(float *)((*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 91) + 164))(*(this + 91)) + 4); result = (float *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 91) + 96))(*(this + 91)); if ( (float)((float)(v6 - v7) + result[1]) > 0.0 ) { v9 = CCIndexPath::CCIndexPathWithSectionRow(a2[95], (int)a2[94] + 1, v8); result = (float *)(**(int (__fastcall ***)(_DWORD, CCIndexPath *, cocos2d::CCArray **))*(this + 115))( *(this + 115), a2[95], this); if ( *((_DWORD *)v9 + 13) < (int)result ) { result = (float *)TableView::isDuplicateInVisibleCellArray((int)this, (int)v9); if ( !result ) { v10 = COERCE_FLOAT( (*(int (__fastcall **)(_DWORD, cocos2d::CCObject *, cocos2d::CCArray **))(*(_DWORD *)*(this + 114) + 20))( *(this + 114), v9, this)); v11 = (cocos2d::CCObject *)(*(int (__fastcall **)(_DWORD, cocos2d::CCObject *, cocos2d::CCArray **))(*(_DWORD *)*(this + 115) + 12))( *(this + 115), v9, this); v12 = *(float *)(*((int (__fastcall **)(cocos2d::CCArray **))*this + 41))(this); v13 = (*((int (__fastcall **)(CCIndexPath **))*a2 + 24))(a2); result = (float *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v37, -(float)(v12 * 0.5), *(float *)(v13 + 4) - v10); v14 = v38; if ( v38 < 0.0 ) { result = (float *)TableView::isDuplicateIndexPath((int)this, (int)v9); if ( !result ) { v26 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 91) + 164))(*(this + 91)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v39, v26); v33 = *(this + 91); v27 = *(void (__fastcall **)(cocos2d::CCPoint *, _BYTE *))(*(_DWORD *)v33 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v42, v39[0], v39[1] - v14); v27(v33, v42); v28 = nullptr; v29 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 91) + 164))(*(this + 91)); cocos2d::CCSize::operator=(v39, v29); result = (float *)cocos2d::CCArray::count(*(this + 111)); v30 = (signed int)result - 1; while ( v30 >= 0 ) { v15 = (int *)cocos2d::CCArray::objectAtIndex(*(this + 111), v30); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40); v16 = cocos2d::CCArray::count(*(this + 111)); v17 = *v15; if ( v30 == v16 - 1 ) { v18 = *(float *)(*(int (__fastcall **)(int *))(v17 + 96))(v15); v19 = (*((int (__fastcall **)(CCIndexPath **))*a2 + 24))(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, v18, *(float *)(v19 + 4) - v14); cocos2d::CCPoint::operator=(v40, v42); v20 = (float *)(*(int (__fastcall **)(int *))(*v15 + 96))(v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, *v20, v41 - v10); v21 = v37; } else { v34 = *(float *)(*(int (__fastcall **)(int *))(v17 + 96))(v15); v31 = *(float *)((*(int (__fastcall **)(int *))(*v28 + 96))(v28) + 4); v32 = (*(int (__fastcall **)(int *))(*v28 + 164))(v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, v34, v31 + *(float *)(v32 + 4)); v21 = v40; } --v30; cocos2d::CCPoint::operator=(v21, v42); v28 = v15; result = (float *)(*(int (__fastcall **)(int *, _BYTE *))(*v15 + 92))(v15, v40); } } } if ( v11 ) { v22 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v11 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, 0.0, 1.0); v22(v11, v42); v23 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v11 + 160); v24 = (float *)(*((int (__fastcall **)(cocos2d::CCArray **))*this + 41))(this); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v42, *v24, v10); v23(v11, v42); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v11 + 92))(v11, v37); CCIndexPath::operator=((_DWORD *)v11 + 81, v9); cocos2d::CCArray::addObject(*(this + 111), v11); if ( !TableView::isDuplicateIndexPath((int)this, (int)v9) ) cocos2d::CCArray::addObject(*(this + 113), v9); v25 = (int)*(this + 114); if ( v25 ) (*(void (__fastcall **)(int, cocos2d::CCObject *, cocos2d::CCObject *, cocos2d::CCArray **))(*(_DWORD *)v25 + 8))( v25, v9, v11, this); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 91) + 228))(*(this + 91), v11); result = (float *)*(this + 114); if ( result ) return (float *)(*(int (__fastcall **)(float *, cocos2d::CCObject *, cocos2d::CCObject *, cocos2d::CCArray **))(*(_DWORD *)result + 12))( result, v9, v11, this); } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source