// // GJEffectManager::countForItem from 0x14036cb70 to 0x14036cc29 (185 bytes) // // 11 xrefs: // > GJBaseGameLayer::getItemValue @ 0x14033cf21 // > GJBaseGameLayer::refreshCounterLabels @ 0x14033e30c // > GJEffectManager::updateCountForItem @ 0x14036cc5f // > EffectGameObject::triggerObject @ 0x140647ce4 // > EffectGameObject::triggerObject @ 0x14064969c // > EffectGameObject::triggerObject @ 0x14064970b // > CountTriggerGameObject::triggerObject @ 0x14065c390 // > CountTriggerGameObject::triggerObject @ 0x14065c3bd // > CountTriggerGameObject::triggerObject @ 0x14065c3f3 // > CountTriggerGameObject::triggerObject @ 0x14065c45f // > CountTriggerGameObject::triggerObject @ 0x14065c5c7 // // 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 11:30:58 +0000 // __int64 __fastcall GJEffectManager::countForItem(_QWORD *a1, int a2) { int v3; // r10d __int64 v4; // r9 __int64 v5; // rdx __int64 *v6; // rcx __int64 v7; // rax __int64 v8; // rcx v3 = a2; v4 = 0; if ( a2 < 0 ) v3 = 0; if ( v3 > 9999 ) v3 = 9999; v5 = a1[103]; v6 = (__int64 *)(a1[105] + 16 * (a1[108] & (0x100000001B3LL * (((unsigned __int64)(unsigned int)v3 >> 24) ^ (0x100000001B3LL * ((0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)v3 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v3))) ^ BYTE2(v3))))))); v7 = v6[1]; if ( v7 != v5 ) { v8 = *v6; if ( v3 == *(_DWORD *)(v7 + 16) ) { LABEL_9: v4 = v7; } else { while ( v7 != v8 ) { v7 = *(_QWORD *)(v7 + 8); if ( v3 == *(_DWORD *)(v7 + 16) ) goto LABEL_9; } } } if ( !v4 ) v4 = a1[103]; if ( v4 == v5 ) return 0; else return *(unsigned int *)(v4 + 20); }