{"type": "func", "start": 8912716, "end": 8912884, "name": "GJBaseGameLayer::updateCameraMode", "pseudocode": "// \n// GJBaseGameLayer::updateCameraMode from 0x87ff4c to 0x87fff4 (168 bytes)\n// \n// 4 xrefs:\n// > CameraTriggerGameObject::triggerObject @ 0x770510\n// > GJBaseGameLayer::playerWillSwitchMode @ 0x88a2b4\n// > GJBaseGameLayer::toggleDualMode @ 0x88a5c8\n// > <???> @ 0xa1670\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::updateCameraMode(GJBaseGameLayer *a1, EffectGameObject *a2, bool a3)\n{\n  int m_cameraIsFreeMode; // w3\n  int m_isFreeMode; // w4\n  float m_cameraEasingValue; // s1\n  float v6; // s0\n  float m_cameraPaddingValue; // s2\n  float v8; // s0\n\n  m_cameraIsFreeMode = a2->m_cameraIsFreeMode;\n  m_isFreeMode = a1->m_gameState.m_isFreeMode;\n  a1->m_gameState.m_isFreeMode = m_cameraIsFreeMode;\n  a1->m_gameState.m_unkBool9 = a2->m_cameraDisableGridSnap;\n  if ( a2->m_cameraEditCameraSettings )\n  {\n    m_cameraEasingValue = a2->m_cameraEasingValue;\n    v6 = 1.0;\n    a1->m_gameState.m_unkFloat3 = m_cameraEasingValue;\n    m_cameraPaddingValue = a2->m_cameraPaddingValue;\n    if ( m_cameraEasingValue >= 1.0 && (v6 = 40.0, m_cameraEasingValue <= 40.0) )\n    {\n      a1->m_gameState.m_unkFloat3 = m_cameraEasingValue;\n      if ( m_cameraPaddingValue >= 0.0 )\n      {\nLABEL_5:\n        v8 = 1.0;\n        if ( m_cameraPaddingValue <= 1.0 )\n          v8 = m_cameraPaddingValue;\n        goto LABEL_7;\n      }\n    }\n    else\n    {\n      a1->m_gameState.m_unkFloat3 = v6;\n      if ( m_cameraPaddingValue >= 0.0 )\n        goto LABEL_5;\n    }\n    v8 = 0.0;\nLABEL_7:\n    a1->m_gameState.m_unkFloat2 = v8;\n  }\n  if ( m_isFreeMode != m_cameraIsFreeMode && a3 )\n    GJBaseGameLayer::updateDualGround(a1, a1->m_player1, a1->m_gameState.m_dualRelated, 0, 0.0);\n}", "assembly": "; \n; GJBaseGameLayer::updateCameraMode from 0x87ff4c to 0x87fff4 (168 bytes)\n; \n; 4 xrefs:\n; > CameraTriggerGameObject::triggerObject @ 0x770510\n; > GJBaseGameLayer::playerWillSwitchMode @ 0x88a2b4\n; > GJBaseGameLayer::toggleDualMode @ 0x88a5c8\n; > <???> @ 0xa1670\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\nLDRB            W3, [X1,#0x6C4]                                        ; +0x0, 0x87ff4c\nUXTB            W2, W2                                                 ; +0x4, 0x87ff50\nLDRB            W4, [X0,#0x311]                                        ; +0x8, 0x87ff54\nSTRB            W3, [X0,#0x311]                                        ; +0xc, 0x87ff58\nLDRB            W5, [X1,#0x6D0]                                        ; +0x10, 0x87ff5c\nSTRB            W5, [X0,#0x312]                                        ; +0x14, 0x87ff60\nLDRB            W5, [X1,#0x6C5]                                        ; +0x18, 0x87ff64\nCBZ             W5, loc_87FFAC                                         ; +0x1c, 0x87ff68\nLDR             S1, [X1,#0x6C8]                                        ; +0x20, 0x87ff6c\nFMOV            S0, #1.0                                               ; +0x24, 0x87ff70\nFCMPE           S1, S0                                                 ; +0x28, 0x87ff74\nSTR             S1, [X0,#0x2D0]                                        ; +0x2c, 0x87ff78\nLDR             S2, [X1,#0x6CC]                                        ; +0x30, 0x87ff7c\nB.MI            loc_87FF90                                             ; +0x34, 0x87ff80\nLDR             S0, =0x42200000                                        ; +0x38, 0x87ff84\nFCMPE           S1, S0                                                 ; +0x3c, 0x87ff88\nB.LE            loc_87FFD0                                             ; +0x40, 0x87ff8c\nFCMPE           S2, #0.0                                               ; +0x44, 0x87ff90\nSTR             S0, [X0,#0x2D0]                                        ; +0x48, 0x87ff94\nB.MI            loc_87FFEC                                             ; +0x4c, 0x87ff98\nFMOV            S0, #1.0                                               ; +0x50, 0x87ff9c\nFCMPE           S2, S0                                                 ; +0x54, 0x87ffa0\nB.LE            loc_87FFE4                                             ; +0x58, 0x87ffa4\nSTR             S0, [X0,#0x2CC]                                        ; +0x5c, 0x87ffa8\nCMP             W4, W3                                                 ; +0x60, 0x87ffac\nB.EQ            locret_87FFCC                                          ; +0x64, 0x87ffb0\nCBZ             W2, locret_87FFCC                                      ; +0x68, 0x87ffb4\nFMOV            S0, WZR; float                                         ; +0x6c, 0x87ffb8\nLDR             X1, [X0,#0xDF8]; PlayerObject *                        ; +0x70, 0x87ffbc\nLDR             W2, [X0,#0x540]; int                                   ; +0x74, 0x87ffc0\nMOV             W3, #0; bool                                           ; +0x78, 0x87ffc4\nB               _ZN15GJBaseGameLayer16updateDualGroundEP12PlayerObjectibf; GJBaseGameLayer::updateDualGround(PlayerObject *,int,bool,float) ; +0x7c, 0x87ffc8\nRET                                                                    ; +0x80, 0x87ffcc\nFMOV            S0, S1                                                 ; +0x84, 0x87ffd0\nFCMPE           S2, #0.0                                               ; +0x88, 0x87ffd4\nSTR             S0, [X0,#0x2D0]                                        ; +0x8c, 0x87ffd8\nB.PL            loc_87FF9C                                             ; +0x90, 0x87ffdc\nB               loc_87FFEC                                             ; +0x94, 0x87ffe0\nFMOV            S0, S2                                                 ; +0x98, 0x87ffe4\nB               loc_87FFA8                                             ; +0x9c, 0x87ffe8\nFMOV            S0, WZR                                                ; +0xa0, 0x87ffec\nB               loc_87FFA8                                             ; +0xa4, 0x87fff0", "xrefs": ["CameraTriggerGameObject::triggerObject @ 0x770510", "GJBaseGameLayer::playerWillSwitchMode @ 0x88a2b4", "GJBaseGameLayer::toggleDualMode @ 0x88a5c8", "<???> @ 0xa1670"], "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"}