{"type": "func", "start": 4742956, "end": 4743102, "name": "GJBaseGameLayer::updateScreenRotation", "pseudocode": "// \n// GJBaseGameLayer::updateScreenRotation from 0x485f2c to 0x485fbe (146 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::updateScreenRotation @ 0x310a3e\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 v11; // s15\n  GJGameState *p_m_gameState; // r0\n\n  if ( a3 )\n    v11 = a2 + a1->m_gameState.m_targetCameraAngle;\n  else\n    v11 = a2;\n  a1->m_gameState.m_targetCameraAngle = v11;\n  if ( a4 )\n  {\n    a1->m_gameState.m_cameraAngle = GJBaseGameLayer::convertToClosestDirection(a1->m_gameState.m_cameraAngle, 180.0);\n    a1->m_gameState.m_targetCameraAngle = GJBaseGameLayer::convertToClosestDirection(\n                                            a1->m_gameState.m_targetCameraAngle,\n                                            180.0);\n  }\n  p_m_gameState = &a1->m_gameState;\n  if ( a5 <= 0.0 )\n  {\n    GJGameState::stopTweenAction(p_m_gameState, 17);\n    a1->m_gameState.m_cameraAngle = a2;\n  }\n  else\n  {\n    GJGameState::tweenValue(\n      p_m_gameState,\n      a1->m_gameState.m_cameraAngle,\n      a1->m_gameState.m_targetCameraAngle,\n      17,\n      a5,\n      a6,\n      a7,\n      a8,\n      a9);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateScreenRotation from 0x485f2c to 0x485fbe (146 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::updateScreenRotation @ 0x310a3e\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.W          {R4-R8,LR}                                             ; +0x0, 0x485f2c\nMOV             R4, R0                                                 ; +0x4, 0x485f30\nVPUSH           {D8}                                                   ; +0x6, 0x485f32\nLDR.W           R8, [SP,#arg_4]                                        ; +0xa, 0x485f36\nLDR             R7, [SP,#arg_8]                                        ; +0xe, 0x485f3a\nVMOV            S16, R1                                                ; +0x10, 0x485f3c\nLDR             R6, [SP,#arg_C]                                        ; +0x14, 0x485f40\nVLDR            S17, [SP,#arg_0]                                       ; +0x16, 0x485f42\nLDR             R5, [SP,#arg_10]                                       ; +0x1a, 0x485f46\nCBZ             R2, loc_485F54                                         ; +0x1c, 0x485f48\nVLDR            S15, [R0,#0x2C8]                                       ; +0x1e, 0x485f4a\nVADD.F32        S15, S16, S15                                          ; +0x22, 0x485f4e\nB               loc_485F58                                             ; +0x26, 0x485f52\nVMOV            S15, R1                                                ; +0x28, 0x485f54\nVSTR            S15, [R4,#0x2C8]                                       ; +0x2c, 0x485f58\nCBZ             R3, loc_485F7A                                         ; +0x30, 0x485f5c\nLDR             R1, flt_485FC0; float                                  ; +0x32, 0x485f5e\nLDR.W           R0, [R4,#0x2C4]; this                                  ; +0x34, 0x485f60\nBL              _ZN15GJBaseGameLayer25convertToClosestDirectionEff; GJBaseGameLayer::convertToClosestDirection(float,float) ; +0x38, 0x485f64\nLDR             R1, flt_485FC0; float                                  ; +0x3c, 0x485f68\nSTR.W           R0, [R4,#0x2C4]                                        ; +0x3e, 0x485f6a\nLDR.W           R0, [R4,#0x2C8]; this                                  ; +0x42, 0x485f6e\nBL              _ZN15GJBaseGameLayer25convertToClosestDirectionEff; GJBaseGameLayer::convertToClosestDirection(float,float) ; +0x46, 0x485f72\nSTR.W           R0, [R4,#0x2C8]                                        ; +0x4a, 0x485f76\nVCMPE.F32       S17, #0.0                                              ; +0x4e, 0x485f7a\nADD.W           R0, R4, #0x148; this                                   ; +0x52, 0x485f7e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x56, 0x485f82\nBLE             loc_485FAC                                             ; +0x5a, 0x485f86\nSTR.W           R8, [SP,#arg_4]; int                                   ; +0x5c, 0x485f88\nMOVS            R3, #0x11; int                                         ; +0x60, 0x485f8c\nSTR             R7, [SP,#arg_8]; float                                 ; +0x62, 0x485f8e\nSTR             R6, [SP,#arg_C]; int                                   ; +0x64, 0x485f90\nSTR             R5, [SP,#arg_10]; int                                  ; +0x66, 0x485f92\nVSTR            S17, [SP,#arg_0]                                       ; +0x68, 0x485f94\nVPOP            {D8}                                                   ; +0x6c, 0x485f98\nLDR.W           R1, [R4,#0x2C4]; float                                 ; +0x70, 0x485f9c\nLDR.W           R2, [R4,#0x2C8]; float                                 ; +0x74, 0x485fa0\nPOP.W           {R4-R8,LR}                                             ; +0x78, 0x485fa4\nB.W             _ZN11GJGameState10tweenValueEffififii; GJGameState::tweenValue(float,float,int,float,int,float,int,int) ; +0x7c, 0x485fa8\nMOVS            R1, #0x11; int                                         ; +0x80, 0x485fac\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0x82, 0x485fae\nVSTR            S16, [R4,#0x2C4]                                       ; +0x86, 0x485fb2\nVPOP            {D8}                                                   ; +0x8a, 0x485fb6\nPOP.W           {R4-R8,PC}                                             ; +0x8e, 0x485fba", "xrefs": ["PlayLayer::updateScreenRotation @ 0x310a3e"], "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"}