{"type": "func", "start": 4296962464, "end": 4296962672, "name": "GJBaseGameLayer::getMinPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMinPortalY from 0x1001e71a0 to 0x1001e7270 (208 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::getMaxPortalY @ 0x1001e729c\n// > GJBaseGameLayer::checkCollisions @ 0x1001e74cc\n// > PlayerObject::spiderTestJumpInternal @ 0x100224c48\n// > DrawGridLayer::draw @ 0x10036a7b4\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 __fastcall GJBaseGameLayer::getMinPortalY(GJBaseGameLayer *a1)\n{\n  float result; // s0\n  float y; // s9\n  __int64 v4; // x0\n  float v5; // s9\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 )\n    return fmaxf(\n             a1->m_gameState.m_cameraOffset.y\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             90.0);\n  y = a1->m_gameState.m_cameraPosition2.y;\n  v4 = ((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getPosition)(a1->m_groundLayer);\n  result = 90.0;\n  if ( (float)(y + (float)((float)(*(float *)(v4 + 4) + -1.0) / a1->m_gameState.m_cameraZoom)) > 90.0 )\n  {\n    v5 = a1->m_gameState.m_cameraPosition2.y;\n    return v5\n         + (float)((float)(*(float *)(((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getPosition)(a1->m_groundLayer)\n                                    + 4)\n                         + -1.0)\n                 / a1->m_gameState.m_cameraZoom);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getMinPortalY from 0x1001e71a0 to 0x1001e7270 (208 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::getMaxPortalY @ 0x1001e729c\n; > GJBaseGameLayer::checkCollisions @ 0x1001e74cc\n; > PlayerObject::spiderTestJumpInternal @ 0x100224c48\n; > DrawGridLayer::draw @ 0x10036a7b4\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             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x1001e71a0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001e71a4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001e71a8\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001e71ac\nMOV             X19, X0                                                ; +0x10, 0x1001e71b0\nLDR             S0, [X0,#0x23C]                                        ; +0x14, 0x1001e71b4\nFCMP            S0, #0.0                                               ; +0x18, 0x1001e71b8\nB.EQ            loc_1001E71C8                                          ; +0x1c, 0x1001e71bc\nLDRB            W8, [X19,#0x2A0]                                       ; +0x20, 0x1001e71c0\nTBZ             W8, #0, loc_1001E7208                                  ; +0x24, 0x1001e71c4\nLDR             S0, [X19,#0x308]                                       ; +0x28, 0x1001e71c8\nLDR             S1, [X19,#0x2EC]                                       ; +0x2c, 0x1001e71cc\nFMOV            S2, #-0.5                                              ; +0x30, 0x1001e71d0\nFMUL            S1, S1, S2                                             ; +0x34, 0x1001e71d4\nLDR             S2, [X19,#0x1A8]                                       ; +0x38, 0x1001e71d8\nFDIV            S1, S1, S2                                             ; +0x3c, 0x1001e71dc\nFADD            S0, S0, S1                                             ; +0x40, 0x1001e71e0\nLDR             S1, [X19,#0x1B4]                                       ; +0x44, 0x1001e71e4\nFADD            S0, S1, S0                                             ; +0x48, 0x1001e71e8\nMOV             W8, #0x42B40000                                        ; +0x4c, 0x1001e71ec\nFMOV            S1, W8                                                 ; +0x50, 0x1001e71f0\nFMAXNM          S0, S0, S1                                             ; +0x54, 0x1001e71f4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x58, 0x1001e71f8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x5c, 0x1001e71fc\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x60, 0x1001e7200\nRET                                                                    ; +0x64, 0x1001e7204\nLDR             S9, [X19,#0x4B8]                                       ; +0x68, 0x1001e7208\nLDR             X0, [X19,#0xF08]                                       ; +0x6c, 0x1001e720c\nLDR             X8, [X0]                                               ; +0x70, 0x1001e7210\nLDR             X8, [X8,#0xC0]                                         ; +0x74, 0x1001e7214\nBLR             X8                                                     ; +0x78, 0x1001e7218\nLDR             S0, [X0,#4]                                            ; +0x7c, 0x1001e721c\nFMOV            S8, #-1.0                                              ; +0x80, 0x1001e7220\nFADD            S0, S0, S8                                             ; +0x84, 0x1001e7224\nLDR             S1, [X19,#0x1A8]                                       ; +0x88, 0x1001e7228\nFDIV            S0, S0, S1                                             ; +0x8c, 0x1001e722c\nFADD            S1, S9, S0                                             ; +0x90, 0x1001e7230\nMOV             W8, #0x42B40000                                        ; +0x94, 0x1001e7234\nFMOV            S0, W8                                                 ; +0x98, 0x1001e7238\nFCMP            S1, S0                                                 ; +0x9c, 0x1001e723c\nB.LE            loc_1001E71F8                                          ; +0xa0, 0x1001e7240\nLDR             S9, [X19,#0x4B8]                                       ; +0xa4, 0x1001e7244\nLDR             X0, [X19,#0xF08]                                       ; +0xa8, 0x1001e7248\nLDR             X8, [X0]                                               ; +0xac, 0x1001e724c\nLDR             X8, [X8,#0xC0]                                         ; +0xb0, 0x1001e7250\nBLR             X8                                                     ; +0xb4, 0x1001e7254\nLDR             S0, [X0,#4]                                            ; +0xb8, 0x1001e7258\nFADD            S0, S0, S8                                             ; +0xbc, 0x1001e725c\nLDR             S1, [X19,#0x1A8]                                       ; +0xc0, 0x1001e7260\nFDIV            S0, S0, S1                                             ; +0xc4, 0x1001e7264\nFADD            S0, S9, S0                                             ; +0xc8, 0x1001e7268\nB               loc_1001E71F8                                          ; +0xcc, 0x1001e726c", "xrefs": ["GJBaseGameLayer::getMaxPortalY @ 0x1001e729c", "GJBaseGameLayer::checkCollisions @ 0x1001e74cc", "PlayerObject::spiderTestJumpInternal @ 0x100224c48", "DrawGridLayer::draw @ 0x10036a7b4"], "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"}