// // ColorAction2::step from 0x6d04f0 to 0x6d05c6 (214 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:57:02 +0000 // int __fastcall ColorAction2::step(int this, float a2) { int v2; // r4 float v3; // s15 float v4; // s17 float v5; // s16 float v6; // s17 int v7; // r3 char v8; // r3 int v9; // r0 float v10; // s15 v2 = this; if ( !*(_BYTE *)this && !*(_BYTE *)(this + 1) ) { v3 = a2 + *(float *)(this + 12); v4 = *(float *)(this + 24); v5 = v3 + *(float *)(this + 88); *(float *)(this + 12) = v3; if ( v5 < v4 ) { if ( v5 > 0.0 ) { v6 = v5 / v4; if ( v6 >= 1.0 ) goto LABEL_6; if ( v6 > 0.0 ) { v9 = GameToolbox::multipliedColorValue( *(_DWORD *)(this + 16), *(unsigned __int8 *)(this + 19) | (*(unsigned __int8 *)(this + 20) << 8) | (*(unsigned __int8 *)(this + 21) << 16), v6); v10 = *(float *)(v2 + 40) + (float)((float)(*(float *)(v2 + 44) - *(float *)(v2 + 40)) * v6); *(_WORD *)(v2 + 2) = v9; this = BYTE2(v9); *(_BYTE *)(v2 + 4) = this; *(float *)(v2 + 8) = v10; goto LABEL_11; } } v8 = *(_BYTE *)(this + 18); *(_WORD *)(this + 2) = *(_WORD *)(this + 16); *(_BYTE *)(this + 4) = v8; v7 = *(_DWORD *)(this + 40); goto LABEL_9; } LABEL_6: *(_WORD *)(this + 2) = *(_WORD *)(this + 19); *(_BYTE *)(this + 4) = *(_BYTE *)(this + 21); v7 = *(_DWORD *)(this + 44); LABEL_9: *(_DWORD *)(this + 8) = v7; LABEL_11: *(_BYTE *)v2 = v5 >= *(float *)(v2 + 24); } return this; }