{"type": "func", "start": 4295305248, "end": 4295306063, "name": "GameStatsManager::getNextGoldChestID", "pseudocode": "// \n// GameStatsManager::getNextGoldChestID from 0x100052820 to 0x100052b4f (815 bytes)\n// \n// 2 xrefs:\n// > SecretRewardsLayer::init @ 0x10070e1e4\n// > SecretRewardsLayer::onGoldChest @ 0x10070f0ef\n// \n// This function is hookable on this platform (idp: pc, 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 12:19:35 +0000\n// \n\n__int64 __fastcall GameStatsManager::getNextGoldChestID(__int64 a1)\n{\n  unsigned int v1; // r14d\n\n  v1 = 6001;\n  if ( GameStatsManager::isSecretChestUnlocked(a1) )\n  {\n    v1 = 6002;\n    if ( GameStatsManager::isSecretChestUnlocked(a1) )\n    {\n      v1 = 6003;\n      if ( GameStatsManager::isSecretChestUnlocked(a1) )\n      {\n        v1 = 6004;\n        if ( GameStatsManager::isSecretChestUnlocked(a1) )\n        {\n          v1 = 6005;\n          if ( GameStatsManager::isSecretChestUnlocked(a1) )\n          {\n            v1 = 6006;\n            if ( GameStatsManager::isSecretChestUnlocked(a1) )\n            {\n              v1 = 6007;\n              if ( GameStatsManager::isSecretChestUnlocked(a1) )\n              {\n                v1 = 6008;\n                if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                {\n                  v1 = 6009;\n                  if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                  {\n                    v1 = 6010;\n                    if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                    {\n                      v1 = 6011;\n                      if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                      {\n                        v1 = 6012;\n                        if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                        {\n                          v1 = 6013;\n                          if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                          {\n                            v1 = 6014;\n                            if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                            {\n                              v1 = 6015;\n                              if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                              {\n                                v1 = 6016;\n                                if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                {\n                                  v1 = 6017;\n                                  if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                  {\n                                    v1 = 6018;\n                                    if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                    {\n                                      v1 = 6019;\n                                      if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                      {\n                                        v1 = 6020;\n                                        if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                        {\n                                          v1 = 6021;\n                                          if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                          {\n                                            v1 = 6022;\n                                            if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                            {\n                                              v1 = 6023;\n                                              if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                              {\n                                                v1 = 6024;\n                                                if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                                {\n                                                  v1 = 6025;\n                                                  if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                                  {\n                                                    v1 = 6026;\n                                                    if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                                    {\n                                                      v1 = 6027;\n                                                      if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                                      {\n                                                        v1 = 6028;\n                                                        if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                                        {\n                                                          v1 = 6029;\n                                                          if ( GameStatsManager::isSecretChestUnlocked(a1) )\n                                                          {\n                                                            v1 = 0;\n                                                            if ( !GameStatsManager::isSecretChestUnlocked(a1) )\n                                                              return 6030;\n                                                          }\n                                                        }\n                                                      }\n                                                    }\n                                                  }\n                                                }\n                                              }\n                                            }\n                                          }\n                                        }\n                                      }\n                                    }\n                                  }\n                                }\n                              }\n                            }\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n  return v1;\n}", "assembly": "; \n; GameStatsManager::getNextGoldChestID from 0x100052820 to 0x100052b4f (815 bytes)\n; \n; 2 xrefs:\n; > SecretRewardsLayer::init @ 0x10070e1e4\n; > SecretRewardsLayer::onGoldChest @ 0x10070f0ef\n; \n; This function is hookable on this platform (idp: pc, 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 12:19:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x100052820\nmov     rbp, rsp                                                       ; +0x1, 0x100052821\npush    r15                                                            ; +0x4, 0x100052824\npush    r14                                                            ; +0x6, 0x100052826\npush    rbx                                                            ; +0x8, 0x100052828\npush    rax                                                            ; +0x9, 0x100052829\nmov     rbx, rdi                                                       ; +0xa, 0x10005282a\nmov     r14d, 1771h                                                    ; +0xd, 0x10005282d\nmov     esi, 1771h                                                     ; +0x13, 0x100052833\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x18, 0x100052838\ntest    al, al                                                         ; +0x1d, 0x10005283d\njz      loc_100052B41                                                  ; +0x1f, 0x10005283f\nmov     r14d, 1772h                                                    ; +0x25, 0x100052845\nmov     rdi, rbx                                                       ; +0x2b, 0x10005284b\nmov     esi, 1772h                                                     ; +0x2e, 0x10005284e\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x33, 0x100052853\ntest    al, al                                                         ; +0x38, 0x100052858\njz      loc_100052B41                                                  ; +0x3a, 0x10005285a\nmov     r14d, 1773h                                                    ; +0x40, 0x100052860\nmov     rdi, rbx                                                       ; +0x46, 0x100052866\nmov     esi, 1773h                                                     ; +0x49, 0x100052869\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x4e, 0x10005286e\ntest    al, al                                                         ; +0x53, 0x100052873\njz      loc_100052B41                                                  ; +0x55, 0x100052875\nmov     r14d, 1774h                                                    ; +0x5b, 0x10005287b\nmov     rdi, rbx                                                       ; +0x61, 0x100052881\nmov     esi, 1774h                                                     ; +0x64, 0x100052884\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x69, 0x100052889\ntest    al, al                                                         ; +0x6e, 0x10005288e\njz      loc_100052B41                                                  ; +0x70, 0x100052890\nmov     r14d, 1775h                                                    ; +0x76, 0x100052896\nmov     rdi, rbx                                                       ; +0x7c, 0x10005289c\nmov     esi, 1775h                                                     ; +0x7f, 0x10005289f\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x84, 0x1000528a4\ntest    al, al                                                         ; +0x89, 0x1000528a9\njz      loc_100052B41                                                  ; +0x8b, 0x1000528ab\nmov     r14d, 1776h                                                    ; +0x91, 0x1000528b1\nmov     rdi, rbx                                                       ; +0x97, 0x1000528b7\nmov     esi, 1776h                                                     ; +0x9a, 0x1000528ba\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x9f, 0x1000528bf\ntest    al, al                                                         ; +0xa4, 0x1000528c4\njz      loc_100052B41                                                  ; +0xa6, 0x1000528c6\nmov     r14d, 1777h                                                    ; +0xac, 0x1000528cc\nmov     rdi, rbx                                                       ; +0xb2, 0x1000528d2\nmov     esi, 1777h                                                     ; +0xb5, 0x1000528d5\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0xba, 0x1000528da\ntest    al, al                                                         ; +0xbf, 0x1000528df\njz      loc_100052B41                                                  ; +0xc1, 0x1000528e1\nmov     r14d, 1778h                                                    ; +0xc7, 0x1000528e7\nmov     rdi, rbx                                                       ; +0xcd, 0x1000528ed\nmov     esi, 1778h                                                     ; +0xd0, 0x1000528f0\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0xd5, 0x1000528f5\ntest    al, al                                                         ; +0xda, 0x1000528fa\njz      loc_100052B41                                                  ; +0xdc, 0x1000528fc\nmov     r14d, 1779h                                                    ; +0xe2, 0x100052902\nmov     rdi, rbx                                                       ; +0xe8, 0x100052908\nmov     esi, 1779h                                                     ; +0xeb, 0x10005290b\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0xf0, 0x100052910\ntest    al, al                                                         ; +0xf5, 0x100052915\njz      loc_100052B41                                                  ; +0xf7, 0x100052917\nmov     r14d, 177Ah                                                    ; +0xfd, 0x10005291d\nmov     rdi, rbx                                                       ; +0x103, 0x100052923\nmov     esi, 177Ah                                                     ; +0x106, 0x100052926\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x10b, 0x10005292b\ntest    al, al                                                         ; +0x110, 0x100052930\njz      loc_100052B41                                                  ; +0x112, 0x100052932\nmov     r14d, 177Bh                                                    ; +0x118, 0x100052938\nmov     rdi, rbx                                                       ; +0x11e, 0x10005293e\nmov     esi, 177Bh                                                     ; +0x121, 0x100052941\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x126, 0x100052946\ntest    al, al                                                         ; +0x12b, 0x10005294b\njz      loc_100052B41                                                  ; +0x12d, 0x10005294d\nmov     r14d, 177Ch                                                    ; +0x133, 0x100052953\nmov     rdi, rbx                                                       ; +0x139, 0x100052959\nmov     esi, 177Ch                                                     ; +0x13c, 0x10005295c\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x141, 0x100052961\ntest    al, al                                                         ; +0x146, 0x100052966\njz      loc_100052B41                                                  ; +0x148, 0x100052968\nmov     r14d, 177Dh                                                    ; +0x14e, 0x10005296e\nmov     rdi, rbx                                                       ; +0x154, 0x100052974\nmov     esi, 177Dh                                                     ; +0x157, 0x100052977\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x15c, 0x10005297c\ntest    al, al                                                         ; +0x161, 0x100052981\njz      loc_100052B41                                                  ; +0x163, 0x100052983\nmov     r14d, 177Eh                                                    ; +0x169, 0x100052989\nmov     rdi, rbx                                                       ; +0x16f, 0x10005298f\nmov     esi, 177Eh                                                     ; +0x172, 0x100052992\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x177, 0x100052997\ntest    al, al                                                         ; +0x17c, 0x10005299c\njz      loc_100052B41                                                  ; +0x17e, 0x10005299e\nmov     r14d, 177Fh                                                    ; +0x184, 0x1000529a4\nmov     rdi, rbx                                                       ; +0x18a, 0x1000529aa\nmov     esi, 177Fh                                                     ; +0x18d, 0x1000529ad\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x192, 0x1000529b2\ntest    al, al                                                         ; +0x197, 0x1000529b7\njz      loc_100052B41                                                  ; +0x199, 0x1000529b9\nmov     r14d, 1780h                                                    ; +0x19f, 0x1000529bf\nmov     rdi, rbx                                                       ; +0x1a5, 0x1000529c5\nmov     esi, 1780h                                                     ; +0x1a8, 0x1000529c8\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x1ad, 0x1000529cd\ntest    al, al                                                         ; +0x1b2, 0x1000529d2\njz      loc_100052B41                                                  ; +0x1b4, 0x1000529d4\nmov     r14d, 1781h                                                    ; +0x1ba, 0x1000529da\nmov     rdi, rbx                                                       ; +0x1c0, 0x1000529e0\nmov     esi, 1781h                                                     ; +0x1c3, 0x1000529e3\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x1c8, 0x1000529e8\ntest    al, al                                                         ; +0x1cd, 0x1000529ed\njz      loc_100052B41                                                  ; +0x1cf, 0x1000529ef\nmov     r14d, 1782h                                                    ; +0x1d5, 0x1000529f5\nmov     rdi, rbx                                                       ; +0x1db, 0x1000529fb\nmov     esi, 1782h                                                     ; +0x1de, 0x1000529fe\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x1e3, 0x100052a03\ntest    al, al                                                         ; +0x1e8, 0x100052a08\njz      loc_100052B41                                                  ; +0x1ea, 0x100052a0a\nmov     r14d, 1783h                                                    ; +0x1f0, 0x100052a10\nmov     rdi, rbx                                                       ; +0x1f6, 0x100052a16\nmov     esi, 1783h                                                     ; +0x1f9, 0x100052a19\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x1fe, 0x100052a1e\ntest    al, al                                                         ; +0x203, 0x100052a23\njz      loc_100052B41                                                  ; +0x205, 0x100052a25\nmov     r14d, 1784h                                                    ; +0x20b, 0x100052a2b\nmov     rdi, rbx                                                       ; +0x211, 0x100052a31\nmov     esi, 1784h                                                     ; +0x214, 0x100052a34\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x219, 0x100052a39\ntest    al, al                                                         ; +0x21e, 0x100052a3e\njz      loc_100052B41                                                  ; +0x220, 0x100052a40\nmov     r14d, 1785h                                                    ; +0x226, 0x100052a46\nmov     rdi, rbx                                                       ; +0x22c, 0x100052a4c\nmov     esi, 1785h                                                     ; +0x22f, 0x100052a4f\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x234, 0x100052a54\ntest    al, al                                                         ; +0x239, 0x100052a59\njz      loc_100052B41                                                  ; +0x23b, 0x100052a5b\nmov     r14d, 1786h                                                    ; +0x241, 0x100052a61\nmov     rdi, rbx                                                       ; +0x247, 0x100052a67\nmov     esi, 1786h                                                     ; +0x24a, 0x100052a6a\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x24f, 0x100052a6f\ntest    al, al                                                         ; +0x254, 0x100052a74\njz      loc_100052B41                                                  ; +0x256, 0x100052a76\nmov     r14d, 1787h                                                    ; +0x25c, 0x100052a7c\nmov     rdi, rbx                                                       ; +0x262, 0x100052a82\nmov     esi, 1787h                                                     ; +0x265, 0x100052a85\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x26a, 0x100052a8a\ntest    al, al                                                         ; +0x26f, 0x100052a8f\njz      loc_100052B41                                                  ; +0x271, 0x100052a91\nmov     r14d, 1788h                                                    ; +0x277, 0x100052a97\nmov     rdi, rbx                                                       ; +0x27d, 0x100052a9d\nmov     esi, 1788h                                                     ; +0x280, 0x100052aa0\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x285, 0x100052aa5\ntest    al, al                                                         ; +0x28a, 0x100052aaa\njz      loc_100052B41                                                  ; +0x28c, 0x100052aac\nmov     r14d, 1789h                                                    ; +0x292, 0x100052ab2\nmov     rdi, rbx                                                       ; +0x298, 0x100052ab8\nmov     esi, 1789h                                                     ; +0x29b, 0x100052abb\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x2a0, 0x100052ac0\ntest    al, al                                                         ; +0x2a5, 0x100052ac5\njz      short loc_100052B41                                            ; +0x2a7, 0x100052ac7\nmov     r14d, 178Ah                                                    ; +0x2a9, 0x100052ac9\nmov     rdi, rbx                                                       ; +0x2af, 0x100052acf\nmov     esi, 178Ah                                                     ; +0x2b2, 0x100052ad2\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x2b7, 0x100052ad7\ntest    al, al                                                         ; +0x2bc, 0x100052adc\njz      short loc_100052B41                                            ; +0x2be, 0x100052ade\nmov     r14d, 178Bh                                                    ; +0x2c0, 0x100052ae0\nmov     rdi, rbx                                                       ; +0x2c6, 0x100052ae6\nmov     esi, 178Bh                                                     ; +0x2c9, 0x100052ae9\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x2ce, 0x100052aee\ntest    al, al                                                         ; +0x2d3, 0x100052af3\njz      short loc_100052B41                                            ; +0x2d5, 0x100052af5\nmov     r14d, 178Ch                                                    ; +0x2d7, 0x100052af7\nmov     rdi, rbx                                                       ; +0x2dd, 0x100052afd\nmov     esi, 178Ch                                                     ; +0x2e0, 0x100052b00\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x2e5, 0x100052b05\ntest    al, al                                                         ; +0x2ea, 0x100052b0a\njz      short loc_100052B41                                            ; +0x2ec, 0x100052b0c\nmov     r14d, 178Dh                                                    ; +0x2ee, 0x100052b0e\nmov     rdi, rbx                                                       ; +0x2f4, 0x100052b14\nmov     esi, 178Dh                                                     ; +0x2f7, 0x100052b17\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x2fc, 0x100052b1c\ntest    al, al                                                         ; +0x301, 0x100052b21\njz      short loc_100052B41                                            ; +0x303, 0x100052b23\nmov     r15d, 178Eh                                                    ; +0x305, 0x100052b25\nmov     rdi, rbx                                                       ; +0x30b, 0x100052b2b\nmov     esi, 178Eh                                                     ; +0x30e, 0x100052b2e\ncall    GameStatsManager__isSecretChestUnlocked                        ; +0x313, 0x100052b33\nxor     r14d, r14d                                                     ; +0x318, 0x100052b38\ntest    al, al                                                         ; +0x31b, 0x100052b3b\ncmovz   r14d, r15d                                                     ; +0x31d, 0x100052b3d\nmov     eax, r14d                                                      ; +0x321, 0x100052b41\nadd     rsp, 8                                                         ; +0x324, 0x100052b44\npop     rbx                                                            ; +0x328, 0x100052b48\npop     r14                                                            ; +0x329, 0x100052b49\npop     r15                                                            ; +0x32b, 0x100052b4b\npop     rbp                                                            ; +0x32d, 0x100052b4d\nretn                                                                   ; +0x32e, 0x100052b4e", "xrefs": ["SecretRewardsLayer::init @ 0x10070e1e4", "SecretRewardsLayer::onGoldChest @ 0x10070f0ef"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}