{"type": "func", "start": 4295318944, "end": 4295319022, "name": "GJRewardItem::getRandomShardType", "pseudocode": "// \n// GJRewardItem::getRandomShardType from 0x100055da0 to 0x100055dee (78 bytes)\n// \n// 0 xrefs:\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:36 +0000\n// \n\n__int64 __fastcall GJRewardItem::getRandomShardType(__m128d a1)\n{\n  unsigned int v1; // ecx\n  __int64 result; // rax\n\n  a1.f64[0] = (float)((float)rand() * 4.6566129e-10) * 10.0;\n  v1 = (int)(_mm_round_sd(a1, a1, 9).f64[0] + 1.0) - 2;\n  result = 1;\n  if ( v1 <= 8 )\n    return (unsigned int)dword_100A03D3C[v1];\n  return result;\n}", "assembly": "; \n; GJRewardItem::getRandomShardType from 0x100055da0 to 0x100055dee (78 bytes)\n; \n; 0 xrefs:\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:36 +0000\n; \npush    rbp                                                            ; +0x0, 0x100055da0\nmov     rbp, rsp                                                       ; +0x1, 0x100055da1\ncall    _rand                                                          ; +0x4, 0x100055da4\ncvtsi2ss xmm0, eax                                                     ; +0x9, 0x100055da9\nmulss   xmm0, cs:dword_100A03A50                                       ; +0xd, 0x100055dad\ncvtss2sd xmm0, xmm0                                                    ; +0x15, 0x100055db5\nmulsd   xmm0, cs:qword_100A03B78                                       ; +0x19, 0x100055db9\nroundsd xmm0, xmm0, 9                                                  ; +0x21, 0x100055dc1\naddsd   xmm0, cs:depth                                                 ; +0x27, 0x100055dc7\ncvttsd2si ecx, xmm0                                                    ; +0x2f, 0x100055dcf\nadd     ecx, 0FFFFFFFEh                                                ; +0x33, 0x100055dd3\nmov     eax, 1                                                         ; +0x36, 0x100055dd6\ncmp     ecx, 8                                                         ; +0x3b, 0x100055ddb\nja      short loc_100055DEC                                            ; +0x3e, 0x100055dde\nmov     eax, ecx                                                       ; +0x40, 0x100055de0\nlea     rcx, dword_100A03D3C                                           ; +0x42, 0x100055de2\nmov     eax, [rcx+rax*4]                                               ; +0x49, 0x100055de9\npop     rbp                                                            ; +0x4c, 0x100055dec\nretn                                                                   ; +0x4d, 0x100055ded", "xrefs": [], "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"}