// // PlayLayer::updateColor from 0x40959c to 0x409744 (424 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:30 +0000 // int __fastcall PlayLayer::updateColor( int a1, int a2, int a3, unsigned int a4, unsigned __int8 a5, float a6, int a7, int a8, char a9, int a10, int a11) { int v11; // r7 int updated; // r10 unsigned int v15; // r4 unsigned int v16; // r11 _DWORD *v17; // r3 _DWORD *i; // r6 unsigned int v19; // r0 int v20; // r1 _DWORD *v21; // r0 _DWORD *v22; // r6 float v23; // s13 float v24; // s15 bool v25; // r8 unsigned int v26; // r8 unsigned int v27; // r1 _DWORD *v28; // r3 unsigned int v29; // r0 int v30; // r1 updated = GJBaseGameLayer::updateColor(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); if ( *(unsigned __int8 *)(a1 + 10613) == a5 ) return updated; v15 = *(_DWORD *)(a1 + 12068); if ( v15 ) { v16 = v15 - 1; v11 = ((v15 - 1) & v15) != 0 ? a4 % v15 : v16 & a4; v17 = *(_DWORD **)(*(_DWORD *)(a1 + 12064) + 4 * v11); if ( v17 ) { for ( i = (_DWORD *)*v17; i; i = (_DWORD *)*i ) { v19 = i[1]; v20 = ((v15 - 1) & v15) != 0 ? v19 % v15 : v16 & v19; if ( v20 != v11 ) break; if ( i[2] == a4 ) return updated; } } } v21 = (_DWORD *)operator new(0xCu); v21[2] = a4; v22 = v21; v21[1] = a4; *v21 = 0; v23 = *(float *)(a1 + 12080); v24 = (float)(unsigned int)(*(_DWORD *)(a1 + 12076) + 1); if ( v24 > (float)((float)v15 * v23) ) { v25 = v15 > 2 && ((v15 - 1) & v15) == 0; goto LABEL_16; } if ( !v15 ) { v25 = 0; LABEL_16: v26 = 2 * v15 + !v25; v27 = (unsigned int)ceilf(v24 / v23); if ( v27 < v26 ) v27 = v26; std::__hash_table,std::equal_to,std::allocator>::rehash(a1 + 12064, v27); v15 = *(_DWORD *)(a1 + 12068); if ( ((v15 - 1) & v15) != 0 ) v11 = a4 % v15; else v11 = (v15 - 1) & a4; } v28 = *(_DWORD **)(*(_DWORD *)(a1 + 12064) + 4 * v11); if ( v28 ) { *v22 = *v28; *v28 = v22; } else { *v22 = *(_DWORD *)(a1 + 12072); *(_DWORD *)(a1 + 12072) = v22; *(_DWORD *)(*(_DWORD *)(a1 + 12064) + 4 * v11) = a1 + 12072; if ( *v22 ) { v29 = *(_DWORD *)(*v22 + 4); if ( ((v15 - 1) & v15) != 0 ) v30 = v29 % v15; else v30 = (v15 - 1) & v29; *(_DWORD *)(*(_DWORD *)(a1 + 12064) + 4 * v30) = v22; } } ++*(_DWORD *)(a1 + 12076); return updated; }
GD Web Decomp Icon

GD Web Decomp

Raw Source