{"type": "func", "start": 4296962672, "end": 4296962792, "name": "GJBaseGameLayer::getMaxPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMaxPortalY from 0x1001e7270 to 0x1001e72e8 (120 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::checkCollisions @ 0x1001e74c0\n// > GJBaseGameLayer::update @ 0x1001fedd4\n// > PlayerObject::spiderTestJumpInternal @ 0x100224c54\n// > DrawGridLayer::draw @ 0x10036a7c0\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::getMaxPortalY(GJBaseGameLayer *a1)\n{\n  float MinPortalY; // s8\n  int m_unkInt11; // s0\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 )\n  {\n    MinPortalY = GJBaseGameLayer::getMinPortalY(a1);\n    m_unkInt11 = a1->m_gameState.m_unkInt11;\n  }\n  else\n  {\n    MinPortalY = a1->m_gameState.m_cameraPosition2.y;\n    *(float *)&m_unkInt11 = *(float *)(((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->getPosition)(a1->m_groundLayer2)\n                                     + 4)\n                          + 1.0;\n  }\n  return MinPortalY + (float)(*(float *)&m_unkInt11 / a1->m_gameState.m_cameraZoom);\n}", "assembly": "; \n; GJBaseGameLayer::getMaxPortalY from 0x1001e7270 to 0x1001e72e8 (120 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::checkCollisions @ 0x1001e74c0\n; > GJBaseGameLayer::update @ 0x1001fedd4\n; > PlayerObject::spiderTestJumpInternal @ 0x100224c54\n; > DrawGridLayer::draw @ 0x10036a7c0\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, 0x1001e7270\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001e7274\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001e7278\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001e727c\nMOV             X19, X0                                                ; +0x10, 0x1001e7280\nLDR             S0, [X0,#0x23C]                                        ; +0x14, 0x1001e7284\nFCMP            S0, #0.0                                               ; +0x18, 0x1001e7288\nB.EQ            loc_1001E7298                                          ; +0x1c, 0x1001e728c\nLDRB            W8, [X19,#0x2A0]                                       ; +0x20, 0x1001e7290\nTBZ             W8, #0, loc_1001E72AC                                  ; +0x24, 0x1001e7294\nMOV             X0, X19                                                ; +0x28, 0x1001e7298\nBL              GJBaseGameLayer__getMinPortalY                         ; +0x2c, 0x1001e729c\nFMOV            S8, S0                                                 ; +0x30, 0x1001e72a0\nLDR             S0, [X19,#0x2EC]                                       ; +0x34, 0x1001e72a4\nB               loc_1001E72CC                                          ; +0x38, 0x1001e72a8\nLDR             S8, [X19,#0x4B8]                                       ; +0x3c, 0x1001e72ac\nLDR             X0, [X19,#0xF10]                                       ; +0x40, 0x1001e72b0\nLDR             X8, [X0]                                               ; +0x44, 0x1001e72b4\nLDR             X8, [X8,#0xC0]                                         ; +0x48, 0x1001e72b8\nBLR             X8                                                     ; +0x4c, 0x1001e72bc\nLDR             S0, [X0,#4]                                            ; +0x50, 0x1001e72c0\nFMOV            S1, #1.0                                               ; +0x54, 0x1001e72c4\nFADD            S0, S0, S1                                             ; +0x58, 0x1001e72c8\nLDR             S1, [X19,#0x1A8]                                       ; +0x5c, 0x1001e72cc\nFDIV            S0, S0, S1                                             ; +0x60, 0x1001e72d0\nFADD            S0, S8, S0                                             ; +0x64, 0x1001e72d4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x68, 0x1001e72d8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x6c, 0x1001e72dc\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x70, 0x1001e72e0\nRET                                                                    ; +0x74, 0x1001e72e4", "xrefs": ["GJBaseGameLayer::checkCollisions @ 0x1001e74c0", "GJBaseGameLayer::update @ 0x1001fedd4", "PlayerObject::spiderTestJumpInternal @ 0x100224c54", "DrawGridLayer::draw @ 0x10036a7c0"], "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"}