{"type": "func", "start": 8757120, "end": 8757352, "name": "GJBaseGameLayer::getMinPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMinPortalY from 0x859f80 to 0x85a068 (232 bytes)\n// \n// 6 xrefs:\n// > PlayerObject::spiderTestJumpInternal @ 0x634488\n// > PlayerObject::spiderTestJumpY @ 0x635e0c\n// > DrawGridLayer::draw @ 0x66699c\n// > GJBaseGameLayer::getMaxPortalY @ 0x85a098\n// > GJBaseGameLayer::checkCollisions @ 0x894b48\n// > <???> @ 0x920e8\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 result; // s0\n  float y; // s8\n  float v4; // s8\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 )\n  {\n    result = (float)((float)((float)(*(float *)&a1->m_gameState.m_unkInt11 * -0.5) / a1->m_gameState.m_cameraZoom)\n                   + *(float *)&a1->m_gameState.m_unkInt14)\n           + a1->m_gameState.m_cameraOffset.y;\n    if ( result > 90.0 )\n      return result;\n    return 90.0;\n  }\n  y = a1->m_gameState.m_cameraPosition2.y;\n  if ( (float)(y\n             + (float)((float)(a1->m_groundLayer->getPosition(a1->m_groundLayer)->y - 1.0) / a1->m_gameState.m_cameraZoom)) <= 90.0 )\n    return 90.0;\n  v4 = a1->m_gameState.m_cameraPosition2.y;\n  return v4\n       + (float)((float)(a1->m_groundLayer->getPosition(a1->m_groundLayer)->y - 1.0) / a1->m_gameState.m_cameraZoom);\n}", "assembly": "; \n; GJBaseGameLayer::getMinPortalY from 0x859f80 to 0x85a068 (232 bytes)\n; \n; 6 xrefs:\n; > PlayerObject::spiderTestJumpInternal @ 0x634488\n; > PlayerObject::spiderTestJumpY @ 0x635e0c\n; > DrawGridLayer::draw @ 0x66699c\n; > GJBaseGameLayer::getMaxPortalY @ 0x85a098\n; > GJBaseGameLayer::checkCollisions @ 0x894b48\n; > <???> @ 0x920e8\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,#var_30]!                                ; +0x0, 0x859f80\nMOV             X29, SP                                                ; +0x4, 0x859f84\nLDR             S0, [X0,#0x23C]                                        ; +0x8, 0x859f88\nSTP             D8, D9, [SP,#0x30+var_18]                              ; +0xc, 0x859f8c\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x10, 0x859f90\nFCMP            S0, #0.0                                               ; +0x14, 0x859f94\nB.EQ            loc_859FA4                                             ; +0x18, 0x859f98\nLDRB            W1, [X0,#0x2A0]                                        ; +0x1c, 0x859f9c\nCBZ             W1, loc_859FF8                                         ; +0x20, 0x859fa0\nFMOV            S0, #-0.5                                              ; +0x24, 0x859fa4\nLDR             S1, [X0,#0x2EC]                                        ; +0x28, 0x859fa8\nLDR             S4, [X0,#0x1A8]                                        ; +0x2c, 0x859fac\nFMUL            S1, S1, S0                                             ; +0x30, 0x859fb0\nLDR             S3, [X0,#0x308]                                        ; +0x34, 0x859fb4\nLDR             S0, [X0,#0x1B4]                                        ; +0x38, 0x859fb8\nLDR             S2, =0x42B40000                                        ; +0x3c, 0x859fbc\nFDIV            S1, S1, S4                                             ; +0x40, 0x859fc0\nFADD            S1, S1, S3                                             ; +0x44, 0x859fc4\nFADD            S0, S1, S0                                             ; +0x48, 0x859fc8\nFCMPE           S0, S2                                                 ; +0x4c, 0x859fcc\nB.LE            loc_859FE4                                             ; +0x50, 0x859fd0\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x54, 0x859fd4\nLDP             D8, D9, [SP,#0x30+var_18]                              ; +0x58, 0x859fd8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0x859fdc\nRET                                                                    ; +0x60, 0x859fe0\nFMOV            S0, S2                                                 ; +0x64, 0x859fe4\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x68, 0x859fe8\nLDP             D8, D9, [SP,#0x30+var_18]                              ; +0x6c, 0x859fec\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x70, 0x859ff0\nRET                                                                    ; +0x74, 0x859ff4\nLDR             X1, [X0,#0x1058]                                       ; +0x78, 0x859ff8\nMOV             X19, X0                                                ; +0x7c, 0x859ffc\nLDR             S8, [X0,#0x510]                                        ; +0x80, 0x85a000\nMOV             X0, X1                                                 ; +0x84, 0x85a004\nLDR             X1, [X1]                                               ; +0x88, 0x85a008\nFMOV            S9, #1.0                                               ; +0x8c, 0x85a00c\nLDR             X1, [X1,#0xC0]                                         ; +0x90, 0x85a010\nBLR             X1                                                     ; +0x94, 0x85a014\nLDR             S0, [X0,#4]                                            ; +0x98, 0x85a018\nLDR             S1, [X19,#0x1A8]                                       ; +0x9c, 0x85a01c\nFSUB            S0, S0, S9                                             ; +0xa0, 0x85a020\nLDR             S2, =0x42B40000                                        ; +0xa4, 0x85a024\nFDIV            S0, S0, S1                                             ; +0xa8, 0x85a028\nFADD            S0, S8, S0                                             ; +0xac, 0x85a02c\nFCMPE           S0, S2                                                 ; +0xb0, 0x85a030\nB.LE            loc_859FE4                                             ; +0xb4, 0x85a034\nLDR             X1, [X19,#0x1058]                                      ; +0xb8, 0x85a038\nLDR             S8, [X19,#0x510]                                       ; +0xbc, 0x85a03c\nMOV             X0, X1                                                 ; +0xc0, 0x85a040\nLDR             X1, [X1]                                               ; +0xc4, 0x85a044\nLDR             X1, [X1,#0xC0]                                         ; +0xc8, 0x85a048\nBLR             X1                                                     ; +0xcc, 0x85a04c\nLDR             S1, [X0,#4]                                            ; +0xd0, 0x85a050\nLDR             S0, [X19,#0x1A8]                                       ; +0xd4, 0x85a054\nFSUB            S9, S1, S9                                             ; +0xd8, 0x85a058\nFDIV            S0, S9, S0                                             ; +0xdc, 0x85a05c\nFADD            S0, S8, S0                                             ; +0xe0, 0x85a060\nB               loc_859FD4                                             ; +0xe4, 0x85a064", "xrefs": ["PlayerObject::spiderTestJumpInternal @ 0x634488", "PlayerObject::spiderTestJumpY @ 0x635e0c", "DrawGridLayer::draw @ 0x66699c", "GJBaseGameLayer::getMaxPortalY @ 0x85a098", "GJBaseGameLayer::checkCollisions @ 0x894b48", "<???> @ 0x920e8"], "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"}