{"type": "func", "start": 4296975272, "end": 4296975620, "name": "GJBaseGameLayer::activatePlayerControlTrigger", "pseudocode": "// \n// GJBaseGameLayer::activatePlayerControlTrigger from 0x1001ea3a8 to 0x1001ea504 (348 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x1003858cc\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 __fastcall GJBaseGameLayer::activatePlayerControlTrigger(GJBaseGameLayer *a1, PlayerControlGameObject *a2)\n{\n  bool m_targetPlayer1; // w25\n  _BOOL4 m_stopJump; // w23\n  _BOOL4 m_stopMove; // w22\n  _BOOL4 m_stopRotation; // w21\n  bool m_targetPlayer2; // w24\n  bool v10; // w25\n  bool v11; // w24\n\n  m_targetPlayer1 = a2->m_targetPlayer1;\n  m_stopJump = a2->m_stopJump;\n  m_stopMove = a2->m_stopMove;\n  m_stopRotation = a2->m_stopRotation;\n  m_targetPlayer2 = a2->m_targetPlayer2;\n  if ( !m_targetPlayer1 && a2->m_targetPlayer2 )\n    goto LABEL_15;\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  v10 = !m_targetPlayer1;\n  if ( m_stopRotation )\n    PlayerObject::stopRotation(a1->m_player1, 1, 0);\n  v11 = v10 || m_targetPlayer2;\n  if ( a2->m_stopSlide )\n    PlayerObject::handlePlayerCommand(a1->m_player1, 543);\n  if ( v11 )\n  {\nLABEL_15:\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  }\n}", "assembly": "; \n; GJBaseGameLayer::activatePlayerControlTrigger from 0x1001ea3a8 to 0x1001ea504 (348 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x1003858cc\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             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x1001ea3a8\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x1001ea3ac\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001ea3b0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001ea3b4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001ea3b8\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001ea3bc\nMOV             X20, X1                                                ; +0x18, 0x1001ea3c0\nMOV             X19, X0                                                ; +0x1c, 0x1001ea3c4\nLDRB            W25, [X1,#0x694]                                       ; +0x20, 0x1001ea3c8\nLDRB            W23, [X1,#0x72C]                                       ; +0x24, 0x1001ea3cc\nLDRB            W22, [X1,#0x72D]                                       ; +0x28, 0x1001ea3d0\nLDRB            W21, [X1,#0x72E]                                       ; +0x2c, 0x1001ea3d4\nLDRB            W24, [X1,#0x695]                                       ; +0x30, 0x1001ea3d8\nTBNZ            W25, #0, loc_1001EA3E4                                 ; +0x34, 0x1001ea3dc\nTBNZ            W24, #0, loc_1001EA464                                 ; +0x38, 0x1001ea3e0\nCBZ             W23, loc_1001EA3F4                                     ; +0x3c, 0x1001ea3e4\nLDR             X0, [X19,#0xCC8]                                       ; +0x40, 0x1001ea3e8\nMOV             W1, #1                                                 ; +0x44, 0x1001ea3ec\nBL              PlayerObject__releaseButton                            ; +0x48, 0x1001ea3f0\nMOV             W8, #0x2F5E                                            ; +0x4c, 0x1001ea3f4\nLDRB            W8, [X19,X8]                                           ; +0x50, 0x1001ea3f8\nCMP             W8, #1                                                 ; +0x54, 0x1001ea3fc\nCCMP            W22, #0, #4, EQ                                        ; +0x58, 0x1001ea400\nB.EQ            loc_1001EA42C                                          ; +0x5c, 0x1001ea404\nLDR             X0, [X19,#0xCC8]                                       ; +0x60, 0x1001ea408\nMOV             W1, #5                                                 ; +0x64, 0x1001ea40c\nBL              PlayerObject__releaseButton                            ; +0x68, 0x1001ea410\nLDR             X0, [X19,#0xCC8]                                       ; +0x6c, 0x1001ea414\nMOV             W1, #2                                                 ; +0x70, 0x1001ea418\nBL              PlayerObject__releaseButton                            ; +0x74, 0x1001ea41c\nLDR             X0, [X19,#0xCC8]                                       ; +0x78, 0x1001ea420\nMOV             W1, #3                                                 ; +0x7c, 0x1001ea424\nBL              PlayerObject__releaseButton                            ; +0x80, 0x1001ea428\nEOR             W25, W25, #1                                           ; +0x84, 0x1001ea42c\nCBZ             W21, loc_1001EA444                                     ; +0x88, 0x1001ea430\nLDR             X0, [X19,#0xCC8]                                       ; +0x8c, 0x1001ea434\nMOV             W1, #1                                                 ; +0x90, 0x1001ea438\nMOV             W2, #0                                                 ; +0x94, 0x1001ea43c\nBL              PlayerObject__stopRotation                             ; +0x98, 0x1001ea440\nORR             W24, W25, W24                                          ; +0x9c, 0x1001ea444\nLDRB            W8, [X20,#0x72F]                                       ; +0xa0, 0x1001ea448\nCMP             W8, #1                                                 ; +0xa4, 0x1001ea44c\nB.NE            loc_1001EA460                                          ; +0xa8, 0x1001ea450\nLDR             X0, [X19,#0xCC8]                                       ; +0xac, 0x1001ea454\nMOV             W1, #0x21F                                             ; +0xb0, 0x1001ea458\nBL              PlayerObject__handlePlayerCommand                      ; +0xb4, 0x1001ea45c\nTBZ             W24, #0, loc_1001EA4EC                                 ; +0xb8, 0x1001ea460\nCBZ             W23, loc_1001EA474                                     ; +0xbc, 0x1001ea464\nLDR             X0, [X19,#0xCD0]                                       ; +0xc0, 0x1001ea468\nMOV             W1, #1                                                 ; +0xc4, 0x1001ea46c\nBL              PlayerObject__releaseButton                            ; +0xc8, 0x1001ea470\nMOV             W8, #0x2F5E                                            ; +0xcc, 0x1001ea474\nLDRB            W8, [X19,X8]                                           ; +0xd0, 0x1001ea478\nCMP             W8, #1                                                 ; +0xd4, 0x1001ea47c\nCCMP            W22, #0, #4, EQ                                        ; +0xd8, 0x1001ea480\nB.EQ            loc_1001EA4AC                                          ; +0xdc, 0x1001ea484\nLDR             X0, [X19,#0xCD0]                                       ; +0xe0, 0x1001ea488\nMOV             W1, #5                                                 ; +0xe4, 0x1001ea48c\nBL              PlayerObject__releaseButton                            ; +0xe8, 0x1001ea490\nLDR             X0, [X19,#0xCD0]                                       ; +0xec, 0x1001ea494\nMOV             W1, #2                                                 ; +0xf0, 0x1001ea498\nBL              PlayerObject__releaseButton                            ; +0xf4, 0x1001ea49c\nLDR             X0, [X19,#0xCD0]                                       ; +0xf8, 0x1001ea4a0\nMOV             W1, #3                                                 ; +0xfc, 0x1001ea4a4\nBL              PlayerObject__releaseButton                            ; +0x100, 0x1001ea4a8\nCBZ             W21, loc_1001EA4C0                                     ; +0x104, 0x1001ea4ac\nLDR             X0, [X19,#0xCD0]                                       ; +0x108, 0x1001ea4b0\nMOV             W1, #1                                                 ; +0x10c, 0x1001ea4b4\nMOV             W2, #0                                                 ; +0x110, 0x1001ea4b8\nBL              PlayerObject__stopRotation                             ; +0x114, 0x1001ea4bc\nLDRB            W8, [X20,#0x72F]                                       ; +0x118, 0x1001ea4c0\nCMP             W8, #1                                                 ; +0x11c, 0x1001ea4c4\nB.NE            loc_1001EA4EC                                          ; +0x120, 0x1001ea4c8\nLDR             X0, [X19,#0xCD0]                                       ; +0x124, 0x1001ea4cc\nMOV             W1, #0x21F                                             ; +0x128, 0x1001ea4d0\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x12c, 0x1001ea4d4\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x130, 0x1001ea4d8\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x134, 0x1001ea4dc\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x138, 0x1001ea4e0\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x13c, 0x1001ea4e4\nB               PlayerObject__handlePlayerCommand                      ; +0x140, 0x1001ea4e8\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x144, 0x1001ea4ec\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x148, 0x1001ea4f0\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x14c, 0x1001ea4f4\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x150, 0x1001ea4f8\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x154, 0x1001ea4fc\nRET                                                                    ; +0x158, 0x1001ea500", "xrefs": ["EffectGameObject::triggerObject @ 0x1003858cc"], "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"}