{"type": "func", "start": 5372560080, "end": 5372560341, "name": "PlayLayer::activatePlatformerEndTrigger", "pseudocode": "// \n// PlayLayer::activatePlatformerEndTrigger from 0x1403ac2d0 to 0x1403ac3d5 (261 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405c9be8\n// > <???> @ 0x1406d6c44\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 PlayLayer::activatePlatformerEndTrigger(PlayLayer *a1, EndTriggerGameObject *a2, std::vector<int> *const a3)\n{\n  __int64 m_targetGroupID; // rdx\n  UILayer *m_uiLayer; // rax\n  int m_centerGroupID; // edx\n  GameObject *MainObject; // rax\n  __int64 v9; // rax\n  cocos2d::CCPoint v10; // rax\n  char v11; // [rsp+50h] [rbp+8h] BYREF\n  cocos2d::CCPoint v12; // [rsp+68h] [rbp+20h] BYREF\n\n  if ( !a1->m_player1->m_isDead && !a1->m_levelEndAnimationStarted )\n  {\n    a1->m_platformerEndTrigger = a2;\n    m_targetGroupID = (unsigned int)a2->m_targetGroupID;\n    if ( (int)m_targetGroupID > 0 )\n      ((void (__fastcall *)(TriggerEffectDelegate *, __int64, _QWORD))a1->spawnGroup)(\n        &a1->TriggerEffectDelegate,\n        m_targetGroupID,\n        0);\n    m_uiLayer = a1->m_uiLayer;\n    a1->m_levelEndAnimationStarted = 1;\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD, std::vector<int> *const))m_uiLayer->m_pauseBtn->setEnabled)(\n      m_uiLayer->m_pauseBtn,\n      0,\n      a3);\n    ((void (__fastcall *)(EndTriggerGameObject *, char *))a2->getRealPosition)(a2, &v11);\n    m_centerGroupID = a2->m_centerGroupID;\n    if ( m_centerGroupID > 0 )\n    {\n      MainObject = GJBaseGameLayer::tryGetMainObject(a1, m_centerGroupID);\n      if ( MainObject )\n      {\n        v9 = ((__int64 (__fastcall *)(GameObject *, cocos2d::CCPoint *))MainObject->getRealPosition)(MainObject, &v12);\n        cocos2d::CCPoint::operator=(&v11, v9);\n      }\n    }\n    cocos2d::CCPoint::CCPoint(&v12);\n    PlayLayer::playPlatformerEndAnimationToPos(a1, v10, a2->m_instant);\n  }\n}", "assembly": "; \n; PlayLayer::activatePlatformerEndTrigger from 0x1403ac2d0 to 0x1403ac3d5 (261 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405c9be8\n; > <???> @ 0x1406d6c44\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_8], rbx                                               ; +0x0, 0x1403ac2d0\npush    rdi                                                            ; +0x5, 0x1403ac2d5\nsub     rsp, 40h                                                       ; +0x6, 0x1403ac2d6\nmov     rax, [rcx+0DA0h]                                               ; +0xa, 0x1403ac2da\nmov     rdi, rdx                                                       ; +0x11, 0x1403ac2e1\nmov     rbx, rcx                                                       ; +0x14, 0x1403ac2e4\ncmp     byte ptr [rax+9C0h], 0                                         ; +0x17, 0x1403ac2e7\njnz     loc_1403AC3CA                                                  ; +0x1e, 0x1403ac2ee\ncmp     byte ptr [rcx+3570h], 0                                        ; +0x24, 0x1403ac2f4\njnz     loc_1403AC3CA                                                  ; +0x2b, 0x1403ac2fb\nmov     [rcx+3A80h], rdx                                               ; +0x31, 0x1403ac301\nmov     edx, [rdx+5C8h]                                                ; +0x38, 0x1403ac308\ntest    edx, edx                                                       ; +0x3e, 0x1403ac30e\njle     short loc_1403AC33F                                            ; +0x40, 0x1403ac310\nmov     eax, [rdi+698h]                                                ; +0x42, 0x1403ac312\nadd     rcx, 198h                                                      ; +0x48, 0x1403ac318\nmov     [rsp+48h+var_18], eax                                          ; +0x4f, 0x1403ac31f\nxorps   xmm3, xmm3                                                     ; +0x53, 0x1403ac323\nmov     eax, [rdi+39Ch]                                                ; +0x56, 0x1403ac326\nmov     [rsp+48h+var_20], eax                                          ; +0x5c, 0x1403ac32c\nmov     r9, [rcx]                                                      ; +0x60, 0x1403ac330\nmov     [rsp+48h+var_28], r8                                           ; +0x63, 0x1403ac333\nxor     r8d, r8d                                                       ; +0x68, 0x1403ac338\ncall    qword ptr [r9+8]                                               ; +0x6b, 0x1403ac33b\nmov     rax, [rbx+3540h]                                               ; +0x6f, 0x1403ac33f\nxor     edx, edx                                                       ; +0x76, 0x1403ac346\nmov     byte ptr [rbx+3570h], 1                                        ; +0x78, 0x1403ac348\nmov     rcx, [rax+238h]                                                ; +0x7f, 0x1403ac34f\nmov     rax, [rcx]                                                     ; +0x86, 0x1403ac356\ncall    qword ptr [rax+398h]                                           ; +0x89, 0x1403ac359\nmov     rax, [rdi]                                                     ; +0x8f, 0x1403ac35f\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x92, 0x1403ac362\nmov     rcx, rdi                                                       ; +0x97, 0x1403ac367\ncall    qword ptr [rax+4A8h]                                           ; +0x9a, 0x1403ac36a\nmov     edx, [rdi+5CCh]                                                ; +0xa0, 0x1403ac370\ntest    edx, edx                                                       ; +0xa6, 0x1403ac376\njle     short loc_1403AC3A7                                            ; +0xa8, 0x1403ac378\nmov     rcx, rbx                                                       ; +0xaa, 0x1403ac37a\ncall    GJBaseGameLayer__tryGetMainObject                              ; +0xad, 0x1403ac37d\ntest    rax, rax                                                       ; +0xb2, 0x1403ac382\njz      short loc_1403AC3A7                                            ; +0xb5, 0x1403ac385\nmov     r8, [rax]                                                      ; +0xb7, 0x1403ac387\nlea     rdx, [rsp+48h+arg_18]                                          ; +0xba, 0x1403ac38a\nmov     rcx, rax                                                       ; +0xbf, 0x1403ac38f\ncall    qword ptr [r8+4A8h]                                            ; +0xc2, 0x1403ac392\nmov     rdx, rax                                                       ; +0xc9, 0x1403ac399\nlea     rcx, [rsp+48h+arg_0]                                           ; +0xcc, 0x1403ac39c\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xd1, 0x1403ac3a1\nlea     rdx, [rsp+48h+arg_0]                                           ; +0xd7, 0x1403ac3a7\nlea     rcx, [rsp+48h+arg_18]                                          ; +0xdc, 0x1403ac3ac\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xe1, 0x1403ac3b1\nmovzx   r8d, byte ptr [rdi+742h]                                       ; +0xe7, 0x1403ac3b7\nmov     rcx, rbx                                                       ; +0xef, 0x1403ac3bf\nmov     rdx, rax                                                       ; +0xf2, 0x1403ac3c2\ncall    PlayLayer__playPlatformerEndAnimationToPos                     ; +0xf5, 0x1403ac3c5\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xfa, 0x1403ac3ca\nadd     rsp, 40h                                                       ; +0xff, 0x1403ac3cf\npop     rdi                                                            ; +0x103, 0x1403ac3d3\nretn                                                                   ; +0x104, 0x1403ac3d4", "xrefs": ["<???> @ 0x1405c9be8", "<???> @ 0x1406d6c44"], "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"}