{"type": "func", "start": 5372111936, "end": 5372112246, "name": "GJBaseGameLayer::updateScreenRotation", "pseudocode": "// \n// GJBaseGameLayer::updateScreenRotation from 0x14033ec40 to 0x14033ed76 (310 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x14076b858\n// > <???> @ 0x14078b2d0\n// > <???> @ 0x1407d5eb8\n// > <???> @ 0x1408b763c\n// > <???> @ 0x1408b7650\n// > <???> @ 0x14091fcc4\n// \n// This function is hookable on this platform (idp: pc, 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:30:38 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::updateScreenRotation(\n        __int64 a1,\n        double a2,\n        char a3,\n        char a4,\n        int a5,\n        int a6,\n        int a7,\n        int a8,\n        int a9)\n{\n  double v10; // xmm7_8\n  float *v11; // rdi\n  double v12; // xmm0_8\n  double v13; // xmm0_8\n  __int64 result; // rax\n  int v15; // [rsp+90h] [rbp+18h] BYREF\n\n  v10 = a2;\n  if ( a3 )\n  {\n    *(float *)&v10 = *(float *)&a2 + *(float *)(a1 + 808);\n    *(_DWORD *)(a1 + 808) = LODWORD(v10);\n  }\n  else\n  {\n    *(_DWORD *)(a1 + 808) = LODWORD(a2);\n  }\n  v11 = (float *)(a1 + 804);\n  if ( a4 )\n  {\n    v12 = GJBaseGameLayer::convertToClosestDirection(COERCE_DOUBLE((unsigned __int64)*(_DWORD *)v11), 180.0);\n    *v11 = *(float *)&v12;\n    v13 = GJBaseGameLayer::convertToClosestDirection(v10, 180.0);\n    *(_DWORD *)(a1 + 808) = LODWORD(v13);\n    LODWORD(v10) = LODWORD(v13);\n  }\n  if ( *(float *)&a5 > 0.0 )\n    return GJGameState::tweenValue(a1 + 424, *v11, *(float *)&v10, 17, a5, a6, a7, a8, a9);\n  v15 = 17;\n  result = sub_140355080(a1 + 1064, &v15);\n  *v11 = *(float *)&a2;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::updateScreenRotation from 0x14033ec40 to 0x14033ed76 (310 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x14076b858\n; > <???> @ 0x14078b2d0\n; > <???> @ 0x1407d5eb8\n; > <???> @ 0x1408b763c\n; > <???> @ 0x1408b7650\n; > <???> @ 0x14091fcc4\n; \n; This function is hookable on this platform (idp: pc, 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:30:38 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x14033ec40\nmov     [rax+20h], rbx                                                 ; +0x3, 0x14033ec43\npush    rbp                                                            ; +0x7, 0x14033ec47\nsub     rsp, 70h                                                       ; +0x8, 0x14033ec48\nmovaps  xmmword ptr [rax-18h], xmm7                                    ; +0xc, 0x14033ec4c\nmov     rbx, rcx                                                       ; +0x10, 0x14033ec50\nmovaps  xmmword ptr [rax-28h], xmm8                                    ; +0x13, 0x14033ec53\nmovaps  xmm8, xmm1                                                     ; +0x18, 0x14033ec58\nmov     [rax+8], rsi                                                   ; +0x1c, 0x14033ec5c\nmovaps  xmm7, xmm1                                                     ; +0x20, 0x14033ec60\ntest    r8b, r8b                                                       ; +0x23, 0x14033ec63\njz      short loc_14033EC7A                                            ; +0x26, 0x14033ec66\naddss   xmm7, dword ptr [rcx+328h]                                     ; +0x28, 0x14033ec68\nmovss   dword ptr [rcx+328h], xmm7                                     ; +0x30, 0x14033ec70\njmp     short loc_14033EC83                                            ; +0x38, 0x14033ec78\nmovss   dword ptr [rcx+328h], xmm8                                     ; +0x3a, 0x14033ec7a\nmov     [rsp+78h+arg_8], rdi                                           ; +0x43, 0x14033ec83\nlea     rdi, [rcx+324h]                                                ; +0x4b, 0x14033ec8b\ntest    r9b, r9b                                                       ; +0x52, 0x14033ec92\njz      short loc_14033ECC7                                            ; +0x55, 0x14033ec95\nmovss   xmm1, cs:dword_1408358B8                                       ; +0x57, 0x14033ec97\nmovss   xmm0, dword ptr [rdi]                                          ; +0x5f, 0x14033ec9f\ncall    GJBaseGameLayer__convertToClosestDirection                     ; +0x63, 0x14033eca3\nmovss   xmm1, cs:dword_1408358B8                                       ; +0x68, 0x14033eca8\nmovss   dword ptr [rdi], xmm0                                          ; +0x70, 0x14033ecb0\nmovaps  xmm0, xmm7                                                     ; +0x74, 0x14033ecb4\ncall    GJBaseGameLayer__convertToClosestDirection                     ; +0x77, 0x14033ecb7\nmovss   dword ptr [rbx+328h], xmm0                                     ; +0x7c, 0x14033ecbc\nmovaps  xmm7, xmm0                                                     ; +0x84, 0x14033ecc4\nmovss   xmm2, [rsp+78h+arg_20]                                         ; +0x87, 0x14033ecc7\nxorps   xmm0, xmm0                                                     ; +0x90, 0x14033ecd0\ncomiss  xmm2, xmm0                                                     ; +0x93, 0x14033ecd3\nmov     rsi, [rsp+78h+arg_0]                                           ; +0x96, 0x14033ecd6\njbe     short loc_14033ED31                                            ; +0x9e, 0x14033ecde\nmov     eax, [rsp+78h+arg_40]                                          ; +0xa0, 0x14033ece0\nlea     rcx, [rbx+1A8h]                                                ; +0xa7, 0x14033ece7\nmovss   xmm0, [rsp+78h+arg_30]                                         ; +0xae, 0x14033ecee\nmov     r9d, 11h                                                       ; +0xb7, 0x14033ecf7\nmovss   xmm1, dword ptr [rdi]                                          ; +0xbd, 0x14033ecfd\nmov     [rsp+78h+var_38], eax                                          ; +0xc1, 0x14033ed01\nmov     eax, [rsp+78h+arg_38]                                          ; +0xc5, 0x14033ed05\nmov     [rsp+78h+var_40], eax                                          ; +0xcc, 0x14033ed0c\nmov     eax, [rsp+78h+arg_28]                                          ; +0xd0, 0x14033ed10\nmovss   [rsp+78h+var_48], xmm0                                         ; +0xd7, 0x14033ed17\nmov     [rsp+78h+var_50], eax                                          ; +0xdd, 0x14033ed1d\nmovss   [rsp+78h+var_58], xmm2                                         ; +0xe1, 0x14033ed21\nmovaps  xmm2, xmm7                                                     ; +0xe7, 0x14033ed27\ncall    GJGameState__tweenValue                                        ; +0xea, 0x14033ed2a\njmp     short loc_14033ED55                                            ; +0xef, 0x14033ed2f\nlea     rcx, [rbx+428h]                                                ; +0xf1, 0x14033ed31\nmov     [rsp+78h+arg_10], 11h                                          ; +0xf8, 0x14033ed38\nlea     rdx, [rsp+78h+arg_10]                                          ; +0x103, 0x14033ed43\ncall    sub_140355080                                                  ; +0x10b, 0x14033ed4b\nmovss   dword ptr [rdi], xmm8                                          ; +0x110, 0x14033ed50\nmov     rdi, [rsp+78h+arg_8]                                           ; +0x115, 0x14033ed55\nmov     rbx, [rsp+78h+arg_18]                                          ; +0x11d, 0x14033ed5d\nmovaps  xmm7, [rsp+78h+var_18]                                         ; +0x125, 0x14033ed65\nmovaps  xmm8, [rsp+78h+var_28]                                         ; +0x12a, 0x14033ed6a\nadd     rsp, 70h                                                       ; +0x130, 0x14033ed70\npop     rbp                                                            ; +0x134, 0x14033ed74\nretn                                                                   ; +0x135, 0x14033ed75", "xrefs": ["<???> @ 0x14076b858", "<???> @ 0x14078b2d0", "<???> @ 0x1407d5eb8", "<???> @ 0x1408b763c", "<???> @ 0x1408b7650", "<???> @ 0x14091fcc4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}