{"type": "func", "start": 7399988, "end": 7400230, "name": "EditorUI::showTransformControl", "pseudocode": "// \n// EditorUI::showTransformControl from 0x70ea34 to 0x70eb26 (242 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::handleAction @ 0x46f3f6\n// > EditorUI::activateTransformControl @ 0x70f002\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::showTransformControl(cocos2d::CCArray **this, int a2, int a3, int a4)\n{\n  int result; // r0\n  char *v6; // r6\n  char *v7; // r0\n  _DWORD *v8; // r1\n  GJTransformControl *v9; // r8\n  float v10; // r0\n  int v11; // r4\n  int v12; // r0\n  _DWORD v13[3]; // [sp+4h] [bp-Ch] BYREF\n\n  v13[0] = a2;\n  v13[1] = a3;\n  v13[2] = a4;\n  result = cocos2d::CCArray::count(*(this + 167));\n  if ( result || *(this + 249) )\n  {\n    *((_BYTE *)this + 392) = 1;\n    v6 = (char *)(this + 145);\n    EditorUI::updateEditButtonColor((int)this, (_BYTE *)&word_2E + 1, 10921638);\n    *((_BYTE *)this + 588) = 0;\n    if ( cocos2d::CCArray::count(*(this + 167)) )\n    {\n      EditorUI::getGroupCenter((EditorUI *)v13, (cocos2d::CCArray *)this, *(this + 167), 0);\n      v7 = (char *)(this + 145);\n      v8 = v13;\n    }\n    else\n    {\n      v8 = (_DWORD *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 249) + 96))(*(this + 249));\n      v7 = (char *)(this + 145);\n    }\n    cocos2d::CCPoint::operator=(v7, v8);\n    (*(void (__fastcall **)(_DWORD, char *))(*(_DWORD *)*(this + 149) + 92))(*(this + 149), (char *)this + 580);\n    v9 = *(this + 149);\n    v10 = (*(float (__fastcall **)(_DWORD))(**((_DWORD **)*(this + 236) + 609) + 84))(*((_DWORD *)*(this + 236) + 609));\n    GJTransformControl::scaleButtons(v9, 1.0 / v10);\n    (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 149) + 172))(*(this + 149), 1);\n    v11 = (int)*(this + 149);\n    v12 = (*(int (__fastcall **)(int))(*(_DWORD *)v11 + 96))(v11);\n    cocos2d::CCPoint::operator-(v13, v6, v12);\n    return GJTransformControl::updateAnchorSprite(v11, (int)v13);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::showTransformControl from 0x70ea34 to 0x70eb26 (242 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::handleAction @ 0x46f3f6\n; > EditorUI::activateTransformControl @ 0x70f002\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, 0x70ea34\nMOV             R4, R0                                                 ; +0x4, 0x70ea38\nLDR             R7, =(__stack_chk_guard_ptr - 0x70EA44)                ; +0x6, 0x70ea3a\nLDR.W           R0, [R0,#0x29C]; this                                  ; +0x8, 0x70ea3c\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xc, 0x70ea40\nLDR             R7, [R7]; __stack_chk_guard                            ; +0xe, 0x70ea42\nLDR             R3, [R7]                                               ; +0x10, 0x70ea44\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x12, 0x70ea46\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x14, 0x70ea48\nCBNZ            R0, loc_70EA56                                         ; +0x18, 0x70ea4c\nLDR.W           R3, [R4,#0x3E4]                                        ; +0x1a, 0x70ea4e\nCMP             R3, #0                                                 ; +0x1e, 0x70ea52\nBEQ             loc_70EB14                                             ; +0x20, 0x70ea54\nLDR             R1, =(dword_BF0310 - 0x70EA64)                         ; +0x22, 0x70ea56\nMOVS            R3, #1                                                 ; +0x24, 0x70ea58\nSTRB.W          R3, [R4,#0x188]                                        ; +0x26, 0x70ea5a\nMOV             R0, R4                                                 ; +0x2a, 0x70ea5e\nADD             R1, PC; dword_BF0310                                   ; +0x2c, 0x70ea60\nMOV.W           R8, #0                                                 ; +0x2e, 0x70ea62\nADD             R5, SP, #0x10+var_C                                    ; +0x32, 0x70ea66\nADD.W           R6, R4, #0x244                                         ; +0x34, 0x70ea68\nLDRB            R2, [R1,#(byte_BF0324 - 0xBF0310)]                     ; +0x38, 0x70ea6c\nLDRB            R3, [R1,#(byte_BF0323 - 0xBF0310)]                     ; +0x3a, 0x70ea6e\nORR.W           R3, R3, R2,LSL#8                                       ; +0x3c, 0x70ea70\nLDRB            R2, [R1,#(byte_BF0325 - 0xBF0310)]                     ; +0x40, 0x70ea74\nMOVS            R1, #0x2F ; '/'                                        ; +0x42, 0x70ea76\nORR.W           R2, R3, R2,LSL#16                                      ; +0x44, 0x70ea78\nBL              _ZN8EditorUI21updateEditButtonColorEiN7cocos2d10_ccColor3BE; EditorUI::updateEditButtonColor(int,cocos2d::_ccColor3B) ; +0x48, 0x70ea7c\nSTRB.W          R8, [R4,#0x24C]                                        ; +0x4c, 0x70ea80\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0x50, 0x70ea84\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x54, 0x70ea88\nCBZ             R0, loc_70EAA2                                         ; +0x58, 0x70ea8c\nMOV             R0, R5; this                                           ; +0x5a, 0x70ea8e\nMOV             R1, R4; cocos2d::CCArray *                             ; +0x5c, 0x70ea90\nLDR.W           R2, [R4,#0x29C]; cocos2d::CCArray *                    ; +0x5e, 0x70ea92\nMOV             R3, R8                                                 ; +0x62, 0x70ea96\nBL              _ZN8EditorUI14getGroupCenterEPN7cocos2d7CCArrayEb; EditorUI::getGroupCenter(cocos2d::CCArray *,bool) ; +0x64, 0x70ea98\nMOV             R0, R6                                                 ; +0x68, 0x70ea9c\nMOV             R1, R5                                                 ; +0x6a, 0x70ea9e\nB               loc_70EAB0                                             ; +0x6c, 0x70eaa0\nLDR.W           R0, [R4,#0x3E4]                                        ; +0x6e, 0x70eaa2\nLDR             R3, [R0]                                               ; +0x72, 0x70eaa6\nLDR             R3, [R3,#0x60]                                         ; +0x74, 0x70eaa8\nBLX             R3                                                     ; +0x76, 0x70eaaa\nMOV             R1, R0                                                 ; +0x78, 0x70eaac\nMOV             R0, R6                                                 ; +0x7a, 0x70eaae\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x7c, 0x70eab0\nLDR.W           R0, [R4,#0x254]                                        ; +0x80, 0x70eab4\nMOV             R1, R6                                                 ; +0x84, 0x70eab8\nLDR             R3, [R0]                                               ; +0x86, 0x70eaba\nLDR             R3, [R3,#0x5C]                                         ; +0x88, 0x70eabc\nBLX             R3                                                     ; +0x8a, 0x70eabe\nLDR.W           R3, [R4,#0x3B0]                                        ; +0x8c, 0x70eac0\nLDR.W           R8, [R4,#0x254]                                        ; +0x90, 0x70eac4\nLDR.W           R0, [R3,#0x984]                                        ; +0x94, 0x70eac8\nLDR             R3, [R0]                                               ; +0x98, 0x70eacc\nLDR             R3, [R3,#0x54]                                         ; +0x9a, 0x70eace\nBLX             R3                                                     ; +0x9c, 0x70ead0\nVMOV.F32        S15, #1.0                                              ; +0x9e, 0x70ead2\nVMOV            S14, R0                                                ; +0xa2, 0x70ead6\nMOV             R0, R8; this                                           ; +0xa6, 0x70eada\nVDIV.F32        S15, S15, S14                                          ; +0xa8, 0x70eadc\nVMOV            R1, S15; float                                         ; +0xac, 0x70eae0\nBL              _ZN18GJTransformControl12scaleButtonsEf; GJTransformControl::scaleButtons(float) ; +0xb0, 0x70eae4\nLDR.W           R0, [R4,#0x254]                                        ; +0xb4, 0x70eae8\nMOVS            R1, #1                                                 ; +0xb8, 0x70eaec\nLDR             R3, [R0]                                               ; +0xba, 0x70eaee\nLDR.W           R3, [R3,#0xAC]                                         ; +0xbc, 0x70eaf0\nBLX             R3                                                     ; +0xc0, 0x70eaf4\nLDR.W           R4, [R4,#0x254]                                        ; +0xc2, 0x70eaf6\nLDR             R3, [R4]                                               ; +0xc6, 0x70eafa\nMOV             R0, R4                                                 ; +0xc8, 0x70eafc\nLDR             R3, [R3,#0x60]                                         ; +0xca, 0x70eafe\nBLX             R3                                                     ; +0xcc, 0x70eb00\nMOV             R1, R6                                                 ; +0xce, 0x70eb02\nMOV             R2, R0                                                 ; +0xd0, 0x70eb04\nMOV             R0, R5                                                 ; +0xd2, 0x70eb06\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0xd4, 0x70eb08\nMOV             R0, R4                                                 ; +0xd8, 0x70eb0c\nMOV             R1, R5                                                 ; +0xda, 0x70eb0e\nBL              _ZN18GJTransformControl18updateAnchorSpriteEN7cocos2d7CCPointE; GJTransformControl::updateAnchorSprite(cocos2d::CCPoint) ; +0xdc, 0x70eb10\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xe0, 0x70eb14\nLDR             R3, [R7]                                               ; +0xe2, 0x70eb16\nCMP             R2, R3                                                 ; +0xe4, 0x70eb18\nBEQ             loc_70EB20                                             ; +0xe6, 0x70eb1a\nBLX             __stack_chk_fail                                       ; +0xe8, 0x70eb1c\nADD             SP, SP, #0x10                                          ; +0xec, 0x70eb20\nPOP.W           {R4-R8,PC}                                             ; +0xee, 0x70eb22", "xrefs": ["LevelEditorLayer::handleAction @ 0x46f3f6", "EditorUI::activateTransformControl @ 0x70f002"], "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"}