{"type": "func", "start": 4295192816, "end": 4295192867, "name": "GameStatsManager::getBonusDiamonds", "pseudocode": "// \n// GameStatsManager::getBonusDiamonds from 0x1000370f0 to 0x100037123 (51 bytes)\n// \n// 2 xrefs:\n// > DailyLevelPage::claimLevelReward @ 0x100216a56\n// > DailyLevelNode::init @ 0x1002176a5\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:32 +0000\n// \n\n__int64 __fastcall GameStatsManager::getBonusDiamonds(__m128 a1, __int64 a2, int a3)\n{\n  __int64 result; // rax\n\n  result = 0;\n  if ( (unsigned int)(a3 - 11) >= 0xFFFFFFF7 )\n  {\n    result = 20;\n    if ( a3 != 10 )\n    {\n      a1.f32[0] = (float)(a3 + 2) * 0.5;\n      return (unsigned int)(int)_mm_round_ss(a1, a1, 9).f32[0];\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameStatsManager::getBonusDiamonds from 0x1000370f0 to 0x100037123 (51 bytes)\n; \n; 2 xrefs:\n; > DailyLevelPage::claimLevelReward @ 0x100216a56\n; > DailyLevelNode::init @ 0x1002176a5\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:32 +0000\n; \nlea     ecx, [rsi-0Bh]                                                 ; +0x0, 0x1000370f0\nxor     eax, eax                                                       ; +0x3, 0x1000370f3\ncmp     ecx, 0FFFFFFF7h                                                ; +0x5, 0x1000370f5\njb      short locret_100037122                                         ; +0x8, 0x1000370f8\nmov     eax, 14h                                                       ; +0xa, 0x1000370fa\ncmp     esi, 0Ah                                                       ; +0xf, 0x1000370ff\njz      short locret_100037122                                         ; +0x12, 0x100037102\npush    rbp                                                            ; +0x14, 0x100037104\nmov     rbp, rsp                                                       ; +0x15, 0x100037105\nadd     esi, 2                                                         ; +0x18, 0x100037108\ncvtsi2ss xmm0, esi                                                     ; +0x1b, 0x10003710b\nmulss   xmm0, cs:dword_100A03578                                       ; +0x1f, 0x10003710f\nroundss xmm0, xmm0, 9                                                  ; +0x27, 0x100037117\ncvttss2si eax, xmm0                                                    ; +0x2d, 0x10003711d\npop     rbp                                                            ; +0x31, 0x100037121\nretn                                                                   ; +0x32, 0x100037122", "xrefs": ["DailyLevelPage::claimLevelReward @ 0x100216a56", "DailyLevelNode::init @ 0x1002176a5"], "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"}