// // GJBaseGameLayer::addPickupTrigger from 0x100129e80 to 0x100129f85 (261 bytes) // // 1 xrefs: // > CountTriggerGameObject::triggerObject @ 0x1001b7c75 // // 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:24:43 +0000 // __int64 __fastcall GJBaseGameLayer::addPickupTrigger(__int64 a1, __int64 a2) { unsigned int v3; // ebx int v4; // eax __m128 v5; // xmm0 int v6; // eax __m128 v7; // xmm1 float v8; // xmm0_4 int v9; // eax float v10; // xmm0_4 __m128 v11; // xmm1 __m128 v12; // xmm0 __int64 v13; // rdx __int64 v14; // rdi int v15; // eax v3 = *(_DWORD *)(a2 + 1680); v4 = *(_DWORD *)(a2 + 1844); if ( v4 != 2 ) { if ( v4 != 1 ) { v14 = *(_QWORD *)(a1 + 2152); v13 = *(unsigned int *)(a2 + 1840); if ( *(_BYTE *)(a2 + 1849) != 1 ) { GJEffectManager::addCountToItem(v14, v3, v13); goto LABEL_9; } goto LABEL_8; } v5 = GJEffectManager::countForItem(*(_QWORD *)(a1 + 2152), v3); v5.f32[0] = (float)v6 * *(float *)(a2 + 1852); v7 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v5), (__m128)xmmword_100A03600); v7.f32[0] = v7.f32[0] + v5.f32[0]; v8 = _mm_round_ss((__m128)0LL, v7, 11).f32[0]; LABEL_6: v13 = (unsigned int)(int)v8; v14 = *(_QWORD *)(a1 + 2152); LABEL_8: GJEffectManager::updateCountForItem(v14, v3, v13); goto LABEL_9; } GJEffectManager::countForItem(*(_QWORD *)(a1 + 2152), v3); v10 = *(float *)(a2 + 1852); if ( v10 != 0.0 ) { v11 = 0; v11.f32[0] = (float)v9 / v10; v12 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v11), (__m128)xmmword_100A03600); v12.f32[0] = v12.f32[0] + v11.f32[0]; v8 = _mm_round_ss(v12, v12, 11).f32[0]; goto LABEL_6; } LABEL_9: GJEffectManager::countForItem(*(_QWORD *)(a1 + 2152), v3); return GJBaseGameLayer::updateCounters(a1, v3, v15); }
GD Web Decomp Icon

GD Web Decomp

Raw Source