{"type": "func", "start": 7399768, "end": 7399954, "name": "EditorUI::updateScaleControl", "pseudocode": "// \n// EditorUI::updateScaleControl from 0x70e958 to 0x70ea12 (186 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorUI::updateScaleControl @ 0x70ea16\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::updateScaleControl(EditorUI *this)\n{\n  int result; // r0\n  unsigned int v3; // r5\n  _BOOL4 isTrigger; // r0\n  GameObject *v5; // r0\n  int v6; // r3\n  int v7; // r2\n  int v8; // r2\n\n  result = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 148) + 176))(*((_DWORD *)this + 148));\n  if ( result )\n  {\n    v3 = *((_DWORD *)this + 249);\n    if ( v3 )\n    {\n      isTrigger = GameObject::isTrigger(*((GameObject **)this + 249));\n    }\n    else if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)) )\n    {\n      while ( v3 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)) )\n      {\n        v5 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 167), v3);\n        if ( !GameObject::isTrigger(v5) )\n          goto LABEL_5;\n        ++v3;\n      }\n      isTrigger = 1;\n    }\n    else\n    {\nLABEL_5:\n      isTrigger = 0;\n    }\n    v6 = *((_DWORD *)this + 148);\n    if ( *((_BYTE *)this + 511) )\n    {\n      *(_DWORD *)(v6 + 416) = 1082130432;\n      *(_DWORD *)(*((_DWORD *)this + 148) + 420) = 1048576000;\n    }\n    else\n    {\n      *(_DWORD *)(v6 + 420) = 1056964608;\n      if ( isTrigger || (v7 = *((_DWORD *)this + 249)) != 0 && *(_DWORD *)(v7 + 892) == 747 )\n        v8 = 1082130432;\n      else\n        v8 = 0x40000000;\n      *(_DWORD *)(*((_DWORD *)this + 148) + 416) = v8;\n    }\n    return GJScaleControl::loadValues(\n             *((_DWORD *)this + 148),\n             *((float **)this + 249),\n             *((cocos2d::CCArray **)this + 167),\n             (int)this + 344);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::updateScaleControl from 0x70e958 to 0x70ea12 (186 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorUI::updateScaleControl @ 0x70ea16\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            {R4-R6,LR}                                             ; +0x0, 0x70e958\nMOV             R4, R0                                                 ; +0x2, 0x70e95a\nLDR.W           R0, [R0,#0x250]                                        ; +0x4, 0x70e95c\nLDR             R3, [R0]                                               ; +0x8, 0x70e960\nLDR.W           R3, [R3,#0xB0]                                         ; +0xa, 0x70e962\nBLX             R3                                                     ; +0xe, 0x70e966\nCMP             R0, #0                                                 ; +0x10, 0x70e968\nBEQ             locret_70EA10                                          ; +0x12, 0x70e96a\nLDR.W           R5, [R4,#0x3E4]                                        ; +0x14, 0x70e96c\nCBZ             R5, loc_70E97A                                         ; +0x18, 0x70e970\nMOV             R0, R5; this                                           ; +0x1a, 0x70e972\nBL              _ZN10GameObject9isTriggerEv; GameObject::isTrigger(void) ; +0x1c, 0x70e974\nB               loc_70E9AA                                             ; +0x20, 0x70e978\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0x22, 0x70e97a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x70e97e\nCBNZ            R0, loc_70E99C                                         ; +0x2a, 0x70e982\nMOVS            R0, #0                                                 ; +0x2c, 0x70e984\nB               loc_70E9AA                                             ; +0x2e, 0x70e986\nMOV             R1, R5; unsigned int                                   ; +0x30, 0x70e988\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0x32, 0x70e98a\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x36, 0x70e98e\nBL              _ZN10GameObject9isTriggerEv; GameObject::isTrigger(void) ; +0x3a, 0x70e992\nCMP             R0, #0                                                 ; +0x3e, 0x70e996\nBEQ             loc_70E984                                             ; +0x40, 0x70e998\nADDS            R5, #1                                                 ; +0x42, 0x70e99a\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0x44, 0x70e99c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x70e9a0\nCMP             R5, R0                                                 ; +0x4c, 0x70e9a4\nBCC             loc_70E988                                             ; +0x4e, 0x70e9a6\nMOVS            R0, #1                                                 ; +0x50, 0x70e9a8\nLDRB.W          R2, [R4,#0x1FF]                                        ; +0x52, 0x70e9aa\nLDR.W           R3, [R4,#0x250]                                        ; +0x56, 0x70e9ae\nCBZ             R2, loc_70E9CA                                         ; +0x5a, 0x70e9b2\nMOV.W           R2, #0x40800000                                        ; +0x5c, 0x70e9b4\nSTR.W           R2, [R3,#0x1A0]                                        ; +0x60, 0x70e9b8\nLDR.W           R3, [R4,#0x250]                                        ; +0x64, 0x70e9bc\nMOV.W           R2, #0x3E800000                                        ; +0x68, 0x70e9c0\nSTR.W           R2, [R3,#0x1A4]                                        ; +0x6c, 0x70e9c4\nB               loc_70E9F2                                             ; +0x70, 0x70e9c8\nMOV.W           R2, #0x3F000000                                        ; +0x72, 0x70e9ca\nSTR.W           R2, [R3,#0x1A4]                                        ; +0x76, 0x70e9ce\nLDR.W           R3, [R4,#0x250]                                        ; +0x7a, 0x70e9d2\nCBNZ            R0, loc_70E9EA                                         ; +0x7e, 0x70e9d6\nLDR.W           R2, [R4,#0x3E4]                                        ; +0x80, 0x70e9d8\nCBZ             R2, loc_70EA0A                                         ; +0x84, 0x70e9dc\nLDR.W           R1, [R2,#0x37C]                                        ; +0x86, 0x70e9de\nMOVW            R2, #0x2EB                                             ; +0x8a, 0x70e9e2\nCMP             R1, R2                                                 ; +0x8e, 0x70e9e6\nBNE             loc_70EA0A                                             ; +0x90, 0x70e9e8\nMOV.W           R2, #0x40800000                                        ; +0x92, 0x70e9ea\nSTR.W           R2, [R3,#0x1A0]                                        ; +0x96, 0x70e9ee\nLDR.W           R0, [R4,#0x250]; int                                   ; +0x9a, 0x70e9f2\nADD.W           R3, R4, #0x158                                         ; +0x9e, 0x70e9f6\nLDR.W           R1, [R4,#0x3E4]; int                                   ; +0xa2, 0x70e9fa\nLDR.W           R2, [R4,#0x29C]; this                                  ; +0xa6, 0x70e9fe\nPOP.W           {R4-R6,LR}                                             ; +0xaa, 0x70ea02\nB.W             _ZN14GJScaleControl10loadValuesEP10GameObjectPN7cocos2d7CCArrayERNSt6__ndk113unordered_mapIi21GameObjectEditorStateNS5_4hashIiEENS5_8equal_toIiEENS5_9allocatorINS5_4pairIKiS7_EEEEEE; GJScaleControl::loadValues(GameObject *,cocos2d::CCArray *,std::unordered_map<int,GameObjectEditorState> &) ; +0xae, 0x70ea06\nMOV.W           R2, #0x40000000                                        ; +0xb2, 0x70ea0a\nB               loc_70E9EE                                             ; +0xb6, 0x70ea0e\nPOP             {R4-R6,PC}                                             ; +0xb8, 0x70ea10", "xrefs": ["`non-virtual thunk to'EditorUI::updateScaleControl @ 0x70ea16"], "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"}