{"type": "func", "start": 4295175936, "end": 4295176205, "name": "EditorUI::deselectObject_1", "pseudocode": "// \n// EditorUI::deselectObject_1 from 0x100032f00 to 0x10003300d (269 bytes)\n// \n// 6 xrefs:\n// > EditorUI::deselectTargetPortals @ 0x100032967\n// > EditorUI::deselectTargetPortals @ 0x100032993\n// > EditorUI::deleteObject @ 0x100032a67\n// > EditorUI::deselectObject @ 0x100032c7b\n// > EditorUI::deselectAll @ 0x100032cfd\n// > EditorUI::ccTouchEnded @ 0x10004ffa2\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 __fastcall EditorUI::deselectObject_1(EditorUI *a1)\n{\n  GameObject *m_selectedObject; // rdi\n  bool v3; // al\n  CCMenuItemSpriteExtra *m_editObjectBtn; // rdi\n  void *v5; // r14\n  void *v6; // rsi\n  unsigned int v7; // r15d\n  unsigned int v8; // r12d\n  bool v9; // al\n  CCMenuItemSpriteExtra *m_editSpecialBtn; // rdi\n\n  cocos2d::CCNode::stopActionByTag(a1, 124);\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n    GameObject::deselectObject(m_selectedObject);\n  a1->m_selectedObject = nullptr;\n  v3 = EditorUI::editButtonUsable(a1);\n  m_editObjectBtn = a1->m_editObjectBtn;\n  m_editObjectBtn->m_animationEnabled = v3;\n  v5 = &unk_100815543;\n  v6 = &unk_100815543;\n  if ( v3 )\n    v6 = &unk_100815540;\n  v7 = 175;\n  v8 = 175;\n  if ( v3 )\n    v8 = 255;\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, void *))m_editObjectBtn->setColor)(m_editObjectBtn, v6);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_editObjectBtn->setOpacity)(a1->m_editObjectBtn, v8);\n  v9 = EditorUI::editButton2Usable(a1);\n  m_editSpecialBtn = a1->m_editSpecialBtn;\n  m_editSpecialBtn->m_animationEnabled = v9;\n  if ( v9 )\n  {\n    v5 = &unk_100815540;\n    v7 = 255;\n  }\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, void *))m_editSpecialBtn->setColor)(m_editSpecialBtn, v5);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_editSpecialBtn->setOpacity)(a1->m_editSpecialBtn, v7);\n  EditorUI::updateEditColorButton(a1);\n  a1->m_canActivateControls = 1;\n  sub_10028CC90(&a1->m_lastTouchPoint, &qword_10099EC08);\n}", "assembly": "; \n; EditorUI::deselectObject_1 from 0x100032f00 to 0x10003300d (269 bytes)\n; \n; 6 xrefs:\n; > EditorUI::deselectTargetPortals @ 0x100032967\n; > EditorUI::deselectTargetPortals @ 0x100032993\n; > EditorUI::deleteObject @ 0x100032a67\n; > EditorUI::deselectObject @ 0x100032c7b\n; > EditorUI::deselectAll @ 0x100032cfd\n; > EditorUI::ccTouchEnded @ 0x10004ffa2\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    rbp                                                            ; +0x0, 0x100032f00\nmov     rbp, rsp                                                       ; +0x1, 0x100032f01\npush    r15                                                            ; +0x4, 0x100032f04\npush    r14                                                            ; +0x6, 0x100032f06\npush    r13                                                            ; +0x8, 0x100032f08\npush    r12                                                            ; +0xa, 0x100032f0a\npush    rbx                                                            ; +0xc, 0x100032f0c\npush    rax                                                            ; +0xd, 0x100032f0d\nmov     rbx, rdi                                                       ; +0xe, 0x100032f0e\nmov     esi, 7Ch ; '|'                                                 ; +0x11, 0x100032f11\ncall    cocos2d__CCNode__stopActionByTag                               ; +0x16, 0x100032f16\nmov     rdi, [rbx+520h]                                                ; +0x1b, 0x100032f1b\ntest    rdi, rdi                                                       ; +0x22, 0x100032f22\njz      short loc_100032F2C                                            ; +0x25, 0x100032f25\ncall    GameObject__deselectObject                                     ; +0x27, 0x100032f27\nmov     qword ptr [rbx+520h], 0                                        ; +0x2c, 0x100032f2c\nmov     rdi, rbx                                                       ; +0x37, 0x100032f37\ncall    EditorUI__editButtonUsable                                     ; +0x3a, 0x100032f3a\nmov     rdi, [rbx+3C8h]                                                ; +0x3f, 0x100032f3f\nmov     [rdi+198h], al                                                 ; +0x46, 0x100032f46\nlea     rdx, unk_100815540                                             ; +0x4c, 0x100032f4c\nlea     r14, unk_100815543                                             ; +0x53, 0x100032f53\nmov     rcx, [rdi]                                                     ; +0x5a, 0x100032f5a\ntest    al, al                                                         ; +0x5d, 0x100032f5d\nmov     rsi, r14                                                       ; +0x5f, 0x100032f5f\ncmovnz  rsi, rdx                                                       ; +0x62, 0x100032f62\nmov     r13d, 0FFh                                                     ; +0x66, 0x100032f66\nmov     r15d, 0AFh                                                     ; +0x6c, 0x100032f6c\nmov     r12d, 0AFh                                                     ; +0x72, 0x100032f72\ncmovnz  r12d, r13d                                                     ; +0x78, 0x100032f78\ncall    qword ptr [rcx+3B0h]                                           ; +0x7c, 0x100032f7c\nmov     rdi, [rbx+3C8h]                                                ; +0x82, 0x100032f82\nmov     rax, [rdi]                                                     ; +0x89, 0x100032f89\nmov     esi, r12d                                                      ; +0x8c, 0x100032f8c\ncall    qword ptr [rax+380h]                                           ; +0x8f, 0x100032f8f\nmov     rdi, rbx                                                       ; +0x95, 0x100032f95\ncall    EditorUI__editButton2Usable                                    ; +0x98, 0x100032f98\nmov     rdi, [rbx+3E0h]                                                ; +0x9d, 0x100032f9d\nmov     [rdi+198h], al                                                 ; +0xa4, 0x100032fa4\nmov     rcx, [rdi]                                                     ; +0xaa, 0x100032faa\ntest    al, al                                                         ; +0xad, 0x100032fad\nlea     rax, unk_100815540                                             ; +0xaf, 0x100032faf\ncmovnz  r14, rax                                                       ; +0xb6, 0x100032fb6\ncmovnz  r15d, r13d                                                     ; +0xba, 0x100032fba\nmov     rsi, r14                                                       ; +0xbe, 0x100032fbe\ncall    qword ptr [rcx+3B0h]                                           ; +0xc1, 0x100032fc1\nmov     rdi, [rbx+3E0h]                                                ; +0xc7, 0x100032fc7\nmov     rax, [rdi]                                                     ; +0xce, 0x100032fce\nmov     esi, r15d                                                      ; +0xd1, 0x100032fd1\ncall    qword ptr [rax+380h]                                           ; +0xd4, 0x100032fd4\nmov     rdi, rbx                                                       ; +0xda, 0x100032fda\ncall    EditorUI__updateEditColorButton                                ; +0xdd, 0x100032fdd\nmov     byte ptr [rbx+2B0h], 1                                         ; +0xe2, 0x100032fe2\nadd     rbx, 508h                                                      ; +0xe9, 0x100032fe9\nlea     rsi, qword_10099EC08                                           ; +0xf0, 0x100032ff0\nmov     rdi, rbx                                                       ; +0xf7, 0x100032ff7\nadd     rsp, 8                                                         ; +0xfa, 0x100032ffa\npop     rbx                                                            ; +0xfe, 0x100032ffe\npop     r12                                                            ; +0xff, 0x100032fff\npop     r13                                                            ; +0x101, 0x100033001\npop     r14                                                            ; +0x103, 0x100033003\npop     r15                                                            ; +0x105, 0x100033005\npop     rbp                                                            ; +0x107, 0x100033007\njmp     sub_10028CC90                                                  ; +0x108, 0x100033008", "xrefs": ["EditorUI::deselectTargetPortals @ 0x100032967", "EditorUI::deselectTargetPortals @ 0x100032993", "EditorUI::deleteObject @ 0x100032a67", "EditorUI::deselectObject @ 0x100032c7b", "EditorUI::deselectAll @ 0x100032cfd", "EditorUI::ccTouchEnded @ 0x10004ffa2"], "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"}