{"type": "func", "start": 5371027072, "end": 5371027311, "name": "GJBaseGameLayer::updateScreenRotation", "pseudocode": "// \n// GJBaseGameLayer::updateScreenRotation from 0x140235e80 to 0x140235f6f (239 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140567078\n// > <???> @ 0x1405863d0\n// > <???> @ 0x1405c9c60\n// > <???> @ 0x1406ce094\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::updateScreenRotation(\n        GJBaseGameLayer *a1,\n        float a2,\n        bool a3,\n        bool a4,\n        float a5,\n        int a6,\n        float a7,\n        int a8,\n        int a9)\n{\n  float v10; // xmm7_4\n  float v11; // xmm0_4\n  int v12; // [rsp+90h] [rbp+18h] BYREF\n\n  v10 = a2;\n  if ( a3 )\n  {\n    v10 = a2 + a1->m_gameState.m_targetCameraAngle;\n    a1->m_gameState.m_targetCameraAngle = v10;\n  }\n  else\n  {\n    a1->m_gameState.m_targetCameraAngle = a2;\n  }\n  if ( a4 )\n  {\n    a1->m_gameState.m_cameraAngle = GJBaseGameLayer::convertToClosestDirection(a1->m_gameState.m_cameraAngle, 180.0);\n    v11 = GJBaseGameLayer::convertToClosestDirection(v10, 180.0);\n    a1->m_gameState.m_targetCameraAngle = v11;\n    v10 = v11;\n  }\n  if ( a5 <= 0.0 )\n  {\n    v12 = 17;\n    sub_14024AC30(&a1->m_gameState.m_tweenActions, &v12);\n    a1->m_gameState.m_cameraAngle = a2;\n  }\n  else\n  {\n    GJGameState::tweenValue(&a1->m_gameState, a1->m_gameState.m_cameraAngle, v10, 17, a5, a6, a7, a8, a9);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateScreenRotation from 0x140235e80 to 0x140235f6f (239 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140567078\n; > <???> @ 0x1405863d0\n; > <???> @ 0x1405c9c60\n; > <???> @ 0x1406ce094\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    rbx                                                            ; +0x0, 0x140235e80\nsub     rsp, 70h                                                       ; +0x2, 0x140235e82\nmovaps  [rsp+78h+var_18], xmm7                                         ; +0x6, 0x140235e86\nmov     rbx, rcx                                                       ; +0xb, 0x140235e8b\nmovaps  [rsp+78h+var_28], xmm8                                         ; +0xe, 0x140235e8e\nmovaps  xmm8, xmm1                                                     ; +0x14, 0x140235e94\nmovaps  xmm7, xmm1                                                     ; +0x18, 0x140235e98\ntest    r8b, r8b                                                       ; +0x1b, 0x140235e9b\njz      short loc_140235EB2                                            ; +0x1e, 0x140235e9e\naddss   xmm7, dword ptr [rcx+328h]                                     ; +0x20, 0x140235ea0\nmovss   dword ptr [rcx+328h], xmm7                                     ; +0x28, 0x140235ea8\njmp     short loc_140235EBB                                            ; +0x30, 0x140235eb0\nmovss   dword ptr [rcx+328h], xmm8                                     ; +0x32, 0x140235eb2\ntest    r9b, r9b                                                       ; +0x3b, 0x140235ebb\njz      short loc_140235EF8                                            ; +0x3e, 0x140235ebe\nmovss   xmm1, cs:dword_1406233A4                                       ; +0x40, 0x140235ec0\nmovss   xmm0, dword ptr [rcx+324h]                                     ; +0x48, 0x140235ec8\ncall    GJBaseGameLayer__convertToClosestDirection                     ; +0x50, 0x140235ed0\nmovss   xmm1, cs:dword_1406233A4                                       ; +0x55, 0x140235ed5\nmovss   dword ptr [rbx+324h], xmm0                                     ; +0x5d, 0x140235edd\nmovaps  xmm0, xmm7                                                     ; +0x65, 0x140235ee5\ncall    GJBaseGameLayer__convertToClosestDirection                     ; +0x68, 0x140235ee8\nmovss   dword ptr [rbx+328h], xmm0                                     ; +0x6d, 0x140235eed\nmovaps  xmm7, xmm0                                                     ; +0x75, 0x140235ef5\nmovss   xmm1, [rsp+78h+arg_20]                                         ; +0x78, 0x140235ef8\nxorps   xmm0, xmm0                                                     ; +0x81, 0x140235f01\ncomiss  xmm1, xmm0                                                     ; +0x84, 0x140235f04\njbe     short loc_140235F36                                            ; +0x87, 0x140235f07\nlea     rcx, [rbx+1A8h]                                                ; +0x89, 0x140235f09\nmov     r9d, 11h                                                       ; +0x90, 0x140235f10\nmovaps  xmm2, xmm7                                                     ; +0x96, 0x140235f16\nmovss   xmm1, dword ptr [rbx+324h]                                     ; +0x99, 0x140235f19\nmovaps  xmm7, [rsp+78h+var_18]                                         ; +0xa1, 0x140235f21\nmovaps  xmm8, [rsp+78h+var_28]                                         ; +0xa6, 0x140235f26\nadd     rsp, 70h                                                       ; +0xac, 0x140235f2c\npop     rbx                                                            ; +0xb0, 0x140235f30\njmp     GJGameState__tweenValue                                        ; +0xb1, 0x140235f31\nlea     rcx, [rbx+428h]                                                ; +0xb6, 0x140235f36\nmov     [rsp+78h+arg_10], 11h                                          ; +0xbd, 0x140235f3d\nlea     rdx, [rsp+78h+arg_10]                                          ; +0xc8, 0x140235f48\ncall    sub_14024AC30                                                  ; +0xd0, 0x140235f50\nmovaps  xmm7, [rsp+78h+var_18]                                         ; +0xd5, 0x140235f55\nmovss   dword ptr [rbx+324h], xmm8                                     ; +0xda, 0x140235f5a\nmovaps  xmm8, [rsp+78h+var_28]                                         ; +0xe3, 0x140235f63\nadd     rsp, 70h                                                       ; +0xe9, 0x140235f69\npop     rbx                                                            ; +0xed, 0x140235f6d\nretn                                                                   ; +0xee, 0x140235f6e", "xrefs": ["<???> @ 0x140567078", "<???> @ 0x1405863d0", "<???> @ 0x1405c9c60", "<???> @ 0x1406ce094"], "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"}