// // SecretRewardsLayer::scrollLayerMoved from 0x6ca694 to 0x6ca82e (410 bytes) // // 1 xrefs: // > `non-virtual thunk to'SecretRewardsLayer::scrollLayerMoved @ 0x6ca844 // // 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:56:58 +0000 // cocos2d::CCDirector *__fastcall SecretRewardsLayer::scrollLayerMoved(cocos2d::CCDirector *result, float *a2) { cocos2d::CCArray ***v2; // r4 int TotalPages; // r0 float v5; // s17 int v6; // r7 float v7; // r0 int v8; // r1 float v9; // s16 int v10; // r5 int PageColor; // r0 int v12; // r0 float v13; // s15 int v14; // r0 char v15; // r3 cocos2d::CCArray **v16; // r0 int v17; // r5 int v18; // [sp+0h] [bp-1Ch] int v19; // [sp+4h] [bp-18h] _BYTE v20[4]; // [sp+8h] [bp-14h] BYREF float v21[2]; // [sp+Ch] [bp-10h] BYREF v2 = (cocos2d::CCArray ***)result; if ( *((_BYTE *)result + 416) ) { cocos2d::CCDirector::sharedDirector(result); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v21); TotalPages = BoomScrollLayer::getTotalPages(v2[97]); v5 = (float)-*a2 / v21[0]; v6 = TotalPages; while ( v5 < 0.0 ) v5 = v5 + (float)TotalPages; v7 = floorf(v5); v8 = (int)v7 % v6; v9 = v5 - (float)(int)v7; v10 = v8 + 1; PageColor = SecretRewardsLayer::getPageColor((SecretRewardsLayer *)v2, v8); if ( v10 == v6 ) v10 = 0; LOWORD(v18) = PageColor; BYTE2(v18) = BYTE2(PageColor); v12 = SecretRewardsLayer::getPageColor((SecretRewardsLayer *)v2, v10); LOWORD(v19) = v12; BYTE2(v19) = BYTE2(v12); v13 = (float)(v9 / 0.66667) - 0.2; if ( v13 >= 1.0 ) { v13 = 1.0; } else if ( v13 <= 0.0 ) { v13 = 0.0; } v14 = GameToolbox::multipliedColorValue(v18, v19, v13); v15 = BYTE1(v14); v20[0] = v14; v20[2] = BYTE2(v14); v16 = v2[99]; v20[1] = v15; (*((void (__fastcall **)(cocos2d::CCArray **, _BYTE *))*v16 + 120))(v16, v20); v17 = *((unsigned __int8 *)v2 + 416); if ( *((_BYTE *)v2 + 416) ) v17 = (int)COERCE_FLOAT(roundf()) % v6 == 3; (*((void (__fastcall **)(cocos2d::CCArray **, int))*v2[87] + 43))(v2[87], v17 ^ 1); (*((void (__fastcall **)(cocos2d::CCArray **, int))*v2[89] + 43))(v2[89], v17 ^ 1); (*((void (__fastcall **)(cocos2d::CCArray **, int))*v2[88] + 43))(v2[88], v17); return (cocos2d::CCDirector *)(*((int (__fastcall **)(cocos2d::CCArray **, int))*v2[90] + 43))(v2[90], v17); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source