{"type": "func", "start": 7400316, "end": 7400560, "name": "EditorUI::activateRotationControl", "pseudocode": "// \n// EditorUI::activateRotationControl from 0x70eb7c to 0x70ec70 (244 bytes)\n// \n// 5 xrefs:\n// > EditorUI::toggleSpecialEditButtons @ 0x485fb6\n// > EditorUI::undoLastAction @ 0x48c958\n// > EditorUI::redoLastAction @ 0x48c99a\n// > EditorUI::moveObjectCall @ 0x70edfc\n// > EditorUI::updateControlsAfterAlign @ 0x70f03e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:57:43 +0000\n// \n\nint __fastcall EditorUI::activateRotationControl(cocos2d::CCArray **this, cocos2d::CCObject *a2, int a3, int a4)\n{\n  int result; // r0\n  int v6; // r5\n  void (__fastcall *v7)(int, int); // r7\n  int v8; // r0\n  int v9; // r5\n  void (__fastcall *v10)(int, _DWORD); // r7\n  float v11; // r0\n  _DWORD v12[3]; // [sp+4h] [bp-Ch] BYREF\n\n  v12[0] = a2;\n  v12[1] = a3;\n  v12[2] = a4;\n  result = cocos2d::CCArray::count(*(this + 167));\n  if ( result || *(this + 249) )\n  {\n    result = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 144) + 176))(*(this + 144));\n    if ( !result || *((_BYTE *)this + 588) )\n    {\n      EditorUI::deactivateTransformControl((EditorUI *)this);\n      *((_BYTE *)this + 588) = 0;\n      if ( cocos2d::CCArray::count(*(this + 167)) )\n      {\n        EditorUI::getGroupCenter((EditorUI *)v12, (cocos2d::CCArray *)this, *(this + 167), 0);\n        cocos2d::CCPoint::operator=(this + 145, v12);\n        (*(void (__fastcall **)(_DWORD, char *))(*(_DWORD *)*(this + 144) + 92))(*(this + 144), (char *)this + 580);\n      }\n      else\n      {\n        v6 = (int)*(this + 144);\n        v7 = *(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 92);\n        v8 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 249) + 96))(*(this + 249));\n        v7(v6, v8);\n      }\n      v9 = (int)*(this + 144);\n      v10 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v9 + 80);\n      v11 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**((_DWORD **)*(this + 236) + 609) + 84))(*((_DWORD *)*(this + 236) + 609)));\n      v10(v9, 1.0 / v11);\n      if ( !(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 144) + 176))(*(this + 144)) )\n        GJRotationControl::setAngle(*(this + 144), 0.0);\n      return (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 144) + 172))(*(this + 144), 1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::activateRotationControl from 0x70eb7c to 0x70ec70 (244 bytes)\n; \n; 5 xrefs:\n; > EditorUI::toggleSpecialEditButtons @ 0x485fb6\n; > EditorUI::undoLastAction @ 0x48c958\n; > EditorUI::redoLastAction @ 0x48c99a\n; > EditorUI::moveObjectCall @ 0x70edfc\n; > EditorUI::updateControlsAfterAlign @ 0x70f03e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:57:43 +0000\n; \nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x70eb7c\nMOV             R4, R0                                                 ; +0x4, 0x70eb80\nLDR             R6, =(__stack_chk_guard_ptr - 0x70EB8C)                ; +0x6, 0x70eb82\nLDR.W           R0, [R0,#0x29C]; this                                  ; +0x8, 0x70eb84\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x70eb88\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x70eb8a\nLDR             R3, [R6]                                               ; +0x10, 0x70eb8c\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x12, 0x70eb8e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x14, 0x70eb90\nCBNZ            R0, loc_70EB9E                                         ; +0x18, 0x70eb94\nLDR.W           R3, [R4,#0x3E4]                                        ; +0x1a, 0x70eb96\nCMP             R3, #0                                                 ; +0x1e, 0x70eb9a\nBEQ             loc_70EC5E                                             ; +0x20, 0x70eb9c\nLDR.W           R0, [R4,#0x240]                                        ; +0x22, 0x70eb9e\nLDR             R3, [R0]                                               ; +0x26, 0x70eba2\nLDR.W           R3, [R3,#0xB0]                                         ; +0x28, 0x70eba4\nBLX             R3                                                     ; +0x2c, 0x70eba8\nCBZ             R0, loc_70EBB4                                         ; +0x2e, 0x70ebaa\nLDRB.W          R3, [R4,#0x24C]                                        ; +0x30, 0x70ebac\nCMP             R3, #0                                                 ; +0x34, 0x70ebb0\nBEQ             loc_70EC5E                                             ; +0x36, 0x70ebb2\nMOV             R0, R4; this                                           ; +0x38, 0x70ebb4\nMOVS            R7, #0                                                 ; +0x3a, 0x70ebb6\nBL              _ZN8EditorUI26deactivateTransformControlEv; EditorUI::deactivateTransformControl(void) ; +0x3c, 0x70ebb8\nSTRB.W          R7, [R4,#0x24C]                                        ; +0x40, 0x70ebbc\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0x44, 0x70ebc0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x70ebc4\nCBZ             R0, loc_70EBF6                                         ; +0x4c, 0x70ebc8\nADD.W           R8, SP, #0x10+var_C                                    ; +0x4e, 0x70ebca\nADD.W           R5, R4, #0x244                                         ; +0x52, 0x70ebce\nMOV             R3, R7                                                 ; +0x56, 0x70ebd2\nMOV             R1, R4; cocos2d::CCArray *                             ; +0x58, 0x70ebd4\nMOV             R0, R8; this                                           ; +0x5a, 0x70ebd6\nLDR.W           R2, [R4,#0x29C]; cocos2d::CCArray *                    ; +0x5c, 0x70ebd8\nBL              _ZN8EditorUI14getGroupCenterEPN7cocos2d7CCArrayEb; EditorUI::getGroupCenter(cocos2d::CCArray *,bool) ; +0x60, 0x70ebdc\nMOV             R1, R8                                                 ; +0x64, 0x70ebe0\nMOV             R0, R5                                                 ; +0x66, 0x70ebe2\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x68, 0x70ebe4\nLDR.W           R0, [R4,#0x240]                                        ; +0x6c, 0x70ebe8\nMOV             R1, R5                                                 ; +0x70, 0x70ebec\nLDR             R3, [R0]                                               ; +0x72, 0x70ebee\nLDR             R3, [R3,#0x5C]                                         ; +0x74, 0x70ebf0\nBLX             R3                                                     ; +0x76, 0x70ebf2\nB               loc_70EC0E                                             ; +0x78, 0x70ebf4\nLDR.W           R5, [R4,#0x240]                                        ; +0x7a, 0x70ebf6\nLDR.W           R0, [R4,#0x3E4]                                        ; +0x7e, 0x70ebfa\nLDR             R3, [R5]                                               ; +0x82, 0x70ebfe\nLDR             R7, [R3,#0x5C]                                         ; +0x84, 0x70ec00\nLDR             R3, [R0]                                               ; +0x86, 0x70ec02\nLDR             R3, [R3,#0x60]                                         ; +0x88, 0x70ec04\nBLX             R3                                                     ; +0x8a, 0x70ec06\nMOV             R1, R0                                                 ; +0x8c, 0x70ec08\nMOV             R0, R5                                                 ; +0x8e, 0x70ec0a\nBLX             R7                                                     ; +0x90, 0x70ec0c\nLDR.W           R5, [R4,#0x240]                                        ; +0x92, 0x70ec0e\nLDR             R3, [R5]                                               ; +0x96, 0x70ec12\nLDR             R7, [R3,#0x50]                                         ; +0x98, 0x70ec14\nLDR.W           R3, [R4,#0x3B0]                                        ; +0x9a, 0x70ec16\nLDR.W           R0, [R3,#0x984]                                        ; +0x9e, 0x70ec1a\nLDR             R3, [R0]                                               ; +0xa2, 0x70ec1e\nLDR             R3, [R3,#0x54]                                         ; +0xa4, 0x70ec20\nBLX             R3                                                     ; +0xa6, 0x70ec22\nVMOV.F32        S15, #1.0                                              ; +0xa8, 0x70ec24\nVMOV            S14, R0                                                ; +0xac, 0x70ec28\nMOV             R0, R5                                                 ; +0xb0, 0x70ec2c\nVDIV.F32        S15, S15, S14                                          ; +0xb2, 0x70ec2e\nVMOV            R1, S15                                                ; +0xb6, 0x70ec32\nBLX             R7                                                     ; +0xba, 0x70ec36\nLDR.W           R0, [R4,#0x240]                                        ; +0xbc, 0x70ec38\nLDR             R3, [R0]                                               ; +0xc0, 0x70ec3c\nLDR.W           R3, [R3,#0xB0]                                         ; +0xc2, 0x70ec3e\nBLX             R3                                                     ; +0xc6, 0x70ec42\nCBNZ            R0, loc_70EC50                                         ; +0xc8, 0x70ec44\nLDR.W           R0, [R4,#0x240]; this                                  ; +0xca, 0x70ec46\nMOVS            R1, #0; float                                          ; +0xce, 0x70ec4a\nBL              _ZN17GJRotationControl8setAngleEf; GJRotationControl::setAngle(float) ; +0xd0, 0x70ec4c\nLDR.W           R0, [R4,#0x240]                                        ; +0xd4, 0x70ec50\nMOVS            R1, #1                                                 ; +0xd8, 0x70ec54\nLDR             R3, [R0]                                               ; +0xda, 0x70ec56\nLDR.W           R3, [R3,#0xAC]                                         ; +0xdc, 0x70ec58\nBLX             R3                                                     ; +0xe0, 0x70ec5c\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xe2, 0x70ec5e\nLDR             R3, [R6]                                               ; +0xe4, 0x70ec60\nCMP             R2, R3                                                 ; +0xe6, 0x70ec62\nBEQ             loc_70EC6A                                             ; +0xe8, 0x70ec64\nBLX             __stack_chk_fail                                       ; +0xea, 0x70ec66\nADD             SP, SP, #0x10                                          ; +0xee, 0x70ec6a\nPOP.W           {R4-R8,PC}                                             ; +0xf0, 0x70ec6c", "xrefs": ["EditorUI::toggleSpecialEditButtons @ 0x485fb6", "EditorUI::undoLastAction @ 0x48c958", "EditorUI::redoLastAction @ 0x48c99a", "EditorUI::moveObjectCall @ 0x70edfc", "EditorUI::updateControlsAfterAlign @ 0x70f03e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}