{"type": "func", "start": 4189600, "end": 4189698, "name": "EndPortalObject::triggerObject", "pseudocode": "// \n// EndPortalObject::triggerObject from 0x3feda0 to 0x3fee02 (98 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::checkForEnd @ 0x30eef2\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 EndPortalObject::triggerObject(EndPortalObject *a1, GJBaseGameLayer *a2)\n{\n  GameManager *v3; // r0\n  PlayLayer *m_playLayer; // r7\n  cocos2d::CCPoint v5; // r1\n  _BYTE v6[8]; // [sp+4h] [bp-10h] BYREF\n\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    a1->getStartPos((cocos2d::CCPoint *)v6, a1);\n    LODWORD(v5.x) = v6;\n    PlayLayer::playEndAnimationToPos(m_playLayer, v5);\n  }\n}", "assembly": "; \n; EndPortalObject::triggerObject from 0x3feda0 to 0x3fee02 (98 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::checkForEnd @ 0x30eef2\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            {R4-R7,LR}                                             ; +0x0, 0x3feda0\nSUB             SP, SP, #0x14                                          ; +0x2, 0x3feda2\nLDR             R4, =(__stack_chk_guard_ptr - 0x3FEDAC)                ; +0x4, 0x3feda4\nMOV             R6, R0                                                 ; +0x6, 0x3feda6\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x8, 0x3feda8\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xa, 0x3fedaa\nLDR             R3, [R4]                                               ; +0xc, 0x3fedac\nSTR             R3, [SP,#0x14+var_8]                                   ; +0xe, 0x3fedae\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x3fedb0\nLDR.W           R3, [R0,#0x16C]                                        ; +0x14, 0x3fedb4\nLDR.W           R3, [R3,#0x8B8]                                        ; +0x18, 0x3fedb8\nLDRB.W          R3, [R3,#0x7B8]                                        ; +0x1c, 0x3fedbc\nCBNZ            R3, loc_3FEDF2                                         ; +0x20, 0x3fedc0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x22, 0x3fedc2\nADD             R5, SP, #0x14+var_10                                   ; +0x26, 0x3fedc6\nLDR.W           R3, [R0,#0x16C]                                        ; +0x28, 0x3fedc8\nADD.W           R3, R3, #0x2C80                                        ; +0x2c, 0x3fedcc\nLDR             R0, [R3]; this                                         ; +0x30, 0x3fedd0\nBL              _ZN7UILayer11disableMenuEv; UILayer::disableMenu(void) ; +0x32, 0x3fedd2\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x36, 0x3fedd6\nLDR             R3, [R6]                                               ; +0x3a, 0x3fedda\nMOV             R1, R6                                                 ; +0x3c, 0x3feddc\nLDR.W           R3, [R3,#0x384]                                        ; +0x3e, 0x3fedde\nLDR.W           R7, [R0,#0x16C]                                        ; +0x42, 0x3fede2\nMOV             R0, R5                                                 ; +0x46, 0x3fede6\nBLX             R3                                                     ; +0x48, 0x3fede8\nMOV             R1, R5                                                 ; +0x4a, 0x3fedea\nMOV             R0, R7                                                 ; +0x4c, 0x3fedec\nBL              _ZN9PlayLayer21playEndAnimationToPosEN7cocos2d7CCPointE; PlayLayer::playEndAnimationToPos(cocos2d::CCPoint) ; +0x4e, 0x3fedee\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x52, 0x3fedf2\nLDR             R3, [R4]                                               ; +0x54, 0x3fedf4\nCMP             R2, R3                                                 ; +0x56, 0x3fedf6\nBEQ             loc_3FEDFE                                             ; +0x58, 0x3fedf8\nBLX             __stack_chk_fail                                       ; +0x5a, 0x3fedfa\nADD             SP, SP, #0x14                                          ; +0x5e, 0x3fedfe\nPOP             {R4-R7,PC}                                             ; +0x60, 0x3fee00", "xrefs": ["PlayLayer::checkForEnd @ 0x30eef2"], "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"}