{"type": "func", "start": 8805632, "end": 8806092, "name": "GJBaseGameLayer::processOptionsTrigger", "pseudocode": "// \n// GJBaseGameLayer::processOptionsTrigger from 0x865d00 to 0x865ecc (460 bytes)\n// \n// 2 xrefs:\n// > EffectGameObject::triggerObject @ 0x76f88c\n// > <???> @ 0xabb70\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::processOptionsTrigger(GJBaseGameLayer *a1, GameOptionsTrigger *a2)\n{\n  GameOptionsSetting m_streakAdditive; // w1\n  GameOptionsSetting m_unlinkDualGravity; // w0\n  GameOptionsSetting m_hideGround; // w0\n  GameOptionsSetting m_hideMG; // w0\n  GameOptionsSetting m_hideP1; // w0\n  GameOptionsSetting m_hideP2; // w0\n  GameOptionsSetting m_disableP1Controls; // w0\n  GameOptionsSetting m_disableP2Controls; // w0\n  GameOptionsSetting m_hideAttempts; // w0\n  GameOptionsSetting m_audioOnDeath; // w0\n  GameOptionsSetting m_noDeathSFX; // w0\n  GameOptionsSetting m_boostSlide; // w0\n  PlayerObject *m_player2; // x1\n  bool v17; // w0\n  GameOptionsSetting m_editRespawnTime; // w0\n  float m_respawnTime; // s0\n\n  m_streakAdditive = a2->m_streakAdditive;\n  if ( m_streakAdditive )\n    GJBaseGameLayer::togglePlayerStreakBlend(a1, m_streakAdditive == On, 0);\n  m_unlinkDualGravity = a2->m_unlinkDualGravity;\n  if ( m_unlinkDualGravity )\n    a1->m_gameState.m_unkBool31 = m_unlinkDualGravity == On;\n  m_hideGround = a2->m_hideGround;\n  if ( m_hideGround )\n    a1->toggleGroundVisibility(a1, m_hideGround != On);\n  m_hideMG = a2->m_hideMG;\n  if ( m_hideMG )\n    a1->toggleMGVisibility(a1, m_hideMG != On);\n  m_hideP1 = a2->m_hideP1;\n  if ( m_hideP1 )\n    GJBaseGameLayer::togglePlayerVisibility(a1, m_hideP1 != On, 1);\n  m_hideP2 = a2->m_hideP2;\n  if ( m_hideP2 )\n    GJBaseGameLayer::togglePlayerVisibility(a1, m_hideP2 != On, 0);\n  m_disableP1Controls = a2->m_disableP1Controls;\n  if ( m_disableP1Controls )\n    GJBaseGameLayer::toggleLockPlayer(a1, m_disableP1Controls == On, 1);\n  m_disableP2Controls = a2->m_disableP2Controls;\n  if ( m_disableP2Controls )\n    GJBaseGameLayer::toggleLockPlayer(a1, m_disableP2Controls == On, 0);\n  m_hideAttempts = a2->m_hideAttempts;\n  if ( m_hideAttempts )\n    a1->toggleHideAttempts(a1, m_hideAttempts == On);\n  m_audioOnDeath = a2->m_audioOnDeath;\n  if ( m_audioOnDeath )\n    a1->m_gameState.m_unkBool22 = m_audioOnDeath == On;\n  m_noDeathSFX = a2->m_noDeathSFX;\n  if ( m_noDeathSFX )\n    a1->m_gameState.m_unkBool26 = m_noDeathSFX == On;\n  m_boostSlide = a2->m_boostSlide;\n  if ( m_boostSlide )\n  {\n    m_player2 = a1->m_player2;\n    v17 = m_boostSlide == On;\n    a1->m_player1->m_decreaseBoostSlide = v17;\n    m_player2->m_decreaseBoostSlide = v17;\n  }\n  m_editRespawnTime = a2->m_editRespawnTime;\n  if ( m_editRespawnTime )\n  {\n    m_respawnTime = 0.0;\n    if ( m_editRespawnTime == On )\n    {\n      m_respawnTime = a2->m_respawnTime;\n      if ( m_respawnTime <= 1.0 )\n      {\n        m_respawnTime = 1.0;\n      }\n      else if ( m_respawnTime >= 10.0 )\n      {\n        m_respawnTime = 10.0;\n      }\n    }\n    a1->m_gameState.m_unkUint14 = m_respawnTime;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processOptionsTrigger from 0x865d00 to 0x865ecc (460 bytes)\n; \n; 2 xrefs:\n; > EffectGameObject::triggerObject @ 0x76f88c\n; > <???> @ 0xabb70\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,#-0x20+var_s0]!                          ; +0x0, 0x865d00\nMOV             X29, SP                                                ; +0x4, 0x865d04\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x865d08\nMOV             X19, X1                                                ; +0xc, 0x865d0c\nLDR             W1, [X1,#0x71C]                                        ; +0x10, 0x865d10\nMOV             X20, X0                                                ; +0x14, 0x865d14\nCBNZ            W1, loc_865E88                                         ; +0x18, 0x865d18\nLDR             W0, [X19,#0x720]                                       ; +0x1c, 0x865d1c\nCBZ             W0, loc_865D30                                         ; +0x20, 0x865d20\nCMP             W0, #1                                                 ; +0x24, 0x865d24\nCSET            W0, EQ                                                 ; +0x28, 0x865d28\nSTRB            W0, [X20,#0x888]                                       ; +0x2c, 0x865d2c\nLDR             W0, [X19,#0x724]                                       ; +0x30, 0x865d30\nCBNZ            W0, loc_865E6C                                         ; +0x34, 0x865d34\nLDR             W0, [X19,#0x738]                                       ; +0x38, 0x865d38\nCBNZ            W0, loc_865E50                                         ; +0x3c, 0x865d3c\nLDR             W0, [X19,#0x728]                                       ; +0x40, 0x865d40\nCBNZ            W0, loc_865E38                                         ; +0x44, 0x865d44\nLDR             W0, [X19,#0x72C]                                       ; +0x48, 0x865d48\nCBNZ            W0, loc_865E20                                         ; +0x4c, 0x865d4c\nLDR             W0, [X19,#0x730]                                       ; +0x50, 0x865d50\nCBNZ            W0, loc_865E08                                         ; +0x54, 0x865d54\nLDR             W0, [X19,#0x734]                                       ; +0x58, 0x865d58\nCBNZ            W0, loc_865DF0                                         ; +0x5c, 0x865d5c\nLDR             W0, [X19,#0x73C]                                       ; +0x60, 0x865d60\nCBNZ            W0, loc_865DD4                                         ; +0x64, 0x865d64\nLDR             W0, [X19,#0x748]                                       ; +0x68, 0x865d68\nCBZ             W0, loc_865D7C                                         ; +0x6c, 0x865d6c\nCMP             W0, #1                                                 ; +0x70, 0x865d70\nCSET            W0, EQ                                                 ; +0x74, 0x865d74\nSTRB            W0, [X20,#0x516]                                       ; +0x78, 0x865d78\nLDR             W0, [X19,#0x74C]                                       ; +0x7c, 0x865d7c\nCBZ             W0, loc_865D90                                         ; +0x80, 0x865d80\nCMP             W0, #1                                                 ; +0x84, 0x865d84\nCSET            W0, EQ                                                 ; +0x88, 0x865d88\nSTRB            W0, [X20,#0x51C]                                       ; +0x8c, 0x865d8c\nLDR             W0, [X19,#0x750]                                       ; +0x90, 0x865d90\nCBZ             W0, loc_865DB0                                         ; +0x94, 0x865d94\nLDR             X2, [X20,#0xDF8]                                       ; +0x98, 0x865d98\nCMP             W0, #1                                                 ; +0x9c, 0x865d9c\nLDR             X1, [X20,#0xE00]                                       ; +0xa0, 0x865da0\nCSET            W0, EQ                                                 ; +0xa4, 0x865da4\nSTRB            W0, [X2,#0xA00]                                        ; +0xa8, 0x865da8\nSTRB            W0, [X1,#0xA00]                                        ; +0xac, 0x865dac\nLDR             W0, [X19,#0x740]                                       ; +0xb0, 0x865db0\nCBZ             W0, loc_865DC8                                         ; +0xb4, 0x865db4\nCMP             W0, #1                                                 ; +0xb8, 0x865db8\nFMOV            S0, WZR                                                ; +0xbc, 0x865dbc\nB.EQ            loc_865E9C                                             ; +0xc0, 0x865dc0\nSTR             S0, [X20,#0x518]                                       ; +0xc4, 0x865dc4\nLDP             X19, X20, [SP,#var_s10]                                ; +0xc8, 0x865dc8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xcc, 0x865dcc\nRET                                                                    ; +0xd0, 0x865dd0\nLDR             X2, [X20]                                              ; +0xd4, 0x865dd4\nCMP             W0, #1                                                 ; +0xd8, 0x865dd8\nCSET            W1, EQ                                                 ; +0xdc, 0x865ddc\nMOV             X0, X20                                                ; +0xe0, 0x865de0\nLDR             X2, [X2,#0x548]                                        ; +0xe4, 0x865de4\nBLR             X2                                                     ; +0xe8, 0x865de8\nB               loc_865D68                                             ; +0xec, 0x865dec\nCMP             W0, #1                                                 ; +0xf0, 0x865df0\nMOV             W2, #0; bool                                           ; +0xf4, 0x865df4\nMOV             X0, X20; this                                          ; +0xf8, 0x865df8\nCSET            W1, EQ; bool                                           ; +0xfc, 0x865dfc\nBL              _ZN15GJBaseGameLayer16toggleLockPlayerEbb; GJBaseGameLayer::toggleLockPlayer(bool,bool) ; +0x100, 0x865e00\nB               loc_865D60                                             ; +0x104, 0x865e04\nCMP             W0, #1                                                 ; +0x108, 0x865e08\nMOV             W2, #1; bool                                           ; +0x10c, 0x865e0c\nMOV             X0, X20; this                                          ; +0x110, 0x865e10\nCSET            W1, EQ; bool                                           ; +0x114, 0x865e14\nBL              _ZN15GJBaseGameLayer16toggleLockPlayerEbb; GJBaseGameLayer::toggleLockPlayer(bool,bool) ; +0x118, 0x865e18\nB               loc_865D58                                             ; +0x11c, 0x865e1c\nCMP             W0, #1                                                 ; +0x120, 0x865e20\nMOV             W2, #0; bool                                           ; +0x124, 0x865e24\nMOV             X0, X20; this                                          ; +0x128, 0x865e28\nCSET            W1, NE; bool                                           ; +0x12c, 0x865e2c\nBL              _ZN15GJBaseGameLayer22togglePlayerVisibilityEbb; GJBaseGameLayer::togglePlayerVisibility(bool,bool) ; +0x130, 0x865e30\nB               loc_865D50                                             ; +0x134, 0x865e34\nCMP             W0, #1                                                 ; +0x138, 0x865e38\nMOV             W2, #1; bool                                           ; +0x13c, 0x865e3c\nMOV             X0, X20; this                                          ; +0x140, 0x865e40\nCSET            W1, NE; bool                                           ; +0x144, 0x865e44\nBL              _ZN15GJBaseGameLayer22togglePlayerVisibilityEbb; GJBaseGameLayer::togglePlayerVisibility(bool,bool) ; +0x148, 0x865e48\nB               loc_865D48                                             ; +0x14c, 0x865e4c\nLDR             X2, [X20]                                              ; +0x150, 0x865e50\nCMP             W0, #1                                                 ; +0x154, 0x865e54\nCSET            W1, NE                                                 ; +0x158, 0x865e58\nMOV             X0, X20                                                ; +0x15c, 0x865e5c\nLDR             X2, [X2,#0x540]                                        ; +0x160, 0x865e60\nBLR             X2                                                     ; +0x164, 0x865e64\nB               loc_865D40                                             ; +0x168, 0x865e68\nLDR             X2, [X20]                                              ; +0x16c, 0x865e6c\nCMP             W0, #1                                                 ; +0x170, 0x865e70\nCSET            W1, NE                                                 ; +0x174, 0x865e74\nMOV             X0, X20                                                ; +0x178, 0x865e78\nLDR             X2, [X2,#0x538]                                        ; +0x17c, 0x865e7c\nBLR             X2                                                     ; +0x180, 0x865e80\nB               loc_865D38                                             ; +0x184, 0x865e84\nCMP             W1, #1                                                 ; +0x188, 0x865e88\nMOV             W2, #0; bool                                           ; +0x18c, 0x865e8c\nCSET            W1, EQ; bool                                           ; +0x190, 0x865e90\nBL              _ZN15GJBaseGameLayer23togglePlayerStreakBlendEbb; GJBaseGameLayer::togglePlayerStreakBlend(bool,bool) ; +0x194, 0x865e94\nB               loc_865D1C                                             ; +0x198, 0x865e98\nLDR             S0, [X19,#0x744]                                       ; +0x19c, 0x865e9c\nFMOV            S1, #1.0                                               ; +0x1a0, 0x865ea0\nFCMPE           S0, S1                                                 ; +0x1a4, 0x865ea4\nB.LE            loc_865EC0                                             ; +0x1a8, 0x865ea8\nFMOV            S1, #10.0                                              ; +0x1ac, 0x865eac\nFCMPE           S0, S1                                                 ; +0x1b0, 0x865eb0\nB.MI            loc_865DC4                                             ; +0x1b4, 0x865eb4\nFMOV            S0, S1                                                 ; +0x1b8, 0x865eb8\nB               loc_865DC4                                             ; +0x1bc, 0x865ebc\nB.GT            loc_865DC4                                             ; +0x1c0, 0x865ec0\nFMOV            S0, S1                                                 ; +0x1c4, 0x865ec4\nB               loc_865DC4                                             ; +0x1c8, 0x865ec8", "xrefs": ["EffectGameObject::triggerObject @ 0x76f88c", "<???> @ 0xabb70"], "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"}