// // GJBaseGameLayer::damagingObjectsInRect from 0x1000ff8d0 to 0x1000ffdcb (1275 bytes) // // 3 xrefs: // > PlayerObject::spiderTestJumpInternal @ 0x1003fab7c // > PlayerObject::spiderTestJumpX @ 0x1003fc0be // > PlayerObject::spiderTestJumpY @ 0x1003fcf11 // // This function is hookable on this platform (idp: pc, 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 12:21:20 +0000 // __int64 __fastcall GJBaseGameLayer::damagingObjectsInRect(__int64 a1, float *a2, int a3) { __int64 v3; // r14 __int64 v4; // rbx __int64 v5; // rax float v6; // xmm4_4 float v7; // xmm0_4 int v8; // eax float v9; // xmm1_4 float v10; // xmm1_4 float v11; // xmm0_4 float v12; // xmm4_4 float v13; // xmm4_4 __int64 v14; // rcx __int64 v15; // rdx __int64 v16; // rsi float v17; // xmm1_4 float v18; // xmm1_4 float v19; // xmm1_4 float v20; // xmm2_4 float v21; // xmm0_4 float v22; // xmm3_4 float v23; // xmm3_4 float v24; // xmm2_4 float v25; // xmm0_4 __int64 v26; // rdx _QWORD *v27; // rcx __int64 v28; // rax int v29; // esi __int64 v30; // rcx __int64 v31; // rax _QWORD *v32; // rbx __int64 v33; // r13 __int64 v34; // r15 __int64 v35; // r14 __int64 v36; // rax __int64 v37; // r12 _BYTE v39[16]; // [rsp+0h] [rbp-C0h] BYREF char v40[8]; // [rsp+10h] [rbp-B0h] BYREF char v41[8]; // [rsp+18h] [rbp-A8h] BYREF _QWORD *v42; // [rsp+20h] [rbp-A0h] __int64 v43; // [rsp+28h] [rbp-98h] unsigned __int64 v44; // [rsp+30h] [rbp-90h] __int64 v45; // [rsp+38h] [rbp-88h] __int64 v46; // [rsp+40h] [rbp-80h] __int64 v47; // [rsp+48h] [rbp-78h] char v48[8]; // [rsp+50h] [rbp-70h] BYREF float v49; // [rsp+58h] [rbp-68h] float v50; // [rsp+5Ch] [rbp-64h] float ObjectRadius; // [rsp+60h] [rbp-60h] int v52; // [rsp+64h] [rbp-5Ch] int v53; // [rsp+68h] [rbp-58h] int v54; // [rsp+6Ch] [rbp-54h] __int64 v55; // [rsp+70h] [rbp-50h] __int64 v56; // [rsp+78h] [rbp-48h] int v57; // [rsp+84h] [rbp-3Ch] float *v58; // [rsp+88h] [rbp-38h] int v59; // [rsp+94h] [rbp-2Ch] v52 = a3; v3 = a1; sub_1002787F0(v48, a2); v4 = *(_QWORD *)(a1 + 2080); sub_100278250(v41, v49 * 0.5, 0.5 * v50); sub_100278350(v39, v48, v41); OBB2D::calculateWithCenter(v4, v39, v49, v50, 0.0); v5 = sub_1007FE900(v4); v6 = 0.0; v55 = v5; v58 = a2; v7 = *a2; v8 = 0; if ( *a2 > 0.0 ) { v9 = *(float *)(a1 + 13632); v10 = v7 >= 10000000.0 ? v9 * 10000000.0 : v9 * v7; if ( (float)(v10 + -1.0) > 0.0 ) v8 = (int)(float)(v10 + -1.0); } v11 = v7 + v58[2]; if ( v11 > 0.0 ) { v12 = *(float *)(a1 + 13632); if ( v11 >= 10000000.0 ) v6 = v12 * 10000000.0; else v6 = v12 * v11; } v13 = v6 + 1.0; v14 = *(_QWORD *)(a1 + 13392); v15 = *(_QWORD *)(a1 + 13400); v16 = ((v15 - v14) >> 3) - 1; if ( v16 < 0 ) { v17 = (float)(int)(((unsigned __int64)v16 >> 1) | v16 & 1) + (float)(int)(((unsigned __int64)v16 >> 1) | v16 & 1); if ( v13 > v17 ) goto LABEL_20; } else { v17 = (float)(int)v16; if ( v13 > (float)(int)v16 ) goto LABEL_20; } v18 = 0.0; if ( v11 > 0.0 ) { v19 = *(float *)(a1 + 13632); if ( v11 >= 10000000.0 ) v18 = v19 * 10000000.0; else v18 = v19 * v11; } v17 = v18 + 1.0; LABEL_20: v20 = v58[1]; v59 = 0; v21 = 0.0; if ( v20 > 0.0 ) { v22 = *(float *)(a1 + 13636); v23 = v20 >= 10000000.0 ? v22 * 10000000.0 : v22 * v20; if ( (float)(v23 + -1.0) > 0.0 ) v59 = (int)(float)(v23 + -1.0); } v24 = v20 + v58[3]; if ( v24 <= 0.0 ) { LABEL_29: if ( v14 == v15 ) return v55; goto LABEL_30; } v25 = *(float *)(a1 + 13636); if ( v24 < 10000000.0 ) { v21 = v25 * v24; goto LABEL_29; } v21 = v25 * 10000000.0; if ( v14 == v15 ) return v55; LABEL_30: v57 = (int)v17; if ( v8 <= (int)v17 ) { v54 = (int)(float)(v21 + 1.0); v44 = v54; v45 = v59; v26 = v8; ++v57; v56 = a1; while ( 1 ) { v27 = *(_QWORD **)(*(_QWORD *)(v3 + 13392) + 8 * v26); if ( v27 ) break; v29 = -1; if ( v59 <= -1 ) goto LABEL_39; LABEL_32: if ( v57 == (_DWORD)++v26 ) return v55; } v28 = (__int64)(v27[1] - *v27) >> 3; v29 = v54; if ( v28 - 1 < v44 ) v29 = v28 - 1; if ( v59 > v29 ) goto LABEL_32; LABEL_39: v30 = v45; v47 = v26; v53 = v29 + 1; do { v31 = **(_QWORD **)(*(_QWORD *)(v3 + 13392) + 8 * v26); v46 = v30; v32 = *(_QWORD **)(v31 + 8 * v30); if ( v32 ) { v33 = *(int *)(**(_QWORD **)(*(_QWORD *)(v56 + 13560) + 8 * v47) + 4 * v46); if ( v33 > 0 ) { v34 = 0; v42 = *(_QWORD **)(v31 + 8 * v30); v43 = v33; do { v35 = *(_QWORD *)(*v32 + 8 * v34); if ( ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v35 + 1800LL))(v35) == 2 || (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v35 + 1800LL))(v35) == 47) && (*(_BYTE *)(v35 + 773) || (_BYTE)v52 && !(unsigned __int8)GameObject::getGroupDisabled(v35)) ) { v36 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v35 + 1328LL))(v35); sub_1002787F0(v48, v36); if ( *(float *)(v35 + 900) <= 0.0 ) { if ( (unsigned __int8)sub_100278990(v58, v48) ) { if ( *(_BYTE *)(v35 + 744) != 1 || (v37 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v35 + 1560LL))(v35), (unsigned __int8)OBB2D::overlaps1Way(v37, *(_QWORD *)(v56 + 2080))) && (unsigned __int8)OBB2D::overlaps1Way(*(_QWORD *)(v56 + 2080), v37) ) { sub_1007FEBF0(v55, v35); } } } else { ObjectRadius = GameObject::getObjectRadius(v35); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v35 + 1360LL))(v41, v35); sub_1002787F0(v39, v58); sub_1002782D0(v40, v41); if ( (unsigned __int8)GJBaseGameLayer::rectIntersectsCircle(v40, v39, v40, ObjectRadius) ) sub_1007FEBF0(v55, v35); v32 = v42; v33 = v43; } } ++v34; } while ( v33 != v34 ); } } v30 = v46 + 1; v3 = v56; v26 = v47; } while ( v53 != (_DWORD)v46 + 1 ); goto LABEL_32; } return v55; }
GD Web Decomp Icon

GD Web Decomp

Raw Source