// // ScrollableContentLayer::updateScrollThumb from 0x3f49f4 to 0x3f4b2e (314 bytes) // // 2 xrefs: // > ScrollableContentLayer::setThumbOffset @ 0x3f4b4a // > ScrollableContentLayer::applyContentPosition @ 0x3f61b8 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:47:16 +0000 // int __fastcall ScrollableContentLayer::updateScrollThumb(ScrollableContentLayer *this) { int result; // r0 float v3; // s16 void (*v4)(void); // r3 float v5; // s16 float v6; // s12 float v7; // s14 float v8; // s15 float v9; // s13 int v10; // r7 void (__fastcall *v11)(int, _BYTE *); // r8 int v12; // r7 int (__fastcall *v13)(int, _BYTE *); // r8 _BYTE v14[8]; // [sp+4h] [bp-Ch] BYREF result = *((_DWORD *)this + 95); if ( result ) { v3 = *((float *)this + 81); v4 = *(void (**)(void))(*(_DWORD *)result + 172); if ( !*((_BYTE *)this + 444) ) v3 = *((float *)this + 82); v5 = *((float *)this + 83) - v3; if ( v5 > 0.0 ) { v4(); v6 = *((float *)this + 82); v7 = v6 - 6.0; v8 = (float)(v6 - 6.0) * (float)(v6 / *((float *)this + 83)); if ( v8 < 8.0 ) v8 = 8.0; v9 = *((float *)this + 84) / v5; if ( v8 > v7 ) v8 = v6 - 6.0; if ( v9 < 0.0 ) { v9 = 0.0; } else if ( v9 > 1.0 ) { v9 = 1.0; } v10 = *((_DWORD *)this + 95); v11 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v14, 3.0, v8); v11(v10, v14); v12 = *((_DWORD *)this + 95); v13 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v14, (float)(*((float *)this + 81) - 2.0) + *((float *)this + 97), (float)((float)(v6 - 3.0) - (float)(v9 * (float)(v7 - v8))) + *((float *)this + 98)); return v13(v12, v14); } else { return ((int (*)(void))v4)(); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source