//
// TableView::cellForTouch from 0x3c9734 to 0x3c9864 (304 bytes)
//
// 1 xrefs:
// > TableView::touchFinish @ 0x3c9e4a
//
// 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:36 +0000
//
const cocos2d::CCPoint *__fastcall TableView::cellForTouch(TableView *this, cocos2d::CCTouch *a2)
{
cocos2d::CCDirector *LocationInView; // r0
const cocos2d::CCPoint *v4; // r0
cocos2d::CCArray *v5; // r0
unsigned int i; // r5
const cocos2d::CCPoint *v7; // r0
const cocos2d::CCPoint *v8; // r4
float v9; // s17
float v10; // s16
float v11; // s17
float v12; // s16
float v13; // s18
float v14; // s15
int v15; // r0
float v17; // [sp+Ch] [bp-18h]
_BYTE v18[8]; // [sp+14h] [bp-10h] BYREF
_BYTE v19[8]; // [sp+1Ch] [bp-8h] BYREF
_BYTE v20[16]; // [sp+24h] [bp+0h] BYREF
LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)v18);
v4 = (const cocos2d::CCPoint *)cocos2d::CCDirector::sharedDirector(LocationInView);
cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)v20, v4);
cocos2d::CCPoint::operator=(v18, v20);
v5 = *((cocos2d::CCArray **)this + 111);
if ( v5 && cocos2d::CCArray::count(v5) )
{
for ( i = 0; i < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 111)); ++i )
{
v7 = (const cocos2d::CCPoint *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 111), i);
v8 = v7;
if ( v7 )
{
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v19, v7);
v9 = *(float *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v8 + 96))(v8);
v10 = *(float *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v8 + 164))(v8);
v11 = v9 - (float)(v10 * *(float *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v8 + 152))(v8));
v12 = *(float *)((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v8 + 96))(v8) + 4);
v13 = *(float *)((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v8 + 164))(v8) + 4);
v14 = *(float *)((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v8 + 152))(v8) + 4);
v17 = *(float *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v8 + 164))(v8);
v15 = (*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v8 + 164))(v8);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v20, v11, v12 - (float)(v13 * v14), v17, *(float *)(v15 + 4));
cocos2d::CCPoint::operator=(v20, &unk_D2A5D4);
if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v20, (const cocos2d::CCPoint *)v19) )
return v8;
}
}
}
return nullptr;
}