// // GJBaseGameLayer::collisionCheckObjects from 0x1002838cc to 0x100284698 (3532 bytes) // // 2 xrefs: // > GJBaseGameLayer::checkCollisions @ 0x100283530 // > GJBaseGameLayer::checkCollisions @ 0x100283570 // // This function is hookable on this platform (idp: arm, 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 11:01:57 +0000 // void __fastcall GJBaseGameLayer::collisionCheckObjects(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4, float a5) { float *v10; // x22 float v11; // s9 float v12; // s10 float v13; // s11 float v14; // s0 float v15; // s12 __int64 v16; // x25 _BYTE *v17; // x24 __int64 v18; // x26 int32x2_t *v19; // x0 int v20; // w8 int v21; // w8 void **p_p; // x1 int v23; // w8 __int64 v24; // x28 _BOOL4 v25; // w23 _BYTE *v26; // x27 float *v27; // x23 float *v28; // x24 __n128 v29; // q0 __int64 v30; // x0 int v31; // w8 __int32 v32; // w9 __int64 v33; // x0 __int64 v34; // x1 int32x2_t *v35; // x0 double *v36; // x0 int32x2_t *v37; // x9 char v38; // w9 int32x2_t *v39; // x2 __int64 v40; // x0 __int64 v41; // x1 __int64 v42; // x4 __int64 v43; // x0 __int64 v44; // x1 double *v45; // x0 int32x2_t *v46; // x8 double *v47; // x0 int32x2_t *v48; // x8 double *v49; // x0 int32x2_t *v50; // x1 double *v51; // x0 int32x2_t *v52; // x1 double *v53; // x0 int32x2_t *v54; // x8 int32x2_t *v55; // x0 double *v56; // x0 int32x2_t *v57; // x8 char v58; // w8 int32x2_t *v59; // x0 double *v60; // x0 int32x2_t *v61; // x8 char v62; // w8 double *v63; // x0 int32x2_t *v64; // x8 double *v65; // x0 __int64 v66; // x0 int32x2_t *v67; // x0 void *__p; // [xsp+0h] [xbp-B0h] BYREF void *v69; // [xsp+8h] [xbp-A8h] __int64 v70; // [xsp+10h] [xbp-A0h] float v71[4]; // [xsp+18h] [xbp-98h] BYREF int32x2_t *v72; // [xsp+28h] [xbp-88h] BYREF v10 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1328LL))(a2); v11 = sub_10002656C(v10); v12 = sub_1000265A0((__int64)v10); v13 = sub_1000265A8((__int64)v10); v14 = sub_1000265DC((__int64)v10); if ( (int)a4 >= 1 ) { v15 = v14; v16 = 0; v17 = (_BYTE *)(a1 + 12236); v18 = 8LL * (unsigned int)a4; while ( 1 ) { v19 = *(int32x2_t **)(*a3 + v16); v72 = v19; v20 = v19[115].i32[0]; if ( v20 == 7 || (v19[81].i8[2] & 1) != 0 || (v19[121].i8[2] & 1) != 0 ) goto LABEL_23; if ( v20 <= 20 ) break; if ( v20 == 21 ) goto LABEL_17; if ( v20 != 39 ) { if ( v20 == 47 ) goto LABEL_10; LABEL_14: if ( ((*(__int64 (__fastcall **)(int32x2_t *, __int64))(*(_QWORD *)v19 + 1544LL))(v19, a2) & 1) == 0 ) { sub_1000264CC(v71); if ( (*(unsigned int (__fastcall **)(int32x2_t *))(*(_QWORD *)v72 + 1800LL))(v72) == 25 ) { (*(void (__fastcall **)(void **__return_ptr, float, float))(*(_QWORD *)v72 + 1336LL))(&__p, 2.0, 2.0); p_p = &__p; } else { p_p = (void **)(*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v72 + 1328LL))(v72); } sub_1000264EC(v71, (__int64)p_p); if ( *(float *)&v72[112].i32[1] <= 0.0 ) { if ( v11 >= sub_1000265A0((__int64)v71) && sub_10002656C(v71) >= v12 && v13 >= sub_1000265DC((__int64)v71) && sub_1000265A8((__int64)v71) >= v15 ) { LABEL_28: v24 = a4; if ( v72[93].i8[0] == 1 && (*(_BYTE *)(*(_QWORD *)(a1 + 3272) + 455LL) != 1 || *(float *)&v72[112].i32[1] <= 0.0) ) { v26 = v17; v27 = (float *)(*(__int64 (**)(void))(*(_QWORD *)v72 + 1560LL))(); (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 1568LL))(a2); v28 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1560LL))(a2); v25 = OBB2D::overlaps1Way((__int64)v27, v28) && OBB2D::overlaps1Way((__int64)v28, v27); v17 = v26; } else { v25 = 1; } if ( (*(unsigned int (__fastcall **)(int32x2_t *))(*(_QWORD *)v72 + 1800LL))(v72) == 25 ) { v30 = (*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v72 + 1328LL))(v72); v29.n128_f64[0] = sub_1000264EC(v71, v30); } if ( !v25 || (v31 = *(_DWORD *)(a1 + 828)) != 0 && v72[156].i32[0] == 1 && (v32 = v72[222].i32[0]) != 0 && v32 != v31 ) { a4 = v24; } else { a4 = v24; switch ( v72[115].i32[0] ) { case 3: if ( (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { v59 = v72; if ( (*(_BYTE *)(a2 + 2423) & 1) == 0 && (v72[130].i8[4] & 1) == 0 ) { (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1480LL))(a1, 1); v59 = v72; } v60 = (double *)(*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v59 + 192LL))(v59); sub_1000262F4(&__p, v60); sub_10002630C((_QWORD *)(a2 + 2488), (double *)&__p); v61 = v72; *(_QWORD *)(a2 + 2592) = v72; if ( (v61[130].i8[4] & 1) != 0 ) v62 = 1; else v62 = v61[161].i8[6]; GJBaseGameLayer::flipGravity(a1, a2, 1, v62 & 1); GameObject::playShineEffect(v72); (*(void (__fastcall **)(int32x2_t *, __int64))(*(_QWORD *)v72 + 1536LL))(v72, a2); v43 = a1; v44 = 50; goto LABEL_134; } break; case 4: if ( (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { v55 = v72; if ( *(_BYTE *)(a2 + 2423) == 1 && (v72[130].i8[4] & 1) == 0 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1480LL))(a1, 0); v55 = v72; } v56 = (double *)(*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v55 + 192LL))(v55); sub_1000262F4(&__p, v56); sub_10002630C((_QWORD *)(a2 + 2488), (double *)&__p); v57 = v72; *(_QWORD *)(a2 + 2592) = v72; if ( (v57[130].i8[4] & 1) != 0 ) v58 = 1; else v58 = v57[161].i8[6]; GJBaseGameLayer::flipGravity(a1, a2, 0, v58 & 1); GameObject::playShineEffect(v72); (*(void (__fastcall **)(int32x2_t *, __int64))(*(_QWORD *)v72 + 1536LL))(v72, a2); v43 = a1; v44 = 51; goto LABEL_134; } break; case 5: if ( (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { GJBaseGameLayer::playerWillSwitchMode(a1, a2, v72); v39 = v72; v40 = a1; v41 = a2; v42 = 5; goto LABEL_114; } break; case 6: if ( (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { GJBaseGameLayer::playerWillSwitchMode(a1, a2, v72); v65 = (double *)(*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v72 + 192LL))(v72); sub_1000262F4(&__p, v65); sub_10002630C((_QWORD *)(a2 + 2488), (double *)&__p); *(_QWORD *)(a2 + 2592) = v72; PlayerObject::switchedToMode(a2, 6); sub_1002C6ADC(a2); goto LABEL_117; } break; case 8: case 9: case 0x22: case 0x2C: GJBaseGameLayer::bumpPlayer(a1, a2, v72, v29); break; case 0xA: GJBaseGameLayer::gravBumpPlayer(a1, a2, v72, v29); break; case 0xB: case 0xC: case 0xD: case 0x1D: case 0x20: case 0x23: case 0x24: case 0x25: case 0x26: case 0x2B: GJBaseGameLayer::playerTouchedRing(a1, a2, v72, v29); break; case 0xE: if ( (*v17 & 1) == 0 && (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { v63 = (double *)(*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v72 + 192LL))(v72); sub_1000262F4(&__p, v63); sub_10002630C((_QWORD *)(a2 + 2488), (double *)&__p); v64 = v72; *(_QWORD *)(a2 + 2592) = v72; GJBaseGameLayer::toggleFlipped(a1, 1, v64[130].i8[4]); GameObject::playShineEffect(v72); (*(void (__fastcall **)(int32x2_t *, float))(*(_QWORD *)v72 + 1488LL))(v72, 0.0); v43 = a1; v44 = 53; goto LABEL_134; } break; case 0xF: if ( (*v17 & 1) == 0 && (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { v45 = (double *)(*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v72 + 192LL))(v72); sub_1000262F4(&__p, v45); sub_10002630C((_QWORD *)(a2 + 2488), (double *)&__p); v46 = v72; *(_QWORD *)(a2 + 2592) = v72; GJBaseGameLayer::toggleFlipped(a1, 0, v46[130].i8[4]); GameObject::playShineEffect(v72); (*(void (__fastcall **)(int32x2_t *, float))(*(_QWORD *)v72 + 1488LL))(v72, 0.0); v43 = a1; v44 = 54; goto LABEL_134; } break; case 0x10: if ( (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { GJBaseGameLayer::playerWillSwitchMode(a1, a2, v72); GJBaseGameLayer::switchToRollMode(a1, a2, (__int64)v72); goto LABEL_117; } break; case 0x11: if ( (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { v53 = (double *)(*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v72 + 192LL))(v72); sub_1000262F4(&__p, v53); sub_10002630C((_QWORD *)(a2 + 2488), (double *)&__p); v54 = v72; *(_QWORD *)(a2 + 2592) = v72; PlayerObject::togglePlayerScale(a2, 0, v54[130].u8[4]); GameObject::playShineEffect(v72); (*(void (__fastcall **)(int32x2_t *, __int64))(*(_QWORD *)v72 + 1536LL))(v72, a2); v43 = a1; v44 = 55; goto LABEL_134; } break; case 0x12: if ( (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { v47 = (double *)(*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v72 + 192LL))(v72); sub_1000262F4(&__p, v47); sub_10002630C((_QWORD *)(a2 + 2488), (double *)&__p); v48 = v72; *(_QWORD *)(a2 + 2592) = v72; PlayerObject::togglePlayerScale(a2, 1, v48[130].u8[4]); GameObject::playShineEffect(v72); (*(void (__fastcall **)(int32x2_t *, __int64))(*(_QWORD *)v72 + 1536LL))(v72, a2); v43 = a1; v44 = 56; goto LABEL_134; } break; case 0x13: if ( (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { GJBaseGameLayer::playerWillSwitchMode(a1, a2, v72); v39 = v72; v40 = a1; v41 = a2; v42 = 19; goto LABEL_114; } break; case 0x14: case 0x2D: GJBaseGameLayer::playerTouchedTrigger(a1, a2, v72, v29); break; case 0x16: if ( (v17[308] & 1) == 0 ) { (*(void (__fastcall **)(int32x2_t *, __int64, _QWORD, _QWORD, __n128))(*(_QWORD *)v72 + 1296LL))( v72, a1, *(unsigned int *)(a2 + 916), 0, v29); (*(void (__fastcall **)(int32x2_t *, float))(*(_QWORD *)v72 + 1488LL))(v72, 0.0); GJBaseGameLayer::destroyObject(a1, v72); sub_100284DB8(a1, v72); if ( (GJBaseGameLayer::hasUniqueCoin(a1, v72) & 1) == 0 ) GJBaseGameLayer::pickupItem(a1, v72); v43 = a1; v44 = 62; goto LABEL_134; } break; case 0x17: if ( (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { v49 = (double *)(*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v72 + 192LL))(v72); sub_1000262F4(&__p, v49); sub_10002630C((_QWORD *)(a2 + 2488), (double *)&__p); v50 = v72; *(_QWORD *)(a2 + 2592) = v72; *(_BYTE *)(*(_QWORD *)(a1 + 3264) + 2632LL) = 1; GJBaseGameLayer::toggleDualMode(a1, (__int64)v50, 1, a2, 0); *(_BYTE *)(*(_QWORD *)(a1 + 3264) + 2632LL) = 0; GameObject::playShineEffect(v72); (*(void (__fastcall **)(int32x2_t *, float))(*(_QWORD *)v72 + 1488LL))(v72, 0.0); v43 = a1; v44 = 57; goto LABEL_134; } break; case 0x18: if ( (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { v51 = (double *)(*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v72 + 192LL))(v72); sub_1000262F4(&__p, v51); sub_10002630C((_QWORD *)(a2 + 2488), (double *)&__p); v52 = v72; *(_QWORD *)(a2 + 2592) = v72; GJBaseGameLayer::toggleDualMode(a1, (__int64)v52, 0, a2, 0); GameObject::playShineEffect(v72); (*(void (__fastcall **)(int32x2_t *, float))(*(_QWORD *)v72 + 1488LL))(v72, 0.0); v43 = a1; v44 = 58; goto LABEL_134; } break; case 0x19: sub_1002BCE54(a2, v72, 0, a5); goto LABEL_119; case 0x1A: if ( (v17[2] & 1) != 0 || !(unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) break; GJBaseGameLayer::playerWillSwitchMode(a1, a2, v72); v39 = v72; v40 = a1; v41 = a2; v42 = 26; goto LABEL_114; case 0x1B: if ( !(unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) break; GJBaseGameLayer::playerWillSwitchMode(a1, a2, v72); GJBaseGameLayer::switchToRobotMode(a1, a2, (__int64)v72); goto LABEL_117; case 0x1C: if ( !(unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) break; GJBaseGameLayer::gameEventTriggered(a1, 59, 0, 0); GJBaseGameLayer::teleportPlayer(a1, (__int64)v72, a2); LABEL_119: v66 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1328LL))(a2); sub_1000264EC(v10, v66); v11 = sub_10002656C(v10); v12 = sub_1000265A0((__int64)v10); v13 = sub_1000265A8((__int64)v10); v15 = sub_1000265DC((__int64)v10); break; case 0x1E: if ( (sub_100015084(*(_QWORD *)(a1 + 2152), v72[114].i32[1], 0) & 1) != 0 ) goto LABEL_127; sub_100015020(*(_QWORD *)(a1 + 2152), v72[114].u32[1], 0); v67 = v72; if ( v72[128].i32[1] == 1268 ) { __p = nullptr; v69 = nullptr; v70 = 0; sub_1004353C4(); if ( __p ) { v69 = __p; operator delete(__p); } v67 = v72; } (*(void (__fastcall **)(int32x2_t *, __int64, _QWORD, _QWORD))(*(_QWORD *)v67 + 1296LL))( v67, a1, *(unsigned int *)(a2 + 916), 0); v33 = a1; v34 = 63; goto LABEL_126; case 0x1F: if ( (v17[308] & 1) != 0 ) break; if ( (sub_100015084(*(_QWORD *)(a1 + 2152), v72[114].i32[1], 0) & 1) != 0 ) goto LABEL_127; sub_100015020(*(_QWORD *)(a1 + 2152), v72[114].u32[1], 0); (*(void (__fastcall **)(int32x2_t *, __int64, _QWORD, _QWORD))(*(_QWORD *)v72 + 1296LL))( v72, a1, *(unsigned int *)(a2 + 916), 0); sub_100284DB8(a1, v72); if ( (GJBaseGameLayer::hasUniqueCoin(a1, v72) & 1) == 0 ) GJBaseGameLayer::pickupItem(a1, v72); v33 = a1; v34 = 62; LABEL_126: GJBaseGameLayer::gameEventTriggered(v33, v34, 0, 0); LABEL_127: (*(void (__fastcall **)(int32x2_t *, float))(*(_QWORD *)v72 + 1488LL))(v72, 0.0); GJBaseGameLayer::destroyObject(a1, v72); break; case 0x21: if ( !(unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) break; GJBaseGameLayer::playerWillSwitchMode(a1, a2, v72); GJBaseGameLayer::switchToSpiderMode(a1, a2, (__int64)v72); goto LABEL_117; case 0x28: sub_1002CB2F0(a2, v72, v29); break; case 0x29: if ( (v17[2] & 1) != 0 || !(unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) break; GJBaseGameLayer::playerWillSwitchMode(a1, a2, v72); v39 = v72; v40 = a1; v41 = a2; v42 = 41; LABEL_114: GJBaseGameLayer::switchToFlyMode(v40, v41, (__int64)v39, 0, v42); LABEL_117: GameObject::playShineEffect(v72); (*(void (__fastcall **)(int32x2_t *, __int64))(*(_QWORD *)v72 + 1536LL))(v72, a2); break; case 0x2A: if ( (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, v72, v29) ) { v35 = v72; if ( (v72[130].i8[4] & 1) == 0 ) { (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)a1 + 1480LL))( a1, (*(_BYTE *)(a2 + 2423) & 1) == 0); v35 = v72; } v36 = (double *)(*(__int64 (__fastcall **)(int32x2_t *))(*(_QWORD *)v35 + 192LL))(v35); sub_1000262F4(&__p, v36); sub_10002630C((_QWORD *)(a2 + 2488), (double *)&__p); v37 = v72; *(_QWORD *)(a2 + 2592) = v72; if ( (v37[130].i8[4] & 1) != 0 ) v38 = 1; else v38 = v37[161].i8[6]; GJBaseGameLayer::flipGravity(a1, a2, (*(_BYTE *)(a2 + 2423) ^ 1) & 1, v38 & 1); GameObject::playShineEffect(v72); (*(void (__fastcall **)(int32x2_t *, __int64))(*(_QWORD *)v72 + 1536LL))(v72, a2); v43 = a1; v44 = 52; LABEL_134: GJBaseGameLayer::gameEventTriggered(v43, v44, 0, 0); } break; case 0x2E: GJBaseGameLayer::playerTouchedRing(a1, a2, v72, v29); goto LABEL_119; default: break; } } } } else if ( (GJBaseGameLayer::playerCircleCollision(a1) & 1) != 0 ) { goto LABEL_28; } } } LABEL_23: v16 += 8; if ( v18 == v16 ) return; } if ( !v20 ) { LABEL_17: v23 = *(_DWORD *)(a1 + 12452); if ( *(_DWORD *)(a1 + 12456) <= v23 ) { sub_100011A50(a1 + 12464, &v72); ++*(_DWORD *)(a1 + 12456); v23 = *(_DWORD *)(a1 + 12452); } else { *(_QWORD *)(*(_QWORD *)(a1 + 12464) + 8LL * v23) = v19; } *(_DWORD *)(a1 + 12452) = v23 + 1; goto LABEL_23; } if ( v20 == 2 ) { LABEL_10: v21 = *(_DWORD *)(a1 + 12488); if ( *(_DWORD *)(a1 + 12492) <= v21 ) { sub_100011A50(a1 + 12496, &v72); ++*(_DWORD *)(a1 + 12492); v21 = *(_DWORD *)(a1 + 12488); } else { *(_QWORD *)(*(_QWORD *)(a1 + 12496) + 8LL * v21) = v19; } *(_DWORD *)(a1 + 12488) = v21 + 1; goto LABEL_23; } goto LABEL_14; } }