// // ScrollableContentLayer::update from 0x3f66ec to 0x3f68b2 (454 bytes) // // 0 xrefs: // // 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:17 +0000 // void __fastcall ScrollableContentLayer::update(ScrollableContentLayer *this, int a2, int a3) { int v4; // r3 float v5; // s15 float v6; // s14 float v7; // s17 float v8; // s15 float v9; // s14 float v10; // s11 float v11; // s14 float v12; // s15 float v13; // s18 float v14; // s16 float v15; // r0 float v16; // s15 float v17; // s15 float v18; // r0 float v19; // s15 _BOOL4 v20; // r3 v4 = *((unsigned __int8 *)this + 444); v5 = *((float *)this + 81); if ( !*((_BYTE *)this + 444) ) v5 = *((float *)this + 82); v6 = *((float *)this + 93); v7 = *((float *)this + 83) - v5; if ( v7 < 0.0 ) v7 = 0.0; if ( v6 != 0.0 ) { v4 = 0; v8 = (float)(v6 * *(float *)&a2) * 15.0; v9 = v6 - v8; v10 = fabsf(v9); if ( v10 >= 0.1 ) *((float *)this + 93) = v9; else v8 = v8 + v9; v11 = *((float *)this + 84); if ( v10 < 0.1 ) *((_DWORD *)this + 93) = 0; v12 = v8 + v11; if ( v12 >= 0.0 ) { if ( v12 <= v7 ) { *((float *)this + 84) = v12; goto LABEL_17; } *((float *)this + 84) = v7; } else { *((_DWORD *)this + 84) = 0; } *((_DWORD *)this + 93) = 0; } LABEL_17: v13 = *((float *)this + 84); v14 = 0.0; if ( v13 < 0.0 ) { LABEL_21: v15 = expf(-(float)(*(float *)&a2 * 12.0)); *((_DWORD *)this + 92) = 0; v16 = *((float *)this + 84) + (float)((float)(v14 - v13) * (float)(1.0 - v15)); *((float *)this + 84) = v16; if ( fabsf(v16 - v14) < 0.5 ) *((float *)this + 84) = v14; goto LABEL_27; } if ( v13 > v7 ) { if ( v13 >= 0.0 ) v14 = v7; goto LABEL_21; } v17 = *((float *)this + 92); if ( v17 != 0.0 ) { *((float *)this + 84) = v13 + (float)(v17 * *(float *)&a2); v18 = powf(0.95, *(float *)&a2 * 60.0); if ( fabsf(v18 * *((float *)this + 92)) >= 2.0 ) v14 = v18 * *((float *)this + 92); *((float *)this + 92) = v14; } LABEL_27: ScrollableContentLayer::applyContentPosition(this, a2, a3, v4); v19 = *((float *)this + 84); v20 = v19 < 0.0 || v19 > v7; if ( *((float *)this + 93) == 0.0 && *((float *)this + 92) == 0.0 && !v20 ) cocos2d::CCNode::unscheduleUpdate(this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source