{"type": "func", "start": 5369901344, "end": 5369901631, "name": "EditorUI::angleChanged", "pseudocode": "// \n// EditorUI::angleChanged from 0x140123120 to 0x14012323f (287 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x140553230\n// > <???> @ 0x140670544\n// > <???> @ 0x140670578\n// > <???> @ 0x14067058c\n// > <???> @ 0x1406c9900\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  CCMenuItemSpriteExtra *m_rotateBtn; // rcx\n  double v4; // xmm0_8\n  bool v5; // zf\n  CCMenuItemSpriteExtra_vtbl *v6; // rbx\n  CCMenuItemSpriteExtra *v7; // rcx\n  CCMenuItemSpriteExtra_vtbl *v8; // rbx\n  cocos2d::CCPoint v9; // rax\n  cocos2d::CCPoint v10; // [rsp+50h] [rbp+8h] BYREF\n\n  m_rotateBtn = a1->m_rotateBtn;\n  if ( m_rotateBtn )\n  {\n    v4 = ((double (*)(void))m_rotateBtn->getRotationX)();\n    v5 = *(float *)&v4 == a1->m_rotateBtn->getRotationY(a1->m_rotateBtn);\n    v6 = a1->m_rotateBtn->__vftable;\n    if ( v5 )\n    {\n      ((void (*)(void))v6->getRotation)();\n      ((void (__fastcall *)(CCMenuItemSpriteExtra *))v6->setRotation)(a1->m_rotateBtn);\n    }\n    else\n    {\n      ((void (*)(void))v6->getRotationX)();\n      ((void (__fastcall *)(CCMenuItemSpriteExtra *))v6->setRotationX)(a1->m_rotateBtn);\n      v7 = a1->m_rotateBtn;\n      v8 = v7->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      v7->getRotationY(v7);\n      ((void (__fastcall *)(CCMenuItemSpriteExtra *))v8->setRotationY)(a1->m_rotateBtn);\n    }\n  }\n  else if ( cocos2d::CCArray::count((cocos2d::CCArray *)a1->FLAlertLayerProtocol::__vftable) )\n  {\n    cocos2d::CCPoint::CCPoint(&v10);\n    EditorUI::rotateObjects(\n      (EditorUI *)((char *)a1 - 424),\n      (cocos2d::CCArray *)a1->FLAlertLayerProtocol::__vftable,\n      a2,\n      v9);\n  }\n}", "assembly": "; \n; EditorUI::angleChanged from 0x140123120 to 0x14012323f (287 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x140553230\n; > <???> @ 0x140670544\n; > <???> @ 0x140670578\n; > <???> @ 0x14067058c\n; > <???> @ 0x1406c9900\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    rdi                                                            ; +0x0, 0x140123120\nsub     rsp, 40h                                                       ; +0x2, 0x140123122\nmov     rdi, rcx                                                       ; +0x6, 0x140123126\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x9, 0x140123129\nmov     rcx, [rcx+390h]                                                ; +0xe, 0x14012312e\nmovaps  xmm7, xmm1                                                     ; +0x15, 0x140123135\ntest    rcx, rcx                                                       ; +0x18, 0x140123138\njz      loc_1401231F8                                                  ; +0x1b, 0x14012313b\nmov     rax, [rcx]                                                     ; +0x21, 0x140123141\nmov     [rsp+48h+arg_8], rbx                                           ; +0x24, 0x140123144\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x29, 0x140123149\ncall    qword ptr [rax+168h]                                           ; +0x2e, 0x14012314e\nmov     rcx, [rdi+390h]                                                ; +0x34, 0x140123154\nmovaps  xmm6, xmm0                                                     ; +0x3b, 0x14012315b\nmov     rax, [rcx]                                                     ; +0x3e, 0x14012315e\ncall    qword ptr [rax+178h]                                           ; +0x41, 0x140123161\nmov     rcx, [rdi+390h]                                                ; +0x47, 0x140123167\nucomiss xmm6, xmm0                                                     ; +0x4e, 0x14012316e\nmov     rbx, [rcx]                                                     ; +0x51, 0x140123171\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x54, 0x140123174\njp      short loc_1401231A7                                            ; +0x59, 0x140123179\njnz     short loc_1401231A7                                            ; +0x5b, 0x14012317b\ncall    qword ptr [rbx+158h]                                           ; +0x5d, 0x14012317d\nmov     rcx, [rdi+390h]                                                ; +0x63, 0x140123183\naddss   xmm0, xmm7                                                     ; +0x6a, 0x14012318a\nmovaps  xmm1, xmm0                                                     ; +0x6e, 0x14012318e\ncall    qword ptr [rbx+150h]                                           ; +0x71, 0x140123191\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x77, 0x140123197\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x7c, 0x14012319c\nadd     rsp, 40h                                                       ; +0x81, 0x1401231a1\npop     rdi                                                            ; +0x85, 0x1401231a5\nretn                                                                   ; +0x86, 0x1401231a6\ncall    qword ptr [rbx+168h]                                           ; +0x87, 0x1401231a7\nmov     rcx, [rdi+390h]                                                ; +0x8d, 0x1401231ad\naddss   xmm0, xmm7                                                     ; +0x94, 0x1401231b4\nmovaps  xmm1, xmm0                                                     ; +0x98, 0x1401231b8\ncall    qword ptr [rbx+160h]                                           ; +0x9b, 0x1401231bb\nmov     rcx, [rdi+390h]                                                ; +0xa1, 0x1401231c1\nmov     rbx, [rcx]                                                     ; +0xa8, 0x1401231c8\ncall    qword ptr [rbx+178h]                                           ; +0xab, 0x1401231cb\nmov     rcx, [rdi+390h]                                                ; +0xb1, 0x1401231d1\naddss   xmm0, xmm7                                                     ; +0xb8, 0x1401231d8\nmovaps  xmm1, xmm0                                                     ; +0xbc, 0x1401231dc\nmov     rax, [rbx+170h]                                                ; +0xbf, 0x1401231df\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xc6, 0x1401231e6\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xcb, 0x1401231eb\nadd     rsp, 40h                                                       ; +0xd0, 0x1401231f0\npop     rdi                                                            ; +0xd4, 0x1401231f4\njmp     rax                                                            ; +0xd5, 0x1401231f5\nmov     rcx, [rdi+198h]                                                ; +0xd8, 0x1401231f8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xdf, 0x1401231ff\ntest    eax, eax                                                       ; +0xe5, 0x140123205\njz      short loc_14012319C                                            ; +0xe7, 0x140123207\nlea     rdx, [rdi+118h]                                                ; +0xe9, 0x140123209\nlea     rcx, [rsp+48h+arg_0]                                           ; +0xf0, 0x140123210\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xf5, 0x140123215\nmov     rdx, [rdi+198h]                                                ; +0xfb, 0x14012321b\nlea     rcx, [rdi-1A8h]                                                ; +0x102, 0x140123222\nmov     r9, rax                                                        ; +0x109, 0x140123229\nmovaps  xmm2, xmm7                                                     ; +0x10c, 0x14012322c\ncall    EditorUI__rotateObjects                                        ; +0x10f, 0x14012322f\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x114, 0x140123234\nadd     rsp, 40h                                                       ; +0x119, 0x140123239\npop     rdi                                                            ; +0x11d, 0x14012323d\nretn                                                                   ; +0x11e, 0x14012323e", "xrefs": ["<???> @ 0x140553230", "<???> @ 0x140670544", "<???> @ 0x140670578", "<???> @ 0x14067058c", "<???> @ 0x1406c9900"], "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"}