// // cocos2d::CCMenu::ccTouchBegan from 0xd63e84 to 0xd63fe4 (352 bytes) // // 6 xrefs: // > CCMenuExtra::ccTouchBegan @ 0x6913e8 // > SliderTouchLogic::ccTouchBegan @ 0x6b634c // > CustomSFXRowMenu::ccTouchBegan @ 0xb5d870 // > `non-virtual thunk to'cocos2d::CCMenu::ccTouchBegan @ 0xd63fe8 // > @ 0x962c8 // > @ 0x15242c0 // // 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 13:07:52 +0000 // __int64 __fastcall cocos2d::CCMenu::ccTouchBegan(__int64 a1, cocos2d::CCTouch *this) { unsigned int v4; // w23 __int64 v5; // x19 __int64 result; // x0 const void *v7; // x19 void *v8; // x0 float *v9; // x0 __int64 v10; // [xsp+50h] [xbp+50h] BYREF if ( *(_DWORD *)(a1 + 428) ) return 0; if ( !*(_BYTE *)(a1 + 286) ) return 0; v4 = *(unsigned __int8 *)(a1 + 426); if ( !*(_BYTE *)(a1 + 426) ) return 0; v5 = *(_QWORD *)(a1 + 216); if ( v5 ) { while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v5 + 352LL))(v5) ) { v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 512LL))(v5); if ( !v5 ) goto LABEL_10; } return 0; } LABEL_10: cocos2d::CCTouch::getLocation(&v10, this); v7 = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); if ( !v7 ) { LABEL_14: v9 = cocos2d::CCMenu::itemForTouch((cocos2d::CCMenu *)a1, this); *(_QWORD *)(a1 + 432) = v9; if ( v9 ) { *(_DWORD *)(a1 + 428) = 1; (*(void (__fastcall **)(float *))(*(_QWORD *)v9 + 1016LL))(v9); return v4; } return 0; } while ( 1 ) { v8 = _dynamic_cast( v7, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchClipper, -2); if ( v8 ) { result = (*(unsigned __int8 (__fastcall **)(void *, __int64 *))(*(_QWORD *)v8 + 16LL))(v8, &v10); if ( !(_BYTE)result ) return result; } v7 = (const void *)(*(__int64 (__fastcall **)(const void *))(*(_QWORD *)v7 + 512LL))(v7); if ( !v7 ) goto LABEL_14; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source