{"type": "func", "start": 5370885776, "end": 5370885989, "name": "GJBaseGameLayer::getMinPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMinPortalY from 0x140213690 to 0x140213765 (213 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::getMaxPortalY @ 0x1402137c7\n// > GJBaseGameLayer::checkCollisions @ 0x140213c46\n// > DrawGridLayer::draw @ 0x1402ea5a0\n// > DrawGridLayer::draw @ 0x1402ea5fe\n// > PlayerObject::spiderTestJumpInternal @ 0x140394532\n// > <???> @ 0x1406cd0b0\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\nfloat GJBaseGameLayer::getMinPortalY(GJBaseGameLayer *a1)\n{\n  float v2; // xmm1_4\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 )\n    return fmaxf(\n             90.0,\n             (float)(*(float *)&a1->m_gameState.m_unkInt14\n                   - (float)((float)(*(float *)&a1->m_gameState.m_unkInt11 * 0.5) / a1->m_gameState.m_cameraZoom))\n           + a1->m_gameState.m_cameraOffset.y);\n  v2 = 90.0;\n  if ( (float)((float)((float)(a1->m_groundLayer->getPosition_0(a1->m_groundLayer)->y - 1.0)\n                     / a1->m_gameState.m_cameraZoom)\n             + a1->m_gameState.m_cameraPosition2.y) >= 90.0 )\n    return (float)((float)(a1->m_groundLayer->getPosition_0(a1->m_groundLayer)->y - 1.0) / a1->m_gameState.m_cameraZoom)\n         + a1->m_gameState.m_cameraPosition2.y;\n  return v2;\n}", "assembly": "; \n; GJBaseGameLayer::getMinPortalY from 0x140213690 to 0x140213765 (213 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::getMaxPortalY @ 0x1402137c7\n; > GJBaseGameLayer::checkCollisions @ 0x140213c46\n; > DrawGridLayer::draw @ 0x1402ea5a0\n; > DrawGridLayer::draw @ 0x1402ea5fe\n; > PlayerObject::spiderTestJumpInternal @ 0x140394532\n; > <???> @ 0x1406cd0b0\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    rbx                                                            ; +0x0, 0x140213690\nsub     rsp, 20h                                                       ; +0x2, 0x140213692\nmovss   xmm1, dword ptr [rcx+23Ch]                                     ; +0x6, 0x140213696\nxorps   xmm0, xmm0                                                     ; +0xe, 0x14021369e\nucomiss xmm1, xmm0                                                     ; +0x11, 0x1402136a1\nmov     rbx, rcx                                                       ; +0x14, 0x1402136a4\njp      short loc_1402136AB                                            ; +0x17, 0x1402136a7\njz      short loc_140213727                                            ; +0x19, 0x1402136a9\ncmp     byte ptr [rcx+2A0h], 0                                         ; +0x1b, 0x1402136ab\njnz     short loc_140213727                                            ; +0x22, 0x1402136b2\nmov     rcx, [rcx+1010h]                                               ; +0x24, 0x1402136b4\nmov     rax, [rcx]                                                     ; +0x2b, 0x1402136bb\ncall    qword ptr [rax+0C8h]                                           ; +0x2e, 0x1402136be\nmovss   xmm1, cs:dword_140623294                                       ; +0x34, 0x1402136c4\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x3c, 0x1402136cc\nsubss   xmm0, cs:flt_140622C24                                         ; +0x41, 0x1402136d1\ndivss   xmm0, dword ptr [rbx+1A8h]                                     ; +0x49, 0x1402136d9\naddss   xmm0, dword ptr [rbx+510h]                                     ; +0x51, 0x1402136e1\ncomiss  xmm1, xmm0                                                     ; +0x59, 0x1402136e9\nja      short loc_14021371E                                            ; +0x5c, 0x1402136ec\nmov     rcx, [rbx+1010h]                                               ; +0x5e, 0x1402136ee\nmov     rax, [rcx]                                                     ; +0x65, 0x1402136f5\ncall    qword ptr [rax+0C8h]                                           ; +0x68, 0x1402136f8\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x6e, 0x1402136fe\nsubss   xmm0, cs:flt_140622C24                                         ; +0x73, 0x140213703\ndivss   xmm0, dword ptr [rbx+1A8h]                                     ; +0x7b, 0x14021370b\naddss   xmm0, dword ptr [rbx+510h]                                     ; +0x83, 0x140213713\nmovaps  xmm1, xmm0                                                     ; +0x8b, 0x14021371b\nmovaps  xmm0, xmm1                                                     ; +0x8e, 0x14021371e\nadd     rsp, 20h                                                       ; +0x91, 0x140213721\npop     rbx                                                            ; +0x95, 0x140213725\nretn                                                                   ; +0x96, 0x140213726\nmovss   xmm0, dword ptr [rcx+2ECh]                                     ; +0x97, 0x140213727\nmulss   xmm0, cs:dword_140622B08                                       ; +0x9f, 0x14021372f\nmovss   xmm1, dword ptr [rcx+308h]                                     ; +0xa7, 0x140213737\ndivss   xmm0, dword ptr [rcx+1A8h]                                     ; +0xaf, 0x14021373f\nsubss   xmm1, xmm0                                                     ; +0xb7, 0x140213747\nmovss   xmm0, cs:dword_140623294                                       ; +0xbb, 0x14021374b\naddss   xmm1, dword ptr [rcx+1B4h]                                     ; +0xc3, 0x140213753\nmaxss   xmm0, xmm1                                                     ; +0xcb, 0x14021375b\nadd     rsp, 20h                                                       ; +0xcf, 0x14021375f\npop     rbx                                                            ; +0xd3, 0x140213763\nretn                                                                   ; +0xd4, 0x140213764", "xrefs": ["GJBaseGameLayer::getMaxPortalY @ 0x1402137c7", "GJBaseGameLayer::checkCollisions @ 0x140213c46", "DrawGridLayer::draw @ 0x1402ea5a0", "DrawGridLayer::draw @ 0x1402ea5fe", "PlayerObject::spiderTestJumpInternal @ 0x140394532", "<???> @ 0x1406cd0b0"], "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"}