{"type": "func", "start": 4298754192, "end": 4298754316, "name": "EndPortalObject::getSpawnPos", "pseudocode": "// \n// EndPortalObject::getSpawnPos from 0x10039c890 to 0x10039c90c (124 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::checkForEnd @ 0x1000baf58\n// > PlayLayer::checkForEnd @ 0x1000baf97\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\ncocos2d::CCPoint __fastcall EndPortalObject::getSpawnPos(EndPortalObject *a1)\n{\n  __int64 v1; // rsi\n  PlayLayer *m_playLayer; // rax\n  float v3; // xmm1_4\n  float v5; // [rsp+Ch] [rbp-14h]\n  cocos2d::CCPoint result; // 0:xmm0_8.8\n\n  v5 = *(float *)(v1 + 960);\n  m_playLayer = GameManager::sharedState()->m_playLayer;\n  if ( *(_BYTE *)(v1 + 1360) )\n    v3 = -1.0;\n  else\n    v3 = 1.0;\n  result.y = 0.0;\n  result.x = (float)((float)(-300.0 / m_playLayer->m_gameState.m_cameraZoom) * v3) + v5;\n  sub_10028CBE0((float *)a1, result.x, *(float *)(v1 + 964));\n  return result;\n}", "assembly": "; \n; EndPortalObject::getSpawnPos from 0x10039c890 to 0x10039c90c (124 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::checkForEnd @ 0x1000baf58\n; > PlayLayer::checkForEnd @ 0x1000baf97\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, 0x10039c890\nmov     rbp, rsp                                                       ; +0x1, 0x10039c891\npush    r14                                                            ; +0x4, 0x10039c894\npush    rbx                                                            ; +0x6, 0x10039c896\nsub     rsp, 10h                                                       ; +0x7, 0x10039c897\nmov     r14, rsi                                                       ; +0xb, 0x10039c89b\nmov     rbx, rdi                                                       ; +0xe, 0x10039c89e\nmovss   xmm0, dword ptr [rsi+3C0h]                                     ; +0x11, 0x10039c8a1\nmovss   [rbp+var_14], xmm0                                             ; +0x19, 0x10039c8a9\ncall    GameManager__sharedState                                       ; +0x1e, 0x10039c8ae\nmov     rax, [rax+1F8h]                                                ; +0x23, 0x10039c8b3\ncmp     byte ptr [r14+550h], 0                                         ; +0x2a, 0x10039c8ba\njnz     short loc_10039C8CE                                            ; +0x32, 0x10039c8c2\nmovss   xmm1, cs:alpha                                                 ; +0x34, 0x10039c8c4\njmp     short loc_10039C8D6                                            ; +0x3c, 0x10039c8cc\nmovss   xmm1, cs:dword_100815094                                       ; +0x3e, 0x10039c8ce\nmovss   xmm0, cs:dword_10081A5B4                                       ; +0x46, 0x10039c8d6\ndivss   xmm0, dword ptr [rax+1A8h]                                     ; +0x4e, 0x10039c8de\nmulss   xmm0, xmm1                                                     ; +0x56, 0x10039c8e6\naddss   xmm0, [rbp+var_14]                                             ; +0x5a, 0x10039c8ea\nmovss   xmm1, dword ptr [r14+3C4h]                                     ; +0x5f, 0x10039c8ef\nmov     rdi, rbx                                                       ; +0x68, 0x10039c8f8\ncall    sub_10028CBE0                                                  ; +0x6b, 0x10039c8fb\nmov     rax, rbx                                                       ; +0x70, 0x10039c900\nadd     rsp, 10h                                                       ; +0x73, 0x10039c903\npop     rbx                                                            ; +0x77, 0x10039c907\npop     r14                                                            ; +0x78, 0x10039c908\npop     rbp                                                            ; +0x7a, 0x10039c90a\nretn                                                                   ; +0x7b, 0x10039c90b", "xrefs": ["PlayLayer::checkForEnd @ 0x1000baf58", "PlayLayer::checkForEnd @ 0x1000baf97"], "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"}