// // UILayer::ccTouchBegan from 0x6ef9b0 to 0x6efb5c (428 bytes) // // 3 xrefs: // > `non-virtual thunk to'UILayer::ccTouchBegan @ 0x6efb60 // > @ 0x5f9c8 // > @ 0x1427b70 // // 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 12:51:47 +0000 // __int64 __fastcall UILayer::ccTouchBegan(__int64 a1, __int64 a2) { cocos2d::CCDirector *v4; // x0 int v5; // w21 GameManager *v7; // x0 GameManager *GameVariable; // x0 GameManager *v9; // x0 __int64 v10; // [xsp+40h] [xbp+40h] BYREF __int64 v11; // [xsp+48h] [xbp+48h] BYREF __int64 v12; // [xsp+50h] [xbp+50h] BYREF v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v10, v4); cocos2d::CCTouch::getLocation(&v11, (cocos2d::CCTouch *)a2); cocos2d::CCNode::convertToNodeSpace(&v12, (cocos2d::CCNode *)a1, (const cocos2d::CCPoint *)&v11); v5 = *(float *)&v12 <= (float)(*(float *)&v10 * 0.5); if ( !*(_BYTE *)(a1 + 596) ) { if ( *(_BYTE *)(*(_QWORD *)(a1 + 600) + 1010LL) || (v7 = (GameManager *)GameManager::sharedState((GameManager *)*(unsigned __int8 *)(*(_QWORD *)(a1 + 600) + 1010LL)), GameVariable = (GameManager *)(unsigned __int8)GameManager::getGameVariable(v7, "0011"), (_BYTE)GameVariable) ) { if ( !v5 ) goto LABEL_13; } else { v9 = (GameManager *)GameManager::sharedState(GameVariable); if ( (unsigned __int8)GameManager::getGameVariable(v9, "0010") ) { LABEL_13: if ( *(_DWORD *)(a1 + 588) == -1 ) { *(_DWORD *)(a1 + 588) = *(_DWORD *)(a2 + 56); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 600), 1, 1, 1, *(double *)(a2 + 88)); } return 1; } } if ( *(_DWORD *)(a1 + 584) != -1 ) return 1; LABEL_8: *(_DWORD *)(a1 + 584) = *(_DWORD *)(a2 + 56); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 600), 1, 1, 0, *(double *)(a2 + 88)); return 1; } if ( !*(_BYTE *)(a1 + 624) ) { if ( *(_BYTE *)(a1 + 608) && ((unsigned __int8)UILayer::processUINodesTouch(a1, 0, (cocos2d::CCTouch *)a2) || *(_BYTE *)(a1 + 608) && (*(_DWORD *)(a1 + 584) != -1 || *(unsigned __int8 *)(a1 + 625) != v5)) ) { return 1; } goto LABEL_8; } if ( *(_BYTE *)(a1 + 608) ) UILayer::processUINodesTouch(a1, 0, (cocos2d::CCTouch *)a2); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source