{"type": "func", "start": 4301314864, "end": 4301315162, "name": "EditorUI::showLockedLayerAlert", "pseudocode": "// \n// EditorUI::showLockedLayerAlert from 0x10060db30 to 0x10060dc5a (298 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onCreate @ 0x10000ce65\n// > EditorUI::pasteObjects @ 0x1005b67c8\n// \n// This function is hookable on this platform (idp: pc, 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 12:34:33 +0000\n// \n\nvoid __fastcall EditorUI::showLockedLayerAlert(__int64 a1)\n{\n  __int64 v1; // rax\n  const char *CString; // r15\n  size_t v3; // rax\n  size_t v4; // r14\n  char *v5; // r12\n  char v6; // r15\n  size_t v7; // r13\n  std::string v8; // [rsp+0h] [rbp-60h] BYREF\n  __int128 __dst; // [rsp+20h] [rbp-40h] BYREF\n  void *v10; // [rsp+30h] [rbp-30h]\n\n  v1 = sub_10088E820(\"Layer %i is locked.\", *(_BYTE *)&v8.__r_.__value_.__l.0);\n  CString = (const char *)cocos2d::CCString::getCString(v1);\n  v3 = strlen(CString);\n  if ( v3 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v4 = v3;\n  if ( v3 >= 0x17 )\n  {\n    v7 = 26;\n    if ( (v3 | 7) != 0x17 )\n      v7 = (v3 | 7) + 1;\n    v5 = (char *)operator new(v7);\n    v10 = v5;\n    *(_QWORD *)&__dst = v7 + 1;\n    *((_QWORD *)&__dst + 1) = v4;\nLABEL_9:\n    memmove(v5, CString, v4);\n    v5[v4] = 0;\n    v6 = __dst;\n    if ( (__dst & 1) == 0 )\n      goto LABEL_5;\n    goto LABEL_10;\n  }\n  LOBYTE(__dst) = 2 * v3;\n  v5 = (char *)&__dst + 1;\n  if ( v3 )\n    goto LABEL_9;\n  BYTE1(__dst) = 0;\n  v6 = __dst;\n  if ( (__dst & 1) == 0 )\n  {\nLABEL_5:\n    v8.__r_.__value_.__r.__words[2] = (std::string::size_type)v10;\n    *(_OWORD *)&v8.__r_.__value_.__l.0 = __dst;\n    goto LABEL_11;\n  }\nLABEL_10:\n  sub_10001AD30(&v8, v10, *((unsigned __int64 *)&__dst + 1));\nLABEL_11:\n  EditorUI::showTextAlert(a1, &v8, 0, 1, 0x7Fu);\n  if ( (*(_BYTE *)&v8.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v8.__r_.__value_.__l.__data_);\n  if ( (v6 & 1) != 0 )\n    operator delete(v10);\n}", "assembly": "; \n; EditorUI::showLockedLayerAlert from 0x10060db30 to 0x10060dc5a (298 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onCreate @ 0x10000ce65\n; > EditorUI::pasteObjects @ 0x1005b67c8\n; \n; This function is hookable on this platform (idp: pc, 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 12:34:33 +0000\n; \npush    rbp                                                            ; +0x0, 0x10060db30\nmov     rbp, rsp                                                       ; +0x1, 0x10060db31\npush    r15                                                            ; +0x4, 0x10060db34\npush    r14                                                            ; +0x6, 0x10060db36\npush    r13                                                            ; +0x8, 0x10060db38\npush    r12                                                            ; +0xa, 0x10060db3a\npush    rbx                                                            ; +0xc, 0x10060db3c\nsub     rsp, 38h                                                       ; +0xd, 0x10060db3d\nmov     rbx, rdi                                                       ; +0x11, 0x10060db41\nlea     rdi, aLayerIIsLocked; \"Layer %i is locked.\"                    ; +0x14, 0x10060db44\nxor     eax, eax                                                       ; +0x1b, 0x10060db4b\ncall    sub_10088E820                                                  ; +0x1d, 0x10060db4d\nmov     rdi, rax                                                       ; +0x22, 0x10060db52\ncall    cocos2d__CCString__getCString                                  ; +0x25, 0x10060db55\nmov     r15, rax                                                       ; +0x2a, 0x10060db5a\nmov     rdi, rax; __s                                                  ; +0x2d, 0x10060db5d\ncall    _strlen                                                        ; +0x30, 0x10060db60\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x35, 0x10060db65\njnb     loc_10060DC55                                                  ; +0x39, 0x10060db69\nmov     r14, rax                                                       ; +0x3f, 0x10060db6f\ncmp     rax, 17h                                                       ; +0x42, 0x10060db72\njnb     short loc_10060DBAA                                            ; +0x46, 0x10060db76\nlea     eax, [r14+r14]                                                 ; +0x48, 0x10060db78\nmov     byte ptr [rbp+__dst], al                                       ; +0x4c, 0x10060db7c\nlea     r12, [rbp+__dst+1]                                             ; +0x4f, 0x10060db7f\ntest    r14, r14                                                       ; +0x53, 0x10060db83\njnz     short loc_10060DBDD                                            ; +0x56, 0x10060db86\nmov     byte ptr [r12+r14], 0                                          ; +0x58, 0x10060db88\nmovzx   r15d, byte ptr [rbp+__dst]                                     ; +0x5d, 0x10060db8d\ntest    r15b, 1                                                        ; +0x62, 0x10060db92\njnz     short loc_10060DBFB                                            ; +0x66, 0x10060db96\nmov     rax, [rbp+var_30]                                              ; +0x68, 0x10060db98\nmov     [rbp+__p], rax                                                 ; +0x6c, 0x10060db9c\nmovups  xmm0, [rbp+__dst]                                              ; +0x70, 0x10060dba0\nmovaps  [rbp+var_60], xmm0                                             ; +0x74, 0x10060dba4\njmp     short loc_10060DC0F                                            ; +0x78, 0x10060dba8\nmov     rax, r14                                                       ; +0x7a, 0x10060dbaa\nor      rax, 7                                                         ; +0x7d, 0x10060dbad\nlea     rcx, [rax+1]                                                   ; +0x81, 0x10060dbb1\ncmp     rax, 17h                                                       ; +0x85, 0x10060dbb5\nmov     r13d, 1Ah                                                      ; +0x89, 0x10060dbb9\ncmovnz  r13, rcx                                                       ; +0x8f, 0x10060dbbf\nmov     rdi, r13; __sz                                                 ; +0x93, 0x10060dbc3\ncall    __Znwm; operator new(ulong)                                    ; +0x96, 0x10060dbc6\nmov     r12, rax                                                       ; +0x9b, 0x10060dbcb\nmov     [rbp+var_30], rax                                              ; +0x9e, 0x10060dbce\ninc     r13                                                            ; +0xa2, 0x10060dbd2\nmov     qword ptr [rbp+__dst], r13                                     ; +0xa5, 0x10060dbd5\nmov     qword ptr [rbp+__dst+8], r14                                   ; +0xa9, 0x10060dbd9\nmov     rdi, r12; __dst                                                ; +0xad, 0x10060dbdd\nmov     rsi, r15; __src                                                ; +0xb0, 0x10060dbe0\nmov     rdx, r14; __len                                                ; +0xb3, 0x10060dbe3\ncall    _memmove                                                       ; +0xb6, 0x10060dbe6\nmov     byte ptr [r12+r14], 0                                          ; +0xbb, 0x10060dbeb\nmovzx   r15d, byte ptr [rbp+__dst]                                     ; +0xc0, 0x10060dbf0\ntest    r15b, 1                                                        ; +0xc5, 0x10060dbf5\njz      short loc_10060DB98                                            ; +0xc9, 0x10060dbf9\nmov     rdx, qword ptr [rbp+__dst+8]                                   ; +0xcb, 0x10060dbfb\nmov     r14, [rbp+var_30]                                              ; +0xcf, 0x10060dbff\nlea     rdi, [rbp+var_60]                                              ; +0xd3, 0x10060dc03\nmov     rsi, r14                                                       ; +0xd7, 0x10060dc07\ncall    sub_10001AD30                                                  ; +0xda, 0x10060dc0a\nlea     rsi, [rbp+var_60]                                              ; +0xdf, 0x10060dc0f\nmov     rdi, rbx                                                       ; +0xe3, 0x10060dc13\nxor     edx, edx                                                       ; +0xe6, 0x10060dc16\nmov     ecx, 1                                                         ; +0xe8, 0x10060dc18\nmov     r8d, 7Fh                                                       ; +0xed, 0x10060dc1d\ncall    EditorUI__showTextAlert                                        ; +0xf3, 0x10060dc23\ntest    byte ptr [rbp+var_60], 1                                       ; +0xf8, 0x10060dc28\njz      short loc_10060DC37                                            ; +0xfc, 0x10060dc2c\nmov     rdi, [rbp+__p]; __p                                            ; +0xfe, 0x10060dc2e\ncall    __ZdlPv; operator delete(void *)                               ; +0x102, 0x10060dc32\ntest    r15b, 1                                                        ; +0x107, 0x10060dc37\njz      short loc_10060DC46                                            ; +0x10b, 0x10060dc3b\nmov     rdi, [rbp+var_30]; __p                                         ; +0x10d, 0x10060dc3d\ncall    __ZdlPv; operator delete(void *)                               ; +0x111, 0x10060dc41\nadd     rsp, 38h                                                       ; +0x116, 0x10060dc46\npop     rbx                                                            ; +0x11a, 0x10060dc4a\npop     r12                                                            ; +0x11b, 0x10060dc4b\npop     r13                                                            ; +0x11d, 0x10060dc4d\npop     r14                                                            ; +0x11f, 0x10060dc4f\npop     r15                                                            ; +0x121, 0x10060dc51\npop     rbp                                                            ; +0x123, 0x10060dc53\nretn                                                                   ; +0x124, 0x10060dc54\ncall    sub_100003630                                                  ; +0x125, 0x10060dc55", "xrefs": ["EditorUI::onCreate @ 0x10000ce65", "EditorUI::pasteObjects @ 0x1005b67c8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}