{"type": "func", "start": 4295017984, "end": 4295018185, "name": "EditorUI::editorLayerForArray", "pseudocode": "// \n// EditorUI::editorLayerForArray from 0x10000c600 to 0x10000c6c9 (201 bytes)\n// \n// 0 xrefs:\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:18:50 +0000\n// \n\n__int64 __fastcall EditorUI::editorLayerForArray(__int64 a1, __int64 a2, char a3)\n{\n  unsigned int v3; // r14d\n  unsigned int v5; // r15d\n  unsigned int v6; // eax\n  unsigned int v7; // r15d\n  unsigned int v8; // eax\n\n  v3 = 0;\n  if ( a2 )\n  {\n    if ( !(unsigned int)sub_1007FEF90(a2) )\n      return 0;\n    if ( a3 )\n    {\n      v5 = 0;\n      v3 = -1;\n      while ( 1 )\n      {\n        v6 = *(__int16 *)(sub_1007FEFE0(a2, v5) + 1204);\n        if ( v3 == -1 )\n        {\n          v3 = v6;\n        }\n        else if ( v3 != v6 )\n        {\n          return 0;\n        }\n        if ( ++v5 >= (unsigned int)sub_1007FEF90(a2) )\n          goto LABEL_16;\n      }\n    }\n    v7 = 0;\n    v3 = -1;\n    do\n    {\n      v8 = *(__int16 *)(sub_1007FEFE0(a2, v7) + 1202);\n      if ( v3 == -1 )\n      {\n        v3 = v8;\n      }\n      else if ( v3 != v8 )\n      {\n        return 0;\n      }\n      ++v7;\n    }\n    while ( v7 < (unsigned int)sub_1007FEF90(a2) );\nLABEL_16:\n    if ( v3 == -1 )\n      return 0;\n  }\n  return v3;\n}", "assembly": "; \n; EditorUI::editorLayerForArray from 0x10000c600 to 0x10000c6c9 (201 bytes)\n; \n; 0 xrefs:\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:18:50 +0000\n; \npush    rbp                                                            ; +0x0, 0x10000c600\nmov     rbp, rsp                                                       ; +0x1, 0x10000c601\npush    r15                                                            ; +0x4, 0x10000c604\npush    r14                                                            ; +0x6, 0x10000c606\npush    rbx                                                            ; +0x8, 0x10000c608\npush    rax                                                            ; +0x9, 0x10000c609\nxor     r14d, r14d                                                     ; +0xa, 0x10000c60a\ntest    rsi, rsi                                                       ; +0xd, 0x10000c60d\njz      loc_10000C6BB                                                  ; +0x10, 0x10000c610\nmov     r15d, edx                                                      ; +0x16, 0x10000c616\nmov     rbx, rsi                                                       ; +0x19, 0x10000c619\nmov     rdi, rsi                                                       ; +0x1c, 0x10000c61c\ncall    sub_1007FEF90                                                  ; +0x1f, 0x10000c61f\ntest    eax, eax                                                       ; +0x24, 0x10000c624\njz      loc_10000C6B8                                                  ; +0x26, 0x10000c626\ntest    r15b, r15b                                                     ; +0x2c, 0x10000c62c\njz      short loc_10000C672                                            ; +0x2f, 0x10000c62f\nxor     r15d, r15d                                                     ; +0x31, 0x10000c631\nmov     r14d, 0FFFFFFFFh                                               ; +0x34, 0x10000c634\njmp     short loc_10000C653                                            ; +0x3a, 0x10000c63a\nalign 20h                                                              ; +0x3c, 0x10000c63c\nmov     r14d, eax                                                      ; +0x40, 0x10000c640\ninc     r15d                                                           ; +0x43, 0x10000c643\nmov     rdi, rbx                                                       ; +0x46, 0x10000c646\ncall    sub_1007FEF90                                                  ; +0x49, 0x10000c649\ncmp     r15d, eax                                                      ; +0x4e, 0x10000c64e\njnb     short loc_10000C6B2                                            ; +0x51, 0x10000c651\nmov     rdi, rbx                                                       ; +0x53, 0x10000c653\nmov     esi, r15d                                                      ; +0x56, 0x10000c656\ncall    sub_1007FEFE0                                                  ; +0x59, 0x10000c659\nmovsx   eax, word ptr [rax+4B4h]                                       ; +0x5e, 0x10000c65e\ncmp     r14d, 0FFFFFFFFh                                               ; +0x65, 0x10000c665\njz      short loc_10000C640                                            ; +0x69, 0x10000c669\ncmp     r14d, eax                                                      ; +0x6b, 0x10000c66b\njz      short loc_10000C643                                            ; +0x6e, 0x10000c66e\njmp     short loc_10000C6B8                                            ; +0x70, 0x10000c670\nxor     r15d, r15d                                                     ; +0x72, 0x10000c672\nmov     r14d, 0FFFFFFFFh                                               ; +0x75, 0x10000c675\njmp     short loc_10000C693                                            ; +0x7b, 0x10000c67b\nalign 20h                                                              ; +0x7d, 0x10000c67d\nmov     r14d, eax                                                      ; +0x80, 0x10000c680\ninc     r15d                                                           ; +0x83, 0x10000c683\nmov     rdi, rbx                                                       ; +0x86, 0x10000c686\ncall    sub_1007FEF90                                                  ; +0x89, 0x10000c689\ncmp     r15d, eax                                                      ; +0x8e, 0x10000c68e\njnb     short loc_10000C6B2                                            ; +0x91, 0x10000c691\nmov     rdi, rbx                                                       ; +0x93, 0x10000c693\nmov     esi, r15d                                                      ; +0x96, 0x10000c696\ncall    sub_1007FEFE0                                                  ; +0x99, 0x10000c699\nmovsx   eax, word ptr [rax+4B2h]                                       ; +0x9e, 0x10000c69e\ncmp     r14d, 0FFFFFFFFh                                               ; +0xa5, 0x10000c6a5\njz      short loc_10000C680                                            ; +0xa9, 0x10000c6a9\ncmp     r14d, eax                                                      ; +0xab, 0x10000c6ab\njz      short loc_10000C683                                            ; +0xae, 0x10000c6ae\njmp     short loc_10000C6B8                                            ; +0xb0, 0x10000c6b0\ncmp     r14d, 0FFFFFFFFh                                               ; +0xb2, 0x10000c6b2\njnz     short loc_10000C6BB                                            ; +0xb6, 0x10000c6b6\nxor     r14d, r14d                                                     ; +0xb8, 0x10000c6b8\nmov     eax, r14d                                                      ; +0xbb, 0x10000c6bb\nadd     rsp, 8                                                         ; +0xbe, 0x10000c6be\npop     rbx                                                            ; +0xc2, 0x10000c6c2\npop     r14                                                            ; +0xc3, 0x10000c6c3\npop     r15                                                            ; +0xc5, 0x10000c6c5\npop     rbp                                                            ; +0xc7, 0x10000c6c7\nretn                                                                   ; +0xc8, 0x10000c6c8", "xrefs": [], "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"}