{"type": "func", "start": 5370886000, "end": 5370886118, "name": "GJBaseGameLayer::getMaxPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMaxPortalY from 0x140213770 to 0x1402137e6 (118 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::checkCollisions @ 0x140213c3b\n// > GJBaseGameLayer::update @ 0x140238809\n// > PlayerObject::spiderTestJumpInternal @ 0x140394542\n// > <???> @ 0x1406cd0bc\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::getMaxPortalY(GJBaseGameLayer *a1)\n{\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 )\n    return GJBaseGameLayer::getMinPortalY(a1)\n         + (float)(*(float *)&a1->m_gameState.m_unkInt11 / a1->m_gameState.m_cameraZoom);\n  else\n    return (float)((float)(a1->m_groundLayer2->getPosition_0(a1->m_groundLayer2)->y + 1.0) / a1->m_gameState.m_cameraZoom)\n         + a1->m_gameState.m_cameraPosition2.y;\n}", "assembly": "; \n; GJBaseGameLayer::getMaxPortalY from 0x140213770 to 0x1402137e6 (118 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::checkCollisions @ 0x140213c3b\n; > GJBaseGameLayer::update @ 0x140238809\n; > PlayerObject::spiderTestJumpInternal @ 0x140394542\n; > <???> @ 0x1406cd0bc\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, 0x140213770\nsub     rsp, 20h                                                       ; +0x2, 0x140213772\nmovss   xmm1, dword ptr [rcx+23Ch]                                     ; +0x6, 0x140213776\nxorps   xmm0, xmm0                                                     ; +0xe, 0x14021377e\nucomiss xmm1, xmm0                                                     ; +0x11, 0x140213781\nmov     rbx, rcx                                                       ; +0x14, 0x140213784\njp      short loc_14021378B                                            ; +0x17, 0x140213787\njz      short loc_1402137C7                                            ; +0x19, 0x140213789\ncmp     byte ptr [rcx+2A0h], 0                                         ; +0x1b, 0x14021378b\njnz     short loc_1402137C7                                            ; +0x22, 0x140213792\nmov     rcx, [rcx+1018h]                                               ; +0x24, 0x140213794\nmov     rax, [rcx]                                                     ; +0x2b, 0x14021379b\ncall    qword ptr [rax+0C8h]                                           ; +0x2e, 0x14021379e\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x34, 0x1402137a4\naddss   xmm0, cs:flt_140622C24                                         ; +0x39, 0x1402137a9\ndivss   xmm0, dword ptr [rbx+1A8h]                                     ; +0x41, 0x1402137b1\naddss   xmm0, dword ptr [rbx+510h]                                     ; +0x49, 0x1402137b9\nadd     rsp, 20h                                                       ; +0x51, 0x1402137c1\npop     rbx                                                            ; +0x55, 0x1402137c5\nretn                                                                   ; +0x56, 0x1402137c6\ncall    GJBaseGameLayer__getMinPortalY                                 ; +0x57, 0x1402137c7\nmovss   xmm1, dword ptr [rbx+2ECh]                                     ; +0x5c, 0x1402137cc\ndivss   xmm1, dword ptr [rbx+1A8h]                                     ; +0x64, 0x1402137d4\naddss   xmm0, xmm1                                                     ; +0x6c, 0x1402137dc\nadd     rsp, 20h                                                       ; +0x70, 0x1402137e0\npop     rbx                                                            ; +0x74, 0x1402137e4\nretn                                                                   ; +0x75, 0x1402137e5", "xrefs": ["GJBaseGameLayer::checkCollisions @ 0x140213c3b", "GJBaseGameLayer::update @ 0x140238809", "PlayerObject::spiderTestJumpInternal @ 0x140394542", "<???> @ 0x1406cd0bc"], "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"}