{"type": "func", "start": 4649336, "end": 4649444, "name": "GJBaseGameLayer::getMaxPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMaxPortalY from 0x46f178 to 0x46f1e4 (108 bytes)\n// \n// 5 xrefs:\n// > PlayerObject::spiderTestJumpInternal @ 0x348ba2\n// > PlayerObject::spiderTestJumpY @ 0x34a2b0\n// > DrawGridLayer::draw @ 0x36ba0c\n// > GJBaseGameLayer::checkCollisions @ 0x49359c\n// > GJBaseGameLayer::update @ 0x497a44\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; // s16\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 0x46f178 to 0x46f1e4 (108 bytes)\n; \n; 5 xrefs:\n; > PlayerObject::spiderTestJumpInternal @ 0x348ba2\n; > PlayerObject::spiderTestJumpY @ 0x34a2b0\n; > DrawGridLayer::draw @ 0x36ba0c\n; > GJBaseGameLayer::checkCollisions @ 0x49359c\n; > GJBaseGameLayer::update @ 0x497a44\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\nVLDR            S15, [R0,#0x1DC]                                       ; +0x0, 0x46f178\nPUSH            {R4,LR}                                                ; +0x4, 0x46f17c\nMOV             R4, R0                                                 ; +0x6, 0x46f17e\nVPUSH           {D8}                                                   ; +0x8, 0x46f180\nVCMP.F32        S15, #0.0                                              ; +0xc, 0x46f184\nVMRS            APSR_nzcv, FPSCR                                       ; +0x10, 0x46f188\nBEQ             loc_46F1C0                                             ; +0x14, 0x46f18c\nLDRB.W          R3, [R0,#0x240]                                        ; +0x16, 0x46f18e\nCBNZ            R3, loc_46F1C0                                         ; +0x1a, 0x46f192\nADDW            R3, R0, #0x414                                         ; +0x1c, 0x46f194\nLDR.W           R0, [R0,#0xA08]                                        ; +0x20, 0x46f198\nVLDR            S16, [R3]                                              ; +0x24, 0x46f19c\nLDR             R3, [R0]                                               ; +0x28, 0x46f1a0\nLDR             R3, [R3,#0x60]                                         ; +0x2a, 0x46f1a2\nBLX             R3                                                     ; +0x2c, 0x46f1a4\nVMOV.F32        S14, #1.0                                              ; +0x2e, 0x46f1a6\nVLDR            S15, [R0,#4]                                           ; +0x32, 0x46f1aa\nVADD.F32        S15, S15, S14                                          ; +0x36, 0x46f1ae\nVLDR            S14, [R4,#0x148]                                       ; +0x3a, 0x46f1b2\nVDIV.F32        S15, S15, S14                                          ; +0x3e, 0x46f1b6\nVADD.F32        S15, S16, S15                                          ; +0x42, 0x46f1ba\nB               loc_46F1DA                                             ; +0x46, 0x46f1be\nMOV             R0, R4; this                                           ; +0x48, 0x46f1c0\nBL              _ZN15GJBaseGameLayer13getMinPortalYEv; GJBaseGameLayer::getMinPortalY(void) ; +0x4a, 0x46f1c2\nVLDR            S14, [R4,#0x148]                                       ; +0x4e, 0x46f1c6\nVLDR            S15, [R4,#0x28C]                                       ; +0x52, 0x46f1ca\nVDIV.F32        S15, S15, S14                                          ; +0x56, 0x46f1ce\nVMOV            S14, R0                                                ; +0x5a, 0x46f1d2\nVADD.F32        S15, S14, S15                                          ; +0x5e, 0x46f1d6\nVPOP            {D8}                                                   ; +0x62, 0x46f1da\nVMOV            R0, S15                                                ; +0x66, 0x46f1de\nPOP             {R4,PC}                                                ; +0x6a, 0x46f1e2", "xrefs": ["PlayerObject::spiderTestJumpInternal @ 0x348ba2", "PlayerObject::spiderTestJumpY @ 0x34a2b0", "DrawGridLayer::draw @ 0x36ba0c", "GJBaseGameLayer::checkCollisions @ 0x49359c", "GJBaseGameLayer::update @ 0x497a44"], "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"}