{"type": "func", "start": 4298375444, "end": 4298375528, "name": "GJRewardItem::getRandomShardType", "pseudocode": "// \n// GJRewardItem::getRandomShardType from 0x100340114 to 0x100340168 (84 bytes)\n// \n// 1 xrefs:\n// > GJRewardItem::getRandomNonMaxShardType @ 0x1003347d4\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  unsigned int v0; // w8\n\n  v0 = (int)(floor(vcvts_n_f32_s32(rand(), 0x1Fu) * 10.0) + 1.0) - 2;\n  if ( v0 > 8 )\n    return FireShard;\n  else\n    return dword_10064549C[v0];\n}", "assembly": "; \n; GJRewardItem::getRandomShardType from 0x100340114 to 0x100340168 (84 bytes)\n; \n; 1 xrefs:\n; > GJRewardItem::getRandomNonMaxShardType @ 0x1003347d4\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\nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0x100340114\nMOV             X29, SP                                                ; +0x4, 0x100340118\nBL              _rand                                                  ; +0x8, 0x10034011c\nSCVTF           S0, W0, #0x1F                                          ; +0xc, 0x100340120\nFCVT            D0, S0                                                 ; +0x10, 0x100340124\nFMOV            D1, #10.0                                              ; +0x14, 0x100340128\nFMUL            D0, D0, D1                                             ; +0x18, 0x10034012c\nFRINTM          D0, D0                                                 ; +0x1c, 0x100340130\nFMOV            D1, #1.0                                               ; +0x20, 0x100340134\nFADD            D0, D0, D1                                             ; +0x24, 0x100340138\nFCVTZS          W8, D0                                                 ; +0x28, 0x10034013c\nSUB             W8, W8, #2                                             ; +0x2c, 0x100340140\nCMP             W8, #8                                                 ; +0x30, 0x100340144\nB.HI            loc_10034015C                                          ; +0x34, 0x100340148\nADRL            X9, dword_10064549C                                    ; +0x38, 0x10034014c\nLDR             W0, [X9,W8,UXTW#2]                                     ; +0x40, 0x100340154\nB               loc_100340160                                          ; +0x44, 0x100340158\nMOV             W0, #1                                                 ; +0x48, 0x10034015c\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x4c, 0x100340160\nRET                                                                    ; +0x50, 0x100340164", "xrefs": ["GJRewardItem::getRandomNonMaxShardType @ 0x1003347d4"], "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"}