{"type": "func", "start": 4297599796, "end": 4297600004, "name": "GJBaseGameLayer::getMinPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMinPortalY from 0x100282b34 to 0x100282c04 (208 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::getMaxPortalY @ 0x100282c30\n// > GJBaseGameLayer::checkCollisions @ 0x100282e60\n// > PlayerObject::spiderTestJumpInternal @ 0x1002c186c\n// > DrawGridLayer::draw @ 0x10040d698\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\n__int64 __fastcall GJBaseGameLayer::getMinPortalY(__int64 result)\n{\n  __int64 v1; // x19\n  float v2; // s9\n\n  v1 = result;\n  if ( *(float *)(result + 572) != 0.0 && (*(_BYTE *)(result + 672) & 1) == 0 )\n  {\n    v2 = *(float *)(result + 1208);\n    result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(result + 3960) + 192LL))(*(_QWORD *)(result + 3960));\n    if ( (float)(v2 + (float)((float)(*(float *)(result + 4) + -1.0) / *(float *)(v1 + 424))) > 90.0 )\n      return (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 3960) + 192LL))(*(_QWORD *)(v1 + 3960));\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getMinPortalY from 0x100282b34 to 0x100282c04 (208 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::getMaxPortalY @ 0x100282c30\n; > GJBaseGameLayer::checkCollisions @ 0x100282e60\n; > PlayerObject::spiderTestJumpInternal @ 0x1002c186c\n; > DrawGridLayer::draw @ 0x10040d698\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, 0x100282b34\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100282b38\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100282b3c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100282b40\nMOV             X19, X0                                                ; +0x10, 0x100282b44\nLDR             S0, [X0,#0x23C]                                        ; +0x14, 0x100282b48\nFCMP            S0, #0.0                                               ; +0x18, 0x100282b4c\nB.EQ            loc_100282B5C                                          ; +0x1c, 0x100282b50\nLDRB            W8, [X19,#0x2A0]                                       ; +0x20, 0x100282b54\nTBZ             W8, #0, loc_100282B9C                                  ; +0x24, 0x100282b58\nLDR             S0, [X19,#0x308]                                       ; +0x28, 0x100282b5c\nLDR             S1, [X19,#0x2EC]                                       ; +0x2c, 0x100282b60\nFMOV            S2, #-0.5                                              ; +0x30, 0x100282b64\nFMUL            S1, S1, S2                                             ; +0x34, 0x100282b68\nLDR             S2, [X19,#0x1A8]                                       ; +0x38, 0x100282b6c\nFDIV            S1, S1, S2                                             ; +0x3c, 0x100282b70\nFADD            S0, S0, S1                                             ; +0x40, 0x100282b74\nLDR             S1, [X19,#0x1B4]                                       ; +0x44, 0x100282b78\nFADD            S0, S1, S0                                             ; +0x48, 0x100282b7c\nMOV             W8, #0x42B40000                                        ; +0x4c, 0x100282b80\nFMOV            S1, W8                                                 ; +0x50, 0x100282b84\nFMAXNM          S0, S0, S1                                             ; +0x54, 0x100282b88\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x58, 0x100282b8c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x5c, 0x100282b90\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x60, 0x100282b94\nRET                                                                    ; +0x64, 0x100282b98\nLDR             S9, [X19,#0x4B8]                                       ; +0x68, 0x100282b9c\nLDR             X0, [X19,#0xF78]                                       ; +0x6c, 0x100282ba0\nLDR             X8, [X0]                                               ; +0x70, 0x100282ba4\nLDR             X8, [X8,#0xC0]                                         ; +0x74, 0x100282ba8\nBLR             X8                                                     ; +0x78, 0x100282bac\nLDR             S0, [X0,#4]                                            ; +0x7c, 0x100282bb0\nFMOV            S8, #-1.0                                              ; +0x80, 0x100282bb4\nFADD            S0, S0, S8                                             ; +0x84, 0x100282bb8\nLDR             S1, [X19,#0x1A8]                                       ; +0x88, 0x100282bbc\nFDIV            S0, S0, S1                                             ; +0x8c, 0x100282bc0\nFADD            S1, S9, S0                                             ; +0x90, 0x100282bc4\nMOV             W8, #0x42B40000                                        ; +0x94, 0x100282bc8\nFMOV            S0, W8                                                 ; +0x98, 0x100282bcc\nFCMP            S1, S0                                                 ; +0x9c, 0x100282bd0\nB.LE            loc_100282B8C                                          ; +0xa0, 0x100282bd4\nLDR             S9, [X19,#0x4B8]                                       ; +0xa4, 0x100282bd8\nLDR             X0, [X19,#0xF78]                                       ; +0xa8, 0x100282bdc\nLDR             X8, [X0]                                               ; +0xac, 0x100282be0\nLDR             X8, [X8,#0xC0]                                         ; +0xb0, 0x100282be4\nBLR             X8                                                     ; +0xb4, 0x100282be8\nLDR             S0, [X0,#4]                                            ; +0xb8, 0x100282bec\nFADD            S0, S0, S8                                             ; +0xbc, 0x100282bf0\nLDR             S1, [X19,#0x1A8]                                       ; +0xc0, 0x100282bf4\nFDIV            S0, S0, S1                                             ; +0xc4, 0x100282bf8\nFADD            S0, S9, S0                                             ; +0xc8, 0x100282bfc\nB               loc_100282B8C                                          ; +0xcc, 0x100282c00", "xrefs": ["GJBaseGameLayer::getMaxPortalY @ 0x100282c30", "GJBaseGameLayer::checkCollisions @ 0x100282e60", "PlayerObject::spiderTestJumpInternal @ 0x1002c186c", "DrawGridLayer::draw @ 0x10040d698"], "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"}