{"type": "func", "start": 8760892, "end": 8761292, "name": "GJBaseGameLayer::activatePlayerControlTrigger", "pseudocode": "// \n// GJBaseGameLayer::activatePlayerControlTrigger from 0x85ae3c to 0x85afcc (400 bytes)\n// \n// 2 xrefs:\n// > EffectGameObject::triggerObject @ 0x770068\n// > <???> @ 0x699a8\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 GJBaseGameLayer::activatePlayerControlTrigger(GJBaseGameLayer *a1, PlayerControlGameObject *a2)\n{\n  _BOOL4 m_targetPlayer2; // w21\n  _BOOL4 m_stopJump; // w23\n  _BOOL4 m_stopMove; // w24\n  _BOOL4 m_stopRotation; // w22\n\n  m_targetPlayer2 = a2->m_targetPlayer2;\n  m_stopJump = a2->m_stopJump;\n  m_stopMove = a2->m_stopMove;\n  m_stopRotation = a2->m_stopRotation;\n  if ( a2->m_targetPlayer1 < (unsigned int)!m_targetPlayer2 )\n  {\n    m_targetPlayer2 = 1;\n  }\n  else if ( !a2->m_targetPlayer1 )\n  {\n    goto LABEL_3;\n  }\n  if ( a2->m_stopJump )\n  {\n    PlayerObject::releaseButton(a1->m_player1, Jump);\n    if ( !a1->m_isPlatformer )\n    {\nLABEL_14:\n      if ( !m_stopRotation )\n        goto LABEL_15;\n      goto LABEL_26;\n    }\n  }\n  else if ( !a1->m_isPlatformer )\n  {\n    goto LABEL_14;\n  }\n  if ( !m_stopMove )\n    goto LABEL_14;\n  PlayerObject::releaseButton(a1->m_player1, (PlayerButton)5);\n  PlayerObject::releaseButton(a1->m_player1, (PlayerButton)2);\n  PlayerObject::releaseButton(a1->m_player1, (PlayerButton)3);\n  if ( !m_stopRotation )\n  {\nLABEL_15:\n    if ( !a2->m_stopSlide )\n      goto LABEL_3;\n    goto LABEL_16;\n  }\nLABEL_26:\n  PlayerObject::stopRotation(a1->m_player1, 1, 0);\n  if ( a2->m_stopSlide )\nLABEL_16:\n    PlayerObject::handlePlayerCommand(a1->m_player1, 543);\nLABEL_3:\n  if ( !m_targetPlayer2 )\n    return;\n  if ( m_stopJump )\n  {\n    PlayerObject::releaseButton(a1->m_player2, Jump);\n    if ( !a1->m_isPlatformer )\n    {\nLABEL_7:\n      if ( !m_stopRotation )\n        goto LABEL_8;\n      goto LABEL_18;\n    }\n  }\n  else if ( !a1->m_isPlatformer )\n  {\n    goto LABEL_7;\n  }\n  if ( !m_stopMove )\n    goto LABEL_7;\n  PlayerObject::releaseButton(a1->m_player2, (PlayerButton)5);\n  PlayerObject::releaseButton(a1->m_player2, (PlayerButton)2);\n  PlayerObject::releaseButton(a1->m_player2, (PlayerButton)3);\n  if ( !m_stopRotation )\n  {\nLABEL_8:\n    if ( !a2->m_stopSlide )\n      return;\nLABEL_17:\n    PlayerObject::handlePlayerCommand(a1->m_player2, 543);\n    return;\n  }\nLABEL_18:\n  PlayerObject::stopRotation(a1->m_player2, 1, 0);\n  if ( a2->m_stopSlide )\n    goto LABEL_17;\n}", "assembly": "; \n; GJBaseGameLayer::activatePlayerControlTrigger from 0x85ae3c to 0x85afcc (400 bytes)\n; \n; 2 xrefs:\n; > EffectGameObject::triggerObject @ 0x770068\n; > <???> @ 0x699a8\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\nSTP             X29, X30, [SP,#-0x40+var_s0]!                          ; +0x0, 0x85ae3c\nMOV             X29, SP                                                ; +0x4, 0x85ae40\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x85ae44\nLDRB            W21, [X1,#0x685]                                       ; +0xc, 0x85ae48\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0x85ae4c\nMOV             X20, X0                                                ; +0x14, 0x85ae50\nLDRB            W0, [X1,#0x684]                                        ; +0x18, 0x85ae54\nMOV             X19, X1                                                ; +0x1c, 0x85ae58\nEOR             W1, W21, #1                                            ; +0x20, 0x85ae5c\nSTP             X23, X24, [SP,#var_s30]                                ; +0x24, 0x85ae60\nCMP             W0, W1                                                 ; +0x28, 0x85ae64\nLDRB            W23, [X19,#0x71C]                                      ; +0x2c, 0x85ae68\nLDRB            W24, [X19,#0x71D]                                      ; +0x30, 0x85ae6c\nLDRB            W22, [X19,#0x71E]                                      ; +0x34, 0x85ae70\nB.CC            loc_85AEB4                                             ; +0x38, 0x85ae74\nCBNZ            W0, loc_85AEB8                                         ; +0x3c, 0x85ae78\nCBZ             W21, loc_85AEA0                                        ; +0x40, 0x85ae7c\nCBNZ            W23, loc_85AF20                                        ; +0x44, 0x85ae80\nADD             X0, X20, #3,LSL#12                                     ; +0x48, 0x85ae84\nLDRB            W0, [X0,#0x10E]                                        ; +0x4c, 0x85ae88\nCBZ             W0, loc_85AE94                                         ; +0x50, 0x85ae8c\nCBNZ            W24, loc_85AF3C                                        ; +0x54, 0x85ae90\nCBNZ            W22, loc_85AF04                                        ; +0x58, 0x85ae94\nLDRB            W0, [X19,#0x71F]                                       ; +0x5c, 0x85ae98\nCBNZ            W0, loc_85AEE8                                         ; +0x60, 0x85ae9c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x64, 0x85aea0\nLDP             X21, X22, [SP,#var_s20]                                ; +0x68, 0x85aea4\nLDP             X23, X24, [SP,#var_s30]                                ; +0x6c, 0x85aea8\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0x70, 0x85aeac\nRET                                                                    ; +0x74, 0x85aeb0\nMOV             W21, #1                                                ; +0x78, 0x85aeb4\nCBNZ            W23, loc_85AF68                                        ; +0x7c, 0x85aeb8\nADD             X0, X20, #3,LSL#12                                     ; +0x80, 0x85aebc\nLDRB            W0, [X0,#0x10E]                                        ; +0x84, 0x85aec0\nCBZ             W0, loc_85AECC                                         ; +0x88, 0x85aec4\nCBNZ            W24, loc_85AFA0                                        ; +0x8c, 0x85aec8\nCBNZ            W22, loc_85AF84                                        ; +0x90, 0x85aecc\nLDRB            W0, [X19,#0x71F]                                       ; +0x94, 0x85aed0\nCBZ             W0, loc_85AE7C                                         ; +0x98, 0x85aed4\nLDR             X0, [X20,#0xDF8]; this                                 ; +0x9c, 0x85aed8\nMOV             W1, #0x21F; int                                        ; +0xa0, 0x85aedc\nBL              _ZN12PlayerObject19handlePlayerCommandEi; PlayerObject::handlePlayerCommand(int) ; +0xa4, 0x85aee0\nB               loc_85AE7C                                             ; +0xa8, 0x85aee4\nLDR             X0, [X20,#0xE00]; this                                 ; +0xac, 0x85aee8\nMOV             W1, #0x21F; int                                        ; +0xb0, 0x85aeec\nLDP             X19, X20, [SP,#var_s10]                                ; +0xb4, 0x85aef0\nLDP             X21, X22, [SP,#var_s20]                                ; +0xb8, 0x85aef4\nLDP             X23, X24, [SP,#var_s30]                                ; +0xbc, 0x85aef8\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0xc0, 0x85aefc\nB               _ZN12PlayerObject19handlePlayerCommandEi; PlayerObject::handlePlayerCommand(int) ; +0xc4, 0x85af00\nLDR             X0, [X20,#0xE00]; this                                 ; +0xc8, 0x85af04\nMOV             W1, #1; bool                                           ; +0xcc, 0x85af08\nMOV             W2, #0; int                                            ; +0xd0, 0x85af0c\nBL              _ZN12PlayerObject12stopRotationEbi; PlayerObject::stopRotation(bool,int) ; +0xd4, 0x85af10\nLDRB            W0, [X19,#0x71F]                                       ; +0xd8, 0x85af14\nCBZ             W0, loc_85AEA0                                         ; +0xdc, 0x85af18\nB               loc_85AEE8                                             ; +0xe0, 0x85af1c\nLDR             X0, [X20,#0xE00]                                       ; +0xe4, 0x85af20\nMOV             W1, #1                                                 ; +0xe8, 0x85af24\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0xec, 0x85af28\nADD             X0, X20, #3,LSL#12                                     ; +0xf0, 0x85af2c\nLDRB            W0, [X0,#0x10E]                                        ; +0xf4, 0x85af30\nCBNZ            W0, loc_85AE90                                         ; +0xf8, 0x85af34\nB               loc_85AE94                                             ; +0xfc, 0x85af38\nLDR             X0, [X20,#0xE00]                                       ; +0x100, 0x85af3c\nMOV             W1, #5                                                 ; +0x104, 0x85af40\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x108, 0x85af44\nLDR             X0, [X20,#0xE00]                                       ; +0x10c, 0x85af48\nMOV             W1, #2                                                 ; +0x110, 0x85af4c\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x114, 0x85af50\nLDR             X0, [X20,#0xE00]                                       ; +0x118, 0x85af54\nMOV             W1, #3                                                 ; +0x11c, 0x85af58\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x120, 0x85af5c\nCBZ             W22, loc_85AE98                                        ; +0x124, 0x85af60\nB               loc_85AF04                                             ; +0x128, 0x85af64\nLDR             X0, [X20,#0xDF8]                                       ; +0x12c, 0x85af68\nMOV             W1, #1                                                 ; +0x130, 0x85af6c\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x134, 0x85af70\nADD             X0, X20, #3,LSL#12                                     ; +0x138, 0x85af74\nLDRB            W0, [X0,#0x10E]                                        ; +0x13c, 0x85af78\nCBNZ            W0, loc_85AEC8                                         ; +0x140, 0x85af7c\nB               loc_85AECC                                             ; +0x144, 0x85af80\nLDR             X0, [X20,#0xDF8]; this                                 ; +0x148, 0x85af84\nMOV             W1, #1; bool                                           ; +0x14c, 0x85af88\nMOV             W2, #0; int                                            ; +0x150, 0x85af8c\nBL              _ZN12PlayerObject12stopRotationEbi; PlayerObject::stopRotation(bool,int) ; +0x154, 0x85af90\nLDRB            W0, [X19,#0x71F]                                       ; +0x158, 0x85af94\nCBZ             W0, loc_85AE7C                                         ; +0x15c, 0x85af98\nB               loc_85AED8                                             ; +0x160, 0x85af9c\nLDR             X0, [X20,#0xDF8]                                       ; +0x164, 0x85afa0\nMOV             W1, #5                                                 ; +0x168, 0x85afa4\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x16c, 0x85afa8\nLDR             X0, [X20,#0xDF8]                                       ; +0x170, 0x85afac\nMOV             W1, #2                                                 ; +0x174, 0x85afb0\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x178, 0x85afb4\nLDR             X0, [X20,#0xDF8]                                       ; +0x17c, 0x85afb8\nMOV             W1, #3                                                 ; +0x180, 0x85afbc\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x184, 0x85afc0\nCBZ             W22, loc_85AED0                                        ; +0x188, 0x85afc4\nB               loc_85AF84                                             ; +0x18c, 0x85afc8", "xrefs": ["EffectGameObject::triggerObject @ 0x770068", "<???> @ 0x699a8"], "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"}