// // GJTransformControl::ccTouchBegan from 0x14012c4e0 to 0x14012c6a5 (453 bytes) // // 4 xrefs: // > @ 0x140552c60 // > @ 0x140670b6c // > @ 0x140670b7c // > @ 0x1406c9c00 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool GJTransformControl::ccTouchBegan(GJTransformControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { int v5; // ebx cocos2d::CCNode *v6; // rax cocos2d::CCRect *v7; // rax unsigned int v8; // edx cocos2d::CCArray *v9; // rcx struct cocos2d::CCObject *v10; // rax __int64 v11; // rax struct cocos2d::CCObject *v12; // rax __int64 v13; // rax struct cocos2d::CCObject *v14; // rax __int64 v15; // rax __int64 v16; // rcx cocos2d::CCPoint v18; // [rsp+20h] [rbp-38h] BYREF struct cocos2d::CCPoint v19; // [rsp+28h] [rbp-30h] BYREF struct cocos2d::CCPoint v20; // [rsp+30h] [rbp-28h] BYREF struct cocos2d::CCRect v21; // [rsp+38h] [rbp-20h] BYREF cocos2d::CCPoint v22; // [rsp+78h] [rbp+20h] BYREF if ( LODWORD(a1->m_obContentSize.height) != -1 ) return 0; cocos2d::CCTouch::getLocation(a2); cocos2d::CCNode::convertToNodeSpace(*(cocos2d::CCNode **)&a1->m_fSkewY, &v19); cocos2d::CCNode::convertToNodeSpace((GJTransformControl *)((char *)a1 - 320), &v20); cocos2d::CCPoint::CCPoint(&v18); v5 = 1; while ( 1 ) { cocos2d::CCPoint::CCPoint(&v22); v6 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_sInverse.ty, v5 - 1); v7 = cocos2d::CCNode::boundingBox(v6, &v21); if ( cocos2d::CCRect::containsPoint(v7, &v22) ) break; if ( ++v5 >= 13 ) goto LABEL_7; } LOWORD(a1->m_sAdditionalTransform.a) = v5; cocos2d::CCPoint::operator=(&v18, &v22); LABEL_7: if ( !LOWORD(a1->m_sAdditionalTransform.a) ) return 0; v8 = SLOWORD(a1->m_sAdditionalTransform.a) - 1; v9 = *(cocos2d::CCArray **)&a1->m_sInverse.ty; LODWORD(a1->m_obContentSize.height) = a2->m_nId; v10 = cocos2d::CCArray::objectAtIndex(v9, v8); v11 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v10->__vftable[2].getTag)(v10); cocos2d::CCPoint::operator-(v11, &v22, &v18); cocos2d::CCPoint::operator=(&a1->m_sAdditionalTransform.d, &v22); v12 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_sInverse.ty, 6u); v13 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v12->__vftable[2].getTag)(v12); cocos2d::CCPoint::operator=(&a1->m_sTransform.d, v13); v14 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_sInverse.ty, 7u); v15 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v14->__vftable[2].getTag)(v14); cocos2d::CCPoint::operator=(&a1->m_sTransform.ty, v15); v16 = *(_QWORD *)&a1->m_sAdditionalTransform.b; if ( v16 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 80LL))(v16); if ( LOWORD(a1->m_sAdditionalTransform.a) == 12 ) HIDWORD(a1->m_pParent) = a1->m_pUserData; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source