{"type": "func", "start": 4298968100, "end": 4298968152, "name": "GameStatsManager::getBonusDiamonds", "pseudocode": "// \n// GameStatsManager::getBonusDiamonds from 0x1003d0c24 to 0x1003d0c58 (52 bytes)\n// \n// 2 xrefs:\n// > DailyLevelPage::claimLevelReward @ 0x1002507e8\n// > DailyLevelNode::init @ 0x100251314\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:11 +0000\n// \n\nunsigned int __fastcall GameStatsManager::getBonusDiamonds(__int64 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 0x1003d0c24 to 0x1003d0c58 (52 bytes)\n; \n; 2 xrefs:\n; > DailyLevelPage::claimLevelReward @ 0x1002507e8\n; > DailyLevelNode::init @ 0x100251314\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:11 +0000\n; \nSUB             W8, W1, #0xB                                           ; +0x0, 0x1003d0c24\nCMN             W8, #9                                                 ; +0x4, 0x1003d0c28\nB.CS            loc_1003D0C38                                          ; +0x8, 0x1003d0c2c\nMOV             W0, #0                                                 ; +0xc, 0x1003d0c30\nRET                                                                    ; +0x10, 0x1003d0c34\nCMP             W1, #0xA                                               ; +0x14, 0x1003d0c38\nB.NE            loc_1003D0C48                                          ; +0x18, 0x1003d0c3c\nMOV             W0, #0x14                                              ; +0x1c, 0x1003d0c40\nRET                                                                    ; +0x20, 0x1003d0c44\nADD             W8, W1, #2                                             ; +0x24, 0x1003d0c48\nUCVTF           S0, W8, #1                                             ; +0x28, 0x1003d0c4c\nFCVTMS          W0, S0                                                 ; +0x2c, 0x1003d0c50\nRET                                                                    ; +0x30, 0x1003d0c54", "xrefs": ["DailyLevelPage::claimLevelReward @ 0x1002507e8", "DailyLevelNode::init @ 0x100251314"], "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"}