{"type": "func", "start": 8902224, "end": 8902456, "name": "GJBaseGameLayer::updateScreenRotation", "pseudocode": "// \n// GJBaseGameLayer::updateScreenRotation from 0x87d650 to 0x87d738 (232 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::updateScreenRotation @ 0x5cc040\n// > <???> @ 0x9ed48\n// > <???> @ 0x1148a88\n// > <???> @ 0x11552f8\n// > <???> @ 0x1190778\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; // s8\n  float v12; // s3\n  float v13; // s0\n  int v14; // [xsp+38h] [xbp+38h]\n  int v16; // [xsp+50h] [xbp+50h]\n  int v17; // [xsp+58h] [xbp+58h]\n\n  v10 = a2;\n  v12 = a7;\n  if ( a3 )\n    a2 = a2 + a1->m_gameState.m_targetCameraAngle;\n  a1->m_gameState.m_targetCameraAngle = a2;\n  if ( a4 )\n  {\n    v14 = a9;\n    v16 = a8;\n    v17 = a6;\n    a1->m_gameState.m_cameraAngle = GJBaseGameLayer::convertToClosestDirection(a1->m_gameState.m_cameraAngle, 180.0);\n    v13 = GJBaseGameLayer::convertToClosestDirection(a1->m_gameState.m_targetCameraAngle, 180.0);\n    a9 = v14;\n    a1->m_gameState.m_targetCameraAngle = v13;\n    a8 = v16;\n    v12 = a7;\n    a6 = v17;\n  }\n  if ( a5 <= 0.0 )\n  {\n    GJGameState::stopTweenAction(&a1->m_gameState, 17);\n    a1->m_gameState.m_cameraAngle = v10;\n  }\n  else\n  {\n    GJGameState::tweenValue(\n      &a1->m_gameState,\n      a1->m_gameState.m_cameraAngle,\n      a1->m_gameState.m_targetCameraAngle,\n      17,\n      a5,\n      a6,\n      v12,\n      a8,\n      a9);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateScreenRotation from 0x87d650 to 0x87d738 (232 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::updateScreenRotation @ 0x5cc040\n; > <???> @ 0x9ed48\n; > <???> @ 0x1148a88\n; > <???> @ 0x11552f8\n; > <???> @ 0x1190778\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x87d650\nUXTB            W1, W1                                                 ; +0x4, 0x87d654\nUXTB            W2, W2                                                 ; +0x8, 0x87d658\nMOV             X29, SP                                                ; +0xc, 0x87d65c\nSTP             D8, D9, [SP,#0x60+var_48]                              ; +0x10, 0x87d660\nSTR             X19, [SP,#0x60+var_50]                                 ; +0x14, 0x87d664\nSTR             D10, [SP,#0x60+var_38]                                 ; +0x18, 0x87d668\nMOV             X19, X0                                                ; +0x1c, 0x87d66c\nFMOV            S8, S0                                                 ; +0x20, 0x87d670\nFMOV            S9, S1                                                 ; +0x24, 0x87d674\nFMOV            S3, S2; float                                          ; +0x28, 0x87d678\nCBZ             W1, loc_87D688                                         ; +0x2c, 0x87d67c\nLDR             S0, [X0,#0x328]                                        ; +0x30, 0x87d680\nFADD            S0, S8, S0                                             ; +0x34, 0x87d684\nSTR             S0, [X19,#0x328]                                       ; +0x38, 0x87d688\nCBNZ            W2, loc_87D6F0                                         ; +0x3c, 0x87d68c\nFCMPE           S9, #0.0                                               ; +0x40, 0x87d690\nB.LE            loc_87D6CC                                             ; +0x44, 0x87d694\nLDR             D10, [SP,#0x60+var_38]                                 ; +0x48, 0x87d698\nADD             X0, X19, #0x1A8; this                                  ; +0x4c, 0x87d69c\nLDR             S0, [X19,#0x324]; float                                ; +0x50, 0x87d6a0\nMOV             W2, W3; int                                            ; +0x54, 0x87d6a4\nLDR             S1, [X19,#0x328]; float                                ; +0x58, 0x87d6a8\nLDR             X19, [SP,#0x60+var_50]                                 ; +0x5c, 0x87d6ac\nFMOV            S2, S9; float                                          ; +0x60, 0x87d6b0\nLDP             D8, D9, [SP,#0x60+var_48]                              ; +0x64, 0x87d6b4\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x68, 0x87d6b8\nMOV             W3, W4; int                                            ; +0x6c, 0x87d6bc\nMOV             W1, #0x11; int                                         ; +0x70, 0x87d6c0\nMOV             W4, W5; int                                            ; +0x74, 0x87d6c4\nB               _ZN11GJGameState10tweenValueEffififii; GJGameState::tweenValue(float,float,int,float,int,float,int,int) ; +0x78, 0x87d6c8\nADD             X0, X19, #0x1A8; this                                  ; +0x7c, 0x87d6cc\nMOV             W1, #0x11; int                                         ; +0x80, 0x87d6d0\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0x84, 0x87d6d4\nSTR             S8, [X19,#0x324]                                       ; +0x88, 0x87d6d8\nLDR             X19, [SP,#0x60+var_50]                                 ; +0x8c, 0x87d6dc\nLDP             D8, D9, [SP,#0x60+var_48]                              ; +0x90, 0x87d6e0\nLDR             D10, [SP,#0x60+var_38]                                 ; +0x94, 0x87d6e4\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x98, 0x87d6e8\nRET                                                                    ; +0x9c, 0x87d6ec\nLDR             S10, =0x43340000                                       ; +0xa0, 0x87d6f0\nSTR             X5, [X29,#0x60+var_28]                                 ; +0xa4, 0x87d6f4\nLDR             S0, [X19,#0x324]; float                                ; +0xa8, 0x87d6f8\nSTR             X4, [X29,#0x60+var_10]                                 ; +0xac, 0x87d6fc\nFMOV            S1, S10; float                                         ; +0xb0, 0x87d700\nSTR             X3, [X29,#0x60+var_8]                                  ; +0xb4, 0x87d704\nSTR             Q3, [X29,#0x60+var_20]                                 ; +0xb8, 0x87d708\nBL              _ZN15GJBaseGameLayer25convertToClosestDirectionEff; GJBaseGameLayer::convertToClosestDirection(float,float) ; +0xbc, 0x87d70c\nSTR             S0, [X19,#0x324]                                       ; +0xc0, 0x87d710\nFMOV            S1, S10; float                                         ; +0xc4, 0x87d714\nLDR             S0, [X19,#0x328]; float                                ; +0xc8, 0x87d718\nBL              _ZN15GJBaseGameLayer25convertToClosestDirectionEff; GJBaseGameLayer::convertToClosestDirection(float,float) ; +0xcc, 0x87d71c\nLDR             X5, [X29,#0x60+var_28]                                 ; +0xd0, 0x87d720\nSTR             S0, [X19,#0x328]                                       ; +0xd4, 0x87d724\nLDR             X4, [X29,#0x60+var_10]                                 ; +0xd8, 0x87d728\nLDR             Q3, [X29,#0x60+var_20]                                 ; +0xdc, 0x87d72c\nLDR             X3, [X29,#0x60+var_8]                                  ; +0xe0, 0x87d730\nB               loc_87D690                                             ; +0xe4, 0x87d734", "xrefs": ["PlayLayer::updateScreenRotation @ 0x5cc040", "<???> @ 0x9ed48", "<???> @ 0x1148a88", "<???> @ 0x11552f8", "<???> @ 0x1190778"], "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"}