{"type": "func", "start": 4298754064, "end": 4298754182, "name": "EndPortalObject::triggerObject", "pseudocode": "// \n// EndPortalObject::triggerObject from 0x10039c810 to 0x10039c886 (118 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::checkForEnd @ 0x1000bb000\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 __fastcall EndPortalObject::triggerObject(EndPortalObject *a1, GJBaseGameLayer *a2)\n{\n  __int64 v2; // rax\n  GameManager *v3; // rax\n  PlayLayer *m_playLayer; // r14\n  cocos2d::CCPoint v5; // xmm0_8\n  _QWORD v6[4]; // [rsp+0h] [rbp-20h] BYREF\n\n  v6[0] = v2;\n  if ( !GameManager::sharedState()->m_playLayer->m_player1->m_isDead )\n  {\n    v3 = GameManager::sharedState();\n    UILayer::disableMenu(v3->m_playLayer->m_uiLayer);\n    m_playLayer = GameManager::sharedState()->m_playLayer;\n    *(double *)&v5 = ((double (__fastcall *)(_QWORD *, EndPortalObject *))a1->getStartPos)(v6, a1);\n    PlayLayer::playEndAnimationToPos(m_playLayer, v5);\n  }\n}", "assembly": "; \n; EndPortalObject::triggerObject from 0x10039c810 to 0x10039c886 (118 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::checkForEnd @ 0x1000bb000\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, 0x10039c810\nmov     rbp, rsp                                                       ; +0x1, 0x10039c811\npush    r15                                                            ; +0x4, 0x10039c814\npush    r14                                                            ; +0x6, 0x10039c816\npush    rbx                                                            ; +0x8, 0x10039c818\npush    rax                                                            ; +0x9, 0x10039c819\nmov     rbx, rdi                                                       ; +0xa, 0x10039c81a\ncall    GameManager__sharedState                                       ; +0xd, 0x10039c81d\nmov     rax, [rax+1F8h]                                                ; +0x12, 0x10039c822\nmov     rax, [rax+0CA0h]                                               ; +0x19, 0x10039c829\ncmp     byte ptr [rax+970h], 0                                         ; +0x20, 0x10039c830\njnz     short loc_10039C87B                                            ; +0x27, 0x10039c837\ncall    GameManager__sharedState                                       ; +0x29, 0x10039c839\nmov     rax, [rax+1F8h]                                                ; +0x2e, 0x10039c83e\nmov     rdi, [rax+3330h]                                               ; +0x35, 0x10039c845\ncall    UILayer__disableMenu                                           ; +0x3c, 0x10039c84c\ncall    GameManager__sharedState                                       ; +0x41, 0x10039c851\nmov     r14, [rax+1F8h]                                                ; +0x46, 0x10039c856\nmov     rax, [rbx]                                                     ; +0x4d, 0x10039c85d\nlea     r15, [rbp+var_20]                                              ; +0x50, 0x10039c860\nmov     rdi, r15                                                       ; +0x54, 0x10039c864\nmov     rsi, rbx                                                       ; +0x57, 0x10039c867\ncall    qword ptr [rax+708h]                                           ; +0x5a, 0x10039c86a\nmov     rdi, r14                                                       ; +0x60, 0x10039c870\nmov     rsi, r15                                                       ; +0x63, 0x10039c873\ncall    PlayLayer__playEndAnimationToPos                               ; +0x66, 0x10039c876\nadd     rsp, 8                                                         ; +0x6b, 0x10039c87b\npop     rbx                                                            ; +0x6f, 0x10039c87f\npop     r14                                                            ; +0x70, 0x10039c880\npop     r15                                                            ; +0x72, 0x10039c882\npop     rbp                                                            ; +0x74, 0x10039c884\nretn                                                                   ; +0x75, 0x10039c885", "xrefs": ["PlayLayer::checkForEnd @ 0x1000bb000"], "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"}