// // TableView::checkBoundaryOfContent from 0x3ca574 to 0x3ca92c (952 bytes) // // 0 xrefs: // // 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 // void __fastcall TableView::checkBoundaryOfContent(cocos2d::CCArray **this, float a2) { int v3; // r7 cocos2d::CCArray *v4; // r0 int v5; // r5 int v6; // r6 int v7; // r7 int v8; // r7 int v9; // r7 const cocos2d::CCPoint *v10; // r0 float v11; // s16 int v12; // r2 cocos2d::CCObject *v13; // r6 float v14; // s16 int v15; // r2 cocos2d::CCObject *v16; // r0 int v17; // r3 float v18; // r9 int v19; // r0 cocos2d::CCObject *v20; // r5 float *v21; // r0 void (__fastcall *v22)(cocos2d::CCObject *, _DWORD *); // r9 cocos2d::CCArray *v23; // r0 int isDuplicateIndexPath; // r2 cocos2d::CCArray *v25; // r0 cocos2d::CCObject *v26; // r1 float v27; // s16 int v28; // r0 void (__fastcall *v29)(cocos2d::CCObject *, _DWORD *); // r9 void (__fastcall *v30)(cocos2d::CCObject *, _DWORD *); // r9 float *v31; // r0 void (__fastcall *v32)(cocos2d::CCObject *, _DWORD *); // r9 int v33; // r0 int v34; // r0 int v35; // r0 void (__fastcall *v36)(cocos2d::CCObject *, _DWORD *); // [sp+4h] [bp-90h] void (__fastcall *v37)(cocos2d::CCObject *, _DWORD *); // [sp+4h] [bp-90h] _BYTE v38[4]; // [sp+Ch] [bp-88h] BYREF float v39; // [sp+10h] [bp-84h] _DWORD v40[13]; // [sp+14h] [bp-80h] BYREF int v41; // [sp+48h] [bp-4Ch] int v42; // [sp+4Ch] [bp-48h] _DWORD v43[15]; // [sp+50h] [bp-44h] BYREF v3 = cocos2d::CCArray::count(*(this + 111)); v4 = *(this + 111); if ( v4 && v3 > 0 ) { v5 = cocos2d::CCArray::objectAtIndex(v4, 0); v6 = cocos2d::CCArray::objectAtIndex(*(this + 111), v3 - 1); if ( v3 == 1 ) { v7 = (**(int (__fastcall ***)(_DWORD, _DWORD, cocos2d::CCArray **))*(this + 115))( *(this + 115), *(_DWORD *)(v5 + 380), this); cocos2d::CCObject::CCObject((cocos2d::CCObject *)v40); v8 = v7 - 1; v40[0] = &off_C85EE0; v41 = 0; v42 = 0; cocos2d::CCObject::CCObject((cocos2d::CCObject *)v43); v43[13] = v8; v43[0] = &off_C85EE0; v43[14] = 0; if ( *(_DWORD *)(v5 + 380) == v42 && *(_DWORD *)(v5 + 376) == v41 ) { TableView::checkLastCell(this, (CCIndexPath **)v6); } else if ( !*(_DWORD *)(v6 + 380) && *(_DWORD *)(v6 + 376) == v8 ) { TableView::checkFirstCell(this, (CCIndexPath **)v5); } CCIndexPath::~CCIndexPath((CCIndexPath *)v43); CCIndexPath::~CCIndexPath((CCIndexPath *)v40); } else { TableView::checkFirstCell(this, (CCIndexPath **)v5); TableView::checkLastCell(this, (CCIndexPath **)v6); } return; } v9 = (**(int (__fastcall ***)(_DWORD, _DWORD, cocos2d::CCArray **))*(this + 115))(*(this + 115), 0, this); if ( !v9 ) return; v10 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 91) + 96))(*(this + 91)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v10); v11 = v39; if ( (float)(v11 - *(float *)((*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 91) + 164))(*(this + 91)) + 4)) < 0.0 ) { v14 = v39; if ( v14 > *(float *)((*((int (__fastcall **)(cocos2d::CCArray **))*this + 41))(this) + 4) ) return; v16 = CCIndexPath::CCIndexPathWithSectionRow(nullptr, 0, v15); v17 = *((_DWORD *)v16 + 13); v13 = v16; if ( v17 < 0 ) return; if ( v17 >= v9 ) return; if ( TableView::isDuplicateInVisibleCellArray((int)this, (int)v16) ) return; v27 = COERCE_FLOAT( (*(int (__fastcall **)(_DWORD, cocos2d::CCObject *, cocos2d::CCArray **))(*(_DWORD *)*(this + 114) + 20))( *(this + 114), v13, this)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, (const cocos2d::CCPoint *)(this + 105)); if ( TableView::checkBoundaryOfCell((TableView *)this, (cocos2d::CCPoint *)v40, v27) == 1 ) return; v28 = (*(int (__fastcall **)(_DWORD, cocos2d::CCObject *, cocos2d::CCArray **))(*(_DWORD *)*(this + 115) + 12))( *(this + 115), v13, this); v20 = (cocos2d::CCObject *)v28; if ( !v28 ) return; v29 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v28 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 0.0, 1.0); v29(v20, v43); v30 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v20 + 160); v31 = (float *)(*((int (__fastcall **)(cocos2d::CCArray **))*this + 41))(this); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v43, *v31, v27); v30(v20, v43); v32 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v20 + 92); v33 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 91) + 164))(*(this + 91)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 0.0, *(float *)(v33 + 4) - v27); v32(v20, v43); CCIndexPath::operator=((_DWORD *)v20 + 81, v13); cocos2d::CCArray::insertObject(*(this + 111), v20, 0); isDuplicateIndexPath = TableView::isDuplicateIndexPath((int)this, (int)v13); if ( isDuplicateIndexPath ) goto LABEL_35; v25 = *(this + 113); v26 = v13; LABEL_34: cocos2d::CCArray::insertObject(v25, v26, 0); goto LABEL_35; } v13 = CCIndexPath::CCIndexPathWithSectionRow(nullptr, v9 - 1, v12); if ( *((_DWORD *)v13 + 13) >= v9 ) return; if ( TableView::isDuplicateInVisibleCellArray((int)this, (int)v13) ) return; v18 = COERCE_FLOAT( (*(int (__fastcall **)(_DWORD, cocos2d::CCObject *, cocos2d::CCArray **))(*(_DWORD *)*(this + 114) + 20))( *(this + 114), v13, this)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, (const cocos2d::CCPoint *)(this + 105)); if ( TableView::checkBoundaryOfCell((TableView *)this, (cocos2d::CCPoint *)v40, v18) == 1 ) return; v19 = (*(int (__fastcall **)(_DWORD, cocos2d::CCObject *, cocos2d::CCArray **))(*(_DWORD *)*(this + 115) + 12))( *(this + 115), v13, this); v20 = (cocos2d::CCObject *)v19; if ( !v19 ) return; v36 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v19 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 0.0, 1.0); v36(v20, v43); v37 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v20 + 160); v21 = (float *)(*((int (__fastcall **)(cocos2d::CCArray **))*this + 41))(this); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v43, *v21 * 0.5, v18); v37(v20, v43); v22 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v20 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, (const cocos2d::CCPoint *)(this + 105)); v22(v20, v43); CCIndexPath::operator=((_DWORD *)v20 + 81, v13); v23 = *(this + 111); if ( v9 == 1 ) cocos2d::CCArray::insertObject(v23, v20, 0); else cocos2d::CCArray::addObject(v23, v20); isDuplicateIndexPath = TableView::isDuplicateIndexPath((int)this, (int)v13); if ( isDuplicateIndexPath ) goto LABEL_35; v25 = *(this + 113); v26 = v13; if ( v9 == 1 ) goto LABEL_34; cocos2d::CCArray::addObject(v25, v13); LABEL_35: v34 = (int)*(this + 114); if ( v34 ) (*(void (__fastcall **)(int, cocos2d::CCObject *, cocos2d::CCObject *, cocos2d::CCArray **, void *))(*(_DWORD *)v34 + 8))( v34, v13, v20, this, &_stack_chk_guard); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(*(_DWORD *)*(this + 91) + 228))( *(this + 91), v20, isDuplicateIndexPath); v35 = (int)*(this + 114); if ( v35 ) (*(void (__fastcall **)(int, cocos2d::CCObject *, cocos2d::CCObject *, cocos2d::CCArray **))(*(_DWORD *)v35 + 12))( v35, v13, v20, this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source