// // CCScrollLayerExt::ccTouchBegan from 0x10039dc90 to 0x10039de1c (396 bytes) // // 3 xrefs: // > TableView::ccTouchBegan @ 0x10039bfbc // > sub_10039DE1C @ 0x10039de20 // > @ 0x100943b30 // // 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 11:03:45 +0000 // __int64 __fastcall CCScrollLayerExt::ccTouchBegan(_QWORD *a1, float32x2_t *a2) { float32x2_t v2; // x29 float32x2_t v3; // x30 char v4; // w8 __int64 v7; // x0 const void *v8; // x21 void *v9; // x0 __int64 v10; // x0 double *v11; // x0 double v12; // d0 double *v13; // x0 __int64 v15; // [xsp+8h] [xbp-58h] BYREF __int64 v16; // [xsp+10h] [xbp-50h] BYREF float32x2_t v17[9]; // [xsp+18h] [xbp-48h] BYREF if ( (*((_BYTE *)a1 + 501) & 1) == 0 ) { v17[7] = v2; v17[8] = v3; cocos2d::CCTouch::getLocation(a2, (float *)&v15); v7 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 512LL))(a1); if ( v7 ) { v8 = (const void *)v7; while ( 1 ) { v9 = __dynamic_cast( v8, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&off_1008E1400, -2); if ( v9 ) { if ( !(*(unsigned int (__fastcall **)(void *, __int64 *))(*(_QWORD *)v9 + 16LL))(v9, &v15) ) break; } v8 = (const void *)(*(__int64 (__fastcall **)(const void *))(*(_QWORD *)v8 + 512LL))(v8); if ( !v8 ) goto LABEL_8; } } else { LABEL_8: a1[52] = a2; cocos2d::CCTouch::getLocationInView((__int64)a2, v17); v10 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::convertToGL(v10, v17, (float *)&v15); sub_10002630C(a1 + 53, (double *)&v15); sub_10002630C(a1 + 54, v11); cocos2d::CCNode::convertToNodeSpace((__int64)a1, (__int64)(a1 + 53), &v15); sub_10002630C(v17, (double *)&v15); sub_1000264CC(&v15); v12 = sub_10002630C(&v15, &dbl_1009F6E00); v13 = (double *)(*(__int64 (__fastcall **)(_QWORD *, double))(*a1 + 328LL))(a1, v12); sub_100026450(&v16, v13); if ( sub_1000265E4((float *)&v15, (float *)v17) ) { cocos2d::CCNode::stopAllActions(a1[61]); cocos2d::CCTime::gettimeofdayCocos2d((timeval *)(a1 + 55)); *((_BYTE *)a1 + 456) = 1; v4 = *((_BYTE *)a1 + 501) ^ 1; return v4 & 1; } } v4 = 0; return v4 & 1; } v4 = 0; return v4 & 1; }