{"type": "func", "start": 3801948, "end": 3802126, "name": "EditorUI::updateScaleControl", "pseudocode": "// \n// EditorUI::updateScaleControl from 0x3a035c to 0x3a040e (178 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorUI::updateScaleControl @ 0x3a0412\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::updateScaleControl(EditorUI *a1)\n{\n  GameObject *m_selectedObject; // r5\n  _BOOL4 isTrigger; // r0\n  GameObject *v4; // r0\n  GJScaleControl *m_scaleControl; // r3\n  GameObject *v6; // r2\n  int v7; // r2\n\n  if ( ((int (__fastcall *)(GJScaleControl *))a1->m_scaleControl->isVisible)(a1->m_scaleControl) )\n  {\n    m_selectedObject = a1->m_selectedObject;\n    if ( m_selectedObject )\n    {\n      isTrigger = GameObject::isTrigger(a1->m_selectedObject);\n    }\n    else if ( cocos2d::CCArray::count(a1->m_selectedObjects) )\n    {\n      while ( (unsigned int)m_selectedObject < cocos2d::CCArray::count(a1->m_selectedObjects) )\n      {\n        v4 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, (unsigned int)m_selectedObject);\n        if ( !GameObject::isTrigger(v4) )\n          goto LABEL_5;\n        m_selectedObject = (GameObject *)((char *)m_selectedObject + 1);\n      }\n      isTrigger = 1;\n    }\n    else\n    {\nLABEL_5:\n      isTrigger = 0;\n    }\n    m_scaleControl = a1->m_scaleControl;\n    if ( a1->m_increaseScale )\n    {\n      m_scaleControl->m_upperBound = 4.0;\n      m_scaleControl->m_lowerBound = 0.25;\n    }\n    else\n    {\n      m_scaleControl->m_lowerBound = 0.5;\n      if ( isTrigger || (v6 = a1->m_selectedObject) != nullptr && v6->m_objectID == 747 )\n        v7 = 1082130432;\n      else\n        v7 = 0x40000000;\n      LODWORD(m_scaleControl->m_upperBound) = v7;\n    }\n    GJScaleControl::loadValues(\n      a1->m_scaleControl,\n      a1->m_selectedObject,\n      a1->m_selectedObjects,\n      &a1->m_objectEditorStates);\n  }\n}", "assembly": "; \n; EditorUI::updateScaleControl from 0x3a035c to 0x3a040e (178 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorUI::updateScaleControl @ 0x3a0412\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            {R4-R6,LR}                                             ; +0x0, 0x3a035c\nMOV             R4, R0                                                 ; +0x2, 0x3a035e\nLDR.W           R0, [R0,#0x214]                                        ; +0x4, 0x3a0360\nLDR             R3, [R0]                                               ; +0x8, 0x3a0364\nLDR.W           R3, [R3,#0xA8]                                         ; +0xa, 0x3a0366\nBLX             R3                                                     ; +0xe, 0x3a036a\nCMP             R0, #0                                                 ; +0x10, 0x3a036c\nBEQ             locret_3A040C                                          ; +0x12, 0x3a036e\nLDR.W           R5, [R4,#0x374]                                        ; +0x14, 0x3a0370\nCBZ             R5, loc_3A037E                                         ; +0x18, 0x3a0374\nMOV             R0, R5; this                                           ; +0x1a, 0x3a0376\nBL              _ZN10GameObject9isTriggerEv; GameObject::isTrigger(void) ; +0x1c, 0x3a0378\nB               loc_3A03AE                                             ; +0x20, 0x3a037c\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x22, 0x3a037e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x3a0382\nCBNZ            R0, loc_3A03A0                                         ; +0x2a, 0x3a0386\nMOVS            R0, #0                                                 ; +0x2c, 0x3a0388\nB               loc_3A03AE                                             ; +0x2e, 0x3a038a\nMOV             R1, R5; unsigned int                                   ; +0x30, 0x3a038c\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x32, 0x3a038e\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x36, 0x3a0392\nBL              _ZN10GameObject9isTriggerEv; GameObject::isTrigger(void) ; +0x3a, 0x3a0396\nCMP             R0, #0                                                 ; +0x3e, 0x3a039a\nBEQ             loc_3A0388                                             ; +0x40, 0x3a039c\nADDS            R5, #1                                                 ; +0x42, 0x3a039e\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x44, 0x3a03a0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x3a03a4\nCMP             R5, R0                                                 ; +0x4c, 0x3a03a8\nBCC             loc_3A038C                                             ; +0x4e, 0x3a03aa\nMOVS            R0, #1                                                 ; +0x50, 0x3a03ac\nLDRB.W          R2, [R4,#0x1EB]                                        ; +0x52, 0x3a03ae\nLDR.W           R3, [R4,#0x214]                                        ; +0x56, 0x3a03b2\nCBZ             R2, loc_3A03CA                                         ; +0x5a, 0x3a03b6\nMOV.W           R2, #0x40800000                                        ; +0x5c, 0x3a03b8\nSTR.W           R2, [R3,#0x174]                                        ; +0x60, 0x3a03bc\nMOV.W           R2, #0x3E800000                                        ; +0x64, 0x3a03c0\nSTR.W           R2, [R3,#0x178]                                        ; +0x68, 0x3a03c4\nB               loc_3A03EE                                             ; +0x6c, 0x3a03c8\nMOV.W           R2, #0x3F000000                                        ; +0x6e, 0x3a03ca\nSTR.W           R2, [R3,#0x178]                                        ; +0x72, 0x3a03ce\nCBNZ            R0, loc_3A03E6                                         ; +0x76, 0x3a03d2\nLDR.W           R2, [R4,#0x374]                                        ; +0x78, 0x3a03d4\nCBZ             R2, loc_3A0406                                         ; +0x7c, 0x3a03d8\nLDR.W           R1, [R2,#0x374]                                        ; +0x7e, 0x3a03da\nMOVW            R2, #0x2EB                                             ; +0x82, 0x3a03de\nCMP             R1, R2                                                 ; +0x86, 0x3a03e2\nBNE             loc_3A0406                                             ; +0x88, 0x3a03e4\nMOV.W           R2, #0x40800000                                        ; +0x8a, 0x3a03e6\nSTR.W           R2, [R3,#0x174]                                        ; +0x8e, 0x3a03ea\nLDR.W           R0, [R4,#0x214]; int                                   ; +0x92, 0x3a03ee\nADD.W           R3, R4, #0x158                                         ; +0x96, 0x3a03f2\nLDR.W           R1, [R4,#0x374]; int                                   ; +0x9a, 0x3a03f6\nLDR.W           R2, [R4,#0x260]; this                                  ; +0x9e, 0x3a03fa\nPOP.W           {R4-R6,LR}                                             ; +0xa2, 0x3a03fe\nB.W             _ZN14GJScaleControl10loadValuesEP10GameObjectPN7cocos2d7CCArrayERSt13unordered_mapIi21GameObjectEditorStateSt4hashIiESt8equal_toIiESaISt4pairIKiS6_EEE; GJScaleControl::loadValues(GameObject *,cocos2d::CCArray *,std::unordered_map<int,GameObjectEditorState> &) ; +0xa6, 0x3a0402\nMOV.W           R2, #0x40000000                                        ; +0xaa, 0x3a0406\nB               loc_3A03EA                                             ; +0xae, 0x3a040a\nPOP             {R4-R6,PC}                                             ; +0xb0, 0x3a040c", "xrefs": ["`non-virtual thunk to'EditorUI::updateScaleControl @ 0x3a0412"], "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"}