// // ScrollableContentLayer::scrollWheel from 0x100525b18 to 0x100525c6c (340 bytes) // // 2 xrefs: // > sub_100525C6C @ 0x100525c70 // > @ 0x1009a0ae0 // // 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 11:07:14 +0000 // float *__fastcall ScrollableContentLayer::scrollWheel(__int64 a1, float a2) { __int64 v4; // x0 __int64 v5; // x20 __int64 v6; // x8 float *v7; // x20 __int64 v8; // x21 float32x2_t v10[2]; // [xsp+0h] [xbp-50h] BYREF __int64 v11; // [xsp+10h] [xbp-40h] BYREF float v12; // [xsp+18h] [xbp-38h] BYREF if ( !(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1) ) return nullptr; v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); if ( v4 ) { v5 = v4; while ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 352LL))(v5) ) { v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 512LL))(v5); if ( !v5 ) goto LABEL_6; } return nullptr; } LABEL_6: v6 = 428; if ( *(_BYTE *)(a1 + 584) ) v6 = 424; if ( *(float *)(a1 + 432) <= *(float *)(a1 + v6) ) return nullptr; v7 = cocos2d::CCEGLView::sharedOpenGLView(); if ( v7 ) { v8 = cocos2d::CCDirector::sharedDirector(); (*(void (__fastcall **)(float32x2_t *__return_ptr, float *))(*(_QWORD *)v7 + 184LL))(v10, v7); cocos2d::CCDirector::convertToGL(v8, v10, &v12); cocos2d::CCNode::convertToNodeSpace(a1, (__int64)&v12, &v11); sub_1000262CC((float *)v10, 0.0, 0.0, *(float *)(a1 + 424), *(float *)(a1 + 428)); v7 = (float *)sub_1000265E4((float *)v10, (float *)&v11); if ( (_DWORD)v7 ) { cocos2d::CCNode::unscheduleUpdate(a1); *(_DWORD *)(a1 + 472) = 0; *(float *)(a1 + 476) = *(float *)(a1 + 476) + (float)(a2 * 2.0); cocos2d::CCNode::scheduleUpdate(a1); } } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source