{"type": "func", "start": 4298958608, "end": 4298958716, "name": "GameStatsManager::hasSecretCoin", "pseudocode": "// \n// GameStatsManager::hasSecretCoin from 0x1003ce710 to 0x1003ce77c (108 bytes)\n// \n// 16 xrefs:\n// > PauseLayer::customSetup @ 0x1001bed9c\n// > GJBaseGameLayer::hasUniqueCoin @ 0x100284ed4\n// > GJBaseGameLayer::processItems @ 0x1002856d8\n// > EndLevelLayer::customSetup @ 0x100393324\n// > sub_1003B0C10 @ 0x1003b0ca4\n// > sub_1003B0C10 @ 0x1003b0cc8\n// > sub_1003B0C10 @ 0x1003b0cec\n// > sub_1003B0C10 @ 0x1003b0d4c\n// > sub_1003B0C10 @ 0x1003b0d70\n// > sub_1003B0C10 @ 0x1003b0d94\n// > sub_1003B0C10 @ 0x1003b0db8\n// > sub_1003B0C10 @ 0x1003b0dcc\n// > sub_1003B0C10 @ 0x1003b0de0\n// > GameStatsManager::getCollectedCoinsForLevel @ 0x1003ce6e8\n// > LevelAreaInnerLayer::init @ 0x1003e4330\n// > LevelPage::updateDynamicPage @ 0x10048379c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:04:10 +0000\n// \n\nbool __fastcall GameStatsManager::hasSecretCoin(__int64 a1, const char *a2)\n{\n  __int64 v2; // x19\n  void *v3; // x0\n  char *CString; // x0\n  __int64 v5; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v8; // [xsp+1Fh] [xbp-11h]\n\n  v2 = *(_QWORD *)(a1 + 520);\n  v3 = sub_1003065B0(\"unique_%s\", a2);\n  CString = (char *)cocos2d::CCString::getCString((__int64)v3);\n  sub_100009900(__p, CString);\n  v5 = cocos2d::CCDictionary::objectForKey(v2, __p);\n  if ( v8 < 0 )\n    operator delete(__p[0]);\n  return v5 != 0;\n}", "assembly": "; \n; GameStatsManager::hasSecretCoin from 0x1003ce710 to 0x1003ce77c (108 bytes)\n; \n; 16 xrefs:\n; > PauseLayer::customSetup @ 0x1001bed9c\n; > GJBaseGameLayer::hasUniqueCoin @ 0x100284ed4\n; > GJBaseGameLayer::processItems @ 0x1002856d8\n; > EndLevelLayer::customSetup @ 0x100393324\n; > sub_1003B0C10 @ 0x1003b0ca4\n; > sub_1003B0C10 @ 0x1003b0cc8\n; > sub_1003B0C10 @ 0x1003b0cec\n; > sub_1003B0C10 @ 0x1003b0d4c\n; > sub_1003B0C10 @ 0x1003b0d70\n; > sub_1003B0C10 @ 0x1003b0d94\n; > sub_1003B0C10 @ 0x1003b0db8\n; > sub_1003B0C10 @ 0x1003b0dcc\n; > sub_1003B0C10 @ 0x1003b0de0\n; > GameStatsManager::getCollectedCoinsForLevel @ 0x1003ce6e8\n; > LevelAreaInnerLayer::init @ 0x1003e4330\n; > LevelPage::updateDynamicPage @ 0x10048379c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:04:10 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1003ce710\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1003ce714\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1003ce718\nADD             X29, SP, #0x30                                         ; +0xc, 0x1003ce71c\nLDR             X19, [X0,#0x208]                                       ; +0x10, 0x1003ce720\nSTR             X1, [SP,#0x30+var_30]                                  ; +0x14, 0x1003ce724\nADRL            X0, aUniqueS; \"unique_%s\"                              ; +0x18, 0x1003ce728\nBL              sub_1003065B0                                          ; +0x20, 0x1003ce730\nBL              cocos2d__CCString__getCString                          ; +0x24, 0x1003ce734\nMOV             X1, X0; __s                                            ; +0x28, 0x1003ce738\nADD             X0, SP, #0x30+__p; int                                 ; +0x2c, 0x1003ce73c\nBL              sub_100009900                                          ; +0x30, 0x1003ce740\nADD             X1, SP, #0x30+__p                                      ; +0x34, 0x1003ce744\nMOV             X0, X19                                                ; +0x38, 0x1003ce748\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x3c, 0x1003ce74c\nMOV             X19, X0                                                ; +0x40, 0x1003ce750\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x44, 0x1003ce754\nTBZ             W8, #0x1F, loc_1003CE764                               ; +0x48, 0x1003ce758\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x4c, 0x1003ce75c\nBL              __ZdlPv; operator delete(void *)                       ; +0x50, 0x1003ce760\nCMP             X19, #0                                                ; +0x54, 0x1003ce764\nCSET            W0, NE                                                 ; +0x58, 0x1003ce768\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x5c, 0x1003ce76c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x60, 0x1003ce770\nADD             SP, SP, #0x40 ; '@'                                    ; +0x64, 0x1003ce774\nRET                                                                    ; +0x68, 0x1003ce778", "xrefs": ["PauseLayer::customSetup @ 0x1001bed9c", "GJBaseGameLayer::hasUniqueCoin @ 0x100284ed4", "GJBaseGameLayer::processItems @ 0x1002856d8", "EndLevelLayer::customSetup @ 0x100393324", "sub_1003B0C10 @ 0x1003b0ca4", "sub_1003B0C10 @ 0x1003b0cc8", "sub_1003B0C10 @ 0x1003b0cec", "sub_1003B0C10 @ 0x1003b0d4c", "sub_1003B0C10 @ 0x1003b0d70", "sub_1003B0C10 @ 0x1003b0d94", "sub_1003B0C10 @ 0x1003b0db8", "sub_1003B0C10 @ 0x1003b0dcc", "sub_1003B0C10 @ 0x1003b0de0", "GameStatsManager::getCollectedCoinsForLevel @ 0x1003ce6e8", "LevelAreaInnerLayer::init @ 0x1003e4330", "LevelPage::updateDynamicPage @ 0x10048379c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}