{"type": "func", "start": 4299139324, "end": 4299139444, "name": "GJRotationControl::setAngle", "pseudocode": "// \n// GJRotationControl::setAngle from 0x1003fa8fc to 0x1003fa974 (120 bytes)\n// \n// 1 xrefs:\n// > GJRotationControl::init @ 0x1003fa8e4\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 __fastcall GJRotationControl::setAngle(GJRotationControl *a1, float a2)\n{\n  __n128 v3; // q1\n  __n128 v4; // q0\n  double v5; // d0\n  double v6; // [xsp+8h] [xbp-18h] BYREF\n  __float2 v7; // 0:kr00_8.8\n\n  a1->m_startingRotation = a2;\n  a1->m_currentRotation = a2;\n  v7 = __sincosf_stret(a2 * -0.017453);\n  v3.n128_f32[0] = v7.__sinval * 60.0;\n  v4.n128_f32[0] = v7.__cosval * 60.0;\n  sub_100022980(v4, v3, &v6);\n  v5 = sub_1000229D0(&a1->m_controlPosition, &v6);\n  ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCPoint *, double))a1->m_controlSprite->setPosition)(\n    a1->m_controlSprite,\n    &a1->m_controlPosition,\n    v5);\n}", "assembly": "; \n; GJRotationControl::setAngle from 0x1003fa8fc to 0x1003fa974 (120 bytes)\n; \n; 1 xrefs:\n; > GJRotationControl::init @ 0x1003fa8e4\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1003fa8fc\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003fa900\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003fa904\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003fa908\nMOV             X19, X0                                                ; +0x10, 0x1003fa90c\nSTR             S0, [X0,#0x1B0]                                        ; +0x14, 0x1003fa910\nSTR             S0, [X0,#0x1B4]                                        ; +0x18, 0x1003fa914\nADRP            X8, #dword_100635464@PAGE                              ; +0x1c, 0x1003fa918\nLDR             S1, [X8,#dword_100635464@PAGEOFF]                      ; +0x20, 0x1003fa91c\nFMUL            S0, S0, S1; float                                      ; +0x24, 0x1003fa920\nBL              ___sincosf_stret                                       ; +0x28, 0x1003fa924\nMOV             W8, #0x42700000                                        ; +0x2c, 0x1003fa928\nFMOV            S3, W8                                                 ; +0x30, 0x1003fa92c\nFMUL            S2, S1, S3                                             ; +0x34, 0x1003fa930\nFMUL            S1, S0, S3                                             ; +0x38, 0x1003fa934\nADD             X0, SP, #0x20+var_18                                   ; +0x3c, 0x1003fa938\nFMOV            S0, S2                                                 ; +0x40, 0x1003fa93c\nBL              sub_100022980                                          ; +0x44, 0x1003fa940\nADD             X0, X19, #0x19C                                        ; +0x48, 0x1003fa944\nADD             X1, SP, #0x20+var_18                                   ; +0x4c, 0x1003fa948\nBL              sub_1000229D0                                          ; +0x50, 0x1003fa94c\nLDR             X0, [X19,#0x1A8]                                       ; +0x54, 0x1003fa950\nLDR             X8, [X0]                                               ; +0x58, 0x1003fa954\nLDR             X8, [X8,#0xB8]                                         ; +0x5c, 0x1003fa958\nADD             X1, X19, #0x19C                                        ; +0x60, 0x1003fa95c\nBLR             X8                                                     ; +0x64, 0x1003fa960\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x68, 0x1003fa964\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x6c, 0x1003fa968\nADD             SP, SP, #0x30 ; '0'                                    ; +0x70, 0x1003fa96c\nRET                                                                    ; +0x74, 0x1003fa970", "xrefs": ["GJRotationControl::init @ 0x1003fa8e4"], "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"}