{"type": "func", "start": 4299024912, "end": 4299024996, "name": "GJRewardItem::getRandomShardType", "pseudocode": "// \n// GJRewardItem::getRandomShardType from 0x1003dea10 to 0x1003dea64 (84 bytes)\n// \n// 1 xrefs:\n// > GJRewardItem::getRandomNonMaxShardType @ 0x1003d2938\n// \n// This function is hookable on this platform (idp: arm, 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 11:04:20 +0000\n// \n\n__int64 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 1;\n  else\n    return dword_10076E400[v0];\n}", "assembly": "; \n; GJRewardItem::getRandomShardType from 0x1003dea10 to 0x1003dea64 (84 bytes)\n; \n; 1 xrefs:\n; > GJRewardItem::getRandomNonMaxShardType @ 0x1003d2938\n; \n; This function is hookable on this platform (idp: arm, 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 11:04:20 +0000\n; \nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0x1003dea10\nMOV             X29, SP                                                ; +0x4, 0x1003dea14\nBL              _rand                                                  ; +0x8, 0x1003dea18\nSCVTF           S0, W0, #0x1F                                          ; +0xc, 0x1003dea1c\nFCVT            D0, S0                                                 ; +0x10, 0x1003dea20\nFMOV            D1, #10.0                                              ; +0x14, 0x1003dea24\nFMUL            D0, D0, D1                                             ; +0x18, 0x1003dea28\nFRINTM          D0, D0                                                 ; +0x1c, 0x1003dea2c\nFMOV            D1, #1.0                                               ; +0x20, 0x1003dea30\nFADD            D0, D0, D1                                             ; +0x24, 0x1003dea34\nFCVTZS          W8, D0                                                 ; +0x28, 0x1003dea38\nSUB             W8, W8, #2                                             ; +0x2c, 0x1003dea3c\nCMP             W8, #8                                                 ; +0x30, 0x1003dea40\nB.HI            loc_1003DEA58                                          ; +0x34, 0x1003dea44\nADRL            X9, dword_10076E400                                    ; +0x38, 0x1003dea48\nLDR             W0, [X9,W8,UXTW#2]                                     ; +0x40, 0x1003dea50\nB               loc_1003DEA5C                                          ; +0x44, 0x1003dea54\nMOV             W0, #1                                                 ; +0x48, 0x1003dea58\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x4c, 0x1003dea5c\nRET                                                                    ; +0x50, 0x1003dea60", "xrefs": ["GJRewardItem::getRandomNonMaxShardType @ 0x1003d2938"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}