{"type": "func", "start": 9130068, "end": 9130228, "name": "EndPortalObject::triggerObject", "pseudocode": "// \n// EndPortalObject::triggerObject from 0x8b5054 to 0x8b50f4 (160 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::checkForEnd @ 0x6f2cf4\n// > <???> @ 0x6c298\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:56:24 +0000\n// \n\n__int64 __fastcall EndPortalObject::triggerObject(EndPortalObject *this, GJBaseGameLayer *a2)\n{\n  GameManager *v3; // x0\n  __int64 v4; // x0\n  GameManager *v5; // x0\n  float *v6; // x22\n  __int64 v8; // [xsp+40h] [xbp+40h] BYREF\n\n  v3 = (GameManager *)*(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(_stack_chk_guard) + 544)\n                                                     + 3256LL)\n                                         + 2424LL);\n  if ( !(_DWORD)v3 )\n  {\n    v4 = GameManager::sharedState(v3);\n    v5 = (GameManager *)UILayer::disableMenu(*(UILayer **)(*(_QWORD *)(v4 + 544) + 13288LL));\n    v6 = *(float **)(GameManager::sharedState(v5) + 544);\n    (*(void (__fastcall **)(__int64 *__return_ptr, EndPortalObject *))(*(_QWORD *)this + 1816LL))(&v8, this);\n    PlayLayer::playEndAnimationToPos(v6, (const cocos2d::CCPoint *)&v8);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EndPortalObject::triggerObject from 0x8b5054 to 0x8b50f4 (160 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::checkForEnd @ 0x6f2cf4\n; > <???> @ 0x6c298\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:56:24 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x8b5054\nMOV             X29, SP                                                ; +0x4, 0x8b5058\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x8b505c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x8b5060\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x10, 0x8b5064\nMOV             X21, X0                                                ; +0x14, 0x8b5068\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x8b506c\nLDR             X0, [X0]; this                                         ; +0x1c, 0x8b5070\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x20, 0x8b5074\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0x8b5078\nLDR             X0, [X0,#0x220]                                        ; +0x28, 0x8b507c\nLDR             X0, [X0,#0xCB8]                                        ; +0x2c, 0x8b5080\nLDRB            W0, [X0,#0x978]; this                                  ; +0x30, 0x8b5084\nCBNZ            W0, loc_8B50CC                                         ; +0x34, 0x8b5088\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x38, 0x8b508c\nLDR             X0, [X0,#0x220]                                        ; +0x3c, 0x8b5090\nADD             X20, X29, #0x50+var_10                                 ; +0x40, 0x8b5094\nLDR             X0, [X0,#0x33E8]; this                                 ; +0x44, 0x8b5098\nBL              _ZN7UILayer11disableMenuEv; UILayer::disableMenu(void) ; +0x48, 0x8b509c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4c, 0x8b50a0\nSTR             X20, [X29,#0x50+var_18]                                ; +0x50, 0x8b50a4\nLDR             X2, [X21]                                              ; +0x54, 0x8b50a8\nMOV             X8, X20                                                ; +0x58, 0x8b50ac\nLDR             X22, [X0,#0x220]                                       ; +0x5c, 0x8b50b0\nMOV             X0, X21                                                ; +0x60, 0x8b50b4\nLDR             X2, [X2,#0x718]                                        ; +0x64, 0x8b50b8\nBLR             X2                                                     ; +0x68, 0x8b50bc\nLDR             X1, [X29,#0x50+var_18]                                 ; +0x6c, 0x8b50c0\nMOV             X0, X22                                                ; +0x70, 0x8b50c4\nBL              _ZN9PlayLayer21playEndAnimationToPosEN7cocos2d7CCPointE; PlayLayer::playEndAnimationToPos(cocos2d::CCPoint) ; +0x74, 0x8b50c8\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x78, 0x8b50cc\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x7c, 0x8b50d0\nLDR             X0, [X19]                                              ; +0x80, 0x8b50d4\nCMP             X1, X0                                                 ; +0x84, 0x8b50d8\nB.NE            loc_8B50F0                                             ; +0x88, 0x8b50dc\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x8c, 0x8b50e0\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x90, 0x8b50e4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x94, 0x8b50e8\nRET                                                                    ; +0x98, 0x8b50ec\nBL              .__stack_chk_fail                                      ; +0x9c, 0x8b50f0", "xrefs": ["PlayLayer::checkForEnd @ 0x6f2cf4", "<???> @ 0x6c298"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}