// // UILayer::ccTouchBegan from 0x3fd19c to 0x3fd2b2 (278 bytes) // // 1 xrefs: // > `non-virtual thunk to'UILayer::ccTouchBegan @ 0x3fd2c4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:47:21 +0000 // int __fastcall UILayer::ccTouchBegan(int a1, int a2) { GameManager *v4; // r0 int v5; // r7 GameManager *v6; // r0 GameManager *v8; // r0 bool v9; // zf GJBaseGameLayer *v10; // r0 GJBaseGameLayer *v11; // r0 float v12[2]; // [sp+Ch] [bp-8h] BYREF int v13; // [sp+14h] [bp+0h] BYREF float v14[2]; // [sp+1Ch] [bp+8h] BYREF cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)a1); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v12); cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)&v13); v4 = (GameManager *)cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v14, (const cocos2d::CCPoint *)a1); v5 = v14[0] <= (float)(v12[0] * 0.5); if ( *(_BYTE *)(a1 + 476) ) { if ( *(_BYTE *)(a1 + 492) ) { if ( *(_BYTE *)(a1 + 484) ) UILayer::processUINodesTouch(a1, 0, a2); } else if ( !*(_BYTE *)(a1 + 484) || !UILayer::processUINodesTouch(a1, *(unsigned __int8 *)(a1 + 492), a2) ) { if ( !*(_BYTE *)(a1 + 484) ) { LABEL_22: v11 = *(GJBaseGameLayer **)(a1 + 480); *(_DWORD *)(a1 + 464) = *(_DWORD *)(a2 + 52); GJBaseGameLayer::queueButton(v11, 1, 1, 0, *(double *)(a2 + 88)); return 1; } if ( *(_DWORD *)(a1 + 464) == -1 ) { v9 = *(unsigned __int8 *)(a1 + 493) == v5; LABEL_20: if ( !v9 ) return 1; goto LABEL_22; } } } else { if ( *(_BYTE *)(*(_DWORD *)(a1 + 480) + 866) || (v6 = (GameManager *)GameManager::sharedState(v4), GameManager::getGameVariable(v6, "0011")) ) { if ( v5 ) goto LABEL_13; } else { v8 = (GameManager *)GameManager::sharedState(nullptr); if ( !GameManager::getGameVariable(v8, "0010") ) { LABEL_13: v9 = *(_DWORD *)(a1 + 464) == -1; goto LABEL_20; } } if ( *(_DWORD *)(a1 + 468) == -1 ) { v10 = *(GJBaseGameLayer **)(a1 + 480); *(_DWORD *)(a1 + 468) = *(_DWORD *)(a2 + 52); GJBaseGameLayer::queueButton(v10, 1, 1, 1, *(double *)(a2 + 88)); } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source