{"type": "func", "start": 4296019664, "end": 4296019843, "name": "DrawGridLayer::getPortalMinMax", "pseudocode": "// \n// DrawGridLayer::getPortalMinMax from 0x100100ed0 to 0x100100f83 (179 bytes)\n// \n// 0 xrefs:\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\ncocos2d::CCPoint __fastcall DrawGridLayer::getPortalMinMax(DrawGridLayer *a1, GameObject *a2)\n{\n  __int64 v2; // rdx\n  __int64 v3; // r14\n  float v4; // xmm0_4\n  __m128 v5; // xmm3\n  float v7; // [rsp+Ch] [rbp-14h]\n  cocos2d::CCPoint result; // 0:xmm0_8.8\n\n  v3 = v2;\n  if ( (*(unsigned int (__fastcall **)(__int64, GameObject *))(*(_QWORD *)v2 + 1784LL))(v2, a2) == 16 )\n    v4 = 240.0;\n  else\n    v4 = flt_1008164B0[(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v3 + 1784LL))(v3) == 33];\n  v7 = v4;\n  v5 = 0;\n  v5.f32[0] = (float)((float)((float)(-0.5 * v4)\n                            + *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3) + 4))\n                    + 0.0)\n            / 30.0;\n  result = (cocos2d::CCPoint)_mm_round_ss((__m128)0LL, v5, 9).u64[0];\n  result.x = fmaxf(result.x * 30.0, 90.0);\n  sub_10028CBE0(a1, result.x, v7 + result.x);\n  return result;\n}", "assembly": "; \n; DrawGridLayer::getPortalMinMax from 0x100100ed0 to 0x100100f83 (179 bytes)\n; \n; 0 xrefs:\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, 0x100100ed0\nmov     rbp, rsp                                                       ; +0x1, 0x100100ed1\npush    r14                                                            ; +0x4, 0x100100ed4\npush    rbx                                                            ; +0x6, 0x100100ed6\nsub     rsp, 10h                                                       ; +0x7, 0x100100ed7\nmov     r14, rdx                                                       ; +0xb, 0x100100edb\nmov     rbx, rdi                                                       ; +0xe, 0x100100ede\nmov     rax, [rdx]                                                     ; +0x11, 0x100100ee1\nmov     rdi, rdx                                                       ; +0x14, 0x100100ee4\ncall    qword ptr [rax+6F8h]                                           ; +0x17, 0x100100ee7\ncmp     eax, 10h                                                       ; +0x1d, 0x100100eed\njnz     short loc_100100EFC                                            ; +0x20, 0x100100ef0\nmovss   xmm0, cs:dword_100815B84                                       ; +0x22, 0x100100ef2\njmp     short loc_100100F1C                                            ; +0x2a, 0x100100efa\nmov     rax, [r14]                                                     ; +0x2c, 0x100100efc\nmov     rdi, r14                                                       ; +0x2f, 0x100100eff\ncall    qword ptr [rax+6F8h]                                           ; +0x32, 0x100100f02\nxor     ecx, ecx                                                       ; +0x38, 0x100100f08\ncmp     eax, 21h ; '!'                                                 ; +0x3a, 0x100100f0a\nsetz    cl                                                             ; +0x3d, 0x100100f0d\nlea     rax, flt_1008164B0                                             ; +0x40, 0x100100f10\nmovss   xmm0, dword ptr [rax+rcx*4]                                    ; +0x47, 0x100100f17\nmovss   [rbp+var_14], xmm0                                             ; +0x4c, 0x100100f1c\nmov     rax, [r14]                                                     ; +0x51, 0x100100f21\nmov     rdi, r14                                                       ; +0x54, 0x100100f24\ncall    qword ptr [rax+0C0h]                                           ; +0x57, 0x100100f27\nmovss   xmm0, cs:dword_100815248                                       ; +0x5d, 0x100100f2d\nmovss   xmm1, [rbp+var_14]                                             ; +0x65, 0x100100f35\nmulss   xmm0, xmm1                                                     ; +0x6a, 0x100100f3a\naddss   xmm0, dword ptr [rax+4]                                        ; +0x6e, 0x100100f3e\nxorps   xmm3, xmm3                                                     ; +0x73, 0x100100f43\naddss   xmm3, xmm0                                                     ; +0x76, 0x100100f46\nmovss   xmm2, cs:dword_100814FD0                                       ; +0x7a, 0x100100f4a\ndivss   xmm3, xmm2                                                     ; +0x82, 0x100100f52\nxorps   xmm0, xmm0                                                     ; +0x86, 0x100100f56\nroundss xmm0, xmm3, 9                                                  ; +0x89, 0x100100f59\nmulss   xmm0, xmm2                                                     ; +0x8f, 0x100100f5f\nmaxss   xmm0, cs:dword_100815038                                       ; +0x93, 0x100100f63\naddss   xmm1, xmm0                                                     ; +0x9b, 0x100100f6b\nmov     rdi, rbx                                                       ; +0x9f, 0x100100f6f\ncall    sub_10028CBE0                                                  ; +0xa2, 0x100100f72\nmov     rax, rbx                                                       ; +0xa7, 0x100100f77\nadd     rsp, 10h                                                       ; +0xaa, 0x100100f7a\npop     rbx                                                            ; +0xae, 0x100100f7e\npop     r14                                                            ; +0xaf, 0x100100f7f\npop     rbp                                                            ; +0xb1, 0x100100f81\nretn                                                                   ; +0xb2, 0x100100f82", "xrefs": [], "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"}