{"type": "func", "start": 4296169072, "end": 4296169293, "name": "GJBaseGameLayer::getMinPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMinPortalY from 0x100125670 to 0x10012574d (221 bytes)\n// \n// 3 xrefs:\n// > DrawGridLayer::draw @ 0x1001026eb\n// > PlayerObject::spiderTestJumpInternal @ 0x10040d840\n// > PlayerObject::spiderTestJumpX @ 0x10040edab\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::getMinPortalY(GJBaseGameLayer *a1)\n{\n  float result; // xmm0_4\n  float y; // [rsp+0h] [rbp-Ch]\n  float v3; // [rsp+0h] [rbp-Ch]\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 )\n    return fmaxf(\n             (float)((float)((float)(*(float *)&a1->m_gameState.m_unkInt11 * -0.5) / a1->m_gameState.m_cameraZoom)\n                   + *(float *)&a1->m_gameState.m_unkInt14)\n           + a1->m_gameState.m_cameraOffset.y,\n             90.0);\n  y = a1->m_gameState.m_cameraPosition2.y;\n  result = 90.0;\n  if ( (float)((float)((float)(*(float *)(((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getPosition)(a1->m_groundLayer)\n                                        + 4)\n                             + -1.0)\n                     / a1->m_gameState.m_cameraZoom)\n             + y) > 90.0 )\n  {\n    v3 = a1->m_gameState.m_cameraPosition2.y;\n    return (float)((float)(*(float *)(((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getPosition)(a1->m_groundLayer)\n                                    + 4)\n                         + -1.0)\n                 / a1->m_gameState.m_cameraZoom)\n         + v3;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getMinPortalY from 0x100125670 to 0x10012574d (221 bytes)\n; \n; 3 xrefs:\n; > DrawGridLayer::draw @ 0x1001026eb\n; > PlayerObject::spiderTestJumpInternal @ 0x10040d840\n; > PlayerObject::spiderTestJumpX @ 0x10040edab\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\npush    rbp                                                            ; +0x0, 0x100125670\nmov     rbp, rsp                                                       ; +0x1, 0x100125671\npush    rbx                                                            ; +0x4, 0x100125674\npush    rax                                                            ; +0x5, 0x100125675\nmov     rbx, rdi                                                       ; +0x6, 0x100125676\nmovss   xmm0, dword ptr [rdi+23Ch]                                     ; +0x9, 0x100125679\nxorps   xmm1, xmm1                                                     ; +0x11, 0x100125681\nucomiss xmm0, xmm1                                                     ; +0x14, 0x100125684\njnz     short loc_10012568B                                            ; +0x17, 0x100125687\njnp     short loc_100125694                                            ; +0x19, 0x100125689\ncmp     byte ptr [rbx+2A0h], 0                                         ; +0x1b, 0x10012568b\njz      short loc_1001256CB                                            ; +0x22, 0x100125692\nmovss   xmm0, dword ptr [rbx+2ECh]                                     ; +0x24, 0x100125694\nmulss   xmm0, cs:dword_100815248                                       ; +0x2c, 0x10012569c\ndivss   xmm0, dword ptr [rbx+1A8h]                                     ; +0x34, 0x1001256a4\naddss   xmm0, dword ptr [rbx+308h]                                     ; +0x3c, 0x1001256ac\naddss   xmm0, dword ptr [rbx+1B4h]                                     ; +0x44, 0x1001256b4\nmaxss   xmm0, cs:dword_100815038                                       ; +0x4c, 0x1001256bc\nadd     rsp, 8                                                         ; +0x54, 0x1001256c4\npop     rbx                                                            ; +0x58, 0x1001256c8\npop     rbp                                                            ; +0x59, 0x1001256c9\nretn                                                                   ; +0x5a, 0x1001256ca\nmovss   xmm0, dword ptr [rbx+4B8h]                                     ; +0x5b, 0x1001256cb\nmovss   [rbp+var_C], xmm0                                              ; +0x63, 0x1001256d3\nmov     rdi, [rbx+0EE0h]                                               ; +0x68, 0x1001256d8\nmov     rax, [rdi]                                                     ; +0x6f, 0x1001256df\ncall    qword ptr [rax+0C0h]                                           ; +0x72, 0x1001256e2\nmovss   xmm1, dword ptr [rax+4]                                        ; +0x78, 0x1001256e8\naddss   xmm1, cs:dword_100815094                                       ; +0x7d, 0x1001256ed\ndivss   xmm1, dword ptr [rbx+1A8h]                                     ; +0x85, 0x1001256f5\naddss   xmm1, [rbp+var_C]                                              ; +0x8d, 0x1001256fd\nmovss   xmm0, cs:dword_100815038                                       ; +0x92, 0x100125702\nucomiss xmm1, xmm0                                                     ; +0x9a, 0x10012570a\njbe     short loc_1001256C4                                            ; +0x9d, 0x10012570d\nmovss   xmm0, dword ptr [rbx+4B8h]                                     ; +0x9f, 0x10012570f\nmovss   [rbp+var_C], xmm0                                              ; +0xa7, 0x100125717\nmov     rdi, [rbx+0EE0h]                                               ; +0xac, 0x10012571c\nmov     rax, [rdi]                                                     ; +0xb3, 0x100125723\ncall    qword ptr [rax+0C0h]                                           ; +0xb6, 0x100125726\nmovss   xmm0, dword ptr [rax+4]                                        ; +0xbc, 0x10012572c\naddss   xmm0, cs:dword_100815094                                       ; +0xc1, 0x100125731\ndivss   xmm0, dword ptr [rbx+1A8h]                                     ; +0xc9, 0x100125739\naddss   xmm0, [rbp+var_C]                                              ; +0xd1, 0x100125741\nadd     rsp, 8                                                         ; +0xd6, 0x100125746\npop     rbx                                                            ; +0xda, 0x10012574a\npop     rbp                                                            ; +0xdb, 0x10012574b\nretn                                                                   ; +0xdc, 0x10012574c", "xrefs": ["DrawGridLayer::draw @ 0x1001026eb", "PlayerObject::spiderTestJumpInternal @ 0x10040d840", "PlayerObject::spiderTestJumpX @ 0x10040edab"], "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"}