// // DpadMenu::ccTouchBegan from 0x10063eca0 to 0x10063edd3 (307 bytes) // // 2 xrefs: // > sub_10063EE30 @ 0x10063ee3c // > @ 0x100b80200 // // This function is hookable on this platform (idp: pc, 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 12:34:42 +0000 // char __fastcall DpadMenu::ccTouchBegan(__int64 a1, __int64 a2) { __int64 v2; // r14 __int64 v3; // rax const void *v4; // r14 void *v6; // rax __int64 v7; // rax __int64 v8; // [rsp-40h] [rbp-40h] BYREF __int64 v9; // [rsp-38h] [rbp-38h] if ( *(_DWORD *)(a1 + 428) || *(_BYTE *)(a1 + 286) != 1 ) return 0; v9 = a2; if ( (*(unsigned __int8 (**)(void))(*(_QWORD *)a1 + 1264LL))() ) { v2 = *(_QWORD *)(a1 + 216); if ( v2 ) { while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 352LL))(v2) ) { v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 512LL))(v2); if ( !v2 ) goto LABEL_7; } } else { LABEL_7: cocos2d::CCTouch::getLocation((__int64)&v8, v9); v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); if ( v3 ) { v4 = (const void *)v3; while ( 1 ) { v6 = __dynamic_cast( v4, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchClipper, -2); if ( v6 ) { if ( !(*(unsigned __int8 (__fastcall **)(void *, __int64 *))(*(_QWORD *)v6 + 16LL))(v6, &v8) ) break; } v4 = (const void *)(*(__int64 (__fastcall **)(const void *))(*(_QWORD *)v4 + 512LL))(v4); if ( !v4 ) goto LABEL_14; } } else { LABEL_14: v7 = sub_10063EEA0(a1, v9); *(_QWORD *)(a1 + 432) = v7; if ( v7 ) { *(_DWORD *)(a1 + 428) = 1; (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1016LL))(v7); return 1; } } } } return 0; }