{"type": "func", "start": 4649148, "end": 4649330, "name": "GJBaseGameLayer::getMinPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMinPortalY from 0x46f0bc to 0x46f172 (182 bytes)\n// \n// 5 xrefs:\n// > PlayerObject::spiderTestJumpInternal @ 0x348b96\n// > PlayerObject::spiderTestJumpY @ 0x34a2a6\n// > DrawGridLayer::draw @ 0x36b9f6\n// > GJBaseGameLayer::getMaxPortalY @ 0x46f1c2\n// > GJBaseGameLayer::checkCollisions @ 0x4935a6\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 *p_y; // r5\n  float y; // s16\n  float v4; // s15\n  float v5; // s16\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 )\n  {\n    v4 = (float)((float)((float)-(float)(0.5 * *(float *)&a1->m_gameState.m_unkInt11) / a1->m_gameState.m_cameraZoom)\n               + *(float *)&a1->m_gameState.m_unkInt14)\n       + a1->m_gameState.m_cameraOffset.y;\n    if ( v4 > 90.0 )\n      return v4;\n  }\n  else\n  {\n    p_y = &a1->m_gameState.m_cameraPosition2.y;\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)\n                       / a1->m_gameState.m_cameraZoom)) > 90.0 )\n    {\n      v5 = *p_y;\n      return v5\n           + (float)((float)(a1->m_groundLayer->getPosition(a1->m_groundLayer)->y - 1.0) / a1->m_gameState.m_cameraZoom);\n    }\n  }\n  return 90.0;\n}", "assembly": "; \n; GJBaseGameLayer::getMinPortalY from 0x46f0bc to 0x46f172 (182 bytes)\n; \n; 5 xrefs:\n; > PlayerObject::spiderTestJumpInternal @ 0x348b96\n; > PlayerObject::spiderTestJumpY @ 0x34a2a6\n; > DrawGridLayer::draw @ 0x36b9f6\n; > GJBaseGameLayer::getMaxPortalY @ 0x46f1c2\n; > GJBaseGameLayer::checkCollisions @ 0x4935a6\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, 0x46f0bc\nPUSH            {R3-R5,LR}                                             ; +0x4, 0x46f0c0\nMOV             R4, R0                                                 ; +0x6, 0x46f0c2\nVPUSH           {D8-D9}                                                ; +0x8, 0x46f0c4\nVCMP.F32        S15, #0.0                                              ; +0xc, 0x46f0c8\nVLDR            S17, =90.0                                             ; +0x10, 0x46f0cc\nVMRS            APSR_nzcv, FPSCR                                       ; +0x14, 0x46f0d0\nBEQ             loc_46F13A                                             ; +0x18, 0x46f0d4\nLDRB.W          R3, [R0,#0x240]                                        ; +0x1a, 0x46f0d6\nCBNZ            R3, loc_46F13A                                         ; +0x1e, 0x46f0da\nADDW            R5, R0, #0x414                                         ; +0x20, 0x46f0dc\nLDR.W           R0, [R0,#0xA04]                                        ; +0x24, 0x46f0e0\nVMOV.F32        S18, #1.0                                              ; +0x28, 0x46f0e4\nVLDR            S16, [R5]                                              ; +0x2c, 0x46f0e8\nLDR             R3, [R0]                                               ; +0x30, 0x46f0ec\nLDR             R3, [R3,#0x60]                                         ; +0x32, 0x46f0ee\nBLX             R3                                                     ; +0x34, 0x46f0f0\nVLDR            S15, [R4,#0x148]                                       ; +0x36, 0x46f0f2\nVLDR            S14, [R0,#4]                                           ; +0x3a, 0x46f0f6\nVSUB.F32        S14, S14, S18                                          ; +0x3e, 0x46f0fa\nVDIV.F32        S15, S14, S15                                          ; +0x42, 0x46f0fe\nVADD.F32        S15, S16, S15                                          ; +0x46, 0x46f102\nVCMPE.F32       S15, S17                                               ; +0x4a, 0x46f106\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4e, 0x46f10a\nBGT             loc_46F116                                             ; +0x52, 0x46f10e\nVLDR            S15, =90.0                                             ; +0x54, 0x46f110\nB               loc_46F168                                             ; +0x58, 0x46f114\nLDR.W           R0, [R4,#0xA04]                                        ; +0x5a, 0x46f116\nVLDR            S16, [R5]                                              ; +0x5e, 0x46f11a\nLDR             R3, [R0]                                               ; +0x62, 0x46f11e\nLDR             R3, [R3,#0x60]                                         ; +0x64, 0x46f120\nBLX             R3                                                     ; +0x66, 0x46f122\nVLDR            S14, [R4,#0x148]                                       ; +0x68, 0x46f124\nVLDR            S15, [R0,#4]                                           ; +0x6c, 0x46f128\nVSUB.F32        S15, S15, S18                                          ; +0x70, 0x46f12c\nVDIV.F32        S15, S15, S14                                          ; +0x74, 0x46f130\nVADD.F32        S15, S16, S15                                          ; +0x78, 0x46f134\nB               loc_46F168                                             ; +0x7c, 0x46f138\nVMOV.F32        S15, #0.5                                              ; +0x7e, 0x46f13a\nVLDR            S14, [R4,#0x28C]                                       ; +0x82, 0x46f13e\nVNMUL.F32       S15, S15, S14                                          ; +0x86, 0x46f142\nVLDR            S14, [R4,#0x148]                                       ; +0x8a, 0x46f146\nVDIV.F32        S15, S15, S14                                          ; +0x8e, 0x46f14a\nVLDR            S14, [R4,#0x2A8]                                       ; +0x92, 0x46f14e\nVADD.F32        S15, S15, S14                                          ; +0x96, 0x46f152\nVLDR            S14, [R4,#0x154]                                       ; +0x9a, 0x46f156\nVADD.F32        S15, S15, S14                                          ; +0x9e, 0x46f15a\nVCMPE.F32       S15, S17                                               ; +0xa2, 0x46f15e\nVMRS            APSR_nzcv, FPSCR                                       ; +0xa6, 0x46f162\nBLE             loc_46F110                                             ; +0xaa, 0x46f166\nVPOP            {D8-D9}                                                ; +0xac, 0x46f168\nVMOV            R0, S15                                                ; +0xb0, 0x46f16c\nPOP             {R3-R5,PC}                                             ; +0xb4, 0x46f170", "xrefs": ["PlayerObject::spiderTestJumpInternal @ 0x348b96", "PlayerObject::spiderTestJumpY @ 0x34a2a6", "DrawGridLayer::draw @ 0x36b9f6", "GJBaseGameLayer::getMaxPortalY @ 0x46f1c2", "GJBaseGameLayer::checkCollisions @ 0x4935a6"], "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"}