{"type": "func", "start": 4297032784, "end": 4297032962, "name": "CustomizeObjectLayer::updateCurrentSelection", "pseudocode": "// \n// CustomizeObjectLayer::updateCurrentSelection from 0x1001f8450 to 0x1001f8502 (178 bytes)\n// \n// 2 xrefs:\n// > CustomizeObjectLayer::onPaste @ 0x1001f829b\n// > CustomizeObjectLayer::toggleVisible @ 0x1001f92d0\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 CustomizeObjectLayer::updateCurrentSelection(CustomizeObjectLayer *a1)\n{\n  int ActiveMode; // r14d\n  ButtonSprite *v2; // r15\n  unsigned int v3; // r12d\n  __int64 v4; // r13\n\n  ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 0);\n  if ( (unsigned int)(ActiveMode - 10) <= 0x3DD )\n  {\n    a1->m_disableTextDelegate = 1;\n    a1->m_customColorChannel = ActiveMode;\n    CustomizeObjectLayer::updateCustomColorLabels(a1);\n    a1->m_disableTextDelegate = 0;\n    ActiveMode = 1008;\n  }\n  v2 = nullptr;\n  if ( (unsigned int)sub_100720070(a1->m_colorButtons) )\n  {\n    v3 = 0;\n    while ( 1 )\n    {\n      v4 = sub_1007200C0(a1->m_colorButtons, v3);\n      if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) == ActiveMode )\n        break;\n      if ( ++v3 >= (unsigned int)sub_100720070(a1->m_colorButtons) )\n        goto LABEL_9;\n    }\n    v2 = (ButtonSprite *)v4;\n  }\nLABEL_9:\n  CustomizeObjectLayer::highlightSelected(a1, v2);\n}", "assembly": "; \n; CustomizeObjectLayer::updateCurrentSelection from 0x1001f8450 to 0x1001f8502 (178 bytes)\n; \n; 2 xrefs:\n; > CustomizeObjectLayer::onPaste @ 0x1001f829b\n; > CustomizeObjectLayer::toggleVisible @ 0x1001f92d0\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, 0x1001f8450\nmov     rbp, rsp                                                       ; +0x1, 0x1001f8451\npush    r15                                                            ; +0x4, 0x1001f8454\npush    r14                                                            ; +0x6, 0x1001f8456\npush    r13                                                            ; +0x8, 0x1001f8458\npush    r12                                                            ; +0xa, 0x1001f845a\npush    rbx                                                            ; +0xc, 0x1001f845c\npush    rax                                                            ; +0xd, 0x1001f845d\nmov     rbx, rdi                                                       ; +0xe, 0x1001f845e\nxor     esi, esi                                                       ; +0x11, 0x1001f8461\ncall    CustomizeObjectLayer__getActiveMode                            ; +0x13, 0x1001f8463\nmov     r14d, eax                                                      ; +0x18, 0x1001f8468\nadd     eax, 0FFFFFFF6h                                                ; +0x1b, 0x1001f846b\ncmp     eax, 3DDh                                                      ; +0x1e, 0x1001f846e\nja      short loc_1001F8498                                            ; +0x23, 0x1001f8473\nmov     byte ptr [rbx+382h], 1                                         ; +0x25, 0x1001f8475\nmov     [rbx+2D4h], r14d                                               ; +0x2c, 0x1001f847c\nmov     rdi, rbx                                                       ; +0x33, 0x1001f8483\ncall    CustomizeObjectLayer__updateCustomColorLabels                  ; +0x36, 0x1001f8486\nmov     byte ptr [rbx+382h], 0                                         ; +0x3b, 0x1001f848b\nmov     r14d, 3F0h                                                     ; +0x42, 0x1001f8492\nmov     rdi, [rbx+2A8h]                                                ; +0x48, 0x1001f8498\ncall    sub_100720070                                                  ; +0x4f, 0x1001f849f\nxor     r15d, r15d                                                     ; +0x54, 0x1001f84a4\ntest    eax, eax                                                       ; +0x57, 0x1001f84a7\njz      short loc_1001F84E9                                            ; +0x59, 0x1001f84a9\nxor     r12d, r12d                                                     ; +0x5b, 0x1001f84ab\nxchg    ax, ax                                                         ; +0x5e, 0x1001f84ae\nmov     rdi, [rbx+2A8h]                                                ; +0x60, 0x1001f84b0\nmov     esi, r12d                                                      ; +0x67, 0x1001f84b7\ncall    sub_1007200C0                                                  ; +0x6a, 0x1001f84ba\nmov     r13, rax                                                       ; +0x6f, 0x1001f84bf\nmov     rax, [rax]                                                     ; +0x72, 0x1001f84c2\nmov     rdi, r13                                                       ; +0x75, 0x1001f84c5\ncall    qword ptr [rax+40h]                                            ; +0x78, 0x1001f84c8\ncmp     eax, r14d                                                      ; +0x7b, 0x1001f84cb\njz      short loc_1001F84E6                                            ; +0x7e, 0x1001f84ce\ninc     r12d                                                           ; +0x80, 0x1001f84d0\nmov     rdi, [rbx+2A8h]                                                ; +0x83, 0x1001f84d3\ncall    sub_100720070                                                  ; +0x8a, 0x1001f84da\ncmp     r12d, eax                                                      ; +0x8f, 0x1001f84df\njb      short loc_1001F84B0                                            ; +0x92, 0x1001f84e2\njmp     short loc_1001F84E9                                            ; +0x94, 0x1001f84e4\nmov     r15, r13                                                       ; +0x96, 0x1001f84e6\nmov     rdi, rbx                                                       ; +0x99, 0x1001f84e9\nmov     rsi, r15                                                       ; +0x9c, 0x1001f84ec\nadd     rsp, 8                                                         ; +0x9f, 0x1001f84ef\npop     rbx                                                            ; +0xa3, 0x1001f84f3\npop     r12                                                            ; +0xa4, 0x1001f84f4\npop     r13                                                            ; +0xa6, 0x1001f84f6\npop     r14                                                            ; +0xa8, 0x1001f84f8\npop     r15                                                            ; +0xaa, 0x1001f84fa\npop     rbp                                                            ; +0xac, 0x1001f84fc\njmp     CustomizeObjectLayer__highlightSelected                        ; +0xad, 0x1001f84fd", "xrefs": ["CustomizeObjectLayer::onPaste @ 0x1001f829b", "CustomizeObjectLayer::toggleVisible @ 0x1001f92d0"], "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"}