{"type": "func", "start": 4651460, "end": 4651690, "name": "GJBaseGameLayer::activatePlayerControlTrigger", "pseudocode": "// \n// GJBaseGameLayer::activatePlayerControlTrigger from 0x46f9c4 to 0x46faaa (230 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x3ee0bc\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; // r6\n  _BOOL4 m_stopJump; // r7\n  _BOOL4 m_stopMove; // r8\n  _BOOL4 m_stopRotation; // r9\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 )\n  {\n    if ( a2->m_targetPlayer2 )\n    {\nLABEL_3:\n      if ( m_stopJump )\n        PlayerObject::releaseButton(a1->m_player2, Jump);\n      if ( a1->m_isPlatformer && m_stopMove )\n      {\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      }\n      if ( m_stopRotation )\n        PlayerObject::stopRotation(a1->m_player2, 1, 0);\n      if ( a2->m_stopSlide )\n        PlayerObject::handlePlayerCommand(a1->m_player2, 543);\n      return;\n    }\n    m_targetPlayer2 = 1;\n  }\n  if ( a2->m_stopJump )\n    PlayerObject::releaseButton(a1->m_player1, Jump);\n  if ( a1->m_isPlatformer && m_stopMove )\n  {\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  }\n  if ( m_stopRotation )\n    PlayerObject::stopRotation(a1->m_player1, 1, 0);\n  if ( a2->m_stopSlide )\n    PlayerObject::handlePlayerCommand(a1->m_player1, 543);\n  if ( m_targetPlayer2 )\n    goto LABEL_3;\n}", "assembly": "; \n; GJBaseGameLayer::activatePlayerControlTrigger from 0x46f9c4 to 0x46faaa (230 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x3ee0bc\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.W          {R3-R9,LR}                                             ; +0x0, 0x46f9c4\nMOV             R4, R0                                                 ; +0x4, 0x46f9c8\nLDRB.W          R3, [R1,#0x5D8]                                        ; +0x6, 0x46f9ca\nMOV             R5, R1                                                 ; +0xa, 0x46f9ce\nLDRB.W          R6, [R1,#0x5D9]                                        ; +0xc, 0x46f9d0\nLDRB.W          R7, [R1,#0x664]                                        ; +0x10, 0x46f9d4\nLDRB.W          R8, [R1,#0x665]                                        ; +0x14, 0x46f9d8\nLDRB.W          R9, [R1,#0x666]                                        ; +0x18, 0x46f9dc\nCBNZ            R3, loc_46FA46                                         ; +0x1c, 0x46f9e0\nCBZ             R6, loc_46FA44                                         ; +0x1e, 0x46f9e2\nCBZ             R7, loc_46F9F0                                         ; +0x20, 0x46f9e4\nLDR.W           R0, [R4,#0x8BC]                                        ; +0x22, 0x46f9e6\nMOVS            R1, #1                                                 ; +0x26, 0x46f9ea\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x28, 0x46f9ec\nMOVW            R3, #0x2A12                                            ; +0x2c, 0x46f9f0\nLDRB            R3, [R4,R3]                                            ; +0x30, 0x46f9f4\nCBZ             R3, loc_46FA1C                                         ; +0x32, 0x46f9f6\nCMP.W           R8, #0                                                 ; +0x34, 0x46f9f8\nBEQ             loc_46FA1C                                             ; +0x38, 0x46f9fc\nMOVS            R1, #5                                                 ; +0x3a, 0x46f9fe\nLDR.W           R0, [R4,#0x8BC]                                        ; +0x3c, 0x46fa00\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x40, 0x46fa04\nMOVS            R1, #2                                                 ; +0x44, 0x46fa08\nLDR.W           R0, [R4,#0x8BC]                                        ; +0x46, 0x46fa0a\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x4a, 0x46fa0e\nLDR.W           R0, [R4,#0x8BC]                                        ; +0x4e, 0x46fa12\nMOVS            R1, #3                                                 ; +0x52, 0x46fa16\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x54, 0x46fa18\nCMP.W           R9, #0                                                 ; +0x58, 0x46fa1c\nBEQ             loc_46FA2E                                             ; +0x5c, 0x46fa20\nLDR.W           R0, [R4,#0x8BC]; this                                  ; +0x5e, 0x46fa22\nMOVS            R1, #1; bool                                           ; +0x62, 0x46fa26\nMOVS            R2, #0; int                                            ; +0x64, 0x46fa28\nBL              _ZN12PlayerObject12stopRotationEbi; PlayerObject::stopRotation(bool,int) ; +0x66, 0x46fa2a\nLDRB.W          R3, [R5,#0x667]                                        ; +0x6a, 0x46fa2e\nCBZ             R3, locret_46FAA6                                      ; +0x6e, 0x46fa32\nLDR.W           R0, [R4,#0x8BC]; this                                  ; +0x70, 0x46fa34\nMOVW            R1, #0x21F; int                                        ; +0x74, 0x46fa38\nPOP.W           {R3-R9,LR}                                             ; +0x78, 0x46fa3c\nB.W             _ZN12PlayerObject19handlePlayerCommandEi; PlayerObject::handlePlayerCommand(int) ; +0x7c, 0x46fa40\nMOVS            R6, #1                                                 ; +0x80, 0x46fa44\nCBZ             R7, loc_46FA52                                         ; +0x82, 0x46fa46\nLDR.W           R0, [R4,#0x8B8]                                        ; +0x84, 0x46fa48\nMOVS            R1, #1                                                 ; +0x88, 0x46fa4c\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0x8a, 0x46fa4e\nMOVW            R3, #0x2A12                                            ; +0x8e, 0x46fa52\nLDRB            R3, [R4,R3]                                            ; +0x92, 0x46fa56\nCBZ             R3, loc_46FA7E                                         ; +0x94, 0x46fa58\nCMP.W           R8, #0                                                 ; +0x96, 0x46fa5a\nBEQ             loc_46FA7E                                             ; +0x9a, 0x46fa5e\nMOVS            R1, #5                                                 ; +0x9c, 0x46fa60\nLDR.W           R0, [R4,#0x8B8]                                        ; +0x9e, 0x46fa62\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0xa2, 0x46fa66\nMOVS            R1, #2                                                 ; +0xa6, 0x46fa6a\nLDR.W           R0, [R4,#0x8B8]                                        ; +0xa8, 0x46fa6c\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0xac, 0x46fa70\nLDR.W           R0, [R4,#0x8B8]                                        ; +0xb0, 0x46fa74\nMOVS            R1, #3                                                 ; +0xb4, 0x46fa78\nBL              _ZN12PlayerObject13releaseButtonE12PlayerButton; PlayerObject::releaseButton(PlayerButton) ; +0xb6, 0x46fa7a\nCMP.W           R9, #0                                                 ; +0xba, 0x46fa7e\nBEQ             loc_46FA90                                             ; +0xbe, 0x46fa82\nLDR.W           R0, [R4,#0x8B8]; this                                  ; +0xc0, 0x46fa84\nMOVS            R1, #1; bool                                           ; +0xc4, 0x46fa88\nMOVS            R2, #0; int                                            ; +0xc6, 0x46fa8a\nBL              _ZN12PlayerObject12stopRotationEbi; PlayerObject::stopRotation(bool,int) ; +0xc8, 0x46fa8c\nLDRB.W          R3, [R5,#0x667]                                        ; +0xcc, 0x46fa90\nCBZ             R3, loc_46FAA2                                         ; +0xd0, 0x46fa94\nLDR.W           R0, [R4,#0x8B8]; this                                  ; +0xd2, 0x46fa96\nMOVW            R1, #0x21F; int                                        ; +0xd6, 0x46fa9a\nBL              _ZN12PlayerObject19handlePlayerCommandEi; PlayerObject::handlePlayerCommand(int) ; +0xda, 0x46fa9e\nCMP             R6, #0                                                 ; +0xde, 0x46faa2\nBNE             loc_46F9E4                                             ; +0xe0, 0x46faa4\nPOP.W           {R3-R9,PC}                                             ; +0xe2, 0x46faa6", "xrefs": ["EffectGameObject::triggerObject @ 0x3ee0bc"], "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"}