// // GJRewardItem::getRewardCount from 0x100076ec0 to 0x100076f24 (100 bytes) // // 3 xrefs: // > RewardUnlockLayer::playRewardEffect @ 0x10021d115 // > RewardUnlockLayer::playRewardEffect @ 0x10021d129 // > RewardUnlockLayer::playRewardEffect @ 0x10021d13d // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall GJRewardItem::getRewardCount(GJRewardItem *a1, SpecialRewardItem a2) { cocos2d::CCArray *m_rewardObjects; // rdi int v4; // r15d unsigned int v5; // r12d __int64 v6; // rax m_rewardObjects = a1->m_rewardObjects; v4 = 0; if ( m_rewardObjects && (unsigned int)sub_100720070(m_rewardObjects) ) { v5 = 0; v4 = 0; do { v6 = sub_1007200C0(a1->m_rewardObjects, v5); if ( *(_DWORD *)(v6 + 56) == a2 ) v4 += *(_DWORD *)(v6 + 68); ++v5; } while ( v5 < (unsigned int)sub_100720070(a1->m_rewardObjects) ); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source