{"type": "func", "start": 4297597612, "end": 4297597728, "name": "GJBaseGameLayer::updateCameraMode", "pseudocode": "// \n// GJBaseGameLayer::updateCameraMode from 0x1002822ac to 0x100282320 (116 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::toggleDualMode @ 0x100281c18\n// > GJBaseGameLayer::playerWillSwitchMode @ 0x10028235c\n// > CameraTriggerGameObject::triggerObject @ 0x1004395fc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:01:56 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::updateCameraMode(__int64 result, int32x2_t *a2, int a3)\n{\n  int v3; // w8\n  int v4; // w9\n  float32x2_t v5; // d0\n  float32x2_t v6; // d0\n\n  v3 = *(unsigned __int8 *)(result + 785);\n  v4 = a2[218].u8[4];\n  *(_BYTE *)(result + 785) = v4;\n  *(_BYTE *)(result + 786) = a2[220].i8[0];\n  if ( a2[218].i8[5] == 1 )\n  {\n    v5 = (float32x2_t)vrev64_s32(a2[219]);\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 *)(result + 716) = vbsl_s8(\n                                    (int8x8_t)vcgt_f32(v6, (float32x2_t)0x422000003F800000LL),\n                                    (int8x8_t)0x422000003F800000LL,\n                                    (int8x8_t)v6);\n  }\n  if ( v3 != v4 && a3 != 0 )\n    return GJBaseGameLayer::updateDualGround(result, *(_QWORD *)(result + 3256), *(_DWORD *)(result + 1256), 0);\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::updateCameraMode from 0x1002822ac to 0x100282320 (116 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::toggleDualMode @ 0x100281c18\n; > GJBaseGameLayer::playerWillSwitchMode @ 0x10028235c\n; > CameraTriggerGameObject::triggerObject @ 0x1004395fc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:01:56 +0000\n; \nLDRB            W8, [X0,#0x311]                                        ; +0x0, 0x1002822ac\nLDRB            W9, [X1,#0x6D4]                                        ; +0x4, 0x1002822b0\nSTRB            W9, [X0,#0x311]                                        ; +0x8, 0x1002822b4\nLDRB            W10, [X1,#0x6E0]                                       ; +0xc, 0x1002822b8\nSTRB            W10, [X0,#0x312]                                       ; +0x10, 0x1002822bc\nLDRB            W10, [X1,#0x6D5]                                       ; +0x14, 0x1002822c0\nCMP             W10, #1                                                ; +0x18, 0x1002822c4\nB.NE            loc_1002822FC                                          ; +0x1c, 0x1002822c8\nADD             X10, X0, #0x2CC                                        ; +0x20, 0x1002822cc\nLDR             D0, [X1,#0x6D8]                                        ; +0x24, 0x1002822d0\nREV64           V0.2S, V0.2S                                           ; +0x28, 0x1002822d4\nADRP            X11, #qword_1007600B8@PAGE                             ; +0x2c, 0x1002822d8\nLDR             D1, [X11,#qword_1007600B8@PAGEOFF]                     ; +0x30, 0x1002822dc\nFCMGT           V2.2S, V1.2S, V0.2S                                    ; +0x34, 0x1002822e0\nBIT             V0.8B, V1.8B, V2.8B                                    ; +0x38, 0x1002822e4\nADRP            X11, #qword_100763238@PAGE                             ; +0x3c, 0x1002822e8\nLDR             D1, [X11,#qword_100763238@PAGEOFF]                     ; +0x40, 0x1002822ec\nFCMGT           V2.2S, V0.2S, V1.2S                                    ; +0x44, 0x1002822f0\nBIT             V0.8B, V1.8B, V2.8B                                    ; +0x48, 0x1002822f4\nSTR             D0, [X10]                                              ; +0x4c, 0x1002822f8\nCMP             W8, W9                                                 ; +0x50, 0x1002822fc\nCCMP            W2, #0, #4, NE                                         ; +0x54, 0x100282300\nB.NE            loc_10028230C                                          ; +0x58, 0x100282304\nRET                                                                    ; +0x5c, 0x100282308\nLDR             X1, [X0,#0xCB8]                                        ; +0x60, 0x10028230c\nLDR             W2, [X0,#0x4E8]                                        ; +0x64, 0x100282310\nFMOV            S0, WZR                                                ; +0x68, 0x100282314\nMOV             W3, #0                                                 ; +0x6c, 0x100282318\nB               GJBaseGameLayer__updateDualGround                      ; +0x70, 0x10028231c", "xrefs": ["GJBaseGameLayer::toggleDualMode @ 0x100281c18", "GJBaseGameLayer::playerWillSwitchMode @ 0x10028235c", "CameraTriggerGameObject::triggerObject @ 0x1004395fc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}