{"type": "func", "start": 3677220, "end": 3677452, "name": "EditorUI::angleChanged", "pseudocode": "// \n// EditorUI::angleChanged from 0x381c24 to 0x381d0c (232 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorUI::angleChanged @ 0x381d14\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 EditorUI::angleChanged(EditorUI *a1, float a2)\n{\n  GameObject *m_selectedObject; // r0\n  float v5; // s17\n  float v6; // r0\n  GameObject *v7; // r5\n  GameObject_vtbl *v8; // r3\n  void (__fastcall *setRotationX)(GameObject *__hidden, float); // r7\n  float v10; // r0\n  GameObject *v11; // r4\n  void (__fastcall *setRotationY)(GameObject *__hidden, float); // r5\n  float v13; // r0\n  void (__fastcall *setRotation)(GameObject *__hidden, float); // r4\n  float v15; // r0\n  cocos2d::CCArray *m_selectedObjects; // r7\n  float v17; // [sp+0h] [bp-14h]\n  cocos2d::CCPoint v18; // [sp+4h] [bp-10h] BYREF\n  cocos2d::CCPoint v19; // 0:kr00_8.8\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    v5 = COERCE_FLOAT(((int (__fastcall *)(GameObject *))m_selectedObject->getRotationX)(m_selectedObject));\n    v6 = a1->m_selectedObject->getRotationY(a1->m_selectedObject);\n    v7 = a1->m_selectedObject;\n    v8 = v7->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    if ( v5 == v6 )\n    {\n      setRotation = v8->setRotation;\n      v15 = COERCE_FLOAT(((int (__fastcall *)(GameObject *))v8->getRotation)(v7));\n      ((void (__fastcall *)(GameObject *, _DWORD))setRotation)(v7, v15 + a2);\n    }\n    else\n    {\n      setRotationX = v8->setRotationX;\n      v10 = COERCE_FLOAT(((int (__fastcall *)(GameObject *))v8->getRotationX)(a1->m_selectedObject));\n      ((void (__fastcall *)(GameObject *, _DWORD))setRotationX)(v7, v10 + a2);\n      v11 = a1->m_selectedObject;\n      setRotationY = v11->setRotationY;\n      v13 = COERCE_FLOAT(((int (__fastcall *)(GameObject *))v11->getRotationY)(v11));\n      ((void (__fastcall *)(GameObject *, _DWORD))setRotationY)(v11, v13 + a2);\n    }\n  }\n  else if ( cocos2d::CCArray::count(a1->m_selectedObjects) )\n  {\n    m_selectedObjects = a1->m_selectedObjects;\n    cocos2d::CCPoint::CCPoint(&v18, &a1->m_pivotPoint);\n    LODWORD(v19.x) = &v18;\n    v19.y = v17;\n    EditorUI::rotateObjects(a1, m_selectedObjects, a2, v19);\n  }\n}", "assembly": "; \n; EditorUI::angleChanged from 0x381c24 to 0x381d0c (232 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorUI::angleChanged @ 0x381d14\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x381C2C)                ; +0x0, 0x381c24\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x381c26\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x381c28\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x381c2a\nVPUSH           {D8}                                                   ; +0x8, 0x381c2c\nMOV             R4, R0                                                 ; +0xc, 0x381c30\nLDR             R2, [R3]                                               ; +0xe, 0x381c32\nMOV             R6, R3                                                 ; +0x10, 0x381c34\nLDR.W           R0, [R0,#0x374]                                        ; +0x12, 0x381c36\nVMOV            S16, R1                                                ; +0x16, 0x381c3a\nSUB             SP, SP, #0x14                                          ; +0x1a, 0x381c3e\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x1c, 0x381c40\nCMP             R0, #0                                                 ; +0x1e, 0x381c42\nBEQ             loc_381CD0                                             ; +0x20, 0x381c44\nLDR             R3, [R0]                                               ; +0x22, 0x381c46\nLDR.W           R3, [R3,#0xB8]                                         ; +0x24, 0x381c48\nBLX             R3                                                     ; +0x28, 0x381c4c\nVMOV            S17, R0                                                ; +0x2a, 0x381c4e\nLDR.W           R0, [R4,#0x374]                                        ; +0x2e, 0x381c52\nLDR             R3, [R0]                                               ; +0x32, 0x381c56\nLDR.W           R3, [R3,#0xC0]                                         ; +0x34, 0x381c58\nBLX             R3                                                     ; +0x38, 0x381c5c\nLDR.W           R5, [R4,#0x374]                                        ; +0x3a, 0x381c5e\nLDR             R3, [R5]                                               ; +0x3e, 0x381c62\nVMOV            S15, R0                                                ; +0x40, 0x381c64\nVCMP.F32        S17, S15                                               ; +0x44, 0x381c68\nVMRS            APSR_nzcv, FPSCR                                       ; +0x48, 0x381c6c\nBEQ             loc_381CB2                                             ; +0x4c, 0x381c70\nLDR.W           R7, [R3,#0xB4]                                         ; +0x4e, 0x381c72\nMOV             R0, R5                                                 ; +0x52, 0x381c76\nLDR.W           R3, [R3,#0xB8]                                         ; +0x54, 0x381c78\nBLX             R3                                                     ; +0x58, 0x381c7c\nVMOV            S15, R0                                                ; +0x5a, 0x381c7e\nMOV             R0, R5                                                 ; +0x5e, 0x381c82\nVADD.F32        S15, S15, S16                                          ; +0x60, 0x381c84\nVMOV            R1, S15                                                ; +0x64, 0x381c88\nBLX             R7                                                     ; +0x68, 0x381c8c\nLDR.W           R4, [R4,#0x374]                                        ; +0x6a, 0x381c8e\nLDR             R3, [R4]                                               ; +0x6e, 0x381c92\nMOV             R0, R4                                                 ; +0x70, 0x381c94\nLDR.W           R5, [R3,#0xBC]                                         ; +0x72, 0x381c96\nLDR.W           R3, [R3,#0xC0]                                         ; +0x76, 0x381c9a\nBLX             R3                                                     ; +0x7a, 0x381c9e\nVMOV            S15, R0                                                ; +0x7c, 0x381ca0\nMOV             R0, R4                                                 ; +0x80, 0x381ca4\nVADD.F32        S16, S15, S16                                          ; +0x82, 0x381ca6\nVMOV            R1, S16                                                ; +0x86, 0x381caa\nBLX             R5                                                     ; +0x8a, 0x381cae\nB               loc_381CF8                                             ; +0x8c, 0x381cb0\nLDR.W           R4, [R3,#0xAC]                                         ; +0x8e, 0x381cb2\nMOV             R0, R5                                                 ; +0x92, 0x381cb6\nLDR.W           R3, [R3,#0xB0]                                         ; +0x94, 0x381cb8\nBLX             R3                                                     ; +0x98, 0x381cbc\nVMOV            S15, R0                                                ; +0x9a, 0x381cbe\nMOV             R0, R5                                                 ; +0x9e, 0x381cc2\nVADD.F32        S16, S15, S16                                          ; +0xa0, 0x381cc4\nVMOV            R1, S16                                                ; +0xa4, 0x381cc8\nBLX             R4                                                     ; +0xa8, 0x381ccc\nB               loc_381CF8                                             ; +0xaa, 0x381cce\nLDR.W           R0, [R4,#0x260]; this                                  ; +0xac, 0x381cd0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xb0, 0x381cd4\nCBZ             R0, loc_381CF8                                         ; +0xb4, 0x381cd8\nLDR.W           R7, [R4,#0x260]                                        ; +0xb6, 0x381cda\nADD             R5, SP, #0x14+var_10                                   ; +0xba, 0x381cde\nADD.W           R1, R4, #0x208; cocos2d::CCPoint *                     ; +0xbc, 0x381ce0\nMOV             R0, R5; this                                           ; +0xc0, 0x381ce4\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xc2, 0x381ce6\nMOV             R0, R4                                                 ; +0xc6, 0x381cea\nMOV             R1, R7                                                 ; +0xc8, 0x381cec\nVMOV            R2, S16                                                ; +0xca, 0x381cee\nMOV             R3, R5                                                 ; +0xce, 0x381cf2\nBL              _ZN8EditorUI13rotateObjectsEPN7cocos2d7CCArrayEfNS0_7CCPointE; EditorUI::rotateObjects(cocos2d::CCArray *,float,cocos2d::CCPoint) ; +0xd0, 0x381cf4\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xd4, 0x381cf8\nLDR             R3, [R6]                                               ; +0xd6, 0x381cfa\nCMP             R2, R3                                                 ; +0xd8, 0x381cfc\nBEQ             loc_381D04                                             ; +0xda, 0x381cfe\nBLX             __stack_chk_fail                                       ; +0xdc, 0x381d00\nADD             SP, SP, #0x14                                          ; +0xe0, 0x381d04\nVPOP            {D8}                                                   ; +0xe2, 0x381d06\nPOP             {R4-R7,PC}                                             ; +0xe6, 0x381d0a", "xrefs": ["`non-virtual thunk to'EditorUI::angleChanged @ 0x381d14"], "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"}