{"type": "func", "start": 4300151168, "end": 4300151218, "name": "GameToolbox::fast_rand_0_1", "pseudocode": "// \n// GameToolbox::fast_rand_0_1 from 0x1004f1980 to 0x1004f19b2 (50 bytes)\n// \n// 10 xrefs:\n// > GJBaseGameLayer::tryGetObject @ 0x1001236a9\n// > GJBaseGameLayer::modifyObjectPhysics @ 0x1001486fe\n// > GJBaseGameLayer::modifyObjectPhysics @ 0x10014872d\n// > GJBaseGameLayer::modifyObjectPhysics @ 0x10014876c\n// > GJBaseGameLayer::modifyObjectPhysics @ 0x1001487aa\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x1001495c1\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x100149604\n// > EffectGameObject::triggerObject @ 0x1001b9f39\n// > RandTriggerGameObject::getRandomGroupID @ 0x1001c3278\n// > RandTriggerGameObject::triggerObject @ 0x1001c341c\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\nfloat __fastcall GameToolbox::fast_rand_0_1()\n{\n  qword_1009A2460 = 214013 * qword_1009A2460 + 2531011;\n  return (float)(WORD1(qword_1009A2460) & 0x7FFF) / 32767.0;\n}", "assembly": "; \n; GameToolbox::fast_rand_0_1 from 0x1004f1980 to 0x1004f19b2 (50 bytes)\n; \n; 10 xrefs:\n; > GJBaseGameLayer::tryGetObject @ 0x1001236a9\n; > GJBaseGameLayer::modifyObjectPhysics @ 0x1001486fe\n; > GJBaseGameLayer::modifyObjectPhysics @ 0x10014872d\n; > GJBaseGameLayer::modifyObjectPhysics @ 0x10014876c\n; > GJBaseGameLayer::modifyObjectPhysics @ 0x1001487aa\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x1001495c1\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x100149604\n; > EffectGameObject::triggerObject @ 0x1001b9f39\n; > RandTriggerGameObject::getRandomGroupID @ 0x1001c3278\n; > RandTriggerGameObject::triggerObject @ 0x1001c341c\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, 0x1004f1980\nmov     rbp, rsp                                                       ; +0x1, 0x1004f1981\nimul    rax, cs:qword_1009A2460, 343FDh                                ; +0x4, 0x1004f1984\nadd     rax, 269EC3h                                                   ; +0xf, 0x1004f198f\nmov     cs:qword_1009A2460, rax                                        ; +0x15, 0x1004f1995\nshr     eax, 10h                                                       ; +0x1c, 0x1004f199c\nand     eax, 7FFFh                                                     ; +0x1f, 0x1004f199f\ncvtsi2ss xmm0, eax                                                     ; +0x24, 0x1004f19a4\ndivss   xmm0, cs:dword_100816868                                       ; +0x28, 0x1004f19a8\npop     rbp                                                            ; +0x30, 0x1004f19b0\nretn                                                                   ; +0x31, 0x1004f19b1", "xrefs": ["GJBaseGameLayer::tryGetObject @ 0x1001236a9", "GJBaseGameLayer::modifyObjectPhysics @ 0x1001486fe", "GJBaseGameLayer::modifyObjectPhysics @ 0x10014872d", "GJBaseGameLayer::modifyObjectPhysics @ 0x10014876c", "GJBaseGameLayer::modifyObjectPhysics @ 0x1001487aa", "GJBaseGameLayer::processAdvancedFollowAction @ 0x1001495c1", "GJBaseGameLayer::processAdvancedFollowAction @ 0x100149604", "EffectGameObject::triggerObject @ 0x1001b9f39", "RandTriggerGameObject::getRandomGroupID @ 0x1001c3278", "RandTriggerGameObject::triggerObject @ 0x1001c341c"], "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"}