// // cocos2d::extension::CCControlSwitch::ccTouchEnded from 0x18000cce0 to 0x18000ce0b (299 bytes) // // 4 xrefs: // > @ 0x180028c78 // > @ 0x180028c80 // > @ 0x180032408 // > @ 0x18004bcc0 // // 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:38 +0000 // // Alternative name is '?ccTouchCancelled@CCControlSwitch@extension@cocos2d@@UEAAXPEAVCCTouch@3@PEAVCCEvent@3@@Z' void __fastcall cocos2d::extension::CCControlSwitch::ccTouchEnded( cocos2d::extension::CCControlSwitch *this, struct cocos2d::CCTouch *a2, struct cocos2d::CCEvent *a3) { char *v4; // rdi __int64 v5; // rax void (__fastcall ***v6)(_QWORD, void *); // rcx float *v7; // rax float *v8; // rdx float v9; // xmm3_4 char v10; // r8 __int64 v11; // rax cocos2d::CCNode *v12; // rbx struct cocos2d::CCAction *v13; // rax float v14; // [rsp+30h] [rbp+8h] BYREF char v15; // [rsp+48h] [rbp+20h] BYREF cocos2d::CCTouch::getLocation(a2); v4 = (char *)this - 320; v5 = cocos2d::CCNode::convertToNodeSpace((char *)this - 320, &v15, &v14); cocos2d::CCPoint::operator=(&v14, v5); v6 = (void (__fastcall ***)(_QWORD, void *))(*(_QWORD *)(*((_QWORD *)this + 19) + 656LL) + 320LL); (**v6)(v6, &unk_180025A28); if ( *((_BYTE *)this + 164) ) { v7 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 19) + 320LL))(*((_QWORD *)this + 19)); v8 = *((float **)v4 + 59); LOBYTE(v7) = (float)(*v7 * 0.5) <= v14; v4[485] = (char)v7; v9 = v8[((unsigned __int8)v7 ^ 1LL) + 153]; } else { v10 = *((_BYTE *)this + 165); v8 = *((float **)v4 + 59); v4[485] = v10 == 0; v11 = 153; if ( v10 ) v11 = 154; v9 = v8[v11]; } v12 = (cocos2d::CCNode *)v8; v13 = cocos2d::CCActionTween::create(0.2, "sliderXPosition", v8[152], v9); cocos2d::CCNode::runAction(v12, v13); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 1088LL))(v4, 256); }
GD Web Decomp Icon

GD Web Decomp

Raw Source