{"type": "func", "start": 5371963776, "end": 5371963989, "name": "GJBaseGameLayer::getMinPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMinPortalY from 0x14031a980 to 0x14031aa55 (213 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::getMaxPortalY @ 0x14031aacc\n// > GJBaseGameLayer::checkCollisions @ 0x14031af5a\n// > DrawGridLayer::draw @ 0x14040bde7\n// > PlayerObject::spiderTestJumpInternal @ 0x1404f2730\n// > <???> @ 0x14091ebf0\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:30:19 +0000\n// \n\nfloat __fastcall GJBaseGameLayer::getMinPortalY(__int64 a1)\n{\n  float v2; // xmm1_4\n\n  if ( *(float *)(a1 + 572) == 0.0 || *(_BYTE *)(a1 + 672) )\n    return fmaxf(\n             90.0,\n             (float)(*(float *)(a1 + 776) - (float)((float)(*(float *)(a1 + 748) * 0.5) / *(float *)(a1 + 424)))\n           + *(float *)(a1 + 436));\n  v2 = 90.0;\n  if ( (float)((float)((float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 200LL))(*(_QWORD *)(a1 + 4336))\n                                        + 4)\n                             - 1.0)\n                     / *(float *)(a1 + 424))\n             + *(float *)(a1 + 1296)) >= 90.0 )\n    return (float)((float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 200LL))(*(_QWORD *)(a1 + 4336))\n                                    + 4)\n                         - 1.0)\n                 / *(float *)(a1 + 424))\n         + *(float *)(a1 + 1296);\n  return v2;\n}", "assembly": "; \n; GJBaseGameLayer::getMinPortalY from 0x14031a980 to 0x14031aa55 (213 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::getMaxPortalY @ 0x14031aacc\n; > GJBaseGameLayer::checkCollisions @ 0x14031af5a\n; > DrawGridLayer::draw @ 0x14040bde7\n; > PlayerObject::spiderTestJumpInternal @ 0x1404f2730\n; > <???> @ 0x14091ebf0\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:30:19 +0000\n; \npush    rbx                                                            ; +0x0, 0x14031a980\nsub     rsp, 20h                                                       ; +0x2, 0x14031a982\nmovss   xmm1, dword ptr [rcx+23Ch]                                     ; +0x6, 0x14031a986\nxorps   xmm0, xmm0                                                     ; +0xe, 0x14031a98e\nucomiss xmm1, xmm0                                                     ; +0x11, 0x14031a991\nmov     rbx, rcx                                                       ; +0x14, 0x14031a994\njp      short loc_14031A99B                                            ; +0x17, 0x14031a997\njz      short loc_14031AA17                                            ; +0x19, 0x14031a999\ncmp     byte ptr [rcx+2A0h], 0                                         ; +0x1b, 0x14031a99b\njnz     short loc_14031AA17                                            ; +0x22, 0x14031a9a2\nmov     rcx, [rcx+10F0h]                                               ; +0x24, 0x14031a9a4\nmov     rax, [rcx]                                                     ; +0x2b, 0x14031a9ab\ncall    qword ptr [rax+0C8h]                                           ; +0x2e, 0x14031a9ae\nmovss   xmm1, cs:flt_140835780                                         ; +0x34, 0x14031a9b4\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x3c, 0x14031a9bc\nsubss   xmm0, cs:flt_140835080                                         ; +0x41, 0x14031a9c1\ndivss   xmm0, dword ptr [rbx+1A8h]                                     ; +0x49, 0x14031a9c9\naddss   xmm0, dword ptr [rbx+510h]                                     ; +0x51, 0x14031a9d1\ncomiss  xmm1, xmm0                                                     ; +0x59, 0x14031a9d9\nja      short loc_14031AA0E                                            ; +0x5c, 0x14031a9dc\nmov     rcx, [rbx+10F0h]                                               ; +0x5e, 0x14031a9de\nmov     rax, [rcx]                                                     ; +0x65, 0x14031a9e5\ncall    qword ptr [rax+0C8h]                                           ; +0x68, 0x14031a9e8\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x6e, 0x14031a9ee\nsubss   xmm0, cs:flt_140835080                                         ; +0x73, 0x14031a9f3\ndivss   xmm0, dword ptr [rbx+1A8h]                                     ; +0x7b, 0x14031a9fb\naddss   xmm0, dword ptr [rbx+510h]                                     ; +0x83, 0x14031aa03\nmovaps  xmm1, xmm0                                                     ; +0x8b, 0x14031aa0b\nmovaps  xmm0, xmm1                                                     ; +0x8e, 0x14031aa0e\nadd     rsp, 20h                                                       ; +0x91, 0x14031aa11\npop     rbx                                                            ; +0x95, 0x14031aa15\nretn                                                                   ; +0x96, 0x14031aa16\nmovss   xmm0, dword ptr [rcx+2ECh]                                     ; +0x97, 0x14031aa17\nmulss   xmm0, cs:dword_140834F20                                       ; +0x9f, 0x14031aa1f\nmovss   xmm1, dword ptr [rcx+308h]                                     ; +0xa7, 0x14031aa27\ndivss   xmm0, dword ptr [rcx+1A8h]                                     ; +0xaf, 0x14031aa2f\nsubss   xmm1, xmm0                                                     ; +0xb7, 0x14031aa37\nmovss   xmm0, cs:flt_140835780                                         ; +0xbb, 0x14031aa3b\naddss   xmm1, dword ptr [rcx+1B4h]                                     ; +0xc3, 0x14031aa43\nmaxss   xmm0, xmm1                                                     ; +0xcb, 0x14031aa4b\nadd     rsp, 20h                                                       ; +0xcf, 0x14031aa4f\npop     rbx                                                            ; +0xd3, 0x14031aa53\nretn                                                                   ; +0xd4, 0x14031aa54", "xrefs": ["GJBaseGameLayer::getMaxPortalY @ 0x14031aacc", "GJBaseGameLayer::checkCollisions @ 0x14031af5a", "DrawGridLayer::draw @ 0x14040bde7", "PlayerObject::spiderTestJumpInternal @ 0x1404f2730", "<???> @ 0x14091ebf0"], "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"}