// // cocos2d::extension::CCControlSlider::locationFromTouch from 0x1003a0220 to 0x1003a02a9 (137 bytes) // // 0 xrefs: // // 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 // cocos2d::CCPoint __fastcall cocos2d::extension::CCControlSlider::locationFromTouch( cocos2d::extension::CCControlSlider *a1, cocos2d::CCTouch *a2) { __int64 *v4; // rdi __int64 v5; // rax float *v6; // rax double v7; // [rsp+Ch] [rbp-24h] BYREF float v8; // [rsp+14h] [rbp-1Ch] cocos2d::CCPoint result; // 0:xmm0_8.8 cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)a1); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v7, (const cocos2d::CCPoint *)a2); sub_10028CC90(a1, &v7); result = 0; if ( *(float *)&a1->cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable >= 0.0 ) { v4 = *(__int64 **)&a2[5].m_uIndexInArray; v5 = *v4; v8 = *(float *)&a1->cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v6 = (float *)(*(__int64 (__fastcall **)(__int64 *))(v5 + 312))(v4); result = (cocos2d::CCPoint)LODWORD(v8); if ( v8 <= *v6 ) return result; result = (cocos2d::CCPoint)*(unsigned int *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a2[5].m_uIndexInArray + 312LL))(*(_QWORD *)&a2[5].m_uIndexInArray); } *(float *)&a1->cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = result.x; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source