{"type": "func", "start": 5275452, "end": 5275550, "name": "EndPortalObject::triggerObject", "pseudocode": "// \n// EndPortalObject::triggerObject from 0x507f3c to 0x507f9e (98 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::checkForEnd @ 0x3ff646\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:25 +0000\n// \n\nfloat *__fastcall EndPortalObject::triggerObject(EndPortalObject *this, GJBaseGameLayer *a2)\n{\n  float *result; // r0\n  int v4; // r0\n  GameManager *v5; // r0\n  float *v6; // r7\n  _BYTE v7[8]; // [sp+4h] [bp-10h] BYREF\n\n  result = (float *)GameManager::sharedState(this);\n  if ( !*(_BYTE *)(*(_DWORD *)(*((_DWORD *)result + 101) + 2076) + 1960) )\n  {\n    v4 = GameManager::sharedState((GameManager *)result);\n    v5 = (GameManager *)UILayer::disableMenu(*(UILayer **)(*(_DWORD *)(v4 + 404) + 11240));\n    v6 = *(float **)(GameManager::sharedState(v5) + 404);\n    (*(void (__fastcall **)(_BYTE *, EndPortalObject *))(*(_DWORD *)this + 908))(v7, this);\n    return PlayLayer::playEndAnimationToPos(v6, (const cocos2d::CCPoint *)v7);\n  }\n  return result;\n}", "assembly": "; \n; EndPortalObject::triggerObject from 0x507f3c to 0x507f9e (98 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::checkForEnd @ 0x3ff646\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:25 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x507f3c\nSUB             SP, SP, #0x14                                          ; +0x2, 0x507f3e\nLDR             R4, =(__stack_chk_guard_ptr - 0x507F48)                ; +0x4, 0x507f40\nMOV             R6, R0                                                 ; +0x6, 0x507f42\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x8, 0x507f44\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xa, 0x507f46\nLDR             R3, [R4]                                               ; +0xc, 0x507f48\nSTR             R3, [SP,#0x14+var_8]                                   ; +0xe, 0x507f4a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x507f4c\nLDR.W           R3, [R0,#0x194]                                        ; +0x14, 0x507f50\nLDR.W           R3, [R3,#0x81C]                                        ; +0x18, 0x507f54\nLDRB.W          R3, [R3,#0x7A8]                                        ; +0x1c, 0x507f58\nCBNZ            R3, loc_507F8E                                         ; +0x20, 0x507f5c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x22, 0x507f5e\nMOVW            R3, #0x2BE8                                            ; +0x26, 0x507f62\nADD             R5, SP, #0x14+var_10                                   ; +0x2a, 0x507f66\nLDR.W           R2, [R0,#0x194]                                        ; +0x2c, 0x507f68\nLDR             R0, [R2,R3]; this                                      ; +0x30, 0x507f6c\nBL              _ZN7UILayer11disableMenuEv; UILayer::disableMenu(void) ; +0x32, 0x507f6e\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x36, 0x507f72\nLDR             R3, [R6]                                               ; +0x3a, 0x507f76\nMOV             R1, R6                                                 ; +0x3c, 0x507f78\nLDR.W           R3, [R3,#0x38C]                                        ; +0x3e, 0x507f7a\nLDR.W           R7, [R0,#0x194]                                        ; +0x42, 0x507f7e\nMOV             R0, R5                                                 ; +0x46, 0x507f82\nBLX             R3                                                     ; +0x48, 0x507f84\nMOV             R1, R5                                                 ; +0x4a, 0x507f86\nMOV             R0, R7                                                 ; +0x4c, 0x507f88\nBL              _ZN9PlayLayer21playEndAnimationToPosEN7cocos2d7CCPointE; PlayLayer::playEndAnimationToPos(cocos2d::CCPoint) ; +0x4e, 0x507f8a\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x52, 0x507f8e\nLDR             R3, [R4]                                               ; +0x54, 0x507f90\nCMP             R2, R3                                                 ; +0x56, 0x507f92\nBEQ             loc_507F9A                                             ; +0x58, 0x507f94\nBLX             __stack_chk_fail                                       ; +0x5a, 0x507f96\nADD             SP, SP, #0x14                                          ; +0x5e, 0x507f9a\nPOP             {R4-R7,PC}                                             ; +0x60, 0x507f9c", "xrefs": ["PlayLayer::checkForEnd @ 0x3ff646"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}