{"type": "func", "start": 5370843952, "end": 5370844137, "name": "EndPortalObject::getSpawnPos", "pseudocode": "// \n// EndPortalObject::getSpawnPos from 0x140209330 to 0x1402093e9 (185 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::checkForEnd @ 0x140513e98\n// > PlayLayer::checkForEnd @ 0x140513ed2\n// > <???> @ 0x14091b32c\n// \n// This function is hookable on this platform (idp: pc, 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:28:16 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCPoint *__fastcall EndPortalObject::getSpawnPos(__int64 a1, cocos2d::CCPoint *a2)\n{\n  float v4; // xmm6_4\n  __int64 v5; // rax\n  void *v7; // [rsp+40h] [rbp+8h]\n\n  if ( *(_BYTE *)(a1 + 1368) )\n    v4 = -1.0;\n  else\n    v4 = 1.0;\n  v5 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v7 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v5 = qword_14090BFD0;\n  }\n  cocos2d::CCPoint::CCPoint(\n    a2,\n    *(float *)(a1 + 968) - (float)((float)(300.0 / *(float *)(*(_QWORD *)(v5 + 560) + 424LL)) * v4),\n    *(float *)(a1 + 972));\n  return a2;\n}", "assembly": "; \n; EndPortalObject::getSpawnPos from 0x140209330 to 0x1402093e9 (185 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::checkForEnd @ 0x140513e98\n; > PlayLayer::checkForEnd @ 0x140513ed2\n; > <???> @ 0x14091b32c\n; \n; This function is hookable on this platform (idp: pc, 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:28:16 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140209330\npush    rdi                                                            ; +0x5, 0x140209335\nsub     rsp, 30h                                                       ; +0x6, 0x140209336\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x14020933a\nmov     rdi, rdx                                                       ; +0xf, 0x14020933f\nmov     rbx, rcx                                                       ; +0x12, 0x140209342\ncmp     byte ptr [rcx+558h], 0                                         ; +0x15, 0x140209345\njz      short loc_140209358                                            ; +0x1c, 0x14020934c\nmovss   xmm6, cs:dword_140835C90                                       ; +0x1e, 0x14020934e\njmp     short loc_140209360                                            ; +0x26, 0x140209356\nmovss   xmm6, cs:flt_140835080                                         ; +0x28, 0x140209358\nmov     rax, cs:qword_14090BFD0                                        ; +0x30, 0x140209360\ntest    rax, rax                                                       ; +0x37, 0x140209367\njnz     short loc_14020939E                                            ; +0x3a, 0x14020936a\nmov     ecx, 6E8h; Size                                                ; +0x3c, 0x14020936c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x41, 0x140209371\nmov     [rsp+38h+arg_0], rax                                           ; +0x46, 0x140209376\nmov     rcx, rax                                                       ; +0x4b, 0x14020937b\ncall    GameManager__GameManager                                       ; +0x4e, 0x14020937e\nnop                                                                    ; +0x53, 0x140209383\nmov     cs:qword_14090BFD0, rax                                        ; +0x54, 0x140209384\nmov     rcx, [rax]                                                     ; +0x5b, 0x14020938b\nmov     rdx, [rcx+48h]                                                 ; +0x5e, 0x14020938e\nmov     rcx, rax                                                       ; +0x62, 0x140209392\ncall    rdx                                                            ; +0x65, 0x140209395\nmov     rax, cs:qword_14090BFD0                                        ; +0x67, 0x140209397\nmov     rax, [rax+230h]                                                ; +0x6e, 0x14020939e\nmovss   xmm0, cs:dword_1408359A4                                       ; +0x75, 0x1402093a5\ndivss   xmm0, dword ptr [rax+1A8h]                                     ; +0x7d, 0x1402093ad\nmulss   xmm0, xmm6                                                     ; +0x85, 0x1402093b5\nmovss   xmm1, dword ptr [rbx+3C8h]                                     ; +0x89, 0x1402093b9\nsubss   xmm1, xmm0                                                     ; +0x91, 0x1402093c1\nmovss   xmm2, dword ptr [rbx+3CCh]                                     ; +0x95, 0x1402093c5\nmov     rcx, rdi                                                       ; +0x9d, 0x1402093cd\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xa0, 0x1402093d0\nmov     rax, rdi                                                       ; +0xa6, 0x1402093d6\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xa9, 0x1402093d9\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xae, 0x1402093de\nadd     rsp, 30h                                                       ; +0xb3, 0x1402093e3\npop     rdi                                                            ; +0xb7, 0x1402093e7\nretn                                                                   ; +0xb8, 0x1402093e8", "xrefs": ["PlayLayer::checkForEnd @ 0x140513e98", "PlayLayer::checkForEnd @ 0x140513ed2", "<???> @ 0x14091b32c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}