{"type": "func", "start": 4295847584, "end": 4295847763, "name": "DrawGridLayer::getPortalMinMax", "pseudocode": "// \n// DrawGridLayer::getPortalMinMax from 0x1000d6ea0 to 0x1000d6f53 (179 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:20:55 +0000\n// \n\n__int64 __fastcall DrawGridLayer::getPortalMinMax(__int64 a1, __int64 a2, __int64 a3)\n{\n  float v4; // xmm0_4\n  __m128 v5; // xmm3\n  float v6; // xmm0_4\n  float v8; // [rsp+Ch] [rbp-14h]\n\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a3 + 1800LL))(a3) == 16 )\n    v4 = 240.0;\n  else\n    v4 = flt_100A048A8[(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a3 + 1800LL))(a3) == 33];\n  v8 = v4;\n  v5 = 0;\n  v5.f32[0] = (float)((float)((float)(-0.5 * v4)\n                            + *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a3 + 192LL))(a3) + 4))\n                    + 0.0)\n            / 30.0;\n  v6 = fmaxf(_mm_round_ss((__m128)0LL, v5, 9).f32[0] * 30.0, 90.0);\n  sub_100278250(a1, v6, v8 + v6);\n  return a1;\n}", "assembly": "; \n; DrawGridLayer::getPortalMinMax from 0x1000d6ea0 to 0x1000d6f53 (179 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:20:55 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000d6ea0\nmov     rbp, rsp                                                       ; +0x1, 0x1000d6ea1\npush    r14                                                            ; +0x4, 0x1000d6ea4\npush    rbx                                                            ; +0x6, 0x1000d6ea6\nsub     rsp, 10h                                                       ; +0x7, 0x1000d6ea7\nmov     r14, rdx                                                       ; +0xb, 0x1000d6eab\nmov     rbx, rdi                                                       ; +0xe, 0x1000d6eae\nmov     rax, [rdx]                                                     ; +0x11, 0x1000d6eb1\nmov     rdi, rdx                                                       ; +0x14, 0x1000d6eb4\ncall    qword ptr [rax+708h]                                           ; +0x17, 0x1000d6eb7\ncmp     eax, 10h                                                       ; +0x1d, 0x1000d6ebd\njnz     short loc_1000D6ECC                                            ; +0x20, 0x1000d6ec0\nmovss   xmm0, cs:dword_100A03EF4                                       ; +0x22, 0x1000d6ec2\njmp     short loc_1000D6EEC                                            ; +0x2a, 0x1000d6eca\nmov     rax, [r14]                                                     ; +0x2c, 0x1000d6ecc\nmov     rdi, r14                                                       ; +0x2f, 0x1000d6ecf\ncall    qword ptr [rax+708h]                                           ; +0x32, 0x1000d6ed2\nxor     ecx, ecx                                                       ; +0x38, 0x1000d6ed8\ncmp     eax, 21h ; '!'                                                 ; +0x3a, 0x1000d6eda\nsetz    cl                                                             ; +0x3d, 0x1000d6edd\nlea     rax, flt_100A048A8                                             ; +0x40, 0x1000d6ee0\nmovss   xmm0, dword ptr [rax+rcx*4]                                    ; +0x47, 0x1000d6ee7\nmovss   [rbp+var_14], xmm0                                             ; +0x4c, 0x1000d6eec\nmov     rax, [r14]                                                     ; +0x51, 0x1000d6ef1\nmov     rdi, r14                                                       ; +0x54, 0x1000d6ef4\ncall    qword ptr [rax+0C0h]                                           ; +0x57, 0x1000d6ef7\nmovss   xmm0, cs:dword_100A037A0                                       ; +0x5d, 0x1000d6efd\nmovss   xmm1, [rbp+var_14]                                             ; +0x65, 0x1000d6f05\nmulss   xmm0, xmm1                                                     ; +0x6a, 0x1000d6f0a\naddss   xmm0, dword ptr [rax+4]                                        ; +0x6e, 0x1000d6f0e\nxorps   xmm3, xmm3                                                     ; +0x73, 0x1000d6f13\naddss   xmm3, xmm0                                                     ; +0x76, 0x1000d6f16\nmovss   xmm2, cs:dword_100A035C4                                       ; +0x7a, 0x1000d6f1a\ndivss   xmm3, xmm2                                                     ; +0x82, 0x1000d6f22\nxorps   xmm0, xmm0                                                     ; +0x86, 0x1000d6f26\nroundss xmm0, xmm3, 9                                                  ; +0x89, 0x1000d6f29\nmulss   xmm0, xmm2                                                     ; +0x8f, 0x1000d6f2f\nmaxss   xmm0, cs:flt_100A035A4                                         ; +0x93, 0x1000d6f33\naddss   xmm1, xmm0                                                     ; +0x9b, 0x1000d6f3b\nmov     rdi, rbx                                                       ; +0x9f, 0x1000d6f3f\ncall    sub_100278250                                                  ; +0xa2, 0x1000d6f42\nmov     rax, rbx                                                       ; +0xa7, 0x1000d6f47\nadd     rsp, 10h                                                       ; +0xaa, 0x1000d6f4a\npop     rbx                                                            ; +0xae, 0x1000d6f4e\npop     r14                                                            ; +0xaf, 0x1000d6f4f\npop     rbp                                                            ; +0xb1, 0x1000d6f51\nretn                                                                   ; +0xb2, 0x1000d6f52", "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"}