// // PlayLayer::dtBumpCell from 0x72cb50 to 0x72ccd4 (388 bytes) // // 1 xrefs: // > PlayLayer::destroyPlayer @ 0x405b12 // // 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:58:16 +0000 // int __fastcall PlayLayer::dtBumpCell(PlayLayer *this, int a2, int a3, int a4) { _DWORD *v5; // r4 _DWORD *v6; // r7 int *v7; // lr int v8; // r12 _DWORD *v9; // r8 unsigned int v10; // r12 int v11; // r0 int v12; // r1 int v13; // r2 int *v14; // r3 _DWORD *v15; // r2 unsigned int v16; // r0 int v17; // r2 unsigned int v18; // r1 unsigned int v19; // r0 unsigned int v20; // r0 int *v21; // r3 int result; // r0 int v23; // r3 int v24; // [sp+4h] [bp-28h] BYREF int v25; // [sp+8h] [bp-24h] BYREF int v26; // [sp+Ch] [bp-20h] BYREF _DWORD v27[2]; // [sp+10h] [bp-1Ch] BYREF _DWORD *v28; // [sp+18h] [bp-14h] v26 = a2; v5 = (_DWORD *)((char *)this + 11968); if ( a2 >= 0xFFFF ) a2 = 0xFFFF; v25 = a3; if ( a3 >= 0xFFFF ) a3 = 0xFFFF; v6 = (_DWORD *)*v5; v7 = *((int **)this + 2993); v8 = (int)v7 - *v5; v24 = a4; v9 = v6; if ( a4 >= 100 ) a4 = 100; v10 = v8 >> 2; v11 = 0; v12 = a2 & ~(a2 >> 31); v13 = a3 & ~(a3 >> 31); v26 = v12; v25 = v13; v24 = a4 & ~(a4 >> 31); while ( v11 + 4 <= v10 ) { if ( *v9 == v12 && v9[1] == v13 ) { *((_BYTE *)this + 11980) = 1; v23 = v11 + 2; result = v6[v11 + 2] + 1; v6[v23] = result; return result; } v9 += 4; v11 += 4; } if ( v10 >= 0x7D00 ) return 0; if ( v7 == *((int **)this + 2994) ) { std::vector::__push_back_slow_path((int)v5, &v26); } else { if ( v7 ) *v7 = v12; v5[1] += 4; } v14 = (int *)v5[1]; if ( v14 == *((int **)this + 2994) ) { std::vector::__push_back_slow_path((int)v5, &v25); } else { if ( v14 ) *v14 = v25; v5[1] += 4; } v15 = (_DWORD *)v5[1]; v16 = *((_DWORD *)this + 2994); if ( (unsigned int)v15 >= v16 ) { v17 = ((int)v15 - *v5) >> 2; v18 = v17 + 1; if ( (unsigned int)(v17 + 1) >= 0x40000000 ) sub_38A570(); v19 = (int)(v16 - *v5) >> 2; if ( v19 > 0x1FFFFFFE ) { v18 = 0x3FFFFFFF; } else { v20 = 2 * v19; if ( v18 < v20 ) v18 = v20; } std::__split_buffer::__split_buffer(v27, v18, v17, (int)this + 11976); if ( v28 ) *v28 = 1; ++v28; std::vector::__swap_out_circular_buffer((int)v5, v27); std::__split_buffer::~__split_buffer((int)v27); } else { if ( v15 ) *v15 = 1; v5[1] += 4; } v21 = (int *)v5[1]; if ( v21 == *((int **)this + 2994) ) { std::vector::__push_back_slow_path((int)v5, &v24); } else { if ( v21 ) *v21 = v24; v5[1] += 4; } *((_BYTE *)this + 11980) = 1; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source