{"type": "func", "start": 4296960280, "end": 4296960396, "name": "GJBaseGameLayer::updateCameraMode", "pseudocode": "// \n// GJBaseGameLayer::updateCameraMode from 0x1001e6918 to 0x1001e698c (116 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::toggleDualMode @ 0x1001e6438\n// > GJBaseGameLayer::playerWillSwitchMode @ 0x1001e69c8\n// > CameraTriggerGameObject::triggerObject @ 0x100392bbc\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::updateCameraMode(GJBaseGameLayer *a1, EffectGameObject *a2, bool a3)\n{\n  int m_isFreeMode; // w8\n  int m_cameraIsFreeMode; // w9\n  float32x2_t v5; // d0\n  float32x2_t v6; // d0\n\n  m_isFreeMode = a1->m_gameState.m_isFreeMode;\n  m_cameraIsFreeMode = a2->m_cameraIsFreeMode;\n  a1->m_gameState.m_isFreeMode = m_cameraIsFreeMode;\n  a1->m_gameState.m_unkBool9 = a2->m_cameraDisableGridSnap;\n  if ( a2->m_cameraEditCameraSettings )\n  {\n    v5 = (float32x2_t)vrev64_s32(*(int32x2_t *)&a2->m_cameraEasingValue);\n    v6 = (float32x2_t)vbsl_s8(\n                        (int8x8_t)vcgt_f32((float32x2_t)0x3F80000000000000LL, v5),\n                        (int8x8_t)0x3F80000000000000LL,\n                        (int8x8_t)v5);\n    *(int8x8_t *)&a1->m_gameState.m_unkFloat2 = vbsl_s8(\n                                                  (int8x8_t)vcgt_f32(v6, (float32x2_t)0x422000003F800000LL),\n                                                  (int8x8_t)0x422000003F800000LL,\n                                                  (int8x8_t)v6);\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 0x1001e6918 to 0x1001e698c (116 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::toggleDualMode @ 0x1001e6438\n; > GJBaseGameLayer::playerWillSwitchMode @ 0x1001e69c8\n; > CameraTriggerGameObject::triggerObject @ 0x100392bbc\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            W8, [X0,#0x311]                                        ; +0x0, 0x1001e6918\nLDRB            W9, [X1,#0x6D4]                                        ; +0x4, 0x1001e691c\nSTRB            W9, [X0,#0x311]                                        ; +0x8, 0x1001e6920\nLDRB            W10, [X1,#0x6E0]                                       ; +0xc, 0x1001e6924\nSTRB            W10, [X0,#0x312]                                       ; +0x10, 0x1001e6928\nLDRB            W10, [X1,#0x6D5]                                       ; +0x14, 0x1001e692c\nCMP             W10, #1                                                ; +0x18, 0x1001e6930\nB.NE            loc_1001E6968                                          ; +0x1c, 0x1001e6934\nADD             X10, X0, #0x2CC                                        ; +0x20, 0x1001e6938\nLDR             D0, [X1,#0x6D8]                                        ; +0x24, 0x1001e693c\nREV64           V0.2S, V0.2S                                           ; +0x28, 0x1001e6940\nADRP            X11, #qword_100636F98@PAGE                             ; +0x2c, 0x1001e6944\nLDR             D1, [X11,#qword_100636F98@PAGEOFF]                     ; +0x30, 0x1001e6948\nFCMGT           V2.2S, V1.2S, V0.2S                                    ; +0x34, 0x1001e694c\nBIT             V0.8B, V1.8B, V2.8B                                    ; +0x38, 0x1001e6950\nADRP            X11, #qword_10063A530@PAGE                             ; +0x3c, 0x1001e6954\nLDR             D1, [X11,#qword_10063A530@PAGEOFF]                     ; +0x40, 0x1001e6958\nFCMGT           V2.2S, V0.2S, V1.2S                                    ; +0x44, 0x1001e695c\nBIT             V0.8B, V1.8B, V2.8B                                    ; +0x48, 0x1001e6960\nSTR             D0, [X10]                                              ; +0x4c, 0x1001e6964\nCMP             W8, W9                                                 ; +0x50, 0x1001e6968\nCCMP            W2, #0, #4, NE                                         ; +0x54, 0x1001e696c\nB.NE            loc_1001E6978                                          ; +0x58, 0x1001e6970\nRET                                                                    ; +0x5c, 0x1001e6974\nLDR             X1, [X0,#0xCC8]                                        ; +0x60, 0x1001e6978\nLDR             W2, [X0,#0x4E8]                                        ; +0x64, 0x1001e697c\nFMOV            S0, WZR                                                ; +0x68, 0x1001e6980\nMOV             W3, #0                                                 ; +0x6c, 0x1001e6984\nB               GJBaseGameLayer__updateDualGround                      ; +0x70, 0x1001e6988", "xrefs": ["GJBaseGameLayer::toggleDualMode @ 0x1001e6438", "GJBaseGameLayer::playerWillSwitchMode @ 0x1001e69c8", "CameraTriggerGameObject::triggerObject @ 0x100392bbc"], "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"}