{"type": "func", "start": 5373632960, "end": 5373633233, "name": "TeleportPortalObject::create", "pseudocode": "// \n// TeleportPortalObject::create from 0x1404b21c0 to 0x1404b22d1 (273 bytes)\n// \n// 4 xrefs:\n// > GameObject::createWithKey @ 0x14018c3a3\n// > GameObject::createWithKey @ 0x14018c3bf\n// > PlayLayer::addObject @ 0x1403ae156\n// > <???> @ 0x1406dc9bc\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\n// Hidden C++ exception states: #wind=2\nTeleportPortalObject *TeleportPortalObject::create(const char *a1, bool a2)\n{\n  char *v4; // rdi\n\n  v4 = (char *)operator new(0x788u);\n  EffectGameObject::EffectGameObject((EffectGameObject *)v4);\n  *((_WORD *)v4 + 928) = 0;\n  *(_QWORD *)v4 = &TeleportPortalObject::`vftable';\n  *((_QWORD *)v4 + 40) = &TeleportPortalObject::`vftable';\n  *((_QWORD *)v4 + 43) = &TeleportPortalObject::`vftable';\n  *((_QWORD *)v4 + 233) = 0;\n  v4[1872] = 0;\n  *((_DWORD *)v4 + 469) = 0;\n  *((_WORD *)v4 + 940) = 0;\n  *((_DWORD *)v4 + 471) = 0;\n  v4[1888] = 0;\n  *(_QWORD *)(v4 + 1892) = 1065353216;\n  *((_DWORD *)v4 + 475) = 0;\n  *((_WORD *)v4 + 952) = 0;\n  v4[1906] = 0;\n  *(_QWORD *)(v4 + 1908) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 1916));\n  if ( EffectGameObject::init((EffectGameObject *)v4, a1) )\n  {\n    if ( !a2 )\n      v4[1488] = 1;\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n    return (TeleportPortalObject *)v4;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; TeleportPortalObject::create from 0x1404b21c0 to 0x1404b22d1 (273 bytes)\n; \n; 4 xrefs:\n; > GameObject::createWithKey @ 0x14018c3a3\n; > GameObject::createWithKey @ 0x14018c3bf\n; > PlayLayer::addObject @ 0x1403ae156\n; > <???> @ 0x1406dc9bc\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404b21c0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1404b21c5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1404b21ca\npush    rdi                                                            ; +0xf, 0x1404b21cf\nsub     rsp, 20h                                                       ; +0x10, 0x1404b21d0\nmovzx   esi, dl                                                        ; +0x14, 0x1404b21d4\nmov     rbx, rcx                                                       ; +0x17, 0x1404b21d7\nmov     ecx, 788h; Size                                                ; +0x1a, 0x1404b21da\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1f, 0x1404b21df\nmov     rdi, rax                                                       ; +0x24, 0x1404b21e4\nmov     [rsp+28h+arg_10], rax                                          ; +0x27, 0x1404b21e7\nmov     rcx, rax                                                       ; +0x2c, 0x1404b21ec\ncall    EffectGameObject__EffectGameObject                             ; +0x2f, 0x1404b21ef\nmov     word ptr [rdi+740h], 0                                         ; +0x34, 0x1404b21f4\nlea     rax, ??_7TeleportPortalObject@@6B@; const TeleportPortalObject::`vftable' ; +0x3d, 0x1404b21fd\nmov     [rdi], rax                                                     ; +0x44, 0x1404b2204\nlea     rax, ??_7TeleportPortalObject@@6B@_0; const TeleportPortalObject::`vftable' ; +0x47, 0x1404b2207\nmov     [rdi+140h], rax                                                ; +0x4e, 0x1404b220e\nlea     rax, ??_7TeleportPortalObject@@6B@_1; const TeleportPortalObject::`vftable' ; +0x55, 0x1404b2215\nmov     [rdi+158h], rax                                                ; +0x5c, 0x1404b221c\nxor     ebp, ebp                                                       ; +0x63, 0x1404b2223\nmov     [rdi+748h], rbp                                                ; +0x65, 0x1404b2225\nmov     [rdi+750h], bpl                                                ; +0x6c, 0x1404b222c\nmov     [rdi+754h], ebp                                                ; +0x73, 0x1404b2233\nmov     [rdi+758h], bp                                                 ; +0x79, 0x1404b2239\nmov     [rdi+75Ch], ebp                                                ; +0x80, 0x1404b2240\nmov     [rdi+760h], bpl                                                ; +0x86, 0x1404b2246\nmov     qword ptr [rdi+764h], 3F800000h                                ; +0x8d, 0x1404b224d\nmov     [rdi+76Ch], ebp                                                ; +0x98, 0x1404b2258\nmov     [rdi+770h], bp                                                 ; +0x9e, 0x1404b225e\nmov     [rdi+772h], bpl                                                ; +0xa5, 0x1404b2265\nmov     [rdi+774h], rbp                                                ; +0xac, 0x1404b226c\nlea     rcx, [rdi+77Ch]                                                ; +0xb3, 0x1404b2273\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xba, 0x1404b227a\nnop                                                                    ; +0xc0, 0x1404b2280\nmov     rdx, rbx                                                       ; +0xc1, 0x1404b2281\nmov     rcx, rdi                                                       ; +0xc4, 0x1404b2284\ncall    EffectGameObject__init                                         ; +0xc7, 0x1404b2287\ntest    al, al                                                         ; +0xcc, 0x1404b228c\njz      short loc_1404B22AA                                            ; +0xce, 0x1404b228e\ntest    sil, sil                                                       ; +0xd0, 0x1404b2290\njnz     short loc_1404B229C                                            ; +0xd3, 0x1404b2293\nmov     byte ptr [rdi+5D0h], 1                                         ; +0xd5, 0x1404b2295\nmov     rcx, rdi                                                       ; +0xdc, 0x1404b229c\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xdf, 0x1404b229f\nmov     rax, rdi                                                       ; +0xe5, 0x1404b22a5\njmp     short loc_1404B22BC                                            ; +0xe8, 0x1404b22a8\nmov     r8, [rdi]                                                      ; +0xea, 0x1404b22aa\nmov     edx, 1                                                         ; +0xed, 0x1404b22ad\nmov     rcx, rdi                                                       ; +0xf2, 0x1404b22b2\ncall    qword ptr [r8+8]                                               ; +0xf5, 0x1404b22b5\nmov     rax, rbp                                                       ; +0xf9, 0x1404b22b9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xfc, 0x1404b22bc\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x101, 0x1404b22c1\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x106, 0x1404b22c6\nadd     rsp, 20h                                                       ; +0x10b, 0x1404b22cb\npop     rdi                                                            ; +0x10f, 0x1404b22cf\nretn                                                                   ; +0x110, 0x1404b22d0", "xrefs": ["GameObject::createWithKey @ 0x14018c3a3", "GameObject::createWithKey @ 0x14018c3bf", "PlayLayer::addObject @ 0x1403ae156", "<???> @ 0x1406dc9bc"], "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"}