{"type": "func", "start": 5370905440, "end": 5370905513, "name": "GJGameLevel::setPassword", "pseudocode": "// \n// GJGameLevel::setPassword from 0x140218360 to 0x1402183a9 (73 bytes)\n// \n// 2 xrefs:\n// > GJGameLevel::create @ 0x140263276\n// > <???> @ 0x14091b8c0\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 11:28:21 +0000\n// \n\n__int64 __fastcall GJGameLevel::setPassword(__int64 a1, int a2)\n{\n  float v4; // xmm0_4\n  __int64 result; // rax\n\n  v4 = (float)((float)rand() / 32767.0) * 1000.0;\n  *(_DWORD *)(a1 + 1056) = (int)v4;\n  result = (unsigned int)(a2 + (int)v4);\n  *(_DWORD *)(a1 + 1052) = result;\n  return result;\n}", "assembly": "; \n; GJGameLevel::setPassword from 0x140218360 to 0x1402183a9 (73 bytes)\n; \n; 2 xrefs:\n; > GJGameLevel::create @ 0x140263276\n; > <???> @ 0x14091b8c0\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 11:28:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140218360\npush    rdi                                                            ; +0x5, 0x140218365\nsub     rsp, 20h                                                       ; +0x6, 0x140218366\nmov     ebx, edx                                                       ; +0xa, 0x14021836a\nmov     rdi, rcx                                                       ; +0xc, 0x14021836c\ncall    cs:rand                                                        ; +0xf, 0x14021836f\nmovd    xmm0, eax                                                      ; +0x15, 0x140218375\ncvtdq2ps xmm0, xmm0                                                    ; +0x19, 0x140218379\ndivss   xmm0, cs:dword_140835BDC                                       ; +0x1c, 0x14021837c\nmulss   xmm0, cs:dword_140835AA4                                       ; +0x24, 0x140218384\ncvttss2si eax, xmm0                                                    ; +0x2c, 0x14021838c\nmov     [rdi+420h], eax                                                ; +0x30, 0x140218390\nadd     eax, ebx                                                       ; +0x36, 0x140218396\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x38, 0x140218398\nmov     [rdi+41Ch], eax                                                ; +0x3d, 0x14021839d\nadd     rsp, 20h                                                       ; +0x43, 0x1402183a3\npop     rdi                                                            ; +0x47, 0x1402183a7\nretn                                                                   ; +0x48, 0x1402183a8", "xrefs": ["GJGameLevel::create @ 0x140263276", "<???> @ 0x14091b8c0"], "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"}