{"type": "func", "start": 4295431696, "end": 4295431747, "name": "GameStatsManager::getBonusDiamonds", "pseudocode": "// \n// GameStatsManager::getBonusDiamonds from 0x100071610 to 0x100071643 (51 bytes)\n// \n// 2 xrefs:\n// > DailyLevelPage::claimLevelReward @ 0x100232406\n// > DailyLevelNode::init @ 0x100233053\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  __m128 v2; // xmm0\n  int result; // eax\n\n  result = 0;\n  if ( (unsigned int)(a2 - 11) >= 0xFFFFFFF7 )\n  {\n    result = 20;\n    if ( a2 != 10 )\n    {\n      v2.f32[0] = (float)(a2 + 2) * 0.5;\n      return (int)_mm_round_ss(v2, v2, 9).f32[0];\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameStatsManager::getBonusDiamonds from 0x100071610 to 0x100071643 (51 bytes)\n; \n; 2 xrefs:\n; > DailyLevelPage::claimLevelReward @ 0x100232406\n; > DailyLevelNode::init @ 0x100233053\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\nlea     ecx, [rsi-0Bh]                                                 ; +0x0, 0x100071610\nxor     eax, eax                                                       ; +0x3, 0x100071613\ncmp     ecx, 0FFFFFFF7h                                                ; +0x5, 0x100071615\njb      short locret_100071642                                         ; +0x8, 0x100071618\nmov     eax, 14h                                                       ; +0xa, 0x10007161a\ncmp     esi, 0Ah                                                       ; +0xf, 0x10007161f\njz      short locret_100071642                                         ; +0x12, 0x100071622\npush    rbp                                                            ; +0x14, 0x100071624\nmov     rbp, rsp                                                       ; +0x15, 0x100071625\nadd     esi, 2                                                         ; +0x18, 0x100071628\ncvtsi2ss xmm0, esi                                                     ; +0x1b, 0x10007162b\nmulss   xmm0, cs:dword_100814FA8                                       ; +0x1f, 0x10007162f\nroundss xmm0, xmm0, 9                                                  ; +0x27, 0x100071637\ncvttss2si eax, xmm0                                                    ; +0x2d, 0x10007163d\npop     rbp                                                            ; +0x31, 0x100071641\nretn                                                                   ; +0x32, 0x100071642", "xrefs": ["DailyLevelPage::claimLevelReward @ 0x100232406", "DailyLevelNode::init @ 0x100233053"], "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"}