{"type": "func", "start": 4298317584, "end": 4298317668, "name": "GameStatsManager::hasPendingUserCoin", "pseudocode": "// \n// GameStatsManager::hasPendingUserCoin from 0x100331f10 to 0x100331f64 (84 bytes)\n// \n// 7 xrefs:\n// > LevelInfoLayer::updateLabelValues @ 0x100029cd8\n// > GameLevelManager::getLevelLeaderboard @ 0x1000a3754\n// > LevelCell::loadCustomLevelCell @ 0x10010de5c\n// > GJBaseGameLayer::hasUniqueCoin @ 0x1001e961c\n// > GJBaseGameLayer::processItems @ 0x1001e9d38\n// > EndLevelLayer::customSetup @ 0x1002f6a98\n// > GameStatsManager::checkCoinsForLevel @ 0x100331e70\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall GameStatsManager::hasPendingUserCoin(GameStatsManager *a1, const char *a2)\n{\n  cocos2d::CCDictionary *m_pendingUserCoins; // x19\n  __int64 v3; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v6; // [xsp+1Fh] [xbp-11h]\n\n  m_pendingUserCoins = a1->m_pendingUserCoins;\n  sub_100009900(__p, (char *)a2);\n  v3 = cocos2d::CCDictionary::objectForKey_1(m_pendingUserCoins, __p);\n  if ( v6 < 0 )\n    operator delete(__p[0]);\n  return v3 != 0;\n}", "assembly": "; \n; GameStatsManager::hasPendingUserCoin from 0x100331f10 to 0x100331f64 (84 bytes)\n; \n; 7 xrefs:\n; > LevelInfoLayer::updateLabelValues @ 0x100029cd8\n; > GameLevelManager::getLevelLeaderboard @ 0x1000a3754\n; > LevelCell::loadCustomLevelCell @ 0x10010de5c\n; > GJBaseGameLayer::hasUniqueCoin @ 0x1001e961c\n; > GJBaseGameLayer::processItems @ 0x1001e9d38\n; > EndLevelLayer::customSetup @ 0x1002f6a98\n; > GameStatsManager::checkCoinsForLevel @ 0x100331e70\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100331f10\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100331f14\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100331f18\nADD             X29, SP, #0x30                                         ; +0xc, 0x100331f1c\nLDR             X19, [X0,#0x270]                                       ; +0x10, 0x100331f20\nADD             X0, SP, #0x30+__p; int                                 ; +0x14, 0x100331f24\nBL              sub_100009900                                          ; +0x18, 0x100331f28\nADD             X1, SP, #0x30+__p                                      ; +0x1c, 0x100331f2c\nMOV             X0, X19                                                ; +0x20, 0x100331f30\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x24, 0x100331f34\nMOV             X19, X0                                                ; +0x28, 0x100331f38\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x2c, 0x100331f3c\nTBZ             W8, #0x1F, loc_100331F4C                               ; +0x30, 0x100331f40\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x34, 0x100331f44\nBL              __ZdlPv; operator delete(void *)                       ; +0x38, 0x100331f48\nCMP             X19, #0                                                ; +0x3c, 0x100331f4c\nCSET            W0, NE                                                 ; +0x40, 0x100331f50\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x44, 0x100331f54\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x48, 0x100331f58\nADD             SP, SP, #0x40 ; '@'                                    ; +0x4c, 0x100331f5c\nRET                                                                    ; +0x50, 0x100331f60", "xrefs": ["LevelInfoLayer::updateLabelValues @ 0x100029cd8", "GameLevelManager::getLevelLeaderboard @ 0x1000a3754", "LevelCell::loadCustomLevelCell @ 0x10010de5c", "GJBaseGameLayer::hasUniqueCoin @ 0x1001e961c", "GJBaseGameLayer::processItems @ 0x1001e9d38", "EndLevelLayer::customSetup @ 0x1002f6a98", "GameStatsManager::checkCoinsForLevel @ 0x100331e70"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}