{"type": "func", "start": 4295553664, "end": 4295553742, "name": "GJRewardItem::getRandomShardType", "pseudocode": "// \n// GJRewardItem::getRandomShardType from 0x10008f280 to 0x10008f2ce (78 bytes)\n// \n// 0 xrefs:\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\nSpecialRewardItem __fastcall GJRewardItem::getRandomShardType()\n{\n  __m128d v0; // xmm0\n  unsigned int v1; // ecx\n  SpecialRewardItem result; // eax\n\n  v0.f64[0] = (float)((float)rand() * 4.6566129e-10) * 10.0;\n  v1 = (int)(_mm_round_sd(v0, v0, 9).f64[0] + 1.0) - 2;\n  result = FireShard;\n  if ( v1 <= 8 )\n    return dword_1008159D4[v1];\n  return result;\n}", "assembly": "; \n; GJRewardItem::getRandomShardType from 0x10008f280 to 0x10008f2ce (78 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x10008f280\nmov     rbp, rsp                                                       ; +0x1, 0x10008f281\ncall    _rand                                                          ; +0x4, 0x10008f284\ncvtsi2ss xmm0, eax                                                     ; +0x9, 0x10008f289\nmulss   xmm0, cs:dword_100815710                                       ; +0xd, 0x10008f28d\ncvtss2sd xmm0, xmm0                                                    ; +0x15, 0x10008f295\nmulsd   xmm0, cs:qword_100815810                                       ; +0x19, 0x10008f299\nroundsd xmm0, xmm0, 9                                                  ; +0x21, 0x10008f2a1\naddsd   xmm0, cs:depth                                                 ; +0x27, 0x10008f2a7\ncvttsd2si ecx, xmm0                                                    ; +0x2f, 0x10008f2af\nadd     ecx, 0FFFFFFFEh                                                ; +0x33, 0x10008f2b3\nmov     eax, 1                                                         ; +0x36, 0x10008f2b6\ncmp     ecx, 8                                                         ; +0x3b, 0x10008f2bb\nja      short loc_10008F2CC                                            ; +0x3e, 0x10008f2be\nmov     eax, ecx                                                       ; +0x40, 0x10008f2c0\nlea     rcx, dword_1008159D4                                           ; +0x42, 0x10008f2c2\nmov     eax, [rcx+rax*4]                                               ; +0x49, 0x10008f2c9\npop     rbp                                                            ; +0x4c, 0x10008f2cc\nretn                                                                   ; +0x4d, 0x10008f2cd", "xrefs": [], "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"}