{"type": "func", "start": 4298320724, "end": 4298320776, "name": "GameStatsManager::getBonusDiamonds", "pseudocode": "// \n// GameStatsManager::getBonusDiamonds from 0x100332b54 to 0x100332b88 (52 bytes)\n// \n// 2 xrefs:\n// > DailyLevelPage::claimLevelReward @ 0x1001bab50\n// > DailyLevelNode::init @ 0x1001bb678\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::getBonusDiamonds(GameStatsManager *a1, int a2)\n{\n  if ( (unsigned int)(a2 - 11) < 0xFFFFFFF7 )\n    return 0;\n  if ( a2 == 10 )\n    return 20;\n  return vcvtms_s32_f32(vcvts_n_f32_u32(a2 + 2, 1u));\n}", "assembly": "; \n; GameStatsManager::getBonusDiamonds from 0x100332b54 to 0x100332b88 (52 bytes)\n; \n; 2 xrefs:\n; > DailyLevelPage::claimLevelReward @ 0x1001bab50\n; > DailyLevelNode::init @ 0x1001bb678\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             W8, W1, #0xB                                           ; +0x0, 0x100332b54\nCMN             W8, #9                                                 ; +0x4, 0x100332b58\nB.CS            loc_100332B68                                          ; +0x8, 0x100332b5c\nMOV             W0, #0                                                 ; +0xc, 0x100332b60\nRET                                                                    ; +0x10, 0x100332b64\nCMP             W1, #0xA                                               ; +0x14, 0x100332b68\nB.NE            loc_100332B78                                          ; +0x18, 0x100332b6c\nMOV             W0, #0x14                                              ; +0x1c, 0x100332b70\nRET                                                                    ; +0x20, 0x100332b74\nADD             W8, W1, #2                                             ; +0x24, 0x100332b78\nUCVTF           S0, W8, #1                                             ; +0x28, 0x100332b7c\nFCVTMS          W0, S0                                                 ; +0x2c, 0x100332b80\nRET                                                                    ; +0x30, 0x100332b84", "xrefs": ["DailyLevelPage::claimLevelReward @ 0x1001bab50", "DailyLevelNode::init @ 0x1001bb678"], "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"}