{"type": "func", "start": 5370905280, "end": 5370905359, "name": "GJGameLevel::setStars", "pseudocode": "// \n// GJGameLevel::setStars from 0x1402182c0 to 0x14021830f (79 bytes)\n// \n// 2 xrefs:\n// > GJGameLevel::create @ 0x14026324c\n// > <???> @ 0x14091b8a8\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::setStars(_DWORD *a1, int a2)\n{\n  float v4; // xmm0_4\n  __int64 result; // rax\n\n  a1[257] = a2;\n  v4 = (float)((float)rand() / 32767.0) * 1000.0;\n  a1[256] = (int)v4;\n  result = (unsigned int)(a2 + (int)v4);\n  a1[255] = result;\n  return result;\n}", "assembly": "; \n; GJGameLevel::setStars from 0x1402182c0 to 0x14021830f (79 bytes)\n; \n; 2 xrefs:\n; > GJGameLevel::create @ 0x14026324c\n; > <???> @ 0x14091b8a8\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, 0x1402182c0\npush    rdi                                                            ; +0x5, 0x1402182c5\nsub     rsp, 20h                                                       ; +0x6, 0x1402182c6\nmov     ebx, edx                                                       ; +0xa, 0x1402182ca\nmov     [rcx+404h], edx                                                ; +0xc, 0x1402182cc\nmov     rdi, rcx                                                       ; +0x12, 0x1402182d2\ncall    cs:rand                                                        ; +0x15, 0x1402182d5\nmovd    xmm0, eax                                                      ; +0x1b, 0x1402182db\ncvtdq2ps xmm0, xmm0                                                    ; +0x1f, 0x1402182df\ndivss   xmm0, cs:dword_140835BDC                                       ; +0x22, 0x1402182e2\nmulss   xmm0, cs:dword_140835AA4                                       ; +0x2a, 0x1402182ea\ncvttss2si eax, xmm0                                                    ; +0x32, 0x1402182f2\nmov     [rdi+400h], eax                                                ; +0x36, 0x1402182f6\nadd     eax, ebx                                                       ; +0x3c, 0x1402182fc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3e, 0x1402182fe\nmov     [rdi+3FCh], eax                                                ; +0x43, 0x140218303\nadd     rsp, 20h                                                       ; +0x49, 0x140218309\npop     rdi                                                            ; +0x4d, 0x14021830d\nretn                                                                   ; +0x4e, 0x14021830e", "xrefs": ["GJGameLevel::create @ 0x14026324c", "<???> @ 0x14091b8a8"], "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"}