{"type": "func", "start": 4298334272, "end": 4298334380, "name": "GameStatsManager::isSecretChestUnlocked", "pseudocode": "// \n// GameStatsManager::isSecretChestUnlocked from 0x100336040 to 0x1003360ac (108 bytes)\n// \n// 5 xrefs:\n// > SecretRewardsLayer::generateChestItems @ 0x1002eb114\n// > GameStatsManager::isItemUnlocked @ 0x10032fca8\n// > GameStatsManager::getNextGoldChestID @ 0x10033dfd0\n// > GameStatsManager::unlockSecretChest @ 0x10033e018\n// > GameStatsManager::unlockGoldChest @ 0x10033e178\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::isSecretChestUnlocked(GameStatsManager *a1, int a2)\n{\n  cocos2d::CCDictionary *m_treasureRoomChests; // x19\n  cocos2d::CCString *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  m_treasureRoomChests = a1->m_treasureRoomChests;\n  v3 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v3);\n  sub_100009900(__p, CString);\n  v5 = cocos2d::CCDictionary::objectForKey_1(m_treasureRoomChests, __p);\n  if ( v8 < 0 )\n    operator delete(__p[0]);\n  return v5 != 0;\n}", "assembly": "; \n; GameStatsManager::isSecretChestUnlocked from 0x100336040 to 0x1003360ac (108 bytes)\n; \n; 5 xrefs:\n; > SecretRewardsLayer::generateChestItems @ 0x1002eb114\n; > GameStatsManager::isItemUnlocked @ 0x10032fca8\n; > GameStatsManager::getNextGoldChestID @ 0x10033dfd0\n; > GameStatsManager::unlockSecretChest @ 0x10033e018\n; > GameStatsManager::unlockGoldChest @ 0x10033e178\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, 0x100336040\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100336044\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100336048\nADD             X29, SP, #0x30                                         ; +0xc, 0x10033604c\nLDR             X19, [X0,#0x2F0]                                       ; +0x10, 0x100336050\nSTR             X1, [SP,#0x30+var_30]                                  ; +0x14, 0x100336054\nADRL            X0, aI; \"%i\"                                           ; +0x18, 0x100336058\nBL              sub_100268F4C                                          ; +0x20, 0x100336060\nBL              cocos2d__CCString__getCString                          ; +0x24, 0x100336064\nMOV             X1, X0; __s                                            ; +0x28, 0x100336068\nADD             X0, SP, #0x30+__p; int                                 ; +0x2c, 0x10033606c\nBL              sub_100009900                                          ; +0x30, 0x100336070\nADD             X1, SP, #0x30+__p                                      ; +0x34, 0x100336074\nMOV             X0, X19                                                ; +0x38, 0x100336078\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x3c, 0x10033607c\nMOV             X19, X0                                                ; +0x40, 0x100336080\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x44, 0x100336084\nTBZ             W8, #0x1F, loc_100336094                               ; +0x48, 0x100336088\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x4c, 0x10033608c\nBL              __ZdlPv; operator delete(void *)                       ; +0x50, 0x100336090\nCMP             X19, #0                                                ; +0x54, 0x100336094\nCSET            W0, NE                                                 ; +0x58, 0x100336098\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x5c, 0x10033609c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x60, 0x1003360a0\nADD             SP, SP, #0x40 ; '@'                                    ; +0x64, 0x1003360a4\nRET                                                                    ; +0x68, 0x1003360a8", "xrefs": ["SecretRewardsLayer::generateChestItems @ 0x1002eb114", "GameStatsManager::isItemUnlocked @ 0x10032fca8", "GameStatsManager::getNextGoldChestID @ 0x10033dfd0", "GameStatsManager::unlockSecretChest @ 0x10033e018", "GameStatsManager::unlockGoldChest @ 0x10033e178"], "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"}