{"type": "func", "start": 4296151728, "end": 4296151856, "name": "GJBaseGameLayer::getPortalTargetPos", "pseudocode": "// \n// GJBaseGameLayer::getPortalTargetPos from 0x1001212b0 to 0x100121330 (128 bytes)\n// \n// 0 xrefs:\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 GJBaseGameLayer::getPortalTargetPos(\n        GJBaseGameLayer *a1,\n        TeleportPortalObject *a2,\n        GameObject *a3,\n        PlayerObject *a4)\n{\n  __int64 v4; // r8\n  _BYTE v7[4]; // [rsp+4h] [rbp-1Ch] BYREF\n  float v8; // [rsp+8h] [rbp-18h]\n  float v9; // [rsp+Ch] [rbp-14h]\n  cocos2d::CCPoint result; // 0:xmm0_8.8\n\n  if ( a4 && a3->m_objectID != 747 )\n    return ((cocos2d::CCPoint (__fastcall *)(GJBaseGameLayer *, PlayerObject *))a4->getRealPosition)(a1, a4);\n  v9 = *(float *)(*(__int64 (__fastcall **)(__int64, TeleportPortalObject *))(*(_QWORD *)v4 + 192LL))(v4, a2);\n  ((void (__fastcall *)(_BYTE *, GameObject *))a3->getRealPosition)(v7, a3);\n  result = (cocos2d::CCPoint)LODWORD(v9);\n  sub_10028CBE0(a1, v9, v8 + a3[1].m_sQuad.bl.texCoords.u);\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getPortalTargetPos from 0x1001212b0 to 0x100121330 (128 bytes)\n; \n; 0 xrefs:\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, 0x1001212b0\nmov     rbp, rsp                                                       ; +0x1, 0x1001212b1\npush    r14                                                            ; +0x4, 0x1001212b4\npush    rbx                                                            ; +0x6, 0x1001212b6\nsub     rsp, 10h                                                       ; +0x7, 0x1001212b7\nmov     r14, rdx                                                       ; +0xb, 0x1001212bb\nmov     rbx, rdi                                                       ; +0xe, 0x1001212be\ntest    rcx, rcx                                                       ; +0x11, 0x1001212c1\njz      short loc_1001212D3                                            ; +0x14, 0x1001212c4\ncmp     dword ptr [r14+404h], 2EBh                                     ; +0x16, 0x1001212c6\njnz     short loc_100121315                                            ; +0x21, 0x1001212d1\nmov     rax, [r8]                                                      ; +0x23, 0x1001212d3\nmov     rdi, r8                                                        ; +0x26, 0x1001212d6\ncall    qword ptr [rax+0C0h]                                           ; +0x29, 0x1001212d9\nmovss   xmm0, dword ptr [rax]                                          ; +0x2f, 0x1001212df\nmovss   [rbp+var_14], xmm0                                             ; +0x33, 0x1001212e3\nmov     rax, [r14]                                                     ; +0x38, 0x1001212e8\nlea     rdi, [rbp+var_1C]                                              ; +0x3b, 0x1001212eb\nmov     rsi, r14                                                       ; +0x3f, 0x1001212ef\ncall    qword ptr [rax+540h]                                           ; +0x42, 0x1001212f2\nmovss   xmm1, [rbp+var_18]                                             ; +0x48, 0x1001212f8\naddss   xmm1, dword ptr [r14+73Ch]                                     ; +0x4d, 0x1001212fd\nmov     rdi, rbx                                                       ; +0x56, 0x100121306\nmovss   xmm0, [rbp+var_14]                                             ; +0x59, 0x100121309\ncall    sub_10028CBE0                                                  ; +0x5e, 0x10012130e\njmp     short loc_100121324                                            ; +0x63, 0x100121313\nmov     rax, [rcx]                                                     ; +0x65, 0x100121315\nmov     rdi, rbx                                                       ; +0x68, 0x100121318\nmov     rsi, rcx                                                       ; +0x6b, 0x10012131b\ncall    qword ptr [rax+540h]                                           ; +0x6e, 0x10012131e\nmov     rax, rbx                                                       ; +0x74, 0x100121324\nadd     rsp, 10h                                                       ; +0x77, 0x100121327\npop     rbx                                                            ; +0x7b, 0x10012132b\npop     r14                                                            ; +0x7c, 0x10012132c\npop     rbp                                                            ; +0x7e, 0x10012132e\nretn                                                                   ; +0x7f, 0x10012132f", "xrefs": [], "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"}