{"type": "func", "start": 4296169296, "end": 4296169462, "name": "GJBaseGameLayer::getMaxPortalY", "pseudocode": "// \n// GJBaseGameLayer::getMaxPortalY from 0x100125750 to 0x1001257f6 (166 bytes)\n// \n// 3 xrefs:\n// > DrawGridLayer::draw @ 0x1001026fc\n// > PlayerObject::spiderTestJumpInternal @ 0x10040d851\n// > PlayerObject::spiderTestJumpX @ 0x10040edb8\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::getMaxPortalY(GJBaseGameLayer *a1)\n{\n  float y; // [rsp-14h] [rbp-14h]\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 )\n    return (float)(*(float *)&a1->m_gameState.m_unkInt11 / a1->m_gameState.m_cameraZoom)\n         + fmaxf(\n             (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             90.0);\n  y = a1->m_gameState.m_cameraPosition2.y;\n  return (float)((float)(*(float *)(((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->getPosition)(a1->m_groundLayer2)\n                                  + 4)\n                       + 1.0)\n               / a1->m_gameState.m_cameraZoom)\n       + y;\n}", "assembly": "; \n; GJBaseGameLayer::getMaxPortalY from 0x100125750 to 0x1001257f6 (166 bytes)\n; \n; 3 xrefs:\n; > DrawGridLayer::draw @ 0x1001026fc\n; > PlayerObject::spiderTestJumpInternal @ 0x10040d851\n; > PlayerObject::spiderTestJumpX @ 0x10040edb8\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\nmovss   xmm0, dword ptr [rdi+23Ch]                                     ; +0x0, 0x100125750\nxorps   xmm1, xmm1                                                     ; +0x8, 0x100125758\nucomiss xmm0, xmm1                                                     ; +0xb, 0x10012575b\njnz     short loc_100125762                                            ; +0xe, 0x10012575e\njnp     short loc_10012576B                                            ; +0x10, 0x100125760\ncmp     byte ptr [rdi+2A0h], 0                                         ; +0x12, 0x100125762\njz      short loc_1001257AC                                            ; +0x19, 0x100125769\nmovss   xmm1, dword ptr [rdi+1A8h]                                     ; +0x1b, 0x10012576b\nmovss   xmm0, dword ptr [rdi+2ECh]                                     ; +0x23, 0x100125773\nmovss   xmm2, cs:dword_100815248                                       ; +0x2b, 0x10012577b\nmulss   xmm2, xmm0                                                     ; +0x33, 0x100125783\ndivss   xmm2, xmm1                                                     ; +0x37, 0x100125787\naddss   xmm2, dword ptr [rdi+308h]                                     ; +0x3b, 0x10012578b\naddss   xmm2, dword ptr [rdi+1B4h]                                     ; +0x43, 0x100125793\nmaxss   xmm2, cs:dword_100815038                                       ; +0x4b, 0x10012579b\ndivss   xmm0, xmm1                                                     ; +0x53, 0x1001257a3\naddss   xmm0, xmm2                                                     ; +0x57, 0x1001257a7\nretn                                                                   ; +0x5b, 0x1001257ab\npush    rbp                                                            ; +0x5c, 0x1001257ac\nmov     rbp, rsp                                                       ; +0x5d, 0x1001257ad\npush    rbx                                                            ; +0x60, 0x1001257b0\npush    rax                                                            ; +0x61, 0x1001257b1\nmovss   xmm0, dword ptr [rdi+4B8h]                                     ; +0x62, 0x1001257b2\nmovss   dword ptr [rbp-0Ch], xmm0                                      ; +0x6a, 0x1001257ba\nmov     rax, [rdi+0EE8h]                                               ; +0x6f, 0x1001257bf\nmov     rcx, [rax]                                                     ; +0x76, 0x1001257c6\nmov     rbx, rdi                                                       ; +0x79, 0x1001257c9\nmov     rdi, rax                                                       ; +0x7c, 0x1001257cc\ncall    qword ptr [rcx+0C0h]                                           ; +0x7f, 0x1001257cf\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x85, 0x1001257d5\naddss   xmm0, cs:alpha                                                 ; +0x8a, 0x1001257da\ndivss   xmm0, dword ptr [rbx+1A8h]                                     ; +0x92, 0x1001257e2\naddss   xmm0, dword ptr [rbp-0Ch]                                      ; +0x9a, 0x1001257ea\nadd     rsp, 8                                                         ; +0x9f, 0x1001257ef\npop     rbx                                                            ; +0xa3, 0x1001257f3\npop     rbp                                                            ; +0xa4, 0x1001257f4\nretn                                                                   ; +0xa5, 0x1001257f5", "xrefs": ["DrawGridLayer::draw @ 0x1001026fc", "PlayerObject::spiderTestJumpInternal @ 0x10040d851", "PlayerObject::spiderTestJumpX @ 0x10040edb8"], "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"}