{"type": "func", "start": 4679344, "end": 4679698, "name": "GJBaseGameLayer::processOptionsTrigger", "pseudocode": "// \n// GJBaseGameLayer::processOptionsTrigger from 0x4766b0 to 0x476812 (354 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x3edf7e\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; // r1\n  GameOptionsSetting m_unlinkDualGravity; // r3\n  GameOptionsSetting m_hideGround; // r1\n  GameOptionsSetting m_hideMG; // r1\n  GameOptionsSetting m_hideP1; // r1\n  GameOptionsSetting m_hideP2; // r1\n  GameOptionsSetting m_disableP1Controls; // r1\n  GameOptionsSetting m_disableP2Controls; // r1\n  GameOptionsSetting m_hideAttempts; // r1\n  GameOptionsSetting m_audioOnDeath; // r3\n  GameOptionsSetting m_noDeathSFX; // r3\n  GameOptionsSetting m_boostSlide; // r3\n  bool v16; // r3\n  GameOptionsSetting m_editRespawnTime; // r3\n  float m_respawnTime; // s15\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    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    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    else\n    {\n      m_respawnTime = 0.0;\n    }\n    a1->m_gameState.m_unkUint14 = m_respawnTime;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processOptionsTrigger from 0x4766b0 to 0x476812 (354 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x3edf7e\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            {R3-R5,LR}                                             ; +0x0, 0x4766b0\nMOV             R5, R1                                                 ; +0x2, 0x4766b2\nLDR.W           R1, [R1,#0x664]                                        ; +0x4, 0x4766b4\nMOV             R4, R0                                                 ; +0x8, 0x4766b8\nCBZ             R1, loc_4766CE                                         ; +0xa, 0x4766ba\nADD.W           LR, R1, #0xFFFFFFFF                                    ; +0xc, 0x4766bc\nMOVS            R2, #0; bool                                           ; +0x10, 0x4766c0\nRSBS.W          R1, LR, #0                                             ; +0x12, 0x4766c2\nADC.W           R1, R1, LR; bool                                       ; +0x16, 0x4766c6\nBL              _ZN15GJBaseGameLayer23togglePlayerStreakBlendEbb; GJBaseGameLayer::togglePlayerStreakBlend(bool,bool) ; +0x1a, 0x4766ca\nLDR.W           R3, [R5,#0x668]                                        ; +0x1e, 0x4766ce\nCBZ             R3, loc_4766DE                                         ; +0x22, 0x4766d2\nSUBS            R2, R3, #1                                             ; +0x24, 0x4766d4\nNEGS            R3, R2                                                 ; +0x26, 0x4766d6\nADCS            R3, R2                                                 ; +0x28, 0x4766d8\nSTRB.W          R3, [R4,#0x5F0]                                        ; +0x2a, 0x4766da\nLDR.W           R1, [R5,#0x66C]                                        ; +0x2e, 0x4766de\nCBZ             R1, loc_4766F6                                         ; +0x32, 0x4766e2\nLDR             R3, [R4]                                               ; +0x34, 0x4766e4\nADDS.W          R1, R1, #0xFFFFFFFF                                    ; +0x36, 0x4766e6\nMOV             R0, R4                                                 ; +0x3a, 0x4766ea\nIT NE                                                                  ; +0x3c, 0x4766ec\nMOVNE           R1, #1                                                 ; +0x3e, 0x4766ee\nLDR.W           R3, [R3,#0x29C]                                        ; +0x40, 0x4766f0\nBLX             R3                                                     ; +0x44, 0x4766f4\nLDR.W           R1, [R5,#0x680]                                        ; +0x46, 0x4766f6\nCBZ             R1, loc_47670E                                         ; +0x4a, 0x4766fa\nLDR             R3, [R4]                                               ; +0x4c, 0x4766fc\nADDS.W          R1, R1, #0xFFFFFFFF                                    ; +0x4e, 0x4766fe\nMOV             R0, R4                                                 ; +0x52, 0x476702\nIT NE                                                                  ; +0x54, 0x476704\nMOVNE           R1, #1                                                 ; +0x56, 0x476706\nLDR.W           R3, [R3,#0x2A0]                                        ; +0x58, 0x476708\nBLX             R3                                                     ; +0x5c, 0x47670c\nLDR.W           R1, [R5,#0x670]                                        ; +0x5e, 0x47670e\nCBZ             R1, loc_476726                                         ; +0x62, 0x476712\nADDS.W          R1, R1, #0xFFFFFFFF                                    ; +0x64, 0x476714\nMOV             R0, R4; this                                           ; +0x68, 0x476718\nMOV.W           R2, #1; bool                                           ; +0x6a, 0x47671a\nIT NE                                                                  ; +0x6e, 0x47671e\nMOVNE           R1, #1; bool                                           ; +0x70, 0x476720\nBL              _ZN15GJBaseGameLayer22togglePlayerVisibilityEbb; GJBaseGameLayer::togglePlayerVisibility(bool,bool) ; +0x72, 0x476722\nLDR.W           R1, [R5,#0x674]                                        ; +0x76, 0x476726\nCBZ             R1, loc_47673E                                         ; +0x7a, 0x47672a\nADDS.W          R1, R1, #0xFFFFFFFF                                    ; +0x7c, 0x47672c\nMOV             R0, R4; this                                           ; +0x80, 0x476730\nMOV.W           R2, #0; bool                                           ; +0x82, 0x476732\nIT NE                                                                  ; +0x86, 0x476736\nMOVNE           R1, #1; bool                                           ; +0x88, 0x476738\nBL              _ZN15GJBaseGameLayer22togglePlayerVisibilityEbb; GJBaseGameLayer::togglePlayerVisibility(bool,bool) ; +0x8a, 0x47673a\nLDR.W           R1, [R5,#0x678]                                        ; +0x8e, 0x47673e\nCBZ             R1, loc_476754                                         ; +0x92, 0x476742\nSUBS            R3, R1, #1                                             ; +0x94, 0x476744\nMOV             R0, R4; this                                           ; +0x96, 0x476746\nNEGS            R1, R3                                                 ; +0x98, 0x476748\nMOV.W           R2, #1; bool                                           ; +0x9a, 0x47674a\nADCS            R1, R3; bool                                           ; +0x9e, 0x47674e\nBL              _ZN15GJBaseGameLayer16toggleLockPlayerEbb; GJBaseGameLayer::toggleLockPlayer(bool,bool) ; +0xa0, 0x476750\nLDR.W           R1, [R5,#0x67C]                                        ; +0xa4, 0x476754\nCBZ             R1, loc_476770                                         ; +0xa8, 0x476758\nADD.W           R12, R1, #0xFFFFFFFF                                   ; +0xaa, 0x47675a\nMOV             R0, R4; this                                           ; +0xae, 0x47675e\nRSBS.W          R1, R12, #0                                            ; +0xb0, 0x476760\nMOV.W           R2, #0; bool                                           ; +0xb4, 0x476764\nADC.W           R1, R1, R12; bool                                      ; +0xb8, 0x476768\nBL              _ZN15GJBaseGameLayer16toggleLockPlayerEbb; GJBaseGameLayer::toggleLockPlayer(bool,bool) ; +0xbc, 0x47676c\nLDR.W           R1, [R5,#0x684]                                        ; +0xc0, 0x476770\nCBZ             R1, loc_47678C                                         ; +0xc4, 0x476774\nLDR             R3, [R4]                                               ; +0xc6, 0x476776\nADD.W           LR, R1, #0xFFFFFFFF                                    ; +0xc8, 0x476778\nRSBS.W          R1, LR, #0                                             ; +0xcc, 0x47677c\nMOV             R0, R4                                                 ; +0xd0, 0x476780\nADC.W           R1, R1, LR                                             ; +0xd2, 0x476782\nLDR.W           R3, [R3,#0x2A4]                                        ; +0xd6, 0x476786\nBLX             R3                                                     ; +0xda, 0x47678a\nLDR.W           R3, [R5,#0x690]                                        ; +0xdc, 0x47678c\nCBZ             R3, loc_47679C                                         ; +0xe0, 0x476790\nSUBS            R0, R3, #1                                             ; +0xe2, 0x476792\nNEGS            R3, R0                                                 ; +0xe4, 0x476794\nADCS            R3, R0                                                 ; +0xe6, 0x476796\nSTRB.W          R3, [R4,#0x41A]                                        ; +0xe8, 0x476798\nLDR.W           R3, [R5,#0x694]                                        ; +0xec, 0x47679c\nCBZ             R3, loc_4767AC                                         ; +0xf0, 0x4767a0\nSUBS            R1, R3, #1                                             ; +0xf2, 0x4767a2\nNEGS            R3, R1                                                 ; +0xf4, 0x4767a4\nADCS            R3, R1                                                 ; +0xf6, 0x4767a6\nSTRB.W          R3, [R4,#0x420]                                        ; +0xf8, 0x4767a8\nLDR.W           R3, [R5,#0x698]                                        ; +0xfc, 0x4767ac\nCBZ             R3, loc_4767C8                                         ; +0x100, 0x4767b0\nSUBS            R2, R3, #1                                             ; +0x102, 0x4767b2\nNEGS            R3, R2                                                 ; +0x104, 0x4767b4\nADCS            R3, R2                                                 ; +0x106, 0x4767b6\nLDR.W           R2, [R4,#0x8B8]                                        ; +0x108, 0x4767b8\nSTRB.W          R3, [R2,#0x820]                                        ; +0x10c, 0x4767bc\nLDR.W           R2, [R4,#0x8BC]                                        ; +0x110, 0x4767c0\nSTRB.W          R3, [R2,#0x820]                                        ; +0x114, 0x4767c4\nLDR.W           R3, [R5,#0x688]                                        ; +0x118, 0x4767c8\nCBZ             R3, locret_476810                                      ; +0x11c, 0x4767cc\nCMP             R3, #1                                                 ; +0x11e, 0x4767ce\nBNE             loc_476804                                             ; +0x120, 0x4767d0\nVMOV.F32        S14, #1.0                                              ; +0x122, 0x4767d2\nADDW            R5, R5, #0x68C                                         ; +0x126, 0x4767d6\nVLDR            S15, [R5]                                              ; +0x12a, 0x4767da\nVCMPE.F32       S15, S14                                               ; +0x12e, 0x4767de\nVMRS            APSR_nzcv, FPSCR                                       ; +0x132, 0x4767e2\nBLE             loc_4767FC                                             ; +0x136, 0x4767e6\nVMOV.F32        S14, #10.0                                             ; +0x138, 0x4767e8\nVCMPE.F32       S15, S14                                               ; +0x13c, 0x4767ec\nVMRS            APSR_nzcv, FPSCR                                       ; +0x140, 0x4767f0\nIT PL                                                                  ; +0x144, 0x4767f4\nVMOVPL.F32      S15, S14                                               ; +0x146, 0x4767f6\nB               loc_476808                                             ; +0x14a, 0x4767fa\nBGT             loc_476808                                             ; +0x14c, 0x4767fc\nVMOV.F32        S15, S14                                               ; +0x14e, 0x4767fe\nB               loc_476808                                             ; +0x152, 0x476802\nVLDR            S15, =0.0                                              ; +0x154, 0x476804\nADDW            R4, R4, #0x41C                                         ; +0x158, 0x476808\nVSTR            S15, [R4]                                              ; +0x15c, 0x47680c\nPOP             {R3-R5,PC}                                             ; +0x160, 0x476810", "xrefs": ["EffectGameObject::triggerObject @ 0x3edf7e"], "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"}