{"type": "func", "start": 8757356, "end": 8757500, "name": "GJBaseGameLayer::getMaxPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMaxPortalY from 0x85a06c to 0x85a0fc (144 bytes)\n// \n// 6 xrefs:\n// > PlayerObject::spiderTestJumpInternal @ 0x634494\n// > PlayerObject::spiderTestJumpY @ 0x635e18\n// > DrawGridLayer::draw @ 0x6669a8\n// > GJBaseGameLayer::checkCollisions @ 0x894b3c\n// > GJBaseGameLayer::update @ 0x89e174\n// > <???> @ 0x87390\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  float y; // s8\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  y = a1->m_gameState.m_cameraPosition2.y;\n  return y\n       + (float)((float)(a1->m_groundLayer2->getPosition(a1->m_groundLayer2)->y + 1.0) / a1->m_gameState.m_cameraZoom);\n}", "assembly": "; \n; GJBaseGameLayer::getMaxPortalY from 0x85a06c to 0x85a0fc (144 bytes)\n; \n; 6 xrefs:\n; > PlayerObject::spiderTestJumpInternal @ 0x634494\n; > PlayerObject::spiderTestJumpY @ 0x635e18\n; > DrawGridLayer::draw @ 0x6669a8\n; > GJBaseGameLayer::checkCollisions @ 0x894b3c\n; > GJBaseGameLayer::update @ 0x89e174\n; > <???> @ 0x87390\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x85a06c\nMOV             X29, SP                                                ; +0x4, 0x85a070\nLDR             S0, [X0,#0x23C]                                        ; +0x8, 0x85a074\nSTR             X19, [SP,#var_s10]                                     ; +0xc, 0x85a078\nSTR             D8, [SP,#var_s18]                                      ; +0x10, 0x85a07c\nMOV             X19, X0                                                ; +0x14, 0x85a080\nFCMP            S0, #0.0                                               ; +0x18, 0x85a084\nB.EQ            loc_85A094                                             ; +0x1c, 0x85a088\nLDRB            W0, [X0,#0x2A0]                                        ; +0x20, 0x85a08c\nCBZ             W0, loc_85A0BC                                         ; +0x24, 0x85a090\nMOV             X0, X19; this                                          ; +0x28, 0x85a094\nBL              _ZN15GJBaseGameLayer13getMinPortalYEv; GJBaseGameLayer::getMinPortalY(void) ; +0x2c, 0x85a098\nLDR             S1, [X19,#0x2EC]                                       ; +0x30, 0x85a09c\nLDR             S2, [X19,#0x1A8]                                       ; +0x34, 0x85a0a0\nLDR             X19, [SP,#var_s10]                                     ; +0x38, 0x85a0a4\nLDR             D8, [SP,#var_s18]                                      ; +0x3c, 0x85a0a8\nFDIV            S1, S1, S2                                             ; +0x40, 0x85a0ac\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x44, 0x85a0b0\nFADD            S0, S0, S1                                             ; +0x48, 0x85a0b4\nRET                                                                    ; +0x4c, 0x85a0b8\nLDR             X1, [X19,#0x1060]                                      ; +0x50, 0x85a0bc\nLDR             S8, [X19,#0x510]                                       ; +0x54, 0x85a0c0\nMOV             X0, X1                                                 ; +0x58, 0x85a0c4\nLDR             X1, [X1]                                               ; +0x5c, 0x85a0c8\nLDR             X1, [X1,#0xC0]                                         ; +0x60, 0x85a0cc\nBLR             X1                                                     ; +0x64, 0x85a0d0\nFMOV            S2, #1.0                                               ; +0x68, 0x85a0d4\nLDR             S0, [X0,#4]                                            ; +0x6c, 0x85a0d8\nLDR             S1, [X19,#0x1A8]                                       ; +0x70, 0x85a0dc\nLDR             X19, [SP,#var_s10]                                     ; +0x74, 0x85a0e0\nFADD            S0, S0, S2                                             ; +0x78, 0x85a0e4\nFDIV            S0, S0, S1                                             ; +0x7c, 0x85a0e8\nFADD            S0, S8, S0                                             ; +0x80, 0x85a0ec\nLDR             D8, [SP,#var_s18]                                      ; +0x84, 0x85a0f0\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x88, 0x85a0f4\nRET                                                                    ; +0x8c, 0x85a0f8", "xrefs": ["PlayerObject::spiderTestJumpInternal @ 0x634494", "PlayerObject::spiderTestJumpY @ 0x635e18", "DrawGridLayer::draw @ 0x6669a8", "GJBaseGameLayer::checkCollisions @ 0x894b3c", "GJBaseGameLayer::update @ 0x89e174", "<???> @ 0x87390"], "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"}