{"type": "func", "start": 4298319164, "end": 4298319260, "name": "GameStatsManager::getBaseCurrency", "pseudocode": "// \n// GameStatsManager::getBaseCurrency from 0x10033253c to 0x10033259c (96 bytes)\n// \n// 1 xrefs:\n// > GameStatsManager::getBaseCurrencyForLevel @ 0x100332670\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\nint __fastcall GameStatsManager::getBaseCurrency(GameStatsManager *a1, int a2, bool a3, int a4)\n{\n  if ( a3 )\n  {\n    if ( (unsigned int)a4 <= 0x14 && ((1 << a4) & 0x144000) != 0 )\n      return 400;\n    else\n      return 20 * a2 + 20;\n  }\n  else if ( (unsigned int)(a2 - 2) > 8 )\n  {\n    return 0;\n  }\n  else\n  {\n    return dword_100645440[a2 - 2];\n  }\n}", "assembly": "; \n; GameStatsManager::getBaseCurrency from 0x10033253c to 0x10033259c (96 bytes)\n; \n; 1 xrefs:\n; > GameStatsManager::getBaseCurrencyForLevel @ 0x100332670\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\nCBZ             W2, loc_100332568                                      ; +0x0, 0x10033253c\nCMP             W3, #0x14                                              ; +0x4, 0x100332540\nB.HI            loc_10033258C                                          ; +0x8, 0x100332544\nMOV             W8, #1                                                 ; +0xc, 0x100332548\nLSL             W8, W8, W3                                             ; +0x10, 0x10033254c\nMOV             W9, #0x144000                                          ; +0x14, 0x100332550\nTST             W8, W9                                                 ; +0x1c, 0x100332558\nB.EQ            loc_10033258C                                          ; +0x20, 0x10033255c\nMOV             W0, #0x190                                             ; +0x24, 0x100332560\nRET                                                                    ; +0x28, 0x100332564\nSUB             W8, W1, #2                                             ; +0x2c, 0x100332568\nCMP             W8, #8                                                 ; +0x30, 0x10033256c\nB.HI            loc_100332584                                          ; +0x34, 0x100332570\nADRL            X9, dword_100645440                                    ; +0x38, 0x100332574\nLDR             W0, [X9,W8,UXTW#2]                                     ; +0x40, 0x10033257c\nRET                                                                    ; +0x44, 0x100332580\nMOV             W0, #0                                                 ; +0x48, 0x100332584\nRET                                                                    ; +0x4c, 0x100332588\nMOV             W8, #0x14                                              ; +0x50, 0x10033258c\nMOV             W9, #0x14                                              ; +0x54, 0x100332590\nMADD            W0, W1, W8, W9                                         ; +0x58, 0x100332594\nRET                                                                    ; +0x5c, 0x100332598", "xrefs": ["GameStatsManager::getBaseCurrencyForLevel @ 0x100332670"], "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"}