{"type": "func", "start": 5373633248, "end": 5373633438, "name": "TeleportPortalObject::setStartPos", "pseudocode": "// \n// TeleportPortalObject::setStartPos from 0x1404b22e0 to 0x1404b239e (190 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140611530\n// > <???> @ 0x1406a83c4\n// > <???> @ 0x1406a83d4\n// > <???> @ 0x1406dc9c8\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\nvoid TeleportPortalObject::setStartPos(TeleportPortalObject *a1, cocos2d::CCPoint a2)\n{\n  cocos2d::CCPoint v3; // rax\n  TeleportPortalObject *m_orangePortal; // rcx\n  float TeleportXOff; // xmm0_4\n  TeleportPortalObject *v6; // rbx\n  cocos2d::CCPoint v7; // rax\n  cocos2d::CCPoint v8; // [rsp+30h] [rbp+8h] BYREF\n  cocos2d::CCPoint v9; // [rsp+40h] [rbp+18h] BYREF\n  cocos2d::CCPoint v10; // [rsp+48h] [rbp+20h] BYREF\n\n  cocos2d::CCPoint::CCPoint(&v8);\n  if ( a1->m_isYellowPortal )\n    v8.x = *(float *)((__int64 (__fastcall *)(TeleportPortalObject *, cocos2d::CCPoint *))a1->getStartPos)(a1, &v9);\n  cocos2d::CCPoint::CCPoint(&v9);\n  GameObject::setStartPos(a1, v3);\n  m_orangePortal = a1->m_orangePortal;\n  if ( m_orangePortal )\n  {\n    ((void (*)(void))m_orangePortal->getPosition_0)();\n    TeleportXOff = TeleportPortalObject::getTeleportXOff(a1, nullptr);\n    cocos2d::CCPoint::CCPoint(TeleportXOff + v8.x, TeleportXOff + v8.x);\n    v6 = a1->m_orangePortal;\n    cocos2d::CCPoint::CCPoint(&v10);\n    GameObject::setStartPos(v6, v7);\n  }\n}", "assembly": "; \n; TeleportPortalObject::setStartPos from 0x1404b22e0 to 0x1404b239e (190 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140611530\n; > <???> @ 0x1406a83c4\n; > <???> @ 0x1406a83d4\n; > <???> @ 0x1406dc9c8\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    rdi                                                            ; +0x0, 0x1404b22e0\nsub     rsp, 20h                                                       ; +0x2, 0x1404b22e2\nmov     rdi, rcx                                                       ; +0x6, 0x1404b22e6\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x9, 0x1404b22e9\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xe, 0x1404b22ee\ncmp     byte ptr [rdi+750h], 0                                         ; +0x14, 0x1404b22f4\njz      short loc_1404B2318                                            ; +0x1b, 0x1404b22fb\nmov     rax, [rdi]                                                     ; +0x1d, 0x1404b22fd\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x20, 0x1404b2300\nmov     rcx, rdi                                                       ; +0x25, 0x1404b2305\ncall    qword ptr [rax+670h]                                           ; +0x28, 0x1404b2308\nmovss   xmm0, dword ptr [rax]                                          ; +0x2e, 0x1404b230e\nmovss   dword ptr [rsp+28h+arg_0], xmm0                                ; +0x32, 0x1404b2312\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x38, 0x1404b2318\nlea     rcx, [rsp+28h+arg_10]                                          ; +0x3d, 0x1404b231d\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x42, 0x1404b2322\nmov     rdx, rax                                                       ; +0x48, 0x1404b2328\nmov     rcx, rdi                                                       ; +0x4b, 0x1404b232b\ncall    GameObject__setStartPos                                        ; +0x4e, 0x1404b232e\nmov     rcx, [rdi+748h]                                                ; +0x53, 0x1404b2333\ntest    rcx, rcx                                                       ; +0x5a, 0x1404b233a\njz      short loc_1404B2398                                            ; +0x5d, 0x1404b233d\nmov     rax, [rcx]                                                     ; +0x5f, 0x1404b233f\nmov     [rsp+28h+arg_8], rbx                                           ; +0x62, 0x1404b2342\ncall    qword ptr [rax+0C8h]                                           ; +0x67, 0x1404b2347\nxor     edx, edx                                                       ; +0x6d, 0x1404b234d\nmov     rcx, rdi                                                       ; +0x6f, 0x1404b234f\nmov     rbx, rax                                                       ; +0x72, 0x1404b2352\ncall    TeleportPortalObject__getTeleportXOff                          ; +0x75, 0x1404b2355\naddss   xmm0, dword ptr [rsp+28h+arg_0]                                ; +0x7a, 0x1404b235a\nmovss   xmm2, dword ptr [rbx+4]                                        ; +0x80, 0x1404b2360\nlea     rcx, [rsp+28h+arg_10]                                          ; +0x85, 0x1404b2365\nmovaps  xmm1, xmm0                                                     ; +0x8a, 0x1404b236a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x8d, 0x1404b236d\nmov     rbx, [rdi+748h]                                                ; +0x93, 0x1404b2373\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x9a, 0x1404b237a\nmov     rdx, rax                                                       ; +0x9f, 0x1404b237f\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xa2, 0x1404b2382\nmov     rdx, rax                                                       ; +0xa8, 0x1404b2388\nmov     rcx, rbx                                                       ; +0xab, 0x1404b238b\ncall    GameObject__setStartPos                                        ; +0xae, 0x1404b238e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb3, 0x1404b2393\nadd     rsp, 20h                                                       ; +0xb8, 0x1404b2398\npop     rdi                                                            ; +0xbc, 0x1404b239c\nretn                                                                   ; +0xbd, 0x1404b239d", "xrefs": ["<???> @ 0x140611530", "<???> @ 0x1406a83c4", "<???> @ 0x1406a83d4", "<???> @ 0x1406dc9c8"], "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"}