// // cocos2d::extension::CCScrollView::getViewRect from 0xd17adc to 0xd17c04 (296 bytes) // // 4 xrefs: // > cocos2d::extension::CCScrollView::beforeDraw @ 0xd17c70 // > cocos2d::extension::CCScrollView::ccTouchBegan @ 0xd17f78 // > cocos2d::extension::CCScrollView::ccTouchMoved @ 0xd182d0 // > @ 0xac858 // // This function is hookable on this platform (idp: arm, 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 13:07:06 +0000 // cocos2d::CCRect *__usercall cocos2d::extension::CCScrollView::getViewRect@( cocos2d::extension::CCScrollView *this@, cocos2d::CCRect *a2@) { float v4; // s9 float v5; // s0 __int64 v6; // x19 float i; // s8 float v8; // s2 float v9; // s0 float v10; // s3 float v11; // s1 __int64 v13; // [xsp+40h] [xbp+40h] BYREF cocos2d::CCNode::convertToWorldSpace(&v13, this, (const cocos2d::CCPoint *)&unk_155F940); v4 = (*(float (__fastcall **)(cocos2d::extension::CCScrollView *))(*(_QWORD *)this + 136LL))(this); v5 = (*(float (__fastcall **)(cocos2d::extension::CCScrollView *))(*(_QWORD *)this + 152LL))(this); v6 = *((_QWORD *)this + 27); for ( i = v5; v6; v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 512LL))(v6) ) { v4 = v4 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v6 + 136LL))(v6); i = i * (*(float (__fastcall **)(__int64))(*(_QWORD *)v6 + 152LL))(v6); } v8 = *((float *)this + 126); v9 = *(float *)&v13; if ( v4 < 0.0 ) { v9 = *(float *)&v13 + (float)(v8 * v4); v4 = -v4; *(float *)&v13 = v9; } v10 = *((float *)this + 127); v11 = *((float *)&v13 + 1); if ( i < 0.0 ) { v11 = *((float *)&v13 + 1) + (float)(v10 * i); i = -i; *((float *)&v13 + 1) = v11; } cocos2d::CCRect::CCRect(a2, v9, v11, v8 * v4, i * v10); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source