{"type": "func", "start": 12591032, "end": 12591388, "name": "EditorUI::updateScaleControl", "pseudocode": "// \n// EditorUI::updateScaleControl from 0xc01fb8 to 0xc0211c (356 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorUI::updateScaleControl @ 0xc02120\n// > <???> @ 0x55e88\n// > <???> @ 0x14372b8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:49 +0000\n// \n\n__int64 __fastcall EditorUI::updateScaleControl(EditorUI *this)\n{\n  __int64 result; // x0\n  GameObject *v3; // x0\n  bool isTrigger; // w0\n  __int64 v5; // x0\n  unsigned int v6; // w20\n  GameObject *v7; // x0\n  bool v8; // cf\n  unsigned int v9; // w1\n\n  result = (*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 98) + 352LL))(*((_QWORD *)this + 98));\n  if ( (_BYTE)result )\n  {\n    v3 = *((GameObject **)this + 187);\n    if ( v3 )\n    {\n      isTrigger = GameObject::isTrigger(v3);\n      if ( *((_BYTE *)this + 691) )\n      {\nLABEL_4:\n        *(float *)(*((_QWORD *)this + 98) + 584LL) = 4.0;\n        *(float *)(*((_QWORD *)this + 98) + 588LL) = 0.25;\n        return GJScaleControl::loadValues(\n                 *((GJScaleControl **)this + 98),\n                 *((float **)this + 187),\n                 *((cocos2d::CCArray **)this + 112),\n                 (__int64)this + 464);\n      }\n      *(float *)(*((_QWORD *)this + 98) + 588LL) = 0.5;\n      if ( !isTrigger )\n      {\nLABEL_6:\n        v5 = *((_QWORD *)this + 187);\n        if ( !v5 || *(_DWORD *)(v5 + 1028) != 747 )\n        {\n          *(float *)(*((_QWORD *)this + 98) + 584LL) = 2.0;\n          return GJScaleControl::loadValues(\n                   *((GJScaleControl **)this + 98),\n                   *((float **)this + 187),\n                   *((cocos2d::CCArray **)this + 112),\n                   (__int64)this + 464);\n        }\n      }\n    }\n    else\n    {\n      if ( !(unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) )\n      {\nLABEL_18:\n        if ( *((_BYTE *)this + 691) )\n          goto LABEL_4;\n        *(float *)(*((_QWORD *)this + 98) + 588LL) = 0.5;\n        goto LABEL_6;\n      }\n      v6 = 0;\n      while ( 1 )\n      {\n        v8 = v6 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112));\n        v9 = v6++;\n        if ( v8 )\n          break;\n        v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), v9);\n        if ( !GameObject::isTrigger(v7) )\n          goto LABEL_18;\n      }\n      if ( *((_BYTE *)this + 691) )\n        goto LABEL_4;\n      *(float *)(*((_QWORD *)this + 98) + 588LL) = 0.5;\n    }\n    *(float *)(*((_QWORD *)this + 98) + 584LL) = 4.0;\n    return GJScaleControl::loadValues(\n             *((GJScaleControl **)this + 98),\n             *((float **)this + 187),\n             *((cocos2d::CCArray **)this + 112),\n             (__int64)this + 464);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::updateScaleControl from 0xc01fb8 to 0xc0211c (356 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorUI::updateScaleControl @ 0xc02120\n; > <???> @ 0x55e88\n; > <???> @ 0x14372b8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:49 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xc01fb8\nMOV             X29, SP                                                ; +0x4, 0xc01fbc\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xc01fc0\nMOV             X19, X0                                                ; +0xc, 0xc01fc4\nLDR             X1, [X0,#0x310]                                        ; +0x10, 0xc01fc8\nMOV             X0, X1                                                 ; +0x14, 0xc01fcc\nLDR             X1, [X1]                                               ; +0x18, 0xc01fd0\nLDR             X1, [X1,#0x160]                                        ; +0x1c, 0xc01fd4\nBLR             X1                                                     ; +0x20, 0xc01fd8\nUXTB            W0, W0                                                 ; +0x24, 0xc01fdc\nCBZ             W0, loc_C0207C                                         ; +0x28, 0xc01fe0\nLDR             X0, [X19,#0x5D8]; this                                 ; +0x2c, 0xc01fe4\nCBZ             X0, loc_C02088                                         ; +0x30, 0xc01fe8\nBL              _ZN10GameObject9isTriggerEv; GameObject::isTrigger(void) ; +0x34, 0xc01fec\nUXTB            W0, W0                                                 ; +0x38, 0xc01ff0\nLDRB            W1, [X19,#0x2B3]                                       ; +0x3c, 0xc01ff4\nCBZ             W1, loc_C02030                                         ; +0x40, 0xc01ff8\nLDR             X0, [X19,#0x310]                                       ; +0x44, 0xc01ffc\nADD             X3, X19, #0x1D0                                        ; +0x48, 0xc02000\nFMOV            S0, #4.0                                               ; +0x4c, 0xc02004\nSTR             S0, [X0,#0x248]                                        ; +0x50, 0xc02008\nLDR             X0, [X19,#0x310]                                       ; +0x54, 0xc0200c\nFMOV            S0, #0.25                                              ; +0x58, 0xc02010\nSTR             S0, [X0,#0x24C]                                        ; +0x5c, 0xc02014\nLDR             X0, [X19,#0x310]; this                                 ; +0x60, 0xc02018\nLDR             X1, [X19,#0x5D8]; int                                  ; +0x64, 0xc0201c\nLDR             X2, [X19,#0x380]; cocos2d::CCArray *                   ; +0x68, 0xc02020\nLDP             X19, X20, [SP,#var_s10]                                ; +0x6c, 0xc02024\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x70, 0xc02028\nB               _ZN14GJScaleControl10loadValuesEP10GameObjectPN7cocos2d7CCArrayERNSt6__ndk113unordered_mapIi21GameObjectEditorStateNS5_4hashIiEENS5_8equal_toIiEENS5_9allocatorINS5_4pairIKiS7_EEEEEE; GJScaleControl::loadValues(GameObject *,cocos2d::CCArray *,std::unordered_map<int,GameObjectEditorState> &) ; +0x74, 0xc0202c\nLDR             X1, [X19,#0x310]                                       ; +0x78, 0xc02030\nFMOV            S0, #0.5                                               ; +0x7c, 0xc02034\nSTR             S0, [X1,#0x24C]                                        ; +0x80, 0xc02038\nCBNZ            W0, loc_C020DC                                         ; +0x84, 0xc0203c\nLDR             X0, [X19,#0x5D8]                                       ; +0x88, 0xc02040\nCBZ             X0, loc_C02054                                         ; +0x8c, 0xc02044\nLDR             W0, [X0,#0x404]                                        ; +0x90, 0xc02048\nCMP             W0, #0x2EB                                             ; +0x94, 0xc0204c\nB.EQ            loc_C020DC                                             ; +0x98, 0xc02050\nLDR             X0, [X19,#0x310]                                       ; +0x9c, 0xc02054\nADD             X3, X19, #0x1D0                                        ; +0xa0, 0xc02058\nFMOV            S0, #2.0                                               ; +0xa4, 0xc0205c\nSTR             S0, [X0,#0x248]                                        ; +0xa8, 0xc02060\nLDR             X0, [X19,#0x310]; this                                 ; +0xac, 0xc02064\nLDR             X1, [X19,#0x5D8]; int                                  ; +0xb0, 0xc02068\nLDR             X2, [X19,#0x380]; cocos2d::CCArray *                   ; +0xb4, 0xc0206c\nLDP             X19, X20, [SP,#var_s10]                                ; +0xb8, 0xc02070\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xbc, 0xc02074\nB               _ZN14GJScaleControl10loadValuesEP10GameObjectPN7cocos2d7CCArrayERNSt6__ndk113unordered_mapIi21GameObjectEditorStateNS5_4hashIiEENS5_8equal_toIiEENS5_9allocatorINS5_4pairIKiS7_EEEEEE; GJScaleControl::loadValues(GameObject *,cocos2d::CCArray *,std::unordered_map<int,GameObjectEditorState> &) ; +0xc0, 0xc02078\nLDP             X19, X20, [SP,#var_s10]                                ; +0xc4, 0xc0207c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xc8, 0xc02080\nRET                                                                    ; +0xcc, 0xc02084\nLDR             X0, [X19,#0x380]; this                                 ; +0xd0, 0xc02088\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xd4, 0xc0208c\nCBZ             W0, loc_C02104                                         ; +0xd8, 0xc02090\nMOV             W20, #0                                                ; +0xdc, 0xc02094\nB               loc_C020B0                                             ; +0xe0, 0xc02098\nLDR             X0, [X19,#0x380]; this                                 ; +0xe4, 0xc0209c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xe8, 0xc020a0\nBL              _ZN10GameObject9isTriggerEv; GameObject::isTrigger(void) ; +0xec, 0xc020a4\nUXTB            W0, W0                                                 ; +0xf0, 0xc020a8\nCBZ             W0, loc_C02104                                         ; +0xf4, 0xc020ac\nLDR             X0, [X19,#0x380]; this                                 ; +0xf8, 0xc020b0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xfc, 0xc020b4\nCMP             W20, W0                                                ; +0x100, 0xc020b8\nMOV             W1, W20; unsigned int                                  ; +0x104, 0xc020bc\nADD             W20, W20, #1                                           ; +0x108, 0xc020c0\nB.CC            loc_C0209C                                             ; +0x10c, 0xc020c4\nLDRB            W0, [X19,#0x2B3]                                       ; +0x110, 0xc020c8\nCBNZ            W0, loc_C01FFC                                         ; +0x114, 0xc020cc\nLDR             X0, [X19,#0x310]                                       ; +0x118, 0xc020d0\nFMOV            S0, #0.5                                               ; +0x11c, 0xc020d4\nSTR             S0, [X0,#0x24C]                                        ; +0x120, 0xc020d8\nLDR             X0, [X19,#0x310]                                       ; +0x124, 0xc020dc\nADD             X3, X19, #0x1D0                                        ; +0x128, 0xc020e0\nFMOV            S0, #4.0                                               ; +0x12c, 0xc020e4\nSTR             S0, [X0,#0x248]                                        ; +0x130, 0xc020e8\nLDR             X0, [X19,#0x310]; this                                 ; +0x134, 0xc020ec\nLDR             X1, [X19,#0x5D8]; int                                  ; +0x138, 0xc020f0\nLDR             X2, [X19,#0x380]; cocos2d::CCArray *                   ; +0x13c, 0xc020f4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x140, 0xc020f8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x144, 0xc020fc\nB               _ZN14GJScaleControl10loadValuesEP10GameObjectPN7cocos2d7CCArrayERNSt6__ndk113unordered_mapIi21GameObjectEditorStateNS5_4hashIiEENS5_8equal_toIiEENS5_9allocatorINS5_4pairIKiS7_EEEEEE; GJScaleControl::loadValues(GameObject *,cocos2d::CCArray *,std::unordered_map<int,GameObjectEditorState> &) ; +0x148, 0xc02100\nLDRB            W0, [X19,#0x2B3]                                       ; +0x14c, 0xc02104\nCBNZ            W0, loc_C01FFC                                         ; +0x150, 0xc02108\nLDR             X0, [X19,#0x310]                                       ; +0x154, 0xc0210c\nFMOV            S0, #0.5                                               ; +0x158, 0xc02110\nSTR             S0, [X0,#0x24C]                                        ; +0x15c, 0xc02114\nB               loc_C02040                                             ; +0x160, 0xc02118", "xrefs": ["`non-virtual thunk to'EditorUI::updateScaleControl @ 0xc02120", "<???> @ 0x55e88", "<???> @ 0x14372b8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}