// // cocos2d::extension::CCScrollView::setZoomScale from 0x1800124b0 to 0x1800126bd (525 bytes) // // 7 xrefs: // > cocos2d::extension::CCScrollView::setZoomScale @ 0x1800126f2 // > cocos2d::extension::CCScrollView::setZoomScaleInDuration @ 0x18001277a // > cocos2d::extension::CCScrollView::ccTouchMoved @ 0x180013b0f // > @ 0x180030e30 // > @ 0x180030e40 // > @ 0x180032408 // > @ 0x18004c2fc // // 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:40 +0000 // void __fastcall cocos2d::extension::CCScrollView::setZoomScale(cocos2d::extension::CCScrollView *this, float a2) { __int64 v3; // rax char *v4; // rdx __int64 v5; // rax __int64 v6; // rax __int64 v7; // rcx __int64 v8; // rax __int64 v9; // rcx _BYTE v10[8]; // [rsp+20h] [rbp-40h] BYREF float v11[2]; // [rsp+28h] [rbp-38h] BYREF float v12[2]; // [rsp+30h] [rbp-30h] BYREF _BYTE v13[8]; // [rsp+38h] [rbp-28h] BYREF char v14; // [rsp+70h] [rbp+10h] BYREF float v15; // [rsp+80h] [rbp+20h] BYREF float v16; // [rsp+84h] [rbp+24h] char v17; // [rsp+88h] [rbp+28h] BYREF if ( (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 56) + 168LL))(*((_QWORD *)this + 56)) != a2 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14); if ( *((float *)this + 124) == 0.0 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, *((float *)this + 128) * 0.5, *((float *)this + 129) * 0.5); cocos2d::CCPoint::operator=(&v14, v3); v4 = (char *)cocos2d::CCNode::convertToWorldSpace(this, &v15, &v14); } else { v4 = (char *)this + 488; } cocos2d::CCPoint::operator=(&v14, v4); v5 = cocos2d::CCNode::convertToNodeSpace(*((_QWORD *)this + 56), &v15, &v14); cocos2d::CCPoint::operator=(&v17, v5); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 56) + 160LL))(*((_QWORD *)this + 56)); v6 = cocos2d::CCNode::convertToWorldSpace(*((_QWORD *)this + 56), &v15, &v17); cocos2d::CCPoint::operator=(v10, v6); cocos2d::CCPoint::operator-(&v14, v13, v10); v7 = *((_QWORD *)this + 53); if ( v7 ) (*(void (__fastcall **)(__int64, cocos2d::extension::CCScrollView *))(*(_QWORD *)v7 + 16LL))(v7, this); v8 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 56) + 200LL))(*((_QWORD *)this + 56)); cocos2d::CCPoint::operator+(v8, &v15, v13); if ( !*((_BYTE *)this + 476) ) { cocos2d::extension::CCScrollView::minContainerOffset(this, v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 0.0, 0.0); v15 = fmaxf(v12[0], fminf(v11[0], v15)); v16 = fmaxf(v12[1], fminf(v11[1], v16)); } (*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 56) + 184LL))(*((_QWORD *)this + 56), &v15); v9 = *((_QWORD *)this + 53); if ( v9 ) (*(void (__fastcall **)(__int64, cocos2d::extension::CCScrollView *))(*(_QWORD *)v9 + 8LL))(v9, this); } }