{"type": "func", "start": 5373633440, "end": 5373633594, "name": "TeleportPortalObject::setPosition", "pseudocode": "// \n// TeleportPortalObject::setPosition from 0x1404b23a0 to 0x1404b243a (154 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140611138\n// > <???> @ 0x1406a83e8\n// > <???> @ 0x1406a83f8\n// > <???> @ 0x1406dc9ec\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::setPosition(TeleportPortalObject *a1, const cocos2d::CCPoint *a2)\n{\n  TeleportPortalObject *m_orangePortal; // rcx\n  float TeleportXOff; // xmm0_4\n  const cocos2d::CCPoint *v5; // rax\n  cocos2d::CCPoint v6; // [rsp+30h] [rbp+8h] BYREF\n\n  cocos2d::CCPoint::CCPoint(&v6);\n  if ( a1->m_isYellowPortal )\n    v6.x = a1->getPosition_0(a1)->x;\n  GameObject::setPosition(a1, &v6);\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 + v6.x, TeleportXOff + v6.x);\n    GameObject::setPosition(a1->m_orangePortal, v5);\n  }\n}", "assembly": "; \n; TeleportPortalObject::setPosition from 0x1404b23a0 to 0x1404b243a (154 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140611138\n; > <???> @ 0x1406a83e8\n; > <???> @ 0x1406a83f8\n; > <???> @ 0x1406dc9ec\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, 0x1404b23a0\nsub     rsp, 20h                                                       ; +0x2, 0x1404b23a2\nmov     rdi, rcx                                                       ; +0x6, 0x1404b23a6\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x9, 0x1404b23a9\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xe, 0x1404b23ae\ncmp     byte ptr [rdi+750h], 0                                         ; +0x14, 0x1404b23b4\njz      short loc_1404B23D3                                            ; +0x1b, 0x1404b23bb\nmov     rax, [rdi]                                                     ; +0x1d, 0x1404b23bd\nmov     rcx, rdi                                                       ; +0x20, 0x1404b23c0\ncall    qword ptr [rax+0C8h]                                           ; +0x23, 0x1404b23c3\nmovss   xmm0, dword ptr [rax]                                          ; +0x29, 0x1404b23c9\nmovss   dword ptr [rsp+28h+arg_0], xmm0                                ; +0x2d, 0x1404b23cd\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x33, 0x1404b23d3\nmov     rcx, rdi                                                       ; +0x38, 0x1404b23d8\ncall    GameObject__setPosition                                        ; +0x3b, 0x1404b23db\nmov     rcx, [rdi+748h]                                                ; +0x40, 0x1404b23e0\ntest    rcx, rcx                                                       ; +0x47, 0x1404b23e7\njz      short loc_1404B2434                                            ; +0x4a, 0x1404b23ea\nmov     rax, [rcx]                                                     ; +0x4c, 0x1404b23ec\nmov     [rsp+28h+arg_8], rbx                                           ; +0x4f, 0x1404b23ef\ncall    qword ptr [rax+0C8h]                                           ; +0x54, 0x1404b23f4\nxor     edx, edx                                                       ; +0x5a, 0x1404b23fa\nmov     rcx, rdi                                                       ; +0x5c, 0x1404b23fc\nmov     rbx, rax                                                       ; +0x5f, 0x1404b23ff\ncall    TeleportPortalObject__getTeleportXOff                          ; +0x62, 0x1404b2402\naddss   xmm0, dword ptr [rsp+28h+arg_0]                                ; +0x67, 0x1404b2407\nmovss   xmm2, dword ptr [rbx+4]                                        ; +0x6d, 0x1404b240d\nlea     rcx, [rsp+28h+arg_10]                                          ; +0x72, 0x1404b2412\nmovaps  xmm1, xmm0                                                     ; +0x77, 0x1404b2417\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x7a, 0x1404b241a\nmov     rcx, [rdi+748h]                                                ; +0x80, 0x1404b2420\nmov     rdx, rax                                                       ; +0x87, 0x1404b2427\ncall    GameObject__setPosition                                        ; +0x8a, 0x1404b242a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x8f, 0x1404b242f\nadd     rsp, 20h                                                       ; +0x94, 0x1404b2434\npop     rdi                                                            ; +0x98, 0x1404b2438\nretn                                                                   ; +0x99, 0x1404b2439", "xrefs": ["<???> @ 0x140611138", "<???> @ 0x1406a83e8", "<???> @ 0x1406a83f8", "<???> @ 0x1406dc9ec"], "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"}