// // DpadMenu::ccTouchBegan from 0xbddc50 to 0xbddedc (652 bytes) // // 3 xrefs: // > `non-virtual thunk to'DpadMenu::ccTouchBegan @ 0xbddee4 // > @ 0x81b50 // > @ 0x14e2db0 // // 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:03:44 +0000 // __int64 __fastcall DpadMenu::ccTouchBegan(__int64 a1, cocos2d::CCTouch *a2) { unsigned int v4; // w20 __int64 v6; // x19 unsigned __int8 v7; // w0 const void *i; // x19 void *v9; // x0 unsigned __int8 v10; // w0 long double v11; // q0 float v12; // s0 float v13; // s4 float v14; // s1 float v15; // s0 float v16; // s1 float v17; // s5 float v18; // s3 int v19; // w0 __int64 v20; // x0 __int64 v21; // x19 unsigned __int8 v22; // w0 __int64 v23; // [xsp+60h] [xbp+60h] BYREF __int64 v24; // [xsp+68h] [xbp+68h] BYREF __int64 v25; // [xsp+70h] [xbp+70h] BYREF if ( *(_DWORD *)(a1 + 428) || !*(_BYTE *)(a1 + 286) || !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1264LL))(a1) ) { return 0; } v6 = *(_QWORD *)(a1 + 216); if ( !v6 ) { LABEL_9: cocos2d::CCTouch::getLocation(&v25, a2); for ( i = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); i; i = (const void *)(*(__int64 (__fastcall **)(const void *))(*(_QWORD *)i + 512LL))(i) ) { v9 = _dynamic_cast( i, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchClipper, -2); if ( v9 ) { v10 = (*(__int64 (__fastcall **)(void *, __int64 *))(*(_QWORD *)v9 + 16LL))(v9, &v25); v4 = v10; if ( !v10 ) return v4; } } cocos2d::CCTouch::getLocation(&v24, a2); cocos2d::CCNode::convertToNodeSpace(&v25, (cocos2d::CCNode *)a1, (const cocos2d::CCPoint *)&v24); cocos2d::CCPoint::operator-(&v23, &v25, a1 + 488, v11); v12 = fabsf(*(float *)&v23); if ( v12 >= *(float *)(a1 + 504) ) { v13 = *((float *)&v23 + 1); v14 = fabsf(*((float *)&v23 + 1)); } else { v13 = *((float *)&v23 + 1); v14 = fabsf(*((float *)&v23 + 1)); if ( v14 < *(float *)(a1 + 508) ) { LABEL_28: *(_QWORD *)(a1 + 432) = 0; return 0; } } v15 = v12 / *(float *)(a1 + 496); v16 = v14 / *(float *)(a1 + 500); if ( v15 <= 1.0 && v16 <= 1.0 ) { v17 = v16; if ( v15 <= v16 ) v17 = v15; v18 = v15 < v16 ? v16 * 0.85 : v15 * 0.85; if ( v17 <= v18 ) { if ( v15 <= v16 ) v19 = v13 <= 0.0 ? 3 : 2; else v19 = *(float *)&v23 >= 0.0; v20 = a1 + 8LL * v19; v21 = *(_QWORD *)(v20 + 456); if ( v21 ) { if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)v21 + 352LL))(*(_QWORD *)(v20 + 456)) ) { v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 1048LL))(v21); v4 = v22; if ( v22 ) { *(_QWORD *)(a1 + 432) = v21; *(_DWORD *)(a1 + 428) = 1; (*(void (__fastcall **)(__int64))(*(_QWORD *)v21 + 1016LL))(v21); CCMenuExtra::repeatSelectionChanged((CCMenuExtra *)a1); return v4; } } } } } goto LABEL_28; } while ( 1 ) { v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 352LL))(v6); v4 = v7; if ( !v7 ) return v4; v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 512LL))(v6); if ( !v6 ) goto LABEL_9; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source