{"type": "func", "start": 4297600004, "end": 4297600124, "name": "GJBaseGameLayer::getMaxPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMaxPortalY from 0x100282c04 to 0x100282c7c (120 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::checkCollisions @ 0x100282e54\n// > GJBaseGameLayer::update @ 0x10029af20\n// > PlayerObject::spiderTestJumpInternal @ 0x1002c1878\n// > DrawGridLayer::draw @ 0x10040d6a4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:01:56 +0000\n// \n\nfloat __fastcall GJBaseGameLayer::getMaxPortalY(__int64 a1)\n{\n  float v2; // s0\n  float v3; // s8\n  float v4; // s0\n\n  if ( *(float *)(a1 + 572) == 0.0 || (*(_BYTE *)(a1 + 672) & 1) != 0 )\n  {\n    GJBaseGameLayer::getMinPortalY(a1);\n    v3 = v2;\n    v4 = *(float *)(a1 + 748);\n  }\n  else\n  {\n    v3 = *(float *)(a1 + 1208);\n    v4 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3968) + 192LL))(*(_QWORD *)(a1 + 3968)) + 4)\n       + 1.0;\n  }\n  return v3 + (float)(v4 / *(float *)(a1 + 424));\n}", "assembly": "; \n; GJBaseGameLayer::getMaxPortalY from 0x100282c04 to 0x100282c7c (120 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::checkCollisions @ 0x100282e54\n; > GJBaseGameLayer::update @ 0x10029af20\n; > PlayerObject::spiderTestJumpInternal @ 0x1002c1878\n; > DrawGridLayer::draw @ 0x10040d6a4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:01:56 +0000\n; \nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x100282c04\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100282c08\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100282c0c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100282c10\nMOV             X19, X0                                                ; +0x10, 0x100282c14\nLDR             S0, [X0,#0x23C]                                        ; +0x14, 0x100282c18\nFCMP            S0, #0.0                                               ; +0x18, 0x100282c1c\nB.EQ            loc_100282C2C                                          ; +0x1c, 0x100282c20\nLDRB            W8, [X19,#0x2A0]                                       ; +0x20, 0x100282c24\nTBZ             W8, #0, loc_100282C40                                  ; +0x24, 0x100282c28\nMOV             X0, X19                                                ; +0x28, 0x100282c2c\nBL              GJBaseGameLayer__getMinPortalY                         ; +0x2c, 0x100282c30\nFMOV            S8, S0                                                 ; +0x30, 0x100282c34\nLDR             S0, [X19,#0x2EC]                                       ; +0x34, 0x100282c38\nB               loc_100282C60                                          ; +0x38, 0x100282c3c\nLDR             S8, [X19,#0x4B8]                                       ; +0x3c, 0x100282c40\nLDR             X0, [X19,#0xF80]                                       ; +0x40, 0x100282c44\nLDR             X8, [X0]                                               ; +0x44, 0x100282c48\nLDR             X8, [X8,#0xC0]                                         ; +0x48, 0x100282c4c\nBLR             X8                                                     ; +0x4c, 0x100282c50\nLDR             S0, [X0,#4]                                            ; +0x50, 0x100282c54\nFMOV            S1, #1.0                                               ; +0x54, 0x100282c58\nFADD            S0, S0, S1                                             ; +0x58, 0x100282c5c\nLDR             S1, [X19,#0x1A8]                                       ; +0x5c, 0x100282c60\nFDIV            S0, S0, S1                                             ; +0x60, 0x100282c64\nFADD            S0, S8, S0                                             ; +0x64, 0x100282c68\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x68, 0x100282c6c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x6c, 0x100282c70\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x70, 0x100282c74\nRET                                                                    ; +0x74, 0x100282c78", "xrefs": ["GJBaseGameLayer::checkCollisions @ 0x100282e54", "GJBaseGameLayer::update @ 0x10029af20", "PlayerObject::spiderTestJumpInternal @ 0x1002c1878", "DrawGridLayer::draw @ 0x10040d6a4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}