{"type": "func", "start": 4297007624, "end": 4297008048, "name": "GJBaseGameLayer::processOptionsTrigger", "pseudocode": "// \n// GJBaseGameLayer::processOptionsTrigger from 0x1001f2208 to 0x1001f23b0 (424 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x100385aa4\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::processOptionsTrigger(GJBaseGameLayer *a1, GameOptionsTrigger *a2)\n{\n  GameOptionsSetting m_streakAdditive; // w8\n  GameOptionsSetting m_unlinkDualGravity; // w8\n  GameOptionsSetting m_hideGround; // w8\n  GameOptionsSetting m_hideMG; // w8\n  GameOptionsSetting m_hideP1; // w8\n  GameOptionsSetting m_hideP2; // w8\n  GameOptionsSetting m_disableP1Controls; // w8\n  GameOptionsSetting m_disableP2Controls; // w8\n  GameOptionsSetting m_hideAttempts; // w8\n  GameOptionsSetting m_audioOnDeath; // w8\n  GameOptionsSetting m_noDeathSFX; // w8\n  GameOptionsSetting m_boostSlide; // w8\n  bool v16; // w8\n  GameOptionsSetting m_editRespawnTime; // w8\n  float v18; // 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    ((void (__fastcall *)(GJBaseGameLayer *, bool))a1->toggleGroundVisibility)(a1, m_hideGround != On);\n  m_hideMG = a2->m_hideMG;\n  if ( m_hideMG )\n    ((void (__fastcall *)(GJBaseGameLayer *, bool))a1->toggleMGVisibility)(a1, m_hideMG != On);\n  m_hideP1 = a2->m_hideP1;\n  if ( m_hideP1 )\n    PlayerObject::toggleVisibility(a1->m_player1, m_hideP1 != On);\n  m_hideP2 = a2->m_hideP2;\n  if ( m_hideP2 && a1->m_gameState.m_isDualMode )\n    PlayerObject::toggleVisibility(a1->m_player2, m_hideP2 != On);\n  m_disableP1Controls = a2->m_disableP1Controls;\n  if ( m_disableP1Controls )\n  {\n    if ( m_disableP1Controls == On )\n      PlayerObject::disablePlayerControls(a1->m_player1);\n    else\n      PlayerObject::enablePlayerControls(a1->m_player1);\n  }\n  m_disableP2Controls = a2->m_disableP2Controls;\n  if ( m_disableP2Controls )\n  {\n    if ( m_disableP2Controls == On )\n      PlayerObject::disablePlayerControls(a1->m_player2);\n    else\n      PlayerObject::enablePlayerControls(a1->m_player2);\n  }\n  m_hideAttempts = a2->m_hideAttempts;\n  if ( m_hideAttempts )\n    ((void (__fastcall *)(GJBaseGameLayer *, bool))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    v16 = m_boostSlide == On;\n    a1->m_player1->m_decreaseBoostSlide = v16;\n    a1->m_player2->m_decreaseBoostSlide = v16;\n  }\n  m_editRespawnTime = a2->m_editRespawnTime;\n  if ( m_editRespawnTime )\n  {\n    v18 = 0.0;\n    if ( m_editRespawnTime == On )\n      v18 = fminf(fmaxf(a2->m_respawnTime, 1.0), 10.0);\n    a1->m_gameState.m_unkUint14 = v18;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processOptionsTrigger from 0x1001f2208 to 0x1001f23b0 (424 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x100385aa4\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001f2208\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001f220c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001f2210\nMOV             X20, X1                                                ; +0xc, 0x1001f2214\nMOV             X19, X0                                                ; +0x10, 0x1001f2218\nLDR             W8, [X1,#0x72C]                                        ; +0x14, 0x1001f221c\nCBZ             W8, loc_1001F2238                                      ; +0x18, 0x1001f2220\nCMP             W8, #1                                                 ; +0x1c, 0x1001f2224\nCSET            W1, EQ                                                 ; +0x20, 0x1001f2228\nMOV             X0, X19                                                ; +0x24, 0x1001f222c\nMOV             W2, #0                                                 ; +0x28, 0x1001f2230\nBL              GJBaseGameLayer__togglePlayerStreakBlend               ; +0x2c, 0x1001f2234\nLDR             W8, [X20,#0x730]                                       ; +0x30, 0x1001f2238\nCBZ             W8, loc_1001F224C                                      ; +0x34, 0x1001f223c\nCMP             W8, #1                                                 ; +0x38, 0x1001f2240\nCSET            W8, EQ                                                 ; +0x3c, 0x1001f2244\nSTRB            W8, [X19,#0x778]                                       ; +0x40, 0x1001f2248\nLDR             W8, [X20,#0x734]                                       ; +0x44, 0x1001f224c\nCBZ             W8, loc_1001F226C                                      ; +0x48, 0x1001f2250\nCMP             W8, #1                                                 ; +0x4c, 0x1001f2254\nCSET            W1, NE                                                 ; +0x50, 0x1001f2258\nLDR             X8, [X19]                                              ; +0x54, 0x1001f225c\nLDR             X8, [X8,#0x538]                                        ; +0x58, 0x1001f2260\nMOV             X0, X19                                                ; +0x5c, 0x1001f2264\nBLR             X8                                                     ; +0x60, 0x1001f2268\nLDR             W8, [X20,#0x748]                                       ; +0x64, 0x1001f226c\nCBZ             W8, loc_1001F228C                                      ; +0x68, 0x1001f2270\nCMP             W8, #1                                                 ; +0x6c, 0x1001f2274\nCSET            W1, NE                                                 ; +0x70, 0x1001f2278\nLDR             X8, [X19]                                              ; +0x74, 0x1001f227c\nLDR             X8, [X8,#0x540]                                        ; +0x78, 0x1001f2280\nMOV             X0, X19                                                ; +0x7c, 0x1001f2284\nBLR             X8                                                     ; +0x80, 0x1001f2288\nLDR             W8, [X20,#0x738]                                       ; +0x84, 0x1001f228c\nCBZ             W8, loc_1001F22A4                                      ; +0x88, 0x1001f2290\nCMP             W8, #1                                                 ; +0x8c, 0x1001f2294\nCSET            W1, NE                                                 ; +0x90, 0x1001f2298\nLDR             X0, [X19,#0xCC8]                                       ; +0x94, 0x1001f229c\nBL              PlayerObject__toggleVisibility                         ; +0x98, 0x1001f22a0\nLDR             W8, [X20,#0x73C]                                       ; +0x9c, 0x1001f22a4\nCBZ             W8, loc_1001F22C8                                      ; +0xa0, 0x1001f22a8\nLDRB            W9, [X19,#0x3F2]                                       ; +0xa4, 0x1001f22ac\nCMP             W9, #1                                                 ; +0xa8, 0x1001f22b0\nB.NE            loc_1001F22C8                                          ; +0xac, 0x1001f22b4\nCMP             W8, #1                                                 ; +0xb0, 0x1001f22b8\nCSET            W1, NE                                                 ; +0xb4, 0x1001f22bc\nLDR             X0, [X19,#0xCD0]                                       ; +0xb8, 0x1001f22c0\nBL              PlayerObject__toggleVisibility                         ; +0xbc, 0x1001f22c4\nLDR             W8, [X20,#0x740]                                       ; +0xc0, 0x1001f22c8\nCBZ             W8, loc_1001F22EC                                      ; +0xc4, 0x1001f22cc\nCMP             W8, #1                                                 ; +0xc8, 0x1001f22d0\nB.NE            loc_1001F22E4                                          ; +0xcc, 0x1001f22d4\nLDR             X0, [X19,#0xCC8]                                       ; +0xd0, 0x1001f22d8\nBL              PlayerObject__disablePlayerControls                    ; +0xd4, 0x1001f22dc\nB               loc_1001F22EC                                          ; +0xd8, 0x1001f22e0\nLDR             X0, [X19,#0xCC8]                                       ; +0xdc, 0x1001f22e4\nBL              PlayerObject__enablePlayerControls                     ; +0xe0, 0x1001f22e8\nLDR             W8, [X20,#0x744]                                       ; +0xe4, 0x1001f22ec\nCBZ             W8, loc_1001F2310                                      ; +0xe8, 0x1001f22f0\nCMP             W8, #1                                                 ; +0xec, 0x1001f22f4\nB.NE            loc_1001F2308                                          ; +0xf0, 0x1001f22f8\nLDR             X0, [X19,#0xCD0]                                       ; +0xf4, 0x1001f22fc\nBL              PlayerObject__disablePlayerControls                    ; +0xf8, 0x1001f2300\nB               loc_1001F2310                                          ; +0xfc, 0x1001f2304\nLDR             X0, [X19,#0xCD0]                                       ; +0x100, 0x1001f2308\nBL              PlayerObject__enablePlayerControls                     ; +0x104, 0x1001f230c\nLDR             W8, [X20,#0x74C]                                       ; +0x108, 0x1001f2310\nCBZ             W8, loc_1001F2330                                      ; +0x10c, 0x1001f2314\nCMP             W8, #1                                                 ; +0x110, 0x1001f2318\nCSET            W1, EQ                                                 ; +0x114, 0x1001f231c\nLDR             X8, [X19]                                              ; +0x118, 0x1001f2320\nLDR             X8, [X8,#0x548]                                        ; +0x11c, 0x1001f2324\nMOV             X0, X19                                                ; +0x120, 0x1001f2328\nBLR             X8                                                     ; +0x124, 0x1001f232c\nLDR             W8, [X20,#0x758]                                       ; +0x128, 0x1001f2330\nCBZ             W8, loc_1001F2344                                      ; +0x12c, 0x1001f2334\nCMP             W8, #1                                                 ; +0x130, 0x1001f2338\nCSET            W8, EQ                                                 ; +0x134, 0x1001f233c\nSTRB            W8, [X19,#0x4BE]                                       ; +0x138, 0x1001f2340\nLDR             W8, [X20,#0x75C]                                       ; +0x13c, 0x1001f2344\nCBZ             W8, loc_1001F2358                                      ; +0x140, 0x1001f2348\nCMP             W8, #1                                                 ; +0x144, 0x1001f234c\nCSET            W8, EQ                                                 ; +0x148, 0x1001f2350\nSTRB            W8, [X19,#0x4C4]                                       ; +0x14c, 0x1001f2354\nLDR             W8, [X20,#0x760]                                       ; +0x150, 0x1001f2358\nCBZ             W8, loc_1001F2378                                      ; +0x154, 0x1001f235c\nCMP             W8, #1                                                 ; +0x158, 0x1001f2360\nCSET            W8, EQ                                                 ; +0x15c, 0x1001f2364\nLDR             X9, [X19,#0xCC8]                                       ; +0x160, 0x1001f2368\nSTRB            W8, [X9,#0x9E0]                                        ; +0x164, 0x1001f236c\nLDR             X9, [X19,#0xCD0]                                       ; +0x168, 0x1001f2370\nSTRB            W8, [X9,#0x9E0]                                        ; +0x16c, 0x1001f2374\nLDR             W8, [X20,#0x750]                                       ; +0x170, 0x1001f2378\nCBZ             W8, loc_1001F23A4                                      ; +0x174, 0x1001f237c\nFMOV            S0, WZR                                                ; +0x178, 0x1001f2380\nCMP             W8, #1                                                 ; +0x17c, 0x1001f2384\nB.NE            loc_1001F23A0                                          ; +0x180, 0x1001f2388\nLDR             S0, [X20,#0x754]                                       ; +0x184, 0x1001f238c\nFMOV            S1, #1.0                                               ; +0x188, 0x1001f2390\nFMAXNM          S0, S0, S1                                             ; +0x18c, 0x1001f2394\nFMOV            S1, #10.0                                              ; +0x190, 0x1001f2398\nFMINNM          S0, S0, S1                                             ; +0x194, 0x1001f239c\nSTR             S0, [X19,#0x4C0]                                       ; +0x198, 0x1001f23a0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x19c, 0x1001f23a4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x1a0, 0x1001f23a8\nRET                                                                    ; +0x1a4, 0x1001f23ac", "xrefs": ["EffectGameObject::triggerObject @ 0x100385aa4"], "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"}