// // cocos2d::extension::CCControlButton::ccTouchBegan from 0x180006df0 to 0x180006f01 (273 bytes) // // 4 xrefs: // > @ 0x1800261d0 // > @ 0x18002a148 // > @ 0x180032408 // > @ 0x18004b66c // // 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:15:36 +0000 // char __fastcall cocos2d::extension::CCControlButton::ccTouchBegan( cocos2d::extension::CCControlButton *this, struct cocos2d::CCTouch *a2, struct cocos2d::CCEvent *a3) { char *v3; // rdi __int64 v5; // rdx __int64 v6; // rbx __int64 v7; // rbx __int64 v8; // rax v3 = (char *)this - 320; if ( (*(unsigned __int8 (__fastcall **)(char *, struct cocos2d::CCTouch *, struct cocos2d::CCEvent *))(*((_QWORD *)this - 40) + 1120LL))( (char *)this - 320, a2, a3) && (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v3 + 1040LL))(v3) && (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v3 + 344LL))(v3) ) { v6 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v3 + 504LL))(v3); if ( v6 ) { while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v6 + 344LL))(v6) ) { v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 504LL))(v6); if ( !v6 ) goto LABEL_7; } } else { LABEL_7: v7 = *((_QWORD *)this - 13); if ( !v7 ) { LABEL_10: v8 = *(_QWORD *)v3; LOBYTE(v5) = 1; *((_BYTE *)this + 204) = 1; (*(void (__fastcall **)(char *, __int64))(v8 + 1064))(v3, v5); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1088LL))(v3, 1); return 1; } while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v7 + 344LL))(v7) ) { v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 504LL))(v7); if ( !v7 ) goto LABEL_10; } } } return 0; }