{"type": "func", "start": 4300474592, "end": 4300474660, "name": "GJGameLevel::setNormalPercent", "pseudocode": "// \n// GJGameLevel::setNormalPercent from 0x1005408e0 to 0x100540924 (68 bytes)\n// \n// 0 xrefs:\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 12:31:57 +0000\n// \n\n__int64 __fastcall GJGameLevel::setNormalPercent(_DWORD *a1, int a2)\n{\n  float v2; // xmm0_4\n  __int64 result; // rax\n\n  a1[213] = a2;\n  v2 = (float)((float)rand() * 4.6566129e-10) * 1000.0;\n  a1[214] = (int)v2;\n  result = (unsigned int)(a2 + (int)v2);\n  a1[215] = result;\n  return result;\n}", "assembly": "; \n; GJGameLevel::setNormalPercent from 0x1005408e0 to 0x100540924 (68 bytes)\n; \n; 0 xrefs:\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 12:31:57 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005408e0\nmov     rbp, rsp                                                       ; +0x1, 0x1005408e1\npush    r14                                                            ; +0x4, 0x1005408e4\npush    rbx                                                            ; +0x6, 0x1005408e6\nmov     ebx, esi                                                       ; +0x7, 0x1005408e7\nmov     r14, rdi                                                       ; +0x9, 0x1005408e9\nmov     [rdi+354h], esi                                                ; +0xc, 0x1005408ec\ncall    _rand                                                          ; +0x12, 0x1005408f2\ncvtsi2ss xmm0, eax                                                     ; +0x17, 0x1005408f7\nmulss   xmm0, cs:dword_100A03A50                                       ; +0x1b, 0x1005408fb\nmulss   xmm0, cs:dword_100A03738                                       ; +0x23, 0x100540903\ncvttss2si eax, xmm0                                                    ; +0x2b, 0x10054090b\nmov     [r14+358h], eax                                                ; +0x2f, 0x10054090f\nadd     eax, ebx                                                       ; +0x36, 0x100540916\nmov     [r14+35Ch], eax                                                ; +0x38, 0x100540918\npop     rbx                                                            ; +0x3f, 0x10054091f\npop     r14                                                            ; +0x40, 0x100540920\npop     rbp                                                            ; +0x42, 0x100540922\nretn                                                                   ; +0x43, 0x100540923", "xrefs": [], "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"}