{"type": "func", "start": 4296028608, "end": 4296028774, "name": "GJBaseGameLayer::getMaxPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMaxPortalY from 0x1001031c0 to 0x100103266 (166 bytes)\n// \n// 3 xrefs:\n// > DrawGridLayer::draw @ 0x1000d87eb\n// > PlayerObject::spiderTestJumpInternal @ 0x1003fa971\n// > PlayerObject::spiderTestJumpX @ 0x1003fbed8\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:21:21 +0000\n// \n\nfloat __fastcall GJBaseGameLayer::getMaxPortalY(__int64 a1)\n{\n  float v2; // [rsp-14h] [rbp-14h]\n\n  if ( *(float *)(a1 + 572) == 0.0 || *(_BYTE *)(a1 + 672) )\n    return (float)(*(float *)(a1 + 748) / *(float *)(a1 + 424))\n         + fmaxf(\n             (float)((float)((float)(-0.5 * *(float *)(a1 + 748)) / *(float *)(a1 + 424)) + *(float *)(a1 + 776))\n           + *(float *)(a1 + 436),\n             90.0);\n  v2 = *(float *)(a1 + 1208);\n  return (float)((float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3968) + 192LL))(*(_QWORD *)(a1 + 3968))\n                                  + 4)\n                       + 1.0)\n               / *(float *)(a1 + 424))\n       + v2;\n}", "assembly": "; \n; GJBaseGameLayer::getMaxPortalY from 0x1001031c0 to 0x100103266 (166 bytes)\n; \n; 3 xrefs:\n; > DrawGridLayer::draw @ 0x1000d87eb\n; > PlayerObject::spiderTestJumpInternal @ 0x1003fa971\n; > PlayerObject::spiderTestJumpX @ 0x1003fbed8\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:21:21 +0000\n; \nmovss   xmm0, dword ptr [rdi+23Ch]                                     ; +0x0, 0x1001031c0\nxorps   xmm1, xmm1                                                     ; +0x8, 0x1001031c8\nucomiss xmm0, xmm1                                                     ; +0xb, 0x1001031cb\njnz     short loc_1001031D2                                            ; +0xe, 0x1001031ce\njnp     short loc_1001031DB                                            ; +0x10, 0x1001031d0\ncmp     byte ptr [rdi+2A0h], 0                                         ; +0x12, 0x1001031d2\njz      short loc_10010321C                                            ; +0x19, 0x1001031d9\nmovss   xmm1, dword ptr [rdi+1A8h]                                     ; +0x1b, 0x1001031db\nmovss   xmm0, dword ptr [rdi+2ECh]                                     ; +0x23, 0x1001031e3\nmovss   xmm2, cs:dword_100A037A0                                       ; +0x2b, 0x1001031eb\nmulss   xmm2, xmm0                                                     ; +0x33, 0x1001031f3\ndivss   xmm2, xmm1                                                     ; +0x37, 0x1001031f7\naddss   xmm2, dword ptr [rdi+308h]                                     ; +0x3b, 0x1001031fb\naddss   xmm2, dword ptr [rdi+1B4h]                                     ; +0x43, 0x100103203\nmaxss   xmm2, cs:flt_100A035A4                                         ; +0x4b, 0x10010320b\ndivss   xmm0, xmm1                                                     ; +0x53, 0x100103213\naddss   xmm0, xmm2                                                     ; +0x57, 0x100103217\nretn                                                                   ; +0x5b, 0x10010321b\npush    rbp                                                            ; +0x5c, 0x10010321c\nmov     rbp, rsp                                                       ; +0x5d, 0x10010321d\npush    rbx                                                            ; +0x60, 0x100103220\npush    rax                                                            ; +0x61, 0x100103221\nmovss   xmm0, dword ptr [rdi+4B8h]                                     ; +0x62, 0x100103222\nmovss   dword ptr [rbp-0Ch], xmm0                                      ; +0x6a, 0x10010322a\nmov     rax, [rdi+0F80h]                                               ; +0x6f, 0x10010322f\nmov     rcx, [rax]                                                     ; +0x76, 0x100103236\nmov     rbx, rdi                                                       ; +0x79, 0x100103239\nmov     rdi, rax                                                       ; +0x7c, 0x10010323c\ncall    qword ptr [rcx+0C0h]                                           ; +0x7f, 0x10010323f\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x85, 0x100103245\naddss   xmm0, cs:alpha                                                 ; +0x8a, 0x10010324a\ndivss   xmm0, dword ptr [rbx+1A8h]                                     ; +0x92, 0x100103252\naddss   xmm0, dword ptr [rbp-0Ch]                                      ; +0x9a, 0x10010325a\nadd     rsp, 8                                                         ; +0x9f, 0x10010325f\npop     rbx                                                            ; +0xa3, 0x100103263\npop     rbp                                                            ; +0xa4, 0x100103264\nretn                                                                   ; +0xa5, 0x100103265", "xrefs": ["DrawGridLayer::draw @ 0x1000d87eb", "PlayerObject::spiderTestJumpInternal @ 0x1003fa971", "PlayerObject::spiderTestJumpX @ 0x1003fbed8"], "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"}